blob: a332bf8b73003bba15b9e8593844f9886be8e261 (
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
6
7 name=spamassassin
8 version=3.2.5
9 release=1
10 source=(http://apache.mirror.clusters.cc/$name/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 < /dev/null
16 sed -i -e 's/^INSTALLDATA = /INSTALLDATA = $(DESTDIR)\//g' Makefile
17 sed -i -e 's/^INSTALLSITEDATA = /INSTALLSITEDATA = $(DESTDIR)\//g' Makefile
18 sed -i -e 's/^INSTALLVENDORDATA = /INSTALLVENDORDATA = $(DESTDIR)\//g' Makefile
19 sed -i -e 's/^INSTALLCONF = /INSTALLCONF = $(DESTDIR)/g' Makefile
20 sed -i -e 's/^INSTALLSITECONF = /INSTALLSITECONF = $(DESTDIR)/g' Makefile
21 sed -i -e 's/^INSTALLVENDORCONF = /INSTALLVENDORCONF = $(DESTDIR)/g' Makefile
22
23 make
24 make spamc/libspamc.so
25 make install
26
27 mkdir -p $PKG/{etc/rc.d,usr/include,usr/lib}
28 install -m0755 ../$name.rc $PKG/etc/rc.d/$name
29 install -m0644 spamc/libspamc.so $PKG/usr/lib
30 install -m0644 spamc/libspamc.h $PKG/usr/include/libspamc.h
31
32 chmod 0644 $PKG/usr/lib/perl5/site_perl/5.*.*/Mail/SpamAssassin/*.pm
33 chmod 0644 $PKG/usr/share/$name/*
34 chmod -R u+w $PKG/*
35
36 rm -fr $PKG/usr/lib/perl5/{5.*.*,site_perl/5.*.*/linux}
37
38 }
|