diff options
author | edwin <edwin@FreeBSD.org> | 2003-04-07 01:18:06 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-04-07 01:18:06 +0000 |
commit | 0469ebac14c1037e0918b9fce6e4b1122b31be2c (patch) | |
tree | 7763178e0dca2d8ddd37faf11a06b0759f172bb1 /security/amavisd-new | |
parent | 26c9f937dfdab938c3e7624a88c82bdcdc9a7f30 (diff) | |
download | FreeBSD-ports-0469ebac14c1037e0918b9fce6e4b1122b31be2c.zip FreeBSD-ports-0469ebac14c1037e0918b9fce6e4b1122b31be2c.tar.gz |
MAINTAINER UPDATE: security/amavisd-new
Fixes for amavisd-new port:
- add missing dependency on devel/p5-IO
- install amavisdconf utility
- bump portrevision
PR: ports/48984
Submitted by: Blaz Zupan <blaz@si.FreeBSD.org>
Diffstat (limited to 'security/amavisd-new')
-rw-r--r-- | security/amavisd-new/Makefile | 21 | ||||
-rw-r--r-- | security/amavisd-new/files/amavisd.sh.tmpl | 3 | ||||
-rw-r--r-- | security/amavisd-new/files/patch-amavisd | 11 | ||||
-rw-r--r-- | security/amavisd-new/files/patch-amavisdconf | 20 | ||||
-rw-r--r-- | security/amavisd-new/pkg-plist | 1 |
5 files changed, 46 insertions, 10 deletions
diff --git a/security/amavisd-new/Makefile b/security/amavisd-new/Makefile index bde8de7..664369a 100644 --- a/security/amavisd-new/Makefile +++ b/security/amavisd-new/Makefile @@ -8,7 +8,7 @@ PORTNAME= amavisd-new PORTVERSION= 20021227.p2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= http://www.ijs.si/software/amavisd/ DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/-p/} @@ -16,7 +16,8 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/-p/} MAINTAINER= blaz@si.FreeBSD.org COMMENT= Performance-enhanced daemonized version of amavis-perl -RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \ +RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/IO/Socket/UNIX.pm:${PORTSDIR}/devel/p5-IO \ + ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \ ${SITE_PERL}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \ ${SITE_PERL}/MIME/Words.pm:${PORTSDIR}/mail/p5-MIME-Tools \ ${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF \ @@ -74,11 +75,14 @@ pre-build: -e 's,%%PREFIX%%,${PREFIX},g' \ < ${FILESDIR}/$${file}.tmpl > ${WRKDIR}/$${file}; \ done - ${SED} -e 's,%%AMAVISUSER%%,${AMAVISUSER},g' \ - -e 's,%%AMAVISGROUP%%,${AMAVISGROUP},g' \ - -e 's,%%AMAVISDIR%%,${AMAVISDIR},g' \ - -e 's,%%AMAVISQUARANTINE%%,${AMAVISQUARANTINE},g' \ - < ${WRKSRC}/amavisd.conf > ${WRKDIR}/amavisd.conf + for file in amavisd.conf amavisd amavisdconf; do \ + ${SED} -e 's,%%AMAVISUSER%%,${AMAVISUSER},g' \ + -e 's,%%AMAVISGROUP%%,${AMAVISGROUP},g' \ + -e 's,%%AMAVISDIR%%,${AMAVISDIR},g' \ + -e 's,%%AMAVISQUARANTINE%%,${AMAVISQUARANTINE},g' \ + -e 's,%%PREFIX%%,${PREFIX},g' \ + < ${WRKSRC}/$${file} > ${WRKDIR}/$${file}; \ + done pre-install: @${SH} ${PKGINSTALL} ${DISTNAME} PRE-INSTALL @@ -88,7 +92,8 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/helper-progs/amavis ${PREFIX}/sbin ${INSTALL_PROGRAM} ${WRKSRC}/helper-progs/amavis-milter ${PREFIX}/sbin .endif - ${INSTALL_SCRIPT} ${WRKSRC}/amavisd ${PREFIX}/sbin + ${INSTALL_SCRIPT} ${WRKDIR}/amavisd ${PREFIX}/sbin + ${INSTALL_SCRIPT} ${WRKDIR}/amavisdconf ${PREFIX}/sbin ${INSTALL_SCRIPT} ${WRKDIR}/amavisd.conf ${PREFIX}/etc/amavisd.conf-dist ${INSTALL_SCRIPT} ${WRKDIR}/amavisd.sh ${PREFIX}/etc/rc.d .if !defined(NOPORTDOCS) diff --git a/security/amavisd-new/files/amavisd.sh.tmpl b/security/amavisd-new/files/amavisd.sh.tmpl index b69db78..51becce 100644 --- a/security/amavisd-new/files/amavisd.sh.tmpl +++ b/security/amavisd-new/files/amavisd.sh.tmpl @@ -7,7 +7,6 @@ fi DIR=%%AMAVISDIR%% PIDFILE=$DIR/amavisd.pid -CONFIGFILE=${PREFIX}/etc/amavisd.conf SOCKFILES=$DIR/amavis*.sock MILTERFLAG=$DIR/use.milter @@ -21,7 +20,7 @@ start) export LANG="C" export LC_ALL="C" export LC_TIME="C" - su %%AMAVISUSER%% -c "${PREFIX}/sbin/amavisd -c ${CONFIGFILE} > /dev/null 2>&1" && echo -n ' amavisd' + su %%AMAVISUSER%% -c "${PREFIX}/sbin/amavisd > /dev/null 2>&1" && echo -n ' amavisd' fi ;; stop) diff --git a/security/amavisd-new/files/patch-amavisd b/security/amavisd-new/files/patch-amavisd new file mode 100644 index 0000000..7cd539f --- /dev/null +++ b/security/amavisd-new/files/patch-amavisd @@ -0,0 +1,11 @@ +--- amavisd.orig Fri Jan 10 22:03:39 2003 ++++ amavisd Thu Mar 6 21:18:38 2003 +@@ -5070,7 +5070,7 @@ + my($amavisd_path) = find_program_path($0, [split(/:/, $path, -1)]); + $amavisd_path = $1 if $amavisd_path =~ m{^([A-Za-z0-9/._=+-]+)$}; # untaint + +-my($config_file) = '/etc/amavisd.conf'; # default location of config file ++my($config_file) = '%%PREFIX%%/etc/amavisd.conf'; # default location of config file + if (@ARGV >= 2 && $ARGV[0] eq '-c') { # override by command line option -c + shift @ARGV; $config_file = shift @ARGV; + $config_file = $1 if $config_file =~ m{^([A-Za-z0-9/._=+-]+)$}; # untaint diff --git a/security/amavisd-new/files/patch-amavisdconf b/security/amavisd-new/files/patch-amavisdconf new file mode 100644 index 0000000..2f1bd89 --- /dev/null +++ b/security/amavisd-new/files/patch-amavisdconf @@ -0,0 +1,20 @@ +--- amavisdconf.orig Fri Dec 27 14:56:01 2002 ++++ amavisdconf Thu Mar 6 21:18:16 2003 +@@ -9,7 +9,7 @@ + # (none) show the value as will be used by amavisd; + # -d show default value as in the absence of the config file; + # -n only show variable if its value is different from the default. +-# -c conf-file ... use the specified file instead of /etc/amavisd.conf ++# -c conf-file ... use the specified file instead of %%PREFIX%%/etc/amavisd.conf + # + # If a variable is specified, show only that variable, otherwise show + # all configurable variables. (Note: the leading $, @ or % must be included +@@ -179,7 +179,7 @@ + } + + my($what,$onevar); +- my($config_file) = '/etc/amavisd.conf'; ++ my($config_file) = '%%PREFIX%%/etc/amavisd.conf'; + while (@ARGV) { + if (@ARGV >= 1 && $ARGV[0] =~ /^-([nd])$/) { + $what = $1; shift @ARGV; diff --git a/security/amavisd-new/pkg-plist b/security/amavisd-new/pkg-plist index b30e9e4..82e8585 100644 --- a/security/amavisd-new/pkg-plist +++ b/security/amavisd-new/pkg-plist @@ -19,3 +19,4 @@ etc/rc.d/amavisd.sh %%AMAVIS_NOMILTER%%sbin/amavis %%AMAVIS_NOMILTER%%sbin/amavis-milter sbin/amavisd +sbin/amavisdconf |