diff options
Diffstat (limited to 'network/spamassassin/spamassassin.SlackBuild')
-rw-r--r-- | network/spamassassin/spamassassin.SlackBuild | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/network/spamassassin/spamassassin.SlackBuild b/network/spamassassin/spamassassin.SlackBuild index d4def1edd132..5f463bdfc299 100644 --- a/network/spamassassin/spamassassin.SlackBuild +++ b/network/spamassassin/spamassassin.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for spamassassin -# Copyright 2008 LukenShiro <lukenshiro@ngi.it> +# Copyright 2008-2010 LukenShiro <lukenshiro@ngi.it> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,8 +22,11 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Thanks to Nishant Limbachia for providing a SQL script to be used with +# spamassassin database, and most of spamassassin's dependencies. + PRGNAM=spamassassin -VERSION=${VERSION:-3.2.5} +VERSION=${VERSION:-3.3.0} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -35,7 +38,7 @@ OUTPUT=${OUTPUT:-/tmp} SRC_PRGNAM=Mail-SpamAssassin DOCFILES="Changes CREDITS INSTALL LICENSE NOTICE PACKAGING procmailrc.example \ -sample-nonspam.txt sample-spam.txt README TRADEMARK UPGRADE USAGE" +README sample-nonspam.txt sample-spam.txt TRADEMARK UPGRADE USAGE sql/" if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" @@ -62,8 +65,7 @@ find . \ echo "y" | perl Makefile.PL INSTALLDIRS=vendor -CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" \ -make +make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" make install DESTDIR=$PKG # Move man-pages to appropriate place @@ -80,7 +82,7 @@ find $PKG -depth -type d -empty -exec rm -rf {} \; find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - + # Compress man pages ( cd $PKG/usr/man || exit 1 find . -type f -exec gzip -9 {} \; @@ -94,6 +96,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ mv v310.pre v310.pre.new mv v312.pre v312.pre.new mv v320.pre v320.pre.new + mv v330.pre v330.pre.new ) # Copy init script to /etc/rc.d and modify it for name consistency @@ -106,8 +109,14 @@ cat > $PKG/etc/spamassassin.conf.new << EOF ENABLED=1 EOF +# Copy cron script +mkdir -p $PKG/etc/cron.weekly/ +install -m 0755 $CWD/sa-update.sh $PKG/etc/cron.weekly/ + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/spamassassin-db.sql > $PKG/usr/doc/$PRGNAM-$VERSION/spamassassin-db.sql +cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install @@ -115,4 +124,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |