From 4878f395f38f913102ba926ea5ef18136ffe5ad9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 12 Dec 2019 12:06:21 +0100 Subject: spamassassin-courier: now really buildable ... --- spamassassin-courier/PKGBUILD | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'spamassassin-courier') diff --git a/spamassassin-courier/PKGBUILD b/spamassassin-courier/PKGBUILD index 0a5866c94..8ddae70a5 100644 --- a/spamassassin-courier/PKGBUILD +++ b/spamassassin-courier/PKGBUILD @@ -56,10 +56,6 @@ 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" \; } @@ -75,11 +71,11 @@ build() { package() { cd "${srcdir}/Mail-SpamAssassin-${pkgver}" - make DESTDIR="${pkgdir}" INSTALL_BASE='' install + make DESTDIR="${pkgdir}" 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" - install -m444 -t "${pkgdir}/usr/lib/perl5/Mail/SpamAssassin/" "${srcdir}/AuthCourier.pm" + install -m444 -t "${pkgdir}/usr/share/perl5/vendor_perl/Mail/SpamAssassin/" "${srcdir}/AuthCourier.pm" echo 'u spamd 182 - /var/lib/spamassassin' | install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/${pkgname%-*}.conf" -- cgit v1.2.3-70-g09d2