Commit 68e77a6a authored by Leonardo Arena's avatar Leonardo Arena
Browse files

main/spamassassin: remove bdb support due to licensing issues

Improvements:
- Do not remove spamassassin POD (cli --help does not work)
- Add OpenRC subpackage
parent 8678182e
......@@ -3,17 +3,17 @@
pkgname=spamassassin
_pkgreal=Mail-SpamAssassin
pkgver=3.4.4
pkgrel=1
pkgrel=2
pkgdesc="The Powerful #1 Open-Source Spam Filter"
url="https://metacpan.org/pod/Mail::SpamAssassin"
arch="all !x86" # testsuite fails on x86
license="Apache-2.0"
cpandepends="perl-html-parser perl-digest-sha1 perl-netaddr-ip perl-net-dns perl-mail-dkim
perl-mime-base64 perl-db_file perl-time-hires perl-libwww perl gnupg"
perl-mime-base64 perl-time-hires perl-libwww perl gnupg"
cpanmakedepends="$cpandepends"
depends="perl-mail-$pkgname curl"
makedepends="perl-dev $cpanmakedepends re2c"
subpackages="$pkgname-doc $pkgname-client $pkgname-compiler perl-mail-$pkgname:cpan"
subpackages="$pkgname-doc $pkgname-client $pkgname-compiler $pkgname-openrc perl-mail-$pkgname:cpan"
source="https://cpan.metacpan.org/authors/id/K/KM/KMCGRAIL/${_pkgreal#*-}/$_pkgreal-$pkgver.tar.gz
spamd.initd
spamd.confd
......@@ -80,7 +80,6 @@ cpan() {
mkdir -p "$subpkgdir"/usr "$subpkgdir"/etc "$subpkgdir"/var/lib/$pkgname
mv "$pkgdir"/etc/mail "$subpkgdir"/etc
mv "$pkgdir"/usr/lib "$pkgdir"/usr/share "$subpkgdir"/usr
find "$subpkgdir" -name *.pod -delete
mv "$subpkgdir"/usr/share/$pkgname/user_prefs.template \
"$subpkgdir"/etc/mail/$pkgname/user_prefs
sed -i '/^#\*/d' "$subpkgdir"/etc/mail/$pkgname/user_prefs
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment