1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00

Add amavisd-milter 1.0.2, milter for amavisd-new.

PR:		ports/82427
Submitted by:	Petr Rehor <prehor@gmail.com>
This commit is contained in:
Sam Lawrance 2005-11-13 16:28:47 +00:00
parent 7f4ee2cc59
commit c22dc04501
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148121
7 changed files with 107 additions and 0 deletions

View File

@ -16,6 +16,7 @@
SUBDIR += amavis-perl
SUBDIR += amavis-stats
SUBDIR += amavisd
SUBDIR += amavisd-milter
SUBDIR += amavisd-new
SUBDIR += antivir-milter
SUBDIR += apg

View File

@ -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>

View File

@ -0,0 +1,2 @@
MD5 (amavisd-milter-1.0.2.tar.gz) = b661a4b8cf2986e5c6aa2a86d61d04c3
SIZE (amavisd-milter-1.0.2.tar.gz) = 126640

View File

@ -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"

View File

@ -0,0 +1,9 @@
*******************************************************************
Enable amavisd-milter in /etc/rc.conf with the following line:
amavisd_milter_enable="YES"
*******************************************************************

View File

@ -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/

View File

@ -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%%