aboutsummaryrefslogtreecommitdiff
path: root/security/amavisd-milter
diff options
context:
space:
mode:
authorSam Lawrance <lawrance@FreeBSD.org>2005-11-13 16:28:47 +0000
committerSam Lawrance <lawrance@FreeBSD.org>2005-11-13 16:28:47 +0000
commitc22dc04501f43aa6e9df5b2df0ffb135a0d68585 (patch)
tree92fa27552f6bc32a0ec1cad97972c2fadba9f11e /security/amavisd-milter
parent7f4ee2cc596e2b230512748c1fce771c0b4d85dc (diff)
downloadports-c22dc04501f43aa6e9df5b2df0ffb135a0d68585.tar.gz
ports-c22dc04501f43aa6e9df5b2df0ffb135a0d68585.zip
Notes
Diffstat (limited to 'security/amavisd-milter')
-rw-r--r--security/amavisd-milter/Makefile46
-rw-r--r--security/amavisd-milter/distinfo2
-rw-r--r--security/amavisd-milter/files/amavisd-milter.sh.in32
-rw-r--r--security/amavisd-milter/files/pkg-message.in9
-rw-r--r--security/amavisd-milter/pkg-descr7
-rw-r--r--security/amavisd-milter/pkg-plist10
6 files changed, 106 insertions, 0 deletions
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%%