summaryrefslogtreecommitdiff
path: root/network/amavisd-new/amavisd-new.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/amavisd-new/amavisd-new.SlackBuild')
-rwxr-xr-x[-rw-r--r--]network/amavisd-new/amavisd-new.SlackBuild19
1 files changed, 9 insertions, 10 deletions
diff --git a/network/amavisd-new/amavisd-new.SlackBuild b/network/amavisd-new/amavisd-new.SlackBuild
index a1d17f9725..130ac1c10d 100644..100755
--- a/network/amavisd-new/amavisd-new.SlackBuild
+++ b/network/amavisd-new/amavisd-new.SlackBuild
@@ -3,13 +3,13 @@
# 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-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
@@ -25,9 +25,9 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM="amavisd-new"
-VERSION=2.6.4
+VERSION="2.6.4"
ARCH=noarch
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
TMP=${TMP:-/tmp/SBo}
@@ -48,7 +48,7 @@ elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
fi
-# Create system user and group for policyd
+# 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"
echo " # groupadd -g 225 amavis"
@@ -71,7 +71,7 @@ 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
+DOCS="RELEASE_NOTES LICENSE AAAREADME.first INSTALL TODO
amavisd*.conf LDAP* test-messages README_FILES"
rm -fr $TMP/$PRGNAM-$VERSION $PKG
@@ -79,7 +79,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $TMP/$PRGNAM-$VERSION
-chown -R root:root .
+chown -R root.root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
@@ -103,11 +103,10 @@ install -m 0755 -D amavisd $PKG/usr/sbin/$PRGNAM
( cd $PKG/usr/sbin; ln -sf $PRGNAM amavisd )
install -m 0755 amavisd-agent amavisd-nanny amavisd-release \
amavisd-snmp-subagent p0f-analyzer.pl $PKG/usr/sbin
-install -D amavisd.conf $PKG/etc/amavisd.conf.new
+install -m 0640 -D amavisd.conf $PKG/etc/amavisd.conf.new
# change permissions
chown $USER:$GROUP $PKG/etc/amavisd.conf.new
-chmod 0640 $PKG/etc/amavisd.conf.new
chown -R $USER:$GROUP $PKG/$AMAVIS_HOME $PKG/var/run/amavis $PKG/$QUARANTINE_DIR
chmod -R 0770 $PKG/$AMAVIS_HOME $PKG/var/run/amavis $PKG/$QUARANTINE_DIR