void-packages/srcpkgs/spamassassin/template

34 lines
1.2 KiB
Bash

# Template file for 'spamassassin'
pkgname=spamassassin
version=3.4.2
revision=1
build_style=perl-module
# Missing optional dependencies:
# Mail::SPF, Geo::IP, Razor2, Encode::Detect, Net::Patricia
depends="curl gnupg perl perl-DBI perl-Digest-SHA1 perl-HTML-Parser
perl-HTTP-Date perl-IO-Socket-INET6 perl-IO-Socket-SSL perl-LWP
perl-Mail-DKIM perl-Net-DNS perl-NetAddr-IP"
makedepends="$depends"
hostmakedepends="$depends"
short_desc="Tool that serves as a mail filter to identify Spam"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="Apache-2.0"
homepage="https://spamassassin.apache.org/"
distfiles="http://www.us.apache.org/dist/${pkgname}/source/Mail-SpamAssassin-${version}.tar.gz"
checksum=8a1c139ee08f140d3d3fdf13e03d98cf68a5cae27a082c4a614d154565a3c34f
wrksrc="Mail-SpamAssassin-${version}"
nocross="https://build.voidlinux.eu/builders/armv6l-musl_builder/builds/9678"
conf_files="
/etc/mail/spamassassin/v312.pre
/etc/mail/spamassassin/v330.pre
/etc/mail/spamassassin/v340.pre
/etc/mail/spamassassin/v310.pre
/etc/mail/spamassassin/v320.pre
/etc/mail/spamassassin/init.pre
/etc/mail/spamassassin/local.cf"
post_install() {
vinstall $FILESDIR/sa-update 755 /etc/cron.weekly
vsv spamd
}