summaryrefslogtreecommitdiff
path: root/network/amavisd-new/amavisd-new.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/amavisd-new/amavisd-new.SlackBuild')
-rw-r--r--network/amavisd-new/amavisd-new.SlackBuild28
1 files changed, 9 insertions, 19 deletions
diff --git a/network/amavisd-new/amavisd-new.SlackBuild b/network/amavisd-new/amavisd-new.SlackBuild
index aeae5bf1d4..2676af027f 100644
--- a/network/amavisd-new/amavisd-new.SlackBuild
+++ b/network/amavisd-new/amavisd-new.SlackBuild
@@ -3,7 +3,8 @@
# Slackware Package Build Script for amavisd-new
# Home Page http://www.ijs.si/software/amavisd/
-# Copyright (c) 2009-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net)
+# Copyright (c) 2009-2011, 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
@@ -25,9 +26,9 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM="amavisd-new"
-VERSION="2.6.4"
-ARCH=noarch
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-2.6.6}
+ARCH="noarch"
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -37,17 +38,6 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-fi
-
# Create system user and group for amavisd-new
if ! grep -q ^amavis: /etc/group ; then
echo " Please add a dedicated group to run amavisd-new"
@@ -71,8 +61,8 @@ GROUP=${GROUP:-amavis}
AMAVIS_HOME=${AMAVIS_HOME:-/var/lib/amavis}
QUARANTINE_DIR=${QUARANTINE_DIR:-$AMAVIS_HOME/quarantine}
-DOCS="RELEASE_NOTES LICENSE AAAREADME.first INSTALL TODO
- amavisd*.conf LDAP* test-messages README_FILES"
+DOCS="AAAREADME.first INSTALL TODO amavisd*.conf* LDAP*
+ RELEASE_NOTES LICENSE README_FILES test-messages"
rm -fr $TMP/$PRGNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -114,10 +104,10 @@ cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
### install rc script
-install -m 0755 -D $CWD/rc.amavisd $PKG/etc/rc.d/rc.amavisd.new
+install -m 0755 -D $CWD/rc.amavisd-new $PKG/etc/rc.d/rc.amavisd-new.new
### install logrotate script
-install -D -m 0644 $CWD/amavisd.logrotate $PKG/etc/logrotate.d/amavisd
+install -D -m 0644 $CWD/amavisd-new.logrotate $PKG/etc/logrotate.d/amavisd-new.new
### putting slack-desc and doinst.sh in place
mkdir -p $PKG/install