network/amavisd-new: Cleaned up build.

This commit is contained in:
Nishant Limbachia 2010-04-24 17:07:02 -04:00 committed by David Somero
parent db95271f0e
commit 436f8371e2
4 changed files with 66 additions and 32 deletions

View file

@ -1,19 +1,50 @@
If you plan to run amavisd-new, you don't need to run spamassassin separately (usually
via spamd). Amavisd-new calls spamassassin internally to scan messages. You can
also install clamav and enable virus scanning in the configuration file.
DEPENDENCIES:
FOR SPAMASSASSIN (please install in this order): perl-Test-Pod,
perl-Encode-Detect, perl-Image-Info, perl-TimeDate, perl-Test-Simple,
perl-Net-libIDN, Net-SSLeay, perl-Socket6, perl-IO-Socket-SSL,
perl-IO-Socket-INET6, perl-Crypt-OpenSSL-Bignum, perl-Crypt-OpenSSL-Random,
perl-Crypt-OpenSSL-RSA, perl-DB-File, perl-DBI, perl-Digest-SHA,
perl-Geography-Countries, perl-IP-Country, perl-IO, perl-URI, perl-digest-sha1,
perl-digest-hmac, perl-html-tagset, perl-html-parser, perl-libnet, re2c,
libwww-perl, perl-NetAddr-IP, perl-Net-Server, perl-Net-Ident, perl-MailTools,
perl-net-ip, perl-net-dns, perl-Net-DNS-Resolver-Programmable, perl-Mail-SPF,
perl-Mail-DKIM, spamassassin
FOR SPAMASSASSIN (please install in this order):
perl-Test-Pod
perl-Encode-Detect
perl-Image-Info
perl-TimeDate
perl-Net-libIDN
Net-SSLeay
perl-Socket6
perl-IO-Socket-SSL
perl-IO-Socket-INET6
perl-Crypt-OpenSSL-Bignum
perl-Crypt-OpenSSL-Random
perl-Crypt-OpenSSL-RSA
perl-Geography-Countries
perl-IP-Country
perl-digest-sha1
perl-digest-hmac
perl-html-tagset
perl-html-parser
re2c
libwww-perl
perl-NetAddr-IP
perl-Net-Server
perl-Net-Ident
perl-MailTools
perl-net-ip
perl-net-dns
perl-Net-DNS-Resolver-Programmable
perl-Mail-SPF
perl-Mail-DKIM
spamassassin
FOR AMAVISD-NEW (please install in this order): perl-Convert-TNEF,
perl-Convert-UUlib, perl-Convert-BinHex, perl-Archive-Zip, perl-IO-stringy,
perl-MIME-tools, perl-Unix-Syslog, perl-BerkeleyDB
FOR AMAVISD-NEW (please install in this order):
perl-Convert-TNEF
perl-Convert-UUlib
perl-Convert-BinHex
perl-Archive-Zip
perl-IO-stringy
perl-MIME-tools
perl-Unix-Syslog
perl-BerkeleyDB
SETUP:
1. Create amavis user/group, before running the script.
@ -36,3 +67,6 @@ SETUP:
6. Edit /etc/amavisd.conf. Verbose version of config file is included to
aid in configuration.
7. You can turn on debugging in log file with $sa_debug configuration
variable in /etc/amavisd.conf.

13
network/amavisd-new/amavisd-new.SlackBuild Normal file → Executable file
View file

@ -3,7 +3,7 @@
# 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
@ -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"
@ -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

View file

@ -1,11 +1,12 @@
#!/bin/sh
#
# Copyright (c) 2008-2010, Nishant Limbachia, Hoffman Estates, IL, USA [nishant@mnspace.net]
#
# Copyright (c) 2008-2010, Nishant Limbachia, Hoffman Estates, IL, USA
# /etc/rc.d/rc.amavisd
# start|stop|restart|status amavisd for Postfix
#
# start|stop|restart|status for amavisd-new
# For automatic startup at boot, call this script from rc.local
PIDFILE=/var/run/amavis/amavisd.pid
amavisd_start() {

View file

@ -6,7 +6,7 @@
# customary to leave one space after the ':'.
|-----handy-ruler-----------------------------------------------------|
amavisd-new: amavisd-new (interface between mailer and content checkers)
amavisd-new: amavisd-new (interface between postfix content filters)
amavisd-new:
amavisd-new: amavisd-new is a high-performance interface between mailer (MTA)
amavisd-new: and content checkers: virus scanners, and/or SpamAssassin.