Update mail/clamsmtp to 0.8.

Changes:

0.8
  - clamsmtpd now uses a configuration file
  - Transparent proxy support [Andreas Steinmetz]
  - Compile option -Wall only enabled on debug builds
  - Sample script changed due to configuartion file
  - Fixed other minor bugs
This commit is contained in:
xtraeme 2004-09-21 10:16:05 +00:00
parent 4c1d4ef016
commit 8d18b6b1d4
5 changed files with 22 additions and 11 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: CHANGES,v 1.7193 2004/09/21 08:42:03 wiz Exp $
$NetBSD: CHANGES,v 1.7194 2004/09/21 10:16:05 xtraeme Exp $
Changes to the packages collection and infrastructure in 2004:
@ -4300,3 +4300,4 @@ Changes to the packages collection and infrastructure in 2004:
Updated verilog-current to 20040915 [dmcmahill 2004-09-21]
Updated bidwatcher to 1.3.16 [tron 2004-09-21]
Updated libmikmod to 3.1.11.1 [wiz 2004-09-21]
Updated clamsmtp to 0.8 [xtraeme 2004-09-21]

View file

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.8 2004/08/30 06:52:30 xtraeme Exp $
# $NetBSD: Makefile,v 1.9 2004/09/21 10:16:05 xtraeme Exp $
DISTNAME= clamsmtp-0.7
DISTNAME= clamsmtp-0.8
CATEGORIES= mail
MASTER_SITES= http://memberwebs.com/nielsen/software/clamsmtp/
@ -21,5 +21,14 @@ FILES_SUBST+= CLAMAV_USER=${CLAMAV_USER}
# Doesn't work with GNU pth (missing required mutex features)
PTHREAD_OPTS+= require native
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES= ${EGDIR}/clamsmtpd.conf \
${PKG_SYSCONFDIR}/clamsmtpd.conf
INSTALLATION_DIRS= share/examples/${PKGBASE}
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/clamsmtpd.conf ${EGDIR}
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,3 +1,6 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/21 03:54:24 xtraeme Exp $
@comment $NetBSD: PLIST,v 1.2 2004/09/21 10:16:05 xtraeme Exp $
man/man8/clamsmtpd.8
man/man5/clamsmtpd.conf.5
sbin/clamsmtpd
share/examples/clamsmtp/clamsmtpd.conf
@dirrm share/examples/clamsmtp

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.5 2004/08/30 06:52:30 xtraeme Exp $
$NetBSD: distinfo,v 1.6 2004/09/21 10:16:05 xtraeme Exp $
SHA1 (clamsmtp-0.7.tar.gz) = a44bb901cd475234124060af91b7d6b6c64aebea
Size (clamsmtp-0.7.tar.gz) = 121807 bytes
SHA1 (clamsmtp-0.8.tar.gz) = 89a3c1728702236e6a8654530cbf6bd86a462354
Size (clamsmtp-0.8.tar.gz) = 128783 bytes

View file

@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: clamsmtpd.sh,v 1.3 2004/08/04 06:50:16 jlam Exp $
# $NetBSD: clamsmtpd.sh,v 1.4 2004/09/21 10:16:05 xtraeme Exp $
#
# PROVIDE: clamsmtpd
# REQUIRE: LOGIN clamd
@ -26,7 +26,6 @@ name="clamsmtpd"
rcvar=$name
command="@PREFIX@/sbin/${name}"
pidfile=/var/run/clamsmtpd.pid
: ${clamsmtpd_addr="localhost:10026"}
start_precmd="clamsmtpd_prestart"
start_cmd="clamsmtpd_start"
@ -39,7 +38,6 @@ if [ -f "${clamav_conffile}" ]; then
: ${clamsmtpd_user=`@AWK@ 'BEGIN {r = "@CLAMAV_USER@"};
/^#/ {next}; /^User[ ]/ {r = $2};
END {print r}' ${clamav_conffile}`}
: ${clamsmtpd_flags="-c ${socket}"}
else
: ${clamsmtpd_user="@CLAMAV_USER@"}
fi
@ -53,7 +51,7 @@ clamsmtpd_prestart()
clamsmtpd_start()
{
@ECHO@ "Starting ${name}."
doit="${command} ${clamsmtpd_flags} -p ${pidfile} ${clamsmtpd_addr}"
doit="${command} ${clamsmtpd_flags} -p ${pidfile}"
@SU@ -m ${clamsmtpd_user} -c "$doit"
}