blob: 67b774f70df020661b9b663308a2b59cbcba6d1f (
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.4.0
9 release=1
10 source=(http://apache.mirror.digionline.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/share/$name/*
27 chmod -R u+w $PKG/*
28
29 rm -fr $PKG/usr/lib/perl5/{5.*,site_perl/5.*/linux}
30
31 }
|