system/clamsmtp: Updated for version 1.10
This commit is contained in:
parent
8b9fb0d47d
commit
5a39e732df
|
@ -3,4 +3,4 @@ ClamAV anti-virus software. It accepts SMTP connections and forwards the
|
||||||
SMTP commands and responses to another SMTP server. The 'DATA' email body
|
SMTP commands and responses to another SMTP server. The 'DATA' email body
|
||||||
is intercepted and scanned before forwarding.
|
is intercepted and scanned before forwarding.
|
||||||
|
|
||||||
ClamAV (available at SlackBuilds.org) is required for this package.
|
This requires clamav.
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Slackware Package Build Script for clamsmtp
|
# 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-2009, Nishant Limbachia (nishant@mnspace.net)
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
|
@ -37,10 +36,13 @@ CWD=$(pwd)
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "x86_64" ]; then
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
SLKCFLAGS="-O2 -fPIC"
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
@ -61,13 +63,12 @@ find . \
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
--exec-prefix=/usr \
|
--exec-prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--datarootdir=/usr \
|
--datarootdir=/usr \
|
||||||
--program-prefix="" \
|
|
||||||
--program-suffix="" \
|
|
||||||
--build=${ARCH}-slackware-linux
|
--build=${ARCH}-slackware-linux
|
||||||
|
|
||||||
make
|
make
|
||||||
|
@ -76,11 +77,14 @@ make install DESTDIR=$PKG
|
||||||
# Install init script and config file
|
# Install init script and config file
|
||||||
mkdir -p $PKG/etc/rc.d
|
mkdir -p $PKG/etc/rc.d
|
||||||
cat $CWD/rc.clamsmtpd > $PKG/etc/rc.d/rc.clamsmtpd.new
|
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
|
cat doc/clamsmtpd.conf > $PKG/etc/clamsmtpd.conf.new
|
||||||
|
|
||||||
( cd $PKG
|
( 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 "executable" | grep ELF | cut -f 1 -d : | \
|
||||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
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
|
||||||
)
|
)
|
||||||
|
|
||||||
( cd $PKG/usr/man
|
( cd $PKG/usr/man
|
||||||
|
@ -97,4 +101,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
cd $PKG
|
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}
|
||||||
|
|
|
@ -3,6 +3,8 @@ VERSION="1.10"
|
||||||
HOMEPAGE="http://memberwebs.com/stef/software/clamsmtp/"
|
HOMEPAGE="http://memberwebs.com/stef/software/clamsmtp/"
|
||||||
DOWNLOAD="http://memberwebs.com/stef/software/clamsmtp/clamsmtp-1.10.tar.gz"
|
DOWNLOAD="http://memberwebs.com/stef/software/clamsmtp/clamsmtp-1.10.tar.gz"
|
||||||
MD5SUM="b068ba6e444859782bbdd88f290c1abf"
|
MD5SUM="b068ba6e444859782bbdd88f290c1abf"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Nishant Limbachia"
|
MAINTAINER="Nishant Limbachia"
|
||||||
EMAIL="nishant@mnspace.net"
|
EMAIL="nishant@mnspace.net"
|
||||||
APPROVED="rworkman"
|
APPROVED="rworkman"
|
||||||
|
|
|
@ -19,4 +19,5 @@ if [ -e etc/rc.d/rc.clamsmtpd ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
config etc/rc.d/rc.clamsmtpd.new
|
config etc/rc.d/rc.clamsmtpd.new
|
||||||
config etc/clamsmtpd.conf.new
|
config etc/clamsmtpd.conf.new
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
|
||||||
# /etc/rc.d/rc.clamsmtpd
|
# /etc/rc.d/rc.clamsmtpd
|
||||||
|
|
||||||
|
# Start/stop/restart clamsmtp mail filter daemon
|
||||||
|
|
||||||
|
# To make ntpd start automatically at boot, make this file executable:
|
||||||
|
# chmod 755 /etc/rc.d/rc.clamsmtpd
|
||||||
|
# and be sure it's called from somewhere (e.g. rc.local)
|
||||||
#
|
#
|
||||||
# start/stop/restart clamsmtp mail filter daemon
|
# To edit the startup options refer man 8 clamsmtpd
|
||||||
#
|
|
||||||
# To make ntpd start automatically at boot, make this
|
|
||||||
# file executable: chmod 755 /etc/rc.d/rc.clamsmtpd
|
|
||||||
# to edit the startup options refer man 8 clamsmtpd
|
|
||||||
#
|
|
||||||
|
|
||||||
CONFIG="/etc/clamsmtpd.conf"
|
CONFIG="/etc/clamsmtpd.conf"
|
||||||
PIDFILE="/var/run/clamav/clamsmtpd.pid"
|
PIDFILE="/var/run/clamav/clamsmtpd.pid"
|
||||||
|
|
Loading…
Reference in New Issue