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
|
2006-11-20 07:26:53 +10:00
|
|
|
# Packager: Victor <victord@users.berlios.de>
|
2008-03-25 23:25:14 +01:00
|
|
|
# Depends on: p5-digest-sha1, p5-html-parser, p5-net-dns
|
2006-11-14 09:13:35 +10:00
|
|
|
|
|
|
|
name=spamassassin
|
2008-03-25 23:25:14 +01:00
|
|
|
version=3.2.4
|
2006-12-08 22:39:44 +10:00
|
|
|
release=2
|
2006-11-14 09:13:35 +10:00
|
|
|
source=(http://www.axint.net/apache/$name/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
|
|
|
|
perl Makefile.PL PREFIX=/usr CONFDIR=/etc/$name DESTDIR=$PKG < /dev/null
|
|
|
|
make
|
|
|
|
make spamc/libspamc.so
|
2006-11-14 09:13:35 +10:00
|
|
|
|
2006-11-20 07:26:53 +10:00
|
|
|
make install \
|
|
|
|
INSTALLMAN1DIR=/usr/man/man1 \
|
|
|
|
INSTALLMAN3DIR=/usr/man/man3 \
|
|
|
|
INSTALLSITEMAN1DIR=/usr/man/man1 \
|
|
|
|
INSTALLSITEMAN3DIR=/usr/man/man3 \
|
|
|
|
INSTALLVENDORMAN1DIR=/usr/man/man1 \
|
|
|
|
INSTALLVENDORMAN3DIR=/usr/man/man3
|
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/lib/perl5/site_perl/5.*.*/Mail/SpamAssassin/*.pm
|
|
|
|
chmod 0644 $PKG/usr/share/$name/*
|
|
|
|
chmod -R u+w $PKG/*
|
2006-11-14 09:13:35 +10:00
|
|
|
|
2008-03-25 23:25:14 +01:00
|
|
|
rm -fr $PKG/usr/lib/perl5/{5.*.*,site_perl/5.*.*/linux}
|
|
|
|
#rm -rf $PKG/usr/lib/perl5/5.8.8/linux/
|
|
|
|
#rm -rf $PKG/usr/lib/perl5/site_perl/5.8.8/linux
|
2006-11-20 07:26:53 +10:00
|
|
|
chown -R root:root $PKG
|
2006-11-14 09:13:35 +10:00
|
|
|
}
|