diff options
author | Erich Eckner <git@eckner.net> | 2019-12-12 10:25:36 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-12-12 10:25:36 +0100 |
commit | 68740270b26237bfe7710ac541b7b4111a35c856 (patch) | |
tree | f220cad9e47345621bb16437a6e61cfa668d3c6f /spamassassin-courier/PKGBUILD | |
parent | 3c61d46bb86d89e8e784de2969aa02cfbd4ec890 (diff) | |
download | archlinuxewe-68740270b26237bfe7710ac541b7b4111a35c856.tar.xz |
spamassassin-courier: fix directories
Diffstat (limited to 'spamassassin-courier/PKGBUILD')
-rw-r--r-- | spamassassin-courier/PKGBUILD | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spamassassin-courier/PKGBUILD b/spamassassin-courier/PKGBUILD index 1b1a34676..0a5866c94 100644 --- a/spamassassin-courier/PKGBUILD +++ b/spamassassin-courier/PKGBUILD @@ -56,6 +56,10 @@ build() { export PERL_USE_UNSAFE_INC=1 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor \ CONTACT_ADDRESS=root@localhost ENABLE_SSL=yes PERL_TAINT=no + sed -i ' + /^INSTALL\S*MAN[0-9]\+DIR = / s#\$(INSTALL_BASE)#\0/usr/share# + /^INSTALL\S*\(BIN\|SCRIPT\|ARCH\|LIB\) = / s#\$(INSTALL_BASE)#\0/usr# + ' Makefile make find . -name 'spamd' -type f -execdir patch -p1 -i "${srcdir}/spamd.patch" \; } @@ -71,7 +75,7 @@ build() { package() { cd "${srcdir}/Mail-SpamAssassin-${pkgver}" - make DESTDIR="${pkgdir}" INSTALL_BASE='/usr' install + make DESTDIR="${pkgdir}" INSTALL_BASE='' install install -D -m644 -t "${pkgdir}/usr/lib/systemd/system/" "${srcdir}/spamassassin.service" "${srcdir}/spamassassin-update.service" "${srcdir}/spamassassin-update.timer" install -d -o 182 -g 182 -m 755 "$pkgdir/var/lib/spamassassin" |