contrib/spamassassin/Pkgfile
2010-03-27 02:05:59 +01:00

33 lines
1.0 KiB
Plaintext

# Description: SpamAssassin(tm) is a mail filter to identify spam.
# URL: http://www.spamassassin.org
# Maintainer: Thomas Penteker, tek at serverop dot de
# Packager: Victor victord at users dot berlios dot de
# Depends on: p5-digest-sha1, p5-net-dns, p5-lwp, p5-netaddr-ip, gnupg
name=spamassassin
version=3.3.1
release=1
source=(http://apache.osuosl.org/spamassassin/Mail-SpamAssassin-$version.tar.bz2 \
$name.rc)
build() {
cd Mail-SpamAssassin-$version
perl Makefile.PL PREFIX=/usr CONFDIR=/etc/$name DESTDIR=$PKG \
LOCALSTATEDIR=/usr/share/$name < /dev/null
make
make spamc/libspamc.so
make install
mkdir -p $PKG/{etc/rc.d,usr/include,usr/lib}
install -m0755 ../$name.rc $PKG/etc/rc.d/$name
install -m0644 spamc/libspamc.so $PKG/usr/lib
install -m0644 spamc/libspamc.h $PKG/usr/include/libspamc.h
chmod 0644 $PKG/usr/lib/perl5/site_perl/5.*.*/Mail/SpamAssassin/*.pm
chmod 0644 $PKG/usr/share/$name/*
chmod -R u+w $PKG/*
rm -fr $PKG/usr/lib/perl5/{5.*.*,site_perl/5.*.*/linux}
}