blob: 0ecc68ecef2a0413ef3c2526d95804b56ef700c0 (
plain)
1 # Description: SpamAssassin(tm) is a mail filter to identify spam.
2 # URL: http://www.spamassassin.org
3 # Maintainer: Thomas Penteker, tek at serverop dot de
4 # Packager: Victor victord at users dot berlios dot de
5 # Depends on: p5-digest-sha1, p5-net-dns, p5-lwp, p5-netaddr-ip, gnupg
6
7 name=spamassassin
8 version=3.3.1
9 release=1
10 source=(http://apache.prosite.de/spamassassin/source/Mail-SpamAssassin-$version.tar.bz2 \
11 $name.rc)
12
13 build() {
14 cd Mail-SpamAssassin-$version
15 perl Makefile.PL PREFIX=/usr CONFDIR=/etc/$name DESTDIR=$PKG \
16 LOCALSTATEDIR=/usr/share/$name < /dev/null
17 make
18 make spamc/libspamc.so
19 make install
20
21 mkdir -p $PKG/{etc/rc.d,usr/include,usr/lib}
22 install -m0755 ../$name.rc $PKG/etc/rc.d/$name
23 install -m0644 spamc/libspamc.so $PKG/usr/lib
24 install -m0644 spamc/libspamc.h $PKG/usr/include/libspamc.h
25
26 chmod 0644 $PKG/usr/lib/perl5/site_perl/5.*.*/Mail/SpamAssassin/*.pm
27 chmod 0644 $PKG/usr/share/$name/*
28 chmod -R u+w $PKG/*
29
30 rm -fr $PKG/usr/lib/perl5/{5.*.*,site_perl/5.*.*/linux}
31
32 }
|