diff options
author | Sam Lawrance <lawrance@FreeBSD.org> | 2005-11-13 16:28:47 +0000 |
---|---|---|
committer | Sam Lawrance <lawrance@FreeBSD.org> | 2005-11-13 16:28:47 +0000 |
commit | c22dc04501f43aa6e9df5b2df0ffb135a0d68585 (patch) | |
tree | 92fa27552f6bc32a0ec1cad97972c2fadba9f11e /security | |
parent | Add Armagetron Advanced, a multiplayer and networked Tron clone in 3D. (diff) |
Add amavisd-milter 1.0.2, milter for amavisd-new.
PR: ports/82427
Submitted by: Petr Rehor <prehor@gmail.com>
Notes
Notes:
svn path=/head/; revision=148121
Diffstat (limited to 'security')
-rw-r--r-- | security/Makefile | 1 | ||||
-rw-r--r-- | security/amavisd-milter/Makefile | 46 | ||||
-rw-r--r-- | security/amavisd-milter/distinfo | 2 | ||||
-rw-r--r-- | security/amavisd-milter/files/amavisd-milter.sh.in | 32 | ||||
-rw-r--r-- | security/amavisd-milter/files/pkg-message.in | 9 | ||||
-rw-r--r-- | security/amavisd-milter/pkg-descr | 7 | ||||
-rw-r--r-- | security/amavisd-milter/pkg-plist | 10 |
7 files changed, 107 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile index 7398a69ebdb2..61187b7f2e34 100644 --- a/security/Makefile +++ b/security/Makefile @@ -16,6 +16,7 @@ SUBDIR += amavis-perl SUBDIR += amavis-stats SUBDIR += amavisd + SUBDIR += amavisd-milter SUBDIR += amavisd-new SUBDIR += antivir-milter SUBDIR += apg diff --git a/security/amavisd-milter/Makefile b/security/amavisd-milter/Makefile new file mode 100644 index 000000000000..fe2a4001acf4 --- /dev/null +++ b/security/amavisd-milter/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: amavisd-milter +# Date created: 2005-06-08 +# Whom: Petr Rehor <prehor@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= amavisd-milter +PORTVERSION= 1.0.2 +CATEGORIES= security mail +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= prehor@gmail.com +COMMENT= Milter for amavisd-new + +RUN_DEPENDS= amavisd:${PORTSDIR}/security/amavisd-new + +# Shared defaults with security/amavisd-new +AMAVISUSER?= vscan +AMAVISDIR?= /var/amavis + +GNU_CONFIGURE= yes +USE_RCORDER= ${PORTNAME}.sh + +SUB_FILES= pkg-message +SUB_LIST= AMAVISUSER=${AMAVISUSER} \ + AMAVISDIR=${AMAVISDIR} \ + +DOCS= AUTHORS CHANGES INSTALL LICENSE README TODO + +.include <bsd.port.pre.mk> + +PLIST_SUB+= RC_DIR=${RC_DIR} \ + RC_SUFX=${RC_SUFX} \ + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/security/amavisd-milter/distinfo b/security/amavisd-milter/distinfo new file mode 100644 index 000000000000..2c00c563d2fd --- /dev/null +++ b/security/amavisd-milter/distinfo @@ -0,0 +1,2 @@ +MD5 (amavisd-milter-1.0.2.tar.gz) = b661a4b8cf2986e5c6aa2a86d61d04c3 +SIZE (amavisd-milter-1.0.2.tar.gz) = 126640 diff --git a/security/amavisd-milter/files/amavisd-milter.sh.in b/security/amavisd-milter/files/amavisd-milter.sh.in new file mode 100644 index 000000000000..cd0064d7db96 --- /dev/null +++ b/security/amavisd-milter/files/amavisd-milter.sh.in @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: amavisd-milter +# REQUIRE: amavisd +# BEFORE: mail +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable amavisd-milter: +# +#amavisd_milter_enable="YES" +# + +# Set defaults +amavisd_milter_enable="NO" +amavisd_milter_flags="" +amavisd_milter_pidfile="%%AMAVISGROUP%%/amavisd-milter.pid" +amavisd_milter_user="%%AMAVISUSER%%" + +. %%RC_SUBR%% + +name="amavisd_milter" +rcvar=`set_rcvar` + +command="%%PREFIX%%/sbin/amavisd-milter" +required_files="%%PREFIX%%/etc/amavisd.conf" + +load_rc_config $name +run_rc_command "$1" diff --git a/security/amavisd-milter/files/pkg-message.in b/security/amavisd-milter/files/pkg-message.in new file mode 100644 index 000000000000..278170a19fb5 --- /dev/null +++ b/security/amavisd-milter/files/pkg-message.in @@ -0,0 +1,9 @@ + +******************************************************************* + + Enable amavisd-milter in /etc/rc.conf with the following line: + + amavisd_milter_enable="YES" + +******************************************************************* + diff --git a/security/amavisd-milter/pkg-descr b/security/amavisd-milter/pkg-descr new file mode 100644 index 000000000000..9a4ad08856d9 --- /dev/null +++ b/security/amavisd-milter/pkg-descr @@ -0,0 +1,7 @@ +amavisd-milter is a sendmail milter for amavisd-new version 2.2.0 and above +which use the new AM.PDP protocol. Full amavisd-new functionality is +available, including adding spam and virus information header fields, +modifying Subject, adding address extensions and removing certain recipients +from delivery while delivering the same message to the rest. + +WWW: http://sourceforge.net/projects/amavisd-milter/ diff --git a/security/amavisd-milter/pkg-plist b/security/amavisd-milter/pkg-plist new file mode 100644 index 000000000000..9f2fceee97e1 --- /dev/null +++ b/security/amavisd-milter/pkg-plist @@ -0,0 +1,10 @@ +@comment $FreeBSD$ +@unexec %%RC_DIR%%/etc/rc.d/amavisd-milter%%RC_SUFX%% stop 2>&1 >/dev/null || true +sbin/amavisd-milter +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TODO +%%PORTDOCS%%@dirrm %%DOCSDIR%% |