2006-11-19 22:26:53 +01: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 00:13:35 +01:00
|
|
|
|
|
|
|
name=spamassassin
|
2010-02-17 01:14:06 +01:00
|
|
|
version=3.3.0
|
2008-06-16 18:35:47 +02:00
|
|
|
release=1
|
2009-10-01 20:22:06 +02:00
|
|
|
source=(http://apache.mirror.clusters.cc/$name/source/Mail-SpamAssassin-$version.tar.bz2 \
|
2006-11-19 22:26:53 +01:00
|
|
|
$name.rc)
|
2006-11-14 00:13:35 +01:00
|
|
|
|
|
|
|
build() {
|
2006-11-19 22:26:53 +01: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-19 22:26:53 +01:00
|
|
|
make
|
|
|
|
make spamc/libspamc.so
|
2009-10-04 01:37:49 +02:00
|
|
|
make install
|
2006-11-14 00:13:35 +01:00
|
|
|
|
2006-11-19 22:26:53 +01: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 00:13:35 +01:00
|
|
|
|
2006-11-19 22:26:53 +01:00
|
|
|
chmod 0644 $PKG/usr/lib/perl5/site_perl/5.*.*/Mail/SpamAssassin/*.pm
|
|
|
|
chmod 0644 $PKG/usr/share/$name/*
|
|
|
|
chmod -R u+w $PKG/*
|
2006-11-14 00:13:35 +01:00
|
|
|
|
2008-03-25 23:25:14 +01:00
|
|
|
rm -fr $PKG/usr/lib/perl5/{5.*.*,site_perl/5.*.*/linux}
|
2009-10-04 01:37:49 +02:00
|
|
|
|
2006-11-14 00:13:35 +01:00
|
|
|
}
|