diff options
Diffstat (limited to 'main/spamassassin/APKBUILD')
-rw-r--r-- | main/spamassassin/APKBUILD | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/main/spamassassin/APKBUILD b/main/spamassassin/APKBUILD index e22803fa43..c82a4a2f8c 100644 --- a/main/spamassassin/APKBUILD +++ b/main/spamassassin/APKBUILD @@ -3,21 +3,31 @@ pkgname=spamassassin _realname=Mail-SpamAssassin pkgver=3.2.5 -pkgrel=0 +pkgrel=1 pkgdesc="The Powerful #1 Open-Source Spam Filter" url="http://spamassassin.apache.org" license="Apache" -depends="perl perl-digest-sha1 perl-html-parser perl-net-dns perl-db_file zlib" +depends="perl perl-digest-sha1 perl-html-parser perl-net-dns perl-db_file" makedepends="perl-dev zlib-dev" install= subpackages="$pkgname-doc" -source="http://www.apache.org/dist/spamassassin/source/$_realname-3.2.5.tar.gz" +source="http://www.apache.org/dist/spamassassin/source/$_realname-3.2.5.tar.gz + spamassassin-3.2.5-DESTDIR.patch" + +prepare() { + cd "$srcdir/$_realname-$pkgver" + patch -p1 -i ../spamassassin-3.2.5-DESTDIR.patch || return 1 +} build() { cd "$srcdir/$_realname-$pkgver" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 + make +} + +package() { + cd "$srcdir/$_realname-$pkgver" make DESTDIR="$pkgdir" install install -m755 -D ../../spamd.init $pkgdir/etc/init.d/spamd install -m644 -D ../../spamd.conf $pkgdir/etc/conf.d/spamd.conf @@ -27,4 +37,5 @@ build() { find "$pkgdir" -name perllocal.pod -delete } -md5sums="7fdc1651d0371c4a7f95ac9ae6f828a6 Mail-SpamAssassin-3.2.5.tar.gz" +md5sums="7fdc1651d0371c4a7f95ac9ae6f828a6 Mail-SpamAssassin-3.2.5.tar.gz +45885134199c9427add4d9bcb46311cf spamassassin-3.2.5-DESTDIR.patch" |