2006-11-20 07:26:53 +10:00
|
|
|
# Description: SpamAssassin(tm) is a mail filter to identify spam.
|
|
|
|
# URL: http://www.spamassassin.org
|
2008-03-25 23:25:14 +01:00
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
2008-05-16 19:48:04 +02:00
|
|
|
# Packager: Victor victord at users dot berlios dot de
|
2010-03-10 17:50:37 +01:00
|
|
|
# Depends on: p5-digest-sha1, p5-net-dns, p5-lwp, p5-netaddr-ip, gnupg
|
2006-11-14 09:13:35 +10:00
|
|
|
|
|
|
|
name=spamassassin
|
2014-02-16 23:06:02 +01:00
|
|
|
version=3.4.0
|
2008-06-16 18:35:47 +02:00
|
|
|
release=1
|
2010-03-27 02:05:59 +01:00
|
|
|
source=(http://apache.osuosl.org/spamassassin/Mail-SpamAssassin-$version.tar.bz2 \
|
2006-11-20 07:26:53 +10:00
|
|
|
$name.rc)
|
2006-11-14 09:13:35 +10:00
|
|
|
|
|
|
|
build() {
|
2006-11-20 07:26:53 +10:00
|
|
|
cd Mail-SpamAssassin-$version
|
2010-02-17 01:14:06 +01:00
|
|
|
perl Makefile.PL PREFIX=/usr CONFDIR=/etc/$name DESTDIR=$PKG \
|
|
|
|
LOCALSTATEDIR=/usr/share/$name < /dev/null
|
2006-11-20 07:26:53 +10:00
|
|
|
make
|
|
|
|
make spamc/libspamc.so
|
2009-10-04 01:37:49 +02:00
|
|
|
make install
|
2006-11-14 09:13:35 +10:00
|
|
|
|
2006-11-20 07:26:53 +10:00
|
|
|
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
|
2006-11-14 09:13:35 +10:00
|
|
|
|
2006-11-20 07:26:53 +10:00
|
|
|
chmod 0644 $PKG/usr/share/$name/*
|
|
|
|
chmod -R u+w $PKG/*
|
2006-11-14 09:13:35 +10:00
|
|
|
|
2010-11-15 21:10:37 +01:00
|
|
|
rm -fr $PKG/usr/lib/perl5/{5.*,site_perl/5.*/linux}
|
2009-10-04 01:37:49 +02:00
|
|
|
|
2006-11-14 09:13:35 +10:00
|
|
|
}
|