diff options
Diffstat (limited to 'system/clamsmtp/clamsmtp.SlackBuild')
-rw-r--r-- | system/clamsmtp/clamsmtp.SlackBuild | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/system/clamsmtp/clamsmtp.SlackBuild b/system/clamsmtp/clamsmtp.SlackBuild index 86083aff0b..97bf9657ec 100644 --- a/system/clamsmtp/clamsmtp.SlackBuild +++ b/system/clamsmtp/clamsmtp.SlackBuild @@ -1,14 +1,15 @@ #!/bin/sh # Slackware Package Build Script for clamsmtp +# Home Page http://memberwebs.com/stef/software/clamsmtp/ -# Copyright (c) 2008-2009, Nishant Limbachia (nishant@mnspace.net) +# Copyright (c) 2008-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net) # All rights reserved. # -# Redistribution and use of this script, with or without modification, is +# Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # -# 1. Redistributions of script must retain the above copyright notice, +# 1. Redistributions of script must retain the above copyright notice, # this list of conditions and the following disclaimer. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS @@ -26,7 +27,7 @@ PRGNAM=clamsmtp VERSION=1.10 ARCH=${ARCH:-i486} -BUILD=${BUILD:-3} +BUILD=${BUILD:-4} TAG=${TAG:-_SBo} TMP=${TMP:-/tmp/SBo} @@ -50,7 +51,7 @@ set -e rm -fr $TMP/$PRGNAM-$VERSION $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* cd $TMP/$PRGNAM-$VERSION chown -R root.root . find . \ @@ -63,12 +64,12 @@ find . \ CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ --exec-prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ - --datarootdir=/usr \ + --infodir=/usr/info \ --build=${ARCH}-slackware-linux make @@ -77,20 +78,16 @@ make install DESTDIR=$PKG # Install init script and config file mkdir -p $PKG/etc/rc.d cat $CWD/rc.clamsmtpd > $PKG/etc/rc.d/rc.clamsmtpd.new -chmod 0755 $PKG/etc/rc.d/rc.clamsmtpd.new cat doc/clamsmtpd.conf > $PKG/etc/clamsmtpd.conf.new -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ - xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ - xargs strip --strip-unneeded 2> /dev/null -) +### strip binaries +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true ( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done -) +) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README \ |