head	1.93;
access;
symbols
	RELEASE_8_3_0:1.86
	RELEASE_9_0_0:1.86
	RELEASE_7_4_0:1.84
	RELEASE_8_2_0:1.84
	RELEASE_6_EOL:1.81
	RELEASE_8_1_0:1.78
	RELEASE_7_3_0:1.77
	RELEASE_8_0_0:1.74
	RELEASE_7_2_0:1.69
	RELEASE_7_1_0:1.65
	RELEASE_6_4_0:1.65
	RELEASE_5_EOL:1.62
	RELEASE_7_0_0:1.58
	RELEASE_6_3_0:1.58
	PRE_XORG_7:1.53
	RELEASE_4_EOL:1.48
	RELEASE_6_2_0:1.45
	RELEASE_6_1_0:1.33
	RELEASE_5_5_0:1.33
	RELEASE_6_0_0:1.29
	RELEASE_5_4_0:1.24
	RELEASE_4_11_0:1.23
	RELEASE_5_3_0:1.20
	RELEASE_4_10_0:1.16
	RELEASE_5_2_1:1.12
	RELEASE_5_2_0:1.12
	RELEASE_4_9_0:1.11
	RELEASE_5_1_0:1.9
	RELEASE_4_8_0:1.4
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1;
locks; strict;
comment	@# @;


1.93
date	2012.12.16.06.16.58;	author svnexp;	state Exp;
branches;
next	1.92;

1.92
date	2012.11.17.06.01.00;	author svnexp;	state Exp;
branches;
next	1.91;

1.91
date	2012.10.28.13.57.12;	author crees;	state Exp;
branches;
next	1.90;

1.90
date	2012.10.13.18.04.57;	author gabor;	state Exp;
branches;
next	1.89;

1.89
date	2012.08.05.23.19.36;	author dougb;	state Exp;
branches;
next	1.88;

1.88
date	2012.07.03.16.28.43;	author gabor;	state Exp;
branches;
next	1.87;

1.87
date	2012.06.30.12.36.09;	author az;	state Exp;
branches;
next	1.86;

1.86
date	2011.08.08.11.19.48;	author gabor;	state Exp;
branches;
next	1.85;

1.85
date	2011.06.11.19.28.36;	author gabor;	state Exp;
branches;
next	1.84;

1.84
date	2011.01.25.23.24.03;	author gabor;	state Exp;
branches;
next	1.83;

1.83
date	2011.01.17.14.33.14;	author gabor;	state Exp;
branches;
next	1.82;

1.82
date	2010.12.16.02.34.00;	author glarkin;	state Exp;
branches;
next	1.81;

1.81
date	2010.09.21.07.56.39;	author mm;	state Exp;
branches;
next	1.80;

1.80
date	2010.08.09.08.54.35;	author nemoliu;	state Exp;
branches;
next	1.79;

1.79
date	2010.07.11.17.42.36;	author gabor;	state Exp;
branches;
next	1.78;

1.78
date	2010.06.08.07.10.55;	author gabor;	state Exp;
branches;
next	1.77;

1.77
date	2010.01.26.15.01.07;	author kuriyama;	state Exp;
branches;
next	1.76;

1.76
date	2009.12.21.23.08.19;	author gabor;	state Exp;
branches;
next	1.75;

1.75
date	2009.12.21.22.44.13;	author gabor;	state Exp;
branches;
next	1.74;

1.74
date	2009.09.17.21.31.11;	author gabor;	state Exp;
branches;
next	1.73;

1.73
date	2009.09.12.18.51.59;	author gabor;	state Exp;
branches;
next	1.72;

1.72
date	2009.06.28.08.53.46;	author gabor;	state Exp;
branches;
next	1.71;

1.71
date	2009.06.01.21.23.44;	author gabor;	state Exp;
branches;
next	1.70;

1.70
date	2009.05.06.08.54.36;	author gabor;	state Exp;
branches;
next	1.69;

1.69
date	2009.04.05.17.49.18;	author gabor;	state Exp;
branches;
next	1.68;

1.68
date	2009.02.24.15.36.43;	author gabor;	state Exp;
branches;
next	1.67;

1.67
date	2009.02.23.11.53.08;	author gabor;	state Exp;
branches;
next	1.66;

1.66
date	2008.12.26.02.29.00;	author gabor;	state Exp;
branches;
next	1.65;

1.65
date	2008.09.22.09.30.48;	author gabor;	state Exp;
branches;
next	1.64;

1.64
date	2008.07.12.16.34.08;	author gabor;	state Exp;
branches;
next	1.63;

1.63
date	2008.06.06.14.00.46;	author edwin;	state Exp;
branches;
next	1.62;

1.62
date	2008.05.13.16.00.31;	author gabor;	state Exp;
branches;
next	1.61;

1.61
date	2008.05.13.13.44.24;	author gabor;	state Exp;
branches;
next	1.60;

1.60
date	2008.03.19.15.20.26;	author gabor;	state Exp;
branches;
next	1.59;

1.59
date	2007.12.16.11.24.30;	author gabor;	state Exp;
branches;
next	1.58;

1.58
date	2007.09.08.01.03.50;	author linimon;	state Exp;
branches;
next	1.57;

1.57
date	2007.07.20.21.11.33;	author gabor;	state Exp;
branches;
next	1.56;

1.56
date	2007.06.29.10.33.30;	author gabor;	state Exp;
branches;
next	1.55;

1.55
date	2007.06.09.11.13.44;	author gabor;	state Exp;
branches;
next	1.54;

1.54
date	2007.05.21.22.52.40;	author gabor;	state Exp;
branches;
next	1.53;

1.53
date	2007.05.01.18.31.56;	author gabor;	state Exp;
branches;
next	1.52;

1.52
date	2007.03.30.21.52.09;	author gabor;	state Exp;
branches;
next	1.51;

1.51
date	2007.02.17.20.53.27;	author gabor;	state Exp;
branches;
next	1.50;

1.50
date	2007.02.03.23.45.28;	author gabor;	state Exp;
branches;
next	1.49;

1.49
date	2007.02.01.16.46.24;	author gabor;	state Exp;
branches;
next	1.48;

1.48
date	2006.12.08.13.46.28;	author gabor;	state Exp;
branches;
next	1.47;

1.47
date	2006.12.03.12.45.53;	author demon;	state Exp;
branches;
next	1.46;

1.46
date	2006.11.27.12.55.21;	author erwin;	state Exp;
branches;
next	1.45;

1.45
date	2006.10.02.09.26.16;	author erwin;	state Exp;
branches;
next	1.44;

1.44
date	2006.10.01.17.48.40;	author erwin;	state Exp;
branches;
next	1.43;

1.43
date	2006.09.25.16.22.33;	author erwin;	state Exp;
branches;
next	1.42;

1.42
date	2006.09.17.16.10.41;	author erwin;	state Exp;
branches;
next	1.41;

1.41
date	2006.09.10.14.05.50;	author erwin;	state Exp;
branches;
next	1.40;

1.40
date	2006.08.01.07.48.11;	author erwin;	state Exp;
branches;
next	1.39;

1.39
date	2006.07.31.07.41.03;	author erwin;	state Exp;
branches;
next	1.38;

1.38
date	2006.07.04.19.25.10;	author erwin;	state Exp;
branches;
next	1.37;

1.37
date	2006.05.26.15.41.47;	author garga;	state Exp;
branches;
next	1.36;

1.36
date	2006.05.23.04.15.04;	author itetcu;	state Exp;
branches;
next	1.35;

1.35
date	2006.05.12.02.30.43;	author clsung;	state Exp;
branches;
next	1.34;

1.34
date	2006.04.05.19.05.48;	author garga;	state Exp;
branches;
next	1.33;

1.33
date	2005.12.10.23.41.23;	author lawrance;	state Exp;
branches;
next	1.32;

1.32
date	2005.12.09.00.10.26;	author lawrance;	state Exp;
branches;
next	1.31;

1.31
date	2005.10.17.13.20.03;	author lawrance;	state Exp;
branches;
next	1.30;

1.30
date	2005.08.29.04.41.23;	author lesi;	state Exp;
branches;
next	1.29;

1.29
date	2005.07.17.21.42.11;	author leeym;	state Exp;
branches;
next	1.28;

1.28
date	2005.07.06.08.47.09;	author flz;	state Exp;
branches;
next	1.27;

1.27
date	2005.06.05.15.49.16;	author flz;	state Exp;
branches;
next	1.26;

1.26
date	2005.05.19.15.20.09;	author pav;	state Exp;
branches;
next	1.25;

1.25
date	2005.04.25.14.51.44;	author leeym;	state Exp;
branches;
next	1.24;

1.24
date	2005.02.13.17.35.35;	author leeym;	state Exp;
branches;
next	1.23;

1.23
date	2004.12.28.03.19.41;	author pav;	state Exp;
branches;
next	1.22;

1.22
date	2004.11.05.20.35.47;	author pav;	state Exp;
branches;
next	1.21;

1.21
date	2004.10.14.07.02.00;	author vanilla;	state Exp;
branches;
next	1.20;

1.20
date	2004.08.26.18.52.06;	author sem;	state Exp;
branches;
next	1.19;

1.19
date	2004.08.16.17.19.16;	author vanilla;	state Exp;
branches;
next	1.18;

1.18
date	2004.08.11.22.45.57;	author sem;	state Exp;
branches;
next	1.17;

1.17
date	2004.07.18.10.05.50;	author vanilla;	state Exp;
branches;
next	1.16;

1.16
date	2004.04.04.06.23.11;	author leeym;	state Exp;
branches;
next	1.15;

1.15
date	2004.03.28.13.16.01;	author pav;	state Exp;
branches;
next	1.14;

1.14
date	2004.03.16.06.14.04;	author daichi;	state Exp;
branches;
next	1.13;

1.13
date	2004.01.08.01.09.00;	author edwin;	state Exp;
branches;
next	1.12;

1.12
date	2003.11.20.11.00.18;	author jeh;	state Exp;
branches;
next	1.11;

1.11
date	2003.08.27.08.30.05;	author leeym;	state Exp;
branches;
next	1.10;

1.10
date	2003.07.01.09.41.37;	author netchild;	state Exp;
branches;
next	1.9;

1.9
date	2003.05.19.12.56.33;	author arved;	state Exp;
branches;
next	1.8;

1.8
date	2003.05.16.02.54.14;	author petef;	state Exp;
branches;
next	1.7;

1.7
date	2003.04.20.10.02.43;	author leeym;	state Exp;
branches;
next	1.6;

1.6
date	2003.04.07.01.18.06;	author edwin;	state Exp;
branches;
next	1.5;

1.5
date	2003.03.27.03.49.51;	author petef;	state Exp;
branches;
next	1.4;

1.4
date	2003.02.21.13.26.40;	author knu;	state Exp;
branches;
next	1.3;

1.3
date	2003.01.17.03.47.38;	author ijliao;	state Exp;
branches;
next	1.2;

1.2
date	2003.01.04.07.20.29;	author demon;	state Exp;
branches;
next	1.1;

1.1
date	2002.06.13.14.46.23;	author tobez;	state Exp;
branches;
next	;


desc
@@


1.93
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308985
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308985 | az | 2012-12-16 06:12:28 +0000 (Sun, 16 Dec 2012) | 5 lines
## SVN ##
## SVN ## - Set default perl version for ports which currently using
## SVN ##   (5.x+ and x < 12) scheme.
## SVN ##
## SVN ## Approved by: bapt@@ (portmgr@@)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# $FreeBSD: head/security/amavisd-new/Makefile 308985 2012-12-16 06:12:28Z az $

PORTNAME=	amavisd-new
PORTVERSION=	2.8.0
PORTREVISION=	2
PORTEPOCH=	1
CATEGORIES=	security
MASTER_SITES=	http://www.ijs.si/software/amavisd/ \
		http://mirrors.catpipe.net/amavisd-new/ \
		http://mirror.mainloop.se/amavisd/

MAINTAINER=	gabor@@FreeBSD.org
COMMENT=	A mail scanner interface between mailer and content checkers

LICENSE=	GPLv2

RUN_DEPENDS=	p5-Unix-Syslog>=0:${PORTSDIR}/sysutils/p5-Unix-Syslog \
		p5-MIME-Tools>=0:${PORTSDIR}/mail/p5-MIME-Tools \
		p5-Convert-TNEF>=0:${PORTSDIR}/converters/p5-Convert-TNEF \
		p5-Convert-UUlib>=1.08,1:${PORTSDIR}/converters/p5-Convert-UUlib \
		p5-Archive-Zip>=0:${PORTSDIR}/archivers/p5-Archive-Zip \
		p5-Net-Server>=0.93:${PORTSDIR}/net/p5-Net-Server \
		p5-Mail-DKIM>=0.33:${PORTSDIR}/mail/p5-Mail-DKIM

USE_PERL5_RUN=	yes

NO_BUILD=	yes

DOCS=		AAAREADME.first AMAVIS-MIB.txt INSTALL LDAP.schema LICENSE \
		RELEASE_NOTES README_FILES/README.* README_FILES/screen.css \
		README_FILES/amavisd-new-docs.html

AMAVISUSER?=	vscan
AMAVISGROUP?=	vscan
AMAVISDIR?=	/var/amavis
AMAVISQUARANTINE?=	/var/virusmails
DAEMON?=	/usr/sbin/daemon -p

OPTIONS=	IPV6		"Support IPv6"					on \
		BDB		"Use BerkeleyDB for nanny/cache/snmp"		on \
		SNMP		"Install amavisd snmp subagent"			off \
		SQLITE		"Use SQLite for lookups"			off \
		MYSQL		"Use MySQL for lookups/logging/quarantine"	off \
		PGSQL		"Use PgSQL for lookups/logging/quarantine"	off \
		LDAP		"Use LDAP for lookups"				off \
		SASL		"Use SASL authentication"			off \
		SPAMASSASSIN	"Use mail/p5-Mail-SpamAssassin"			on \
		P0F		"Passive operating system fingerprinting"	off \
		ALTERMIME	"Use AlterMime for defanging/disclaimers"	off \
		FILE		"Use newer file(1) utility from ports"		on \
		RAR		"RAR support with archivers/rar"		off \
		UNRAR		"RAR support with archivers/unrar"		on \
		ARJ		"ARJ support with archivers/arj"		on \
		UNARJ		"ARJ support with archivers/unarj"		off \
		LHA		"LHA support with archivers/lha"		on \
		ARC		"ARC support with archivers/arc"		on \
		NOMARCH		"ARC support with archivers/nomarch"		off \
		CAB		"CAB support with archivers/cabextract"		on \
		RPM		"RPM support with archivers/rpm2cpio"		on \
		ZOO		"ZOO support with archivers/zoo"		on \
		UNZOO		"ZOO support with archivers/unzoo"		off \
		LZOP		"LZOP support with archivers/lzop"		on \
		FREEZE		"FREEZE support with archivers/freeze"		on \
		P7ZIP		"P7ZIP support with archivers/p7zip"		on \
		MSWORD		"Ms Word support with textproc/ripole"		on \
		TNEF		"Add external tnef decoder converters/tnef"	off

SUB_FILES=	pkg-install pkg-deinstall pkg-message

SUB_LIST+=	AMAVISUSER=${AMAVISUSER} \
		AMAVISGROUP=${AMAVISGROUP} \
		AMAVISDIR=${AMAVISDIR} \
		AMAVISQUARANTINE=${AMAVISQUARANTINE} \
		DAEMON="${DAEMON}" \
		PERL=${PERL}

PLIST_SUB+=	AMAVIS_NOP0F=${AMAVIS_NOP0F}

.include <bsd.port.options.mk>

USE_RC_SUBR+=	amavisd

.if defined(WITH_IPV6)
RUN_DEPENDS+=	p5-IO-Socket-INET6>=0:${PORTSDIR}/net/p5-IO-Socket-INET6
.endif

.if defined(WITH_SNMP) && defined(WITH_BDB)
USE_RC_SUBR+=	amavisd-snmp
RUN_DEPENDS+=	p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP
.endif

.if defined(WITH_BDB)
RUN_DEPENDS+=	p5-BerkeleyDB>=0:${PORTSDIR}/databases/p5-BerkeleyDB
.endif

.if defined(WITH_SQLITE)
RUN_DEPENDS+=	p5-DBD-SQLite>=0:${PORTSDIR}/databases/p5-DBD-SQLite
.endif

.if defined(WITH_MYSQL)
RUN_DEPENDS+=	p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
.endif

.if defined(WITH_PGSQL)
RUN_DEPENDS+=	p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
.endif

.if defined(WITH_LDAP)
RUN_DEPENDS+=	p5-perl-ldap>=0:${PORTSDIR}/net/p5-perl-ldap
.endif

.if defined(WITH_SASL)
RUN_DEPENDS+=	p5-Authen-SASL>=0:${PORTSDIR}/security/p5-Authen-SASL
.endif

.if defined(WITH_SPAMASSASSIN)
RUN_DEPENDS+=	p5-Mail-SpamAssassin>=0:${PORTSDIR}/mail/p5-Mail-SpamAssassin
.endif

.if defined(WITH_P0F)
RUN_DEPENDS+=	${LOCALBASE}/bin/p0f:${PORTSDIR}/net-mgmt/p0f
USE_RC_SUBR+=	amavis-p0fanalyzer
.else
AMAVIS_NOP0F=	"@@comment "
.endif

.if defined(WITH_ALTERMIME)
RUN_DEPENDS+=	${LOCALBASE}/bin/altermime:${PORTSDIR}/mail/altermime
.endif

.if defined(WITH_FILE)
# security fix, file > 4.21 needed
RUN_DEPENDS+=	file>=4.21:${PORTSDIR}/sysutils/file
.endif

# archviers/rar is a 32-bit binary port, we don't want the install to fail
# at that port, therefore we will block instantly here if the platform does
# not suit rar.

.if defined(WITH_RAR)
# support for archivers/rar is broken on ia64
.if ${ARCH} == "i386" || ${ARCH} == "amd64"
RUN_DEPENDS+=	${LOCALBASE}/bin/rar:${PORTSDIR}/archivers/rar
.else
IGNORE=	archviers/rar is a 32-bit binary port and is not compatible with ${ARCH}
.endif
.endif

.if defined(WITH_UNRAR)
RUN_DEPENDS+=	${LOCALBASE}/bin/unrar:${PORTSDIR}/archivers/unrar
.endif

.if defined(WITH_ARJ)
RUN_DEPENDS+=	${LOCALBASE}/bin/arj:${PORTSDIR}/archivers/arj
.endif

.if defined(WITH_UNARJ)
RUN_DEPENDS+=	${LOCALBASE}/bin/unarj:${PORTSDIR}/archivers/unarj
.endif

.if defined(WITH_LHA)
RUN_DEPENDS+=	${LOCALBASE}/bin/lha:${PORTSDIR}/archivers/lha
.endif

.if defined(WITH_ARC)
RUN_DEPENDS+=	${LOCALBASE}/bin/arc:${PORTSDIR}/archivers/arc
.endif

.if defined(WITH_NOMARCH)
RUN_DEPENDS+=	${LOCALBASE}/bin/nomarch:${PORTSDIR}/archivers/nomarch
.endif

.if defined(WITH_CAB)
RUN_DEPENDS+=	${LOCALBASE}/bin/cabextract:${PORTSDIR}/archivers/cabextract
.endif

.if defined(WITH_RPM)
RUN_DEPENDS+=	${LOCALBASE}/bin/rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio
.endif

.if defined(WITH_ZOO)
# DOS condition in 2.10.1_2
RUN_DEPENDS+=	zoo>=2.10.1_2:${PORTSDIR}/archivers/zoo
.endif

.if defined(WITH_UNZOO)
RUN_DEPENDS+=	unzoo>=4.4_1:${PORTSDIR}/archivers/unzoo
.endif

.if defined(WITH_LZOP)
RUN_DEPENDS+=	${LOCALBASE}/bin/lzop:${PORTSDIR}/archivers/lzop
.endif

.if defined(WITH_FREEZE)
RUN_DEPENDS+=	${LOCALBASE}/bin/unfreeze:${PORTSDIR}/archivers/freeze
.endif

.if defined(WITH_P7ZIP)
RUN_DEPENDS+=	${LOCALBASE}/bin/7zr:${PORTSDIR}/archivers/p7zip
.endif

.if defined(WITH_MSWORD)
RUN_DEPENDS+=	${LOCALBASE}/bin/ripole:${PORTSDIR}/textproc/ripole
.endif

.if defined(WITH_TNEF)
RUN_DEPENDS+=	${LOCALBASE}/bin/tnef:${PORTSDIR}/converters/tnef
.endif

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500903
RUN_DEPENDS+=	p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
.endif

post-patch:
	@@${REINPLACE_CMD} -e "s|$daemon_user  = \'vscan\';|$daemon_user  = \'${AMAVISUSER}\';|" \
			-e "s|$daemon_group = \'vscan\';|$daemon_group = \'${AMAVISGROUP}\';|" \
			-e "s|/var/amavis|${AMAVISDIR}|" \
			-e "s|/var/lib/amavis|${AMAVISDIR}|" \
			-e "s|/var/virusmails|${AMAVISQUARANTINE}|" \
			-e 's|$$localhost_name = .localhost.;|$$localhost_name = $$myhostname;|' \
			-e 's|/var/run/clamav/clamd|/var/run/clamav/clamd.sock|g' \
			${WRKSRC}/amavisd.conf
	@@${REINPLACE_CMD} "s|/var/amavis/db|${AMAVISDIR}/db|" ${WRKSRC}/amavisd-agent
	@@${REINPLACE_CMD} "s|/var/amavis/db|${AMAVISDIR}/db|" ${WRKSRC}/amavisd-nanny
	@@${REINPLACE_CMD} -e "s|/var/amavis/db|${AMAVISDIR}/db|" \
			-e "s|/usr/bin/perl|${PERL}|" ${WRKSRC}/amavisd-snmp-subagent
	@@${REINPLACE_CMD} "s|/var/amavis/amavisd.sock|${AMAVISDIR}/amavisd.sock|" \
			${WRKSRC}/amavisd-release
	@@${REINPLACE_CMD} -e "s|/etc/amavisd.conf|${PREFIX}/etc/amavisd.conf|" \
				-e "s|/usr/bin/perl|${PERL}|" \
				-e "s|/var/amavis|${AMAVISDIR}|g" \
				-e 's|$$localhost_name = .localhost.;|$$localhost_name = $$myhostname;|' \
			${WRKSRC}/amavisd

pre-install:
	@@${SH} ${PKGINSTALL} ${DISTNAME} PRE-INSTALL

do-install:
.if defined(WITH_P0F)
	${INSTALL_SCRIPT} ${WRKSRC}/p0f-analyzer.pl ${PREFIX}/sbin
.endif
.for i in amavisd amavisd-agent amavisd-nanny amavisd-release amavisd-snmp-subagent
	${INSTALL_SCRIPT} ${WRKSRC}/${i} ${PREFIX}/sbin
.endfor
	${INSTALL_SCRIPT} ${WRKSRC}/amavisd.conf ${PREFIX}/etc/amavisd.conf-dist
	${INSTALL_SCRIPT} ${WRKSRC}/amavisd.conf-default ${PREFIX}/etc/amavisd.conf-default
	${INSTALL_SCRIPT} ${WRKSRC}/amavisd-custom.conf ${PREFIX}/etc/amavisd-custom.conf-dist
.if !exists(${PREFIX}/etc/amavisd.conf)
#
#  This can contain sensitive information, e.g. SQL passwords, so it should be handled
#  with care.
#
	${INSTALL} -o root -g ${AMAVISGROUP} -m 640 ${WRKSRC}/amavisd.conf ${PREFIX}/etc
.endif
.if !exists(${PREFIX}/etc/amavisd-custom.conf)
	${INSTALL} -o root -g ${AMAVISGROUP} -m 640 ${WRKSRC}/amavisd-custom.conf ${PREFIX}/etc
.endif
.if !defined(NOPORTDOCS)
	@@${MKDIR} ${DOCSDIR}/images
.for i in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
	@@${CP} -pr ${WRKSRC}/README_FILES/images/ ${DOCSDIR}/images
.endif

post-install:
	${LN} -s ${PREFIX}/sbin/amavisd-release ${PREFIX}/sbin/amavisd-requeue
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.92
log
@Switch exporter over
@
text
@d1 1
a1 1
# $FreeBSD: head/security/amavisd-new/Makefile 306550 2012-10-28 13:57:12Z crees $
d25 1
a25 1
USE_PERL5_RUN=	5.8.2+
@


1.91
log
@SVN rev 306550 on 2012-10-28 13:57:12Z by crees

RC fixes;

- Use REQUIRE in lieu of BEFORE where possible
- Include KEYWORD: shutdown for persistent services
- load_rc_config should precede any default settings
- Style fixes, indenting functions, remove single-line functions

Approved by:	gabor (maintainer)
Feature safe:	yes
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.90
log
@SVN rev 305843 on 2012-10-13 18:04:57Z by gabor

- Let amavisd_ram respect tmpfs [1]
- Fix amavis-p0fanalyzer startup script [2]
- Bump PORTREVISION

PR:		ports/169660 [1],
		ports/172182 [2]
Submitted by:	Helmut Schneider <jumper99@@gmx.de> [1],
		Rouslan Iskhakov <rouslan@@rshell.net> [2]
Feature safe:	yes
@
text
@d5 1
a5 1
PORTREVISION=	1
@


1.89
log
@SVN rev 302141 on 2012-08-05 23:19:36Z by dougb

Move the rc.d scripts of the form *.sh.in to *.in

Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
@
text
@a0 4
# New ports collection makefile for:	amavisd-new
# Date created:				05 Jun 2002
# Whom:					Christopher K Davis (ckd-freebsd@@ckdhr.com)
#
a1 2
#
# Based on amavisd ports makefile.
d5 1
@


1.88
log
@- Update to 2.8.0
- Fix typo in LICENSE
- Remove old upgrade message
@
text
@d86 1
a86 1
USE_RC_SUBR+=	amavisd.sh
d93 1
a93 1
USE_RC_SUBR+=	amavisd-snmp.sh
d127 1
a127 1
USE_RC_SUBR+=	amavis-p0fanalyzer.sh
@


1.87
log
@- Remove SITE_PERL from *_DEPENDS

Approved by: portmgr@@ (bapt@@)
@
text
@d10 1
a10 1
PORTVERSION=	2.7.0
d18 1
a18 1
COMMENT=	Performance-enhanced daemonized version of amavis-perl
d20 1
a20 1
LICENCE=	GPLv2
a220 9
pre-fetch:
	@@${ECHO} ""
	@@${ECHO} " **** UPGRADE WARNING:  SQL SCHEMA CHANGED ****"
	@@${ECHO} " If you are upgrading from version prior to 2.6.6"
	@@${ECHO} " Hit ^c now and read /usr/ports/UPDATING section or"
	@@${ECHO} " /usr/local/share/doc/amavisd-new/RELEASE_NOTES"
	@@read -p "Hit ^c now to stop, any key to continue: " -t 5 a || true
	@@${ECHO} ""

@


1.86
log
@- Update to 2.7.0
- Beautify OPTIONS
- Remove unnecessary patch

PR:		ports/158613
Submitted by:	sahil
@
text
@d22 3
a24 3
RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \
		${SITE_PERL}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools \
		${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF \
d26 1
a26 1
		${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
d89 1
a89 1
RUN_DEPENDS+=	${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-Socket-INET6
d94 1
a94 1
RUN_DEPENDS+=	${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}/net-mgmt/p5-Net-SNMP
d98 1
a98 1
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB
d102 1
a102 1
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/SQLite.pm:${PORTSDIR}/databases/p5-DBD-SQLite
d106 1
a106 1
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
d110 1
a110 1
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
d114 1
a114 1
RUN_DEPENDS+=	${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap
d118 1
a118 1
RUN_DEPENDS+=	${SITE_PERL}/Authen/SASL.pm:${PORTSDIR}/security/p5-Authen-SASL
d122 1
a122 1
RUN_DEPENDS+=	${SITE_PERL}/Mail/SpamAssassin.pm:${PORTSDIR}/mail/p5-Mail-SpamAssassin
@


1.85
log
@- Update to 2.6.6

PR:		ports/157352
Submitted by:	Niclas Zeising <niclas.zeising@@gmail.com>
@
text
@d10 1
a10 1
PORTVERSION=	2.6.6
a30 4
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-user=${AMAVISUSER} --with-runtime-dir=${AMAVISDIR}
CONFIGURE_WRKSRC=	${WRKSRC}/helper-progs
BUILD_WRKSRC=	${WRKSRC}/helper-progs
d32 3
a34 1
DOCS=	AAAREADME.first AMAVIS-MIB.txt INSTALL LDAP.schema LICENSE \
d44 10
a53 11
OPTIONS=	IPV6	"Support IPv6"				on \
		BDB	"Use BerkeleyDB for nanny/cache/snmp"	on \
		SNMP	"Install amavisd snmp subagent"	off \
		SQLITE	"Use SQLite for lookups"	off \
		MYSQL	"Use MySQL for lookups/logging/quarantine"		off \
		PGSQL	"Use PgSQL for lookups/logging/quarantine"		off \
		LDAP	"Use LDAP for lookups"		off \
		SASL	"Use SASL authentication"	off \
		MILTER	"Sendmail milter support" on \
		SPAMASSASSIN	"Use mail/p5-Mail-SpamAssassin"	on \
		P0F	"Passive operating system fingerprinting"	off \
d55 17
a71 17
		FILE	"Use newer file(1) utility from ports"	on \
		RAR	"RAR support with archivers/rar"	off \
		UNRAR	"RAR support with archivers/unrar"	on \
		ARJ	"ARJ support with archivers/arj"	on \
		UNARJ	"ARJ support with archivers/unarj"	off \
		LHA	"LHA support with archivers/lha"	on \
		ARC	"ARC support with archivers/arc"	on \
		NOMARCH	"ARC support with archivers/nomarch"	off \
		CAB	"CAB support with archivers/cabextract"	on \
		RPM	"RPM support with archivers/rpm2cpio"	on \
		ZOO	"ZOO support with archivers/zoo"	on \
		UNZOO	"ZOO support with archivers/unzoo"	off \
		LZOP	"LZOP support with archivers/lzop"	on \
		FREEZE	"FREEZE support with archivers/freeze"	on \
		P7ZIP	"P7ZIP support with archivers/p7zip"	on \
		MSWORD	"Ms Word support with textproc/ripole"	on \
		TNEF	"Add external tnef decoder converters/tnef"	off
d82 1
a82 3
PLIST_SUB+=	AMAVIS_NOAMAVIS=${AMAVIS_NOAMAVIS} \
		AMAVIS_NOMILTER=${AMAVIS_NOMILTER} \
		AMAVIS_NOP0F=${AMAVIS_NOP0F}
a96 10
.if !defined(WITH_MILTER) || (!exists(/usr/lib/libmilter.a) && !exists(${PREFIX}/lib/libmilter.a))
AMAVIS_NOAMAVIS="@@comment "
.endif

.if defined(WITH_MILTER) && !defined(AMAVIS_NOAMAVIS)
USE_RC_SUBR+=	amavis-milter.sh
.else
AMAVIS_NOMILTER="@@comment "
.endif

d224 1
a224 1
	@@${ECHO} " If you are upgrading from version prior to 2.6.0"
a230 4
.for f in amavisd.conf amavisd.conf-sample amavisd amavisd-agent amavisd-nanny amavisd-release
	@@${REINPLACE_CMD} "s@@'zoo'\]@@['zoo','unzoo'] ]@@" ${WRKSRC}/${f}
.endfor
.for i in amavisd.conf amavisd.conf-sample
a234 1
			-e 's|$$log_level = 2;|$$log_level = 0;|' \
d238 1
a238 2
			${WRKSRC}/${i}
.endfor
a244 2
	@@${REINPLACE_CMD} "s|#define HAVE_MKTEMP|#undef HAVE_MKTEMP|" \
			${WRKSRC}/helper-progs/config.h.in
a250 6
.if defined(AMAVIS_NOAMAVIS)
do-configure:
do-build:
	@@${ECHO} libmilter not available, not building amavis-milter and amavis
.endif

a254 6
.if !defined(AMAVIS_NOAMAVIS)
	${INSTALL_PROGRAM} ${WRKSRC}/helper-progs/amavis ${PREFIX}/sbin
.endif
.if !defined(AMAVIS_NOMILTER)
	${INSTALL_PROGRAM} ${WRKSRC}/helper-progs/amavis-milter ${PREFIX}/sbin
.endif
a261 1
	${INSTALL_SCRIPT} ${WRKSRC}/amavisd.conf-sample ${PREFIX}/etc/amavisd.conf-sample
@


1.84
log
@- Turn IPV6 support on by default
- Bump PORTREVISION

Requested by:	dougb, delphij
Feature safe:	yes
@
text
@d10 1
a10 2
PORTVERSION=	2.6.4
PORTREVISION=	11
d20 2
@


1.83
log
@- Make IPv6 support optional because it causes a delay on systems that
  do not support it

PR:		ports/153431
Submitted by:	Michael Scheidell <michael.scheidell@@secnap.com>
Feature safe:	yes
@
text
@d11 1
a11 1
PORTREVISION=	10
d45 1
a45 1
OPTIONS=	IPV6	"Support IPv6"				off \
@


1.82
log
@- Chase security/libksba shlib version bump

Requested by:	kwm
Pointyhat to:	glarkin
@
text
@d11 1
a11 1
PORTREVISION=	9
a25 1
		${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-Socket-INET6 \
d45 2
a46 1
OPTIONS=	BDB	"Use BerkeleyDB for nanny/cache/snmp"	on \
d92 4
d98 1
a98 1
RUN_DEPENDS+=   ${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}/net-mgmt/p5-Net-SNMP
@


1.81
log
@Change dependency on old p5-Compress-Zlib, p5-IO-Compress-Base,
p5-IO-Compress-Zlib and p5-IO-Compress-Bzip2 modules to p5-IO-Compress.
Explicitly depend on p5-IO-Compress only if PERL_LEVEL < 500903
Bump PORTREVISION
@
text
@d11 1
a11 1
PORTREVISION=	8
@


1.80
log
@- Rename net/p5-IO-INET6 to net/p5-IO-Socket-INET6.

PR:	ports/148309
Submitted by:	Sunpoet Po-Chuan Hsieh <sunpoet@@sunpoet.net>
@
text
@d11 1
a11 1
PORTREVISION=	7
a24 1
		p5-Compress-Zlib>=2.004:${PORTSDIR}/archivers/p5-Compress-Zlib \
d227 4
@


1.79
log
@- Remove BDB version requirement. This doesn't fix the problem because
  amavisd-new uses BDB through databases/p5-BerkeleyDB and if that port
  is already present on the system when we install amavisd-new, this knob
  won't guarantee that we get the proper version.  The underlying port
  should be changed to use a more modern version of BDB, so instead of
  adding quirks here, a PR has been submitted for that port
  (ports/148494). [1] [2]
- Proper handling of the WITH_RAR case [3]
- Remove -M option from mdmfs when using ramdisk.  This reportedly
  stop crashes. [4]
- Bump PORTREVISION

PR:		ports/147794 [1], ports/147856 [2]
Submitted by:	delphij [1], Joe Horn <joehorn@@gmail.com> [2],
		Scot Hetzel <swhetzel@@gmail.com> [3],
		Andy Dills <andy@@xecu.net> (via private mail) [4]
@
text
@d27 1
a27 1
		${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-INET6 \
@


1.78
log
@- Use BerkeleyDB 4.2 if compiled with WITH_BDB. Using 4.1, which was
  indirectly pulled in by dependencies, has a serious performance
  problem.
- Bum PORTREVISION

Requested by:	Andy Dills <andy@@xecu.net> (via private mail)
@
text
@d11 1
a11 1
PORTREVISION=	6
a108 1
USE_BDB=	42
d157 2
a158 1
IA32_BINARY_PORT=	yes
d160 3
@


1.77
log
@- Remove unneeded dependencies which is in perl-5.8.9 dist
  (part 8).

Approved by:	portmgr (itetcu)
@
text
@d11 1
a11 1
PORTREVISION=	5
d109 1
@


1.76
log
@- Statically hardcode the hostname at build-time isn't correct because
  packages will hold the hostname of the building cluster in this way.
  Just set $localhost_name to $myhostname instead. The latter is
  tunable in the configuration file.
- Bump PORTREVISION

Pointed out by:	delphij
@
text
@d11 1
a11 1
PORTREVISION=	4
a22 1
		${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
a26 2
		${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
		${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
@


1.75
log
@- Match default Clamav socket to the Clamav port's default [1]
- Change $localhost_name to real hostname instead of 'localhost' [2]
- Bump PORTREVISION

PR:		ports/141206 [1]
Submitted by:	Petr Rehor <prehor@@gmail.com> [1]
Requested by:	delphij [2]
@
text
@d11 1
a11 1
PORTREVISION=	3
a48 1
HOSTNAME!=	/bin/hostname
d247 1
a247 1
			-e "s|\$localhost_name = \'localhost\';|\$localhost_name = \'${HOSTNAME}\';|g" \
d262 1
a262 1
				-e "s|\$localhost_name = \'localhost\';|\$localhost_name = \'${HOSTNAME}\';|g" \
@


1.74
log
@- Don't overwrite edited configuration file

PR:		ports/138801
Submitted by:	"Herbert J. Skuhra" <h.skuhra@@gmail.com>
Feature safe:	yes
@
text
@d11 1
a11 1
PORTREVISION=	2
d49 1
d248 2
d263 1
@


1.73
log
@- Add support for SNMP subagent [1]
- Fix bug sending 2 reject notifications [2]

PR:		ports/136151 [1], ports/137333 [2]
Submitted by:	Olli Hauer <ohauer@@gmx.de>
More info:	http://www.mail-archive.com/amavis-user@@lists.sourceforge.net/msg14060.html [2]
@
text
@d225 2
d310 1
a310 1
.include <bsd.port.mk>
@


1.72
log
@- Update to 2.6.4

PR:		ports/136078
Submitted by:	Sylvio Cesar <scjamorim@@bsd.com.br>
@
text
@d11 1
a11 1
PORTREVISION=	1
d40 2
a41 2
DOCS=	AAAREADME.first INSTALL LDAP.schema LICENSE RELEASE_NOTES \
		README_FILES/README.* README_FILES/screen.css \
d51 1
d85 2
a86 1
		DAEMON="${DAEMON}"
d92 1
a92 1
.include <bsd.port.pre.mk>
d96 5
d249 2
d257 1
d279 1
a279 1
.for i in amavisd amavisd-agent amavisd-nanny amavisd-release
d308 1
a308 1
.include <bsd.port.post.mk>
@


1.71
log
@- Fix the 'Can't locate object method "new" via package "Amavis::SpamControl"
  at /usr/local/sbin/amavisd line 13878.' bug
- Bump PORTREVISION

PR:		ports/134882 [1]
Submitted by:	Elliot Dierksen <ebd@@oau.org> [1],
		Kirill Angelov <kirill@@dubna.ru>
Obtained from:	Debian Project
@
text
@d10 1
a10 1
PORTVERSION=	2.6.3
d42 1
a42 2
		README_FILES/amavisd-new-docs.html \
		README_FILES/TODO-SNMP-AGENT		
@


1.70
log
@- Update to 2.6.3

PR:		ports/134163
Submitted by:	Michael Scheidell <scheidell@@secnap.net>
@
text
@d11 1
@


1.69
log
@- Do not hardcode pidfile in the rc.d script [1]
- Depend on p5-Mail-DKIM >= 0.33 [2]
- Patch clamscan timeout bug [2]
- REQUIRE: mysql postgresql in rc.d script [2]
- Bump PORTREVISION
- pkg-message nits

PR:		ports/132575 [1], ports/133073 [2]
Submitted by:	Helmut Schneider <jumper99@@gmx.de> [1],
		Michael Scheidell <scheidell@@secnap.net> [2]
@
text
@d10 1
a10 1
PORTVERSION=	2.6.2
a11 1
PORTREVISION=	3
@


1.68
log
@- Fix config file path
- Fix reload target in the rc script
- Bump PORTREVISION

Reported by:	Florian Smeets <flo@@kasimir.com>,
		Arjo Hooimeijer <arjo.hooimeijer@@xs4all.nl>,
		Michael Scheidell <scheidell@@secnap.net>
@
text
@d12 1
a12 1
PORTREVISION=	2
d32 1
a32 1
		p5-Mail-DKIM>=0.31:${PORTSDIR}/mail/p5-Mail-DKIM
@


1.67
log
@- Fix SQL logging problem [1]
- Remove old dependency [1]
- Add a warning when memdisk is used, because it is unsafe [2]
- Fix on Perl 5.8.9 [3]
- Bump PORTREVISION

PR:		ports/130835 [1], ports/131633 [2]
Submitted by:	Michael Scheidell <scheidell@@secnap.net> [1][2]
@
text
@d12 1
a12 1
PORTREVISION=	1
@


1.66
log
@- Update to 2.6.2 [1]
- Inplace edit Perl path to be ${PERL} [2]

PR:		ports/129670 [1]
Submitted by:	Michael Scheidell <scheidell@@secnap.net> [1]
Requested by:	Andre Luiz dos Santos <andre@@netvision.com.br> [2]
@
text
@d12 1
a29 1
		${SITE_PERL}/IO/Wrap.pm:${PORTSDIR}/devel/p5-IO-stringy \
@


1.65
log
@- Fix modes of the temp directory [1]
- Fix a bug in SMTP handling [2]
- Bump PORTREVISION

PR:		ports/127216 [1]
Submitted by:	Juan J Lopez <jlopez@@evsis.com.ar> [1],
		Matt Emmerton <matt@@gsicomp.on.ca> [2] (via private mail)
Approved by:	portmgr (erwin)
@
text
@d10 1
a10 2
PORTVERSION=	2.6.1
PORTREVISION=	1
d247 2
a248 1
	@@${REINPLACE_CMD} "s|/etc/amavisd.conf|${PREFIX}/etc/amavisd.conf|" \
@


1.64
log
@- Update to 2.6.1

PR:		ports/125368
Submitted by:	Helmut Schneider <jumper99@@gmx.de>
@
text
@d11 1
@


1.63
log
@Bump portrevision due to upgrade of devel/gettext.

The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@@
Approved by:    portmgr (pav)
@
text
@d10 1
a10 2
PORTVERSION=	2.6.0
PORTREVISION=	1
@


1.62
log
@- Fix dependency and fix INDEX

Broken by:	gabor
Reported by:	erwin
@
text
@d11 1
@


1.61
log
@- Update to 2.6.0 [1]
- Add Ms Word support via textproc/ripole

PR:		ports/123227 [1]
Submitted by:	Michael Scheidell <scheidell@@secnap.net> [1]
@
text
@d212 1
a212 1
RUN_DEPENDS+=	${LOCALBASE}/bin/ripole:${PORTSDIR}/archivers/ripole
@


1.60
log
@- Update to 2.5.4

PR:		ports/121666
Submitted by:	garga
@
text
@d10 1
a10 1
PORTVERSION=	2.5.4
d31 2
a32 1
		p5-Net-Server>=0.93:${PORTSDIR}/net/p5-Net-Server
d43 1
a43 1
		README_FILES/TODO-SNMP-AGENT
d76 1
d211 4
d219 9
@


1.59
log
@- Update to 2.5.3

This is a maintainance release.
Release notes: http://www.ijs.si/software/amavisd/release-notes.txt

PR:		ports/118631 [1],
		ports/118732 [2]
Submitted by:	Olli Hauer <ohauer@@gmx.de> [1],
		Michael Scheidell <scheidell@@secnap.net> [2]
@
text
@d10 1
a10 1
PORTVERSION=	2.5.3
@


1.58
log
@Welcome bsd.perl.mk.  Add support for constructs such as USE_PERL5=5.8.0+.
Drop support for antique perl.

Work done by:	gabor
Sponsored by:	Google Summer of Code 2007
Hat:		portmgr
@
text
@d10 1
a10 1
PORTVERSION=	2.5.2
d228 2
@


1.57
log
@- Make a dependency version more accurate. According to pkg_version(1)
  the current one is fine, but it is reported that portupgrade(1)
  has troubles with the current way.  No PORTREVISION bump, as it just blocked
  the upgrade, but we don't want to require people to rebuild again.

Reported by:	Aurelien Croc <aurelien@@ap2c.org>
@
text
@d33 1
a33 1
USE_PERL5_RUN=	yes
a280 4
.if ${PERL_LEVEL} < 500802
IGNORE=		requires perl 5.8.2 or higher
.endif

@


1.56
log
@- Update to 2.5.2 [1]
- Don't try to install if WITH_RAR is selected and IA32 compatibility is not
  available [2]

PR:		ports/114084 [1], ports/113941 [2]
Submitted by:	garga [1], Michael Scheidell <scheidell@@secnap.net> [2]
@
text
@d25 1
a25 1
		p5-Compress-Zlib>=2.04:${PORTSDIR}/archivers/p5-Compress-Zlib \
@


1.55
log
@- Update to 2.5.1
- Dependency changes
- Require the fixed versions of zoo/unzoo, which are not vulnerable
- Add ramdisk support

PR:		ports/113396
Submitted by:	Michael Scheidell <scheidell@@secnap.net>
Reviewed by:	Mark Martinec <Mark.Martinec@@ijs.si> (author)
@
text
@d10 1
a10 1
PORTVERSION=	2.5.1
d147 4
d152 1
@


1.54
log
@Fix packaging. No PORTREVISION bump, since it installs and deinstalls cleanly,
just does not package. Somehow tinderbox did not reflect this issue, but
pointyhat and local tests did.

Reported by:	Bryan Fullerton <bryanf@@samurai.com>,
		pointyhat (via kris)
Approved by:	portmgr (linimon)
@
text
@d10 1
a10 1
PORTVERSION=	2.5.0
d25 1
a25 1
		p5-Compress-Zlib>=1.04:${PORTSDIR}/archivers/p5-Compress-Zlib \
d143 2
a144 1
RUN_DEPENDS+=	${LOCALBASE}/bin/file:${PORTSDIR}/sysutils/file
d184 2
a185 1
RUN_DEPENDS+=	${LOCALBASE}/bin/zoo:${PORTSDIR}/archivers/zoo
d189 1
a189 1
RUN_DEPENDS+=	${LOCALBASE}/bin/unzoo:${PORTSDIR}/archivers/unzoo
d273 1
@


1.53
log
@- Update to 2.5.0
- Add Altermime support
- Add P7Zip support

Release Notes:	http://www.ijs.si/software/amavisd/release-notes.txt

PR:		ports/112048
Submitted by:	Michael Scheidell <scheidell@@secnap.net>
@
text
@d39 1
a39 1
PORTDOCS=	AAAREADME.first INSTALL LDAP.schema LICENSE RELEASE_NOTES \
d264 1
a264 1
.for i in ${PORTDOCS}
@


1.52
log
@- Remove explicit -l from command line options of p0fanalyzer in the rc.d
  script and now amavis_p0f_daemon_flags defaults to -l, which was empty so far
- Bump PORTREVISION
@
text
@d10 1
a10 2
PORTVERSION=	2.4.5
PORTREVISION=	2
a15 1
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.p/-p/}
d24 2
a25 3
		${SITE_PERL}/${PERL_ARCH}/Convert/UUlib.pm:${PORTSDIR}/converters/p5-Convert-UUlib \
		${SITE_PERL}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \
		${SITE_PERL}/Archive/Tar.pm:${PORTSDIR}/archivers/p5-Archive-Tar \
d30 2
a31 2
		${SITE_PERL}/Net/SMTP.pm:${PORTSDIR}/net/p5-Net \
		${SITE_PERL}/Net/Server.pm:${PORTSDIR}/net/p5-Net-Server
d39 5
a49 2
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:C/\.p.+//}

d59 1
d74 1
d138 4
d198 4
d251 1
d259 3
d263 2
a264 2
	@@${MKDIR} ${DOCSDIR}
.for i in AAAREADME.first INSTALL LDAP.schema LICENSE RELEASE_NOTES README_FILES/*
d267 1
@


1.51
log
@- Remove support for FreeBSD 4.x

Approved by:	erwin (mentor, implicit)
@
text
@d11 1
a11 1
PORTREVISION=	1
@


1.50
log
@- Fix dependency [1]
- Turn on WITH_FILE at default
- Bump PORTREVISION

PR:		ports/108734 [1]
Reported by:	Attila Nagy <bra@@fsn.hu> [1]
Submitted by:	Martin Matuska <martin@@matuska.org> [1]
Approved by:	erwin (mentor)
@
text
@d46 1
a88 6
.if ${OSVERSION} < 500000
DAEMON=/usr/sbin/daemon
.else
DAEMON=/usr/sbin/daemon -p
.endif

@


1.49
log
@- Update to 2.4.5

PR:		ports/108623
Submitted by:	Michael Scheidell <scheidell@@secnap.net>
Approved by:	erwin (mentor)
@
text
@d11 1
d58 1
a58 1
		FILE	"Use newer file(1) utility from ports"	off \
d115 1
a115 1
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
@


1.48
log
@Change my e-mail address.

Approved by:	erwin (mentor)
@
text
@d10 1
a10 1
PORTVERSION=	2.4.4
@


1.47
log
@Correct path to Compress::Zlib.pm after recent p5-Compress-Zlib update.
@
text
@d18 1
a18 1
MAINTAINER=	gkovesdan@@t-hosting.hu
@


1.46
log
@- Update to 2.4.4
- Don't quote amavis_p0f_daemon_flags in the p0f rc.d script [1]
- Don't use -p option of daemon on 4.X since it doesn't have such [1]

Requested by:	Michael Scheidell <scheidell@@secnap.net> [1]
PR:		105862
Submitted by:	gabor (maintainer)
@
text
@d26 1
a26 1
		${SITE_PERL}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \
@


1.45
log
@Distfile was rerolled due to a minor bugfix. Update distinfo and bump PORTREVISION

PR:		103895
Submitted by:	gabor (maintainer)
Reported by:	Henrik Schack <henrik@@schack.dk>,
		Mark Martinec (author)
@
text
@d10 1
a10 2
PORTVERSION=	2.4.3
PORTREVISION=	1
d78 2
a79 1
		AMAVISQUARANTINE=${AMAVISQUARANTINE}
d87 6
@


1.44
log
@- Update to 2.4.3
- Remove NEW_MILTER from OPTIONS since it was a circular dependency
- Change description for SQLITE in OPTIONS since it is almost only
  useful for logging
- Change the order of p0f parameters in the rc.d script, because -l
  must be the last command line option [1]
- Add new option so that arguments can be passed to p0f-analyzer.pl
  as well not just for p0f

Submitted by:	Henrik Schack <henrik@@schack.dk> [1],
		gabor (maintainer)
@
text
@d11 1
@


1.43
log
@- Use the same naming scheme for p0fanalyzer rc.d script as used by milter script
- Fix pkg-message to reflect the p0fanalyzer rc.d script behavior
- Don't hardcode the interface into p0fanalyzer rc.d script
- Respect amavis_p0fanalyzer_flags
- Bump PORTREVISION

PR:		103560
Submitted by:	gabor (maintainer)
Requested by:	Attila Nagy <bra at fsn dot hu>,
		Reto Burkhalter <reto dot burkhalter at basis06 dot com>
@
text
@d10 1
a10 2
PORTVERSION=	2.4.2
PORTREVISION=	4
d49 1
a49 1
		SQLITE	"Use SQLite for lookups/logging/quarantine"	off \
a54 1
		NEW_MILTER	"New sendmail milter support (external module)"	off \
a121 4
.if defined(WITH_NEW_MILTER)
RUN_DEPENDS+=	${LOCALBASE}/sbin/amavisd-milter:${PORTSDIR}/security/amavisd-milter
.endif

@


1.42
log
@Really fix p0fanalyzer support this time.

Noticed by:	Henrik Schack <henrik@@schack.dk>
Submitted by:	maintainer
@
text
@d11 1
a11 1
PORTREVISION=	3
@


1.41
log
@Big rework:
- Register some dependencies directly that were installed by another dependencies before
- Add BerkeleyDB to OPTIONS for nanny/cache/snmp, it is not a mandatory dependency any more
- Add SQLite to OPTIONS for lookups/logging/quarantine
- Add SASL to OPTIONS for authentication
- Add SpamAssassin to OPTIONS, it is not a mandatory dependency any more
- Add p0f (passive OS fingerprinting) to OPTIONS and an rc.d script for p0fanalyzer
- Add file to OPTIONS to use ports' file(1) instead of system file(1)
- Add nomarch and cabextract to OPTIONS, they are not mandatory any more
- Provide some alternatives for archiver dependencies (rar/unrar, arj/unar, etc.)
- Cleanup deprecated PLIST_SUB and pkg-plist entries
- Use reinplace editing instead of patches where possible
- Ensure that the config file is installed with proper attributes
- Add some p0f explanation to pkg-message
- Style

PR:		102944
Submitted by:	Gabor Kovesdan <gkovesdan@@t-hosting.hu> (maintainer)
@
text
@d134 1
a134 1
USE_RC_SUBR+=	p0fanalyzer.sh
@


1.40
log
@Fix typo in UNZOO option

PR:		101129
Submitted by:	gabor (maintainer)
@
text
@d11 1
a11 1
PORTREVISION=	2
d23 1
a23 1
		${SITE_PERL}/MIME/Words.pm:${PORTSDIR}/mail/p5-MIME-Tools \
d32 3
a34 5
		${SITE_PERL}/Net/Server.pm:${PORTSDIR}/net/p5-Net-Server \
		${SITE_PERL}/Mail/SpamAssassin.pm:${PORTSDIR}/mail/p5-Mail-SpamAssassin \
		${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB \
		${LOCALBASE}/bin/cabextract:${PORTSDIR}/archivers/cabextract \
		${LOCALBASE}/bin/rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio
d37 4
d49 25
a73 12
OPTIONS=	MYSQL	"MySQL support"		off \
		PGSQL	"PgSQL support"		off \
		LDAP	"LDAP support"		off \
		MILTER	"sendmail milter support" on \
		RAR	"rar support"	on \
		ARJ	"arj support"	on \
		LHA	"lha support"	on \
		ARC	"arc support"	on \
		ZOO	"zoo support with zoo archiver"	on \
		UNZOO	"zoo support with unzoo archiver"	off \
		LZOP	"lzop support"	on \
		FREEZE	"freeze support"	on
d77 1
a77 1
SUB_LIST=	AMAVISUSER=${AMAVISUSER} \
d80 5
a84 2
		AMAVISQUARANTINE=${AMAVISQUARANTINE} \
		DOCSDIR=${DOCSDIR}
d100 3
a102 4
PLIST_SUB+=	AMAVIS_NOMILTER=${AMAVIS_NOMILTER} \
		AMAVIS_NOAMAVIS=${AMAVIS_NOAMAVIS} \
		RC_DIR=${RC_DIR} \
		RC_SUFX=${RC_SUFX}
d104 2
a105 8
.if defined(AMAVIS_NOAMAVIS)
do-build:
	@@${ECHO} libmilter not available, not building amavis-milter and amavis
.else
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-user=${AMAVISUSER} --with-runtime-dir=${AMAVISDIR}
CONFIGURE_WRKSRC=	${WRKSRC}/helper-progs
BUILD_WRKSRC=	${WRKSRC}/helper-progs
a107 2
SED_SCRIPT=	${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/}

d120 23
d144 4
d155 4
d167 12
d195 4
d201 10
a210 1
	@@${REINPLACE_CMD} ${SED_SCRIPT} -e "s@@'zoo'\]@@['zoo','unzoo'] ]@@" ${WRKSRC}/${f}
d212 12
d235 6
a240 4
	${INSTALL_SCRIPT} ${WRKSRC}/amavisd ${PREFIX}/sbin
	${INSTALL_SCRIPT} ${WRKSRC}/amavisd-agent ${PREFIX}/sbin
	${INSTALL_SCRIPT} ${WRKSRC}/amavisd-nanny ${PREFIX}/sbin
	${INSTALL_SCRIPT} ${WRKSRC}/amavisd-release ${PREFIX}/sbin
d242 2
d245 5
a249 1
	${INSTALL_SCRIPT} ${WRKSRC}/amavisd.conf ${PREFIX}/etc
a250 2
	${INSTALL_SCRIPT} ${WRKSRC}/amavisd.conf-sample ${PREFIX}/etc/amavisd.conf-sample
	${INSTALL_SCRIPT} ${WRKSRC}/amavisd.conf-default ${PREFIX}/etc/amavisd.conf-default
d253 3
a255 3
. for FILE in AAAREADME.first INSTALL LDAP.schema LICENSE RELEASE_NOTES README_FILES/*
	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
. endfor
@


1.39
log
@- Fix a bug when using LMTP transfer
- Make some archiver support optionally

PR:		101071
Submitted by:	gabor (maintainer)
@
text
@d11 1
a11 1
PORTREVISION=	1
d131 1
a131 1
.if defined(WITH_ZOO)
@


1.38
log
@Update to 2.4.2

PR:		99785
Submitted by:	Gabor Kovesdan <gkovesdan@@t-hosting.hu> (maintainer)
@
text
@d11 1
a34 7
		${LOCALBASE}/bin/arc:${PORTSDIR}/archivers/arc \
		${LOCALBASE}/bin/unfreeze:${PORTSDIR}/archivers/freeze \
		${LOCALBASE}/bin/lha:${PORTSDIR}/archivers/lha \
		${LOCALBASE}/bin/lzop:${PORTSDIR}/archivers/lzop \
		${LOCALBASE}/bin/arj:${PORTSDIR}/archivers/arj \
		${LOCALBASE}/bin/unrar:${PORTSDIR}/archivers/unrar \
		${LOCALBASE}/bin/unzoo:${PORTSDIR}/archivers/unzoo \
d50 9
a58 1
		MILTER	"sendmail milter support" on
d111 32
@


1.37
log
@- Since clamav changed recently to depend of arj and unzoo instead of unarj
  and zoo, change amavisd-new to do the same and so, depend of the same
  archivers.

Submitted by:	maintainer via email
@
text
@d10 1
a10 2
PORTVERSION=	2.4.1
PORTREVISION=	1
@


1.36
log
@Replace stale MASTER_SITE with a good one.

PR:		ports/97552
Submitted by:	maintainer
Approved by:	tmclaugh (mentor)
@
text
@d11 1
d39 1
a39 1
		${LOCALBASE}/bin/unarj:${PORTSDIR}/archivers/unarj \
d41 1
a41 1
		${LOCALBASE}/bin/zoo:${PORTSDIR}/archivers/zoo \
d111 3
a113 3
	@@for f in amavisd.conf amavisd.conf-sample amavisd amavisd-agent amavisd-nanny amavisd-release; do \
		${SED} ${SED_SCRIPT} < ${WRKSRC}/$${f} > ${WRKDIR}/$${f}; \
	done
d125 5
a129 5
	${INSTALL_SCRIPT} ${WRKDIR}/amavisd ${PREFIX}/sbin
	${INSTALL_SCRIPT} ${WRKDIR}/amavisd-agent ${PREFIX}/sbin
	${INSTALL_SCRIPT} ${WRKDIR}/amavisd-nanny ${PREFIX}/sbin
	${INSTALL_SCRIPT} ${WRKDIR}/amavisd-release ${PREFIX}/sbin
	${INSTALL_SCRIPT} ${WRKDIR}/amavisd.conf ${PREFIX}/etc/amavisd.conf-dist
d131 1
a131 1
	${INSTALL_SCRIPT} ${WRKDIR}/amavisd.conf ${PREFIX}/etc
d133 1
a133 1
	${INSTALL_SCRIPT} ${WRKDIR}/amavisd.conf-sample ${PREFIX}/etc/amavisd.conf-sample
d137 1
a137 1
.for FILE in AAAREADME.first INSTALL LDAP.schema LICENSE RELEASE_NOTES README_FILES/*
d139 2
a140 1
.endfor
a143 1
.endif
@


1.35
log
@- Update to 2.4.1
- Patch out a copy&paste typo in LDAP.schema

PR:		ports/97130
Submitted by:	maintainer (Gabor Kovesdan)
@
text
@d15 1
a15 1
		http://ftp.cfu.net/pub/amavisd-new/
@


1.34
log
@- Update to 2.4.0
- Substitute deprecated USE_RCORDER with USE_RC_SUBR
- Add some dependency that are necessary according to the documentation

PR:		ports/95349
Submitted by:	maintainer
@
text
@d10 1
a10 1
PORTVERSION=	2.4.0
@


1.33
log
@Submitter takes maintainership.

PR:		ports/90154
Submitted by:	Gabor Kovesdan <gabor.kovesdan@@t-hosting.hu>
@
text
@d10 1
a10 2
PORTVERSION=	2.3.3
PORTREVISION=	1
d23 1
d29 2
a67 5
.if ${OSVERSION} >= 500037
USE_RCORDER=	amavisd.sh
RC_DIR=		/etc/rc.d
RC_SUFX=
.else
a68 3
RC_DIR=		${PREFIX}/etc/rc.d
RC_SUFX=	.sh
.endif
a74 3
.if ${OSVERSION} >= 500037
USE_RCORDER+=	amavis-milter.sh
.else
a75 1
.endif
@


1.32
log
@- Create /var/amavis/var directory at install time [1]
- Install the amavisd-release script [2]
- Drop maintainership [3]

PR:		ports/89723 [1], ports/90047 [2]
Submitted by:	Mipam <root@@relay3.ordina.nl> [1],
		Dave Smith <david.smith@@omnieng.co.uk> [2],
		Blaz Zupan <blaz@@si.FreeBSD.org> (maintainer, by private
		email) [3]
@
text
@d19 1
a19 1
MAINTAINER=	ports@@FreeBSD.org
@


1.31
log
@Add a check to see if WITH_MILTER is not set (and don't build milter
in that case).

PR:		ports/85834
Submitted by:	Vivek Khera <vivek@@khera.org>
Approved by:	blaz@@si.FreeBSD.org (maintainer)
@
text
@d11 1
d19 1
a19 1
MAINTAINER=	blaz@@si.FreeBSD.org
d120 1
a120 1
	@@for f in amavisd.conf amavisd.conf-sample amavisd amavisd-agent amavisd-nanny; do \
d137 1
@


1.30
log
@Update amavisd-new to 2.3.3. [1]
Start amavisd as root so that it works both with and without chroot. [2]

PR:		ports/85241 [1], ports/83988 [2]
Submitted by:	Blaz Zupan (maintainer)
@
text
@d75 1
a75 1
.if !exists(/usr/lib/libmilter.a) && !exists(${PREFIX}/lib/libmilter.a)
@


1.29
log
@- fix installation of start script on 4.x

PR:		83604
Submitted by:	Blaz Zupan <blaz@@si.FreeBSD.org>
@
text
@d10 1
a10 2
PORTVERSION=	2.3.2
PORTREVISION=	1
@


1.28
log
@- Update to 2.3.2.
- Use USE_RC_SUBR / USE_RCORDER for amavis.sh.
- Use SUB_FILES / SUB_LIST for pkg-* files.
- Add new MILTER option.
- Probably some other fixes I've forgot.

PR:		ports/82423
Reported by:	Petr Rehor <prehor@@gmail.com>
Submitted by:	maintainer
@
text
@d11 1
d81 1
d84 3
@


1.27
log
@- Fix libmilter detection.

PR:		ports/81392
Submitted by:	Henri Hennebert <hlh@@ciger.be>
Approved by:	maintainer
@
text
@d10 1
a10 1
PORTVERSION=	2.3.1
a41 5
USE_RC_SUBR=	yes

PKGINSTALL=	${WRKDIR}/INSTALL
PKGDEINSTALL=	${WRKDIR}/DEINSTALL
PKGMESSAGE=	${WRKDIR}/MESSAGE
d52 10
a61 1
		LDAP	"LDAP support"		off
d65 10
d76 6
d85 4
a88 1
PLIST_SUB+=	AMAVIS_NOMILTER=${AMAVIS_NOMILTER}
d90 1
a90 1
.if defined(AMAVIS_NOMILTER)
d100 1
a100 7
SED_SCRIPT=	-e 's,%%AMAVISUSER%%,${AMAVISUSER},g' \
		-e 's,%%AMAVISGROUP%%,${AMAVISGROUP},g' \
		-e 's,%%AMAVISDIR%%,${AMAVISDIR},g' \
		-e 's,%%AMAVISQUARANTINE%%,${AMAVISQUARANTINE},g' \
		-e 's,%%DOCSDIR%%,${DOCSDIR},g' \
		-e 's,%%PREFIX%%,${PREFIX},g' \
		-e 's,%%RC_SUBR%%,${RC_SUBR},g'
d114 2
a115 5
pre-build:
	for f in amavisd.sh amavis-milter.sh INSTALL DEINSTALL MESSAGE; do \
		${SED} ${SED_SCRIPT} < ${FILESDIR}/$${f}.tmpl > ${WRKDIR}/$${f}; \
	done
	for f in amavisd.conf amavisd.conf-sample amavisd amavisd-nanny; do \
d123 3
a126 1
	${INSTALL_PROGRAM} ${WRKSRC}/helper-progs/amavis ${PREFIX}/sbin
a127 1
	${INSTALL_SCRIPT} ${WRKDIR}/amavis-milter.sh ${PREFIX}/etc/rc.d
d130 1
a137 1
	${INSTALL_SCRIPT} ${WRKDIR}/amavisd.sh ${PREFIX}/etc/rc.d
@


1.26
log
@- Update to 2.3.1

PR:		ports/81219
Submitted by:	Michael Scheidell <scheidell@@secnap.net> via maintainer
@
text
@d59 3
a61 1
.if !exists(/usr/lib/libmilter.so) && !exists(${PREFIX}/lib/libmilter.so)
a84 2
.include <bsd.port.pre.mk>

@


1.25
log
@- Update security/amavisd-new to 2.3.0.

PR:		80318
Submitted by:	Blaz Zupan <blaz@@si.FreeBSD.org> (maintainer)
@
text
@d10 1
a10 1
PORTVERSION=	2.3.0
@


1.24
log
@- register UID:GID 110 for vscan

PR:		77366
Submitted by:	Scott Balmos <scott.balmos at utoledo.edu>
Approved by:	Blaz Zupan <blaz at si.FreeBSD.org>
@
text
@d10 1
a10 2
PORTVERSION=	2.2.1
PORTREVISION=	1
d134 1
a134 1
IGNORE=		"requires perl 5.8.2 or higher"
@


1.23
log
@- Update to 2.2.1

PR:		ports/75513
Submitted by:	Blaz Zupan <blaz@@si.FreeBSD.org> (maintainer)
@
text
@d11 1
@


1.22
log
@- Update to 2.2.0

PR:		ports/73441
Submitted by:	Blaz Zupan <blaz@@si.FreeBSD.org> (maintainer)
@
text
@d10 1
a10 1
PORTVERSION=	2.2.0
@


1.21
log
@Upgrade to 2.1.2.

PR:		ports/71907
Submitted by:	maintainer
@
text
@d10 1
a10 1
PORTVERSION=	2.1.2
d134 1
a134 1
IGNORE=         "requires perl 5.8.2 or higher"
@


1.20
log
@Update to 2.1.1

PR:		ports/70933
Submitted by:	maintainer
@
text
@d10 1
a10 1
PORTVERSION=	2.1.1
@


1.19
log
@Upgrade to 2.1.0.

PR:		ports/70526
Submitted by:	maintainer
@
text
@d10 1
a10 1
PORTVERSION=	2.1.0
@


1.18
log
@- Don't pretend we support anything older than perl 5.8.2. Support for
  5.00503 was severly broken and amavisd-new author officially only supports
  5.8.2 and up. As an added bonus, this simplifies the makefile very much.
- Install a usable amavisd.conf if none exists
- On installation, remove amavisd.conf if it is equal to default one
- On installation, create /var/amavis/tmp, because the new amavisd.conf
  uses this directory to store temporary files
- Remove address extension options from the example configuration file.
  Neither sendmail nor postfix support address extensions on FreeBSD
  by default.

PR:		ports/70306
Submitted by:	maintainer
@
text
@d10 2
a11 2
PORTVERSION=	20040701
PORTREVISION=	1
d101 1
a101 1
	for f in amavisd.conf amavisd.conf-sample amavisd; do \
d115 1
@


1.17
log
@- update amavisd-new to 20040701
- add dependency on cabextract and rpm2cpio.pl
- add menu used to add required dependencies
  for MySQL, PostgreSQL and LDAP support
- add warning when running under perl version below 5.8.2
- remove taint checks when running perl 5.00503
- (hopefully) fix chroot support by running amavisd with -u
  instead of using "su"
- mention other virus scanners available in the ports collection
  in the startup message

PR:		ports/68732
Submitted by:	maintainer
@
text
@d11 1
a97 8
.if ${PERL_LEVEL} < 500802
# add warning to greeting message when running perl older than 5.8.2
	${SED} -e 's,%%PERLVERSION%%,${PERL_VERSION},g' < ${FILESDIR}/perlwarning.tmpl > ${WRKDIR}/MESSAGE
.endif
.if ${PERL_LEVEL} < 500600
# remove taint checks when running under perl 5.00503
	${SED} -e 's,^\#\!/usr/bin/perl -T,\#\!/usr/bin/perl,' < ${WRKSRC}/amavisd > ${WRKDIR}/amavisd
.endif
d99 1
a99 1
		${SED} ${SED_SCRIPT} < ${FILESDIR}/$${f}.tmpl >> ${WRKDIR}/$${f}; \
d102 1
a102 1
		${SED} ${SED_SCRIPT} < ${WRKSRC}/$${f} >> ${WRKDIR}/$${f}; \
d116 3
d132 2
a133 7
.if ${PERL_LEVEL} < 500800
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
		${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
.endif

.if ${PERL_LEVEL} < 500600
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/IO/Socket/UNIX.pm:${PORTSDIR}/devel/p5-IO
@


1.16
log
@update to 20030616.p9

PR:		65120
Submitted by:	Blaz Zupan <blaz.zupan@@amis.net>
@
text
@d10 1
a10 1
PORTVERSION=	20030616.p9
d29 1
d36 3
a38 1
		${LOCALBASE}/bin/zoo:${PORTSDIR}/archivers/zoo
d54 4
d82 14
d97 8
d106 1
a106 1
		${SED} ${SED_SCRIPT} < ${FILESDIR}/$${f}.tmpl > ${WRKDIR}/$${f}; \
d108 2
a109 2
	for f in amavisd.conf amavisd; do \
		${SED} ${SED_SCRIPT} < ${WRKSRC}/$${f} > ${WRKDIR}/$${f}; \
d123 2
d128 1
a128 1
.for FILE in AAAREADME.first INSTALL LICENSE RELEASE_NOTES README_FILES/*
a134 2

.include <bsd.port.pre.mk>
@


1.15
log
@- fix dependencies for modules already included in perl 5.8 (PR 64374)
- remove dependency on Carp::Heavy module which is not available with
  stock FreeBSD 4.9 perl
- add official post -p8 buglet fixes which will be included in -p9
- add size information to distinfo
- bump portrevision

PR:		ports/64589
Submitted by:	Blaz Zupan <blaz.zupan@@amis.net> (maintainer)
@
text
@d10 1
a10 2
PORTVERSION=	20030616.p8
PORTREVISION=	1
@


1.14
log
@Update to 20030616.p8
Add new official mirrors.

PR:		ports/64146
Submitted by:	Blaz Zupan <blaz@@si.FreeBSD.org> (maintainer)
@
text
@d11 1
d13 1
a13 1
MASTER_SITES=   http://www.ijs.si/software/amavisd/ \
d21 1
a21 2
RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
		${SITE_PERL}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \
a27 1
		${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
d108 6
a113 1
.if ${PERL_LEVEL} < 500601
@


1.13
log
@Upgrade security/amavisd-new

	Upgrade security/amavisd-new port to 20030616.p7

Also make portlint less unhappy wrt file

PR:		ports/61042
Submitted by:	Blaz Zupan <blaz@@si.FreeBSD.org>
@
text
@d10 1
a10 1
PORTVERSION=	20030616.p7
d12 3
a14 1
MASTER_SITES=	http://www.ijs.si/software/amavisd/
@


1.12
log
@1) Update security/amavisd-new to amavisd-new-20030616-p6.
2) Incorporate changes from PR 57382:
   - add rc.subr support
   - cleanup sed variable replacement scripts
   - add pointer to Clam Antivirus to installation message
  PR 57382 was closed by mistake, I thought the contents
  have already been commited, while they were not.

PR:		59323
Submitted by:	milter@@free.fr (1)
Submitted by:	Martin Matuska <martin@@tradex.sk> (2)
Approved by:	MAINTAINER
@
text
@d10 1
a10 1
PORTVERSION=	20030616.p6
d76 2
a77 2
	for file in amavisd.sh amavis-milter.sh INSTALL DEINSTALL MESSAGE; do \
		${SED} ${SED_SCRIPT} < ${FILESDIR}/$${file}.tmpl > ${WRKDIR}/$${file}; \
d79 2
a80 2
	for file in amavisd.conf amavisd; do \
		${SED} ${SED_SCRIPT} < ${WRKSRC}/$${file} > ${WRKDIR}/$${file}; \
@


1.11
log
@- update amavisd-new to 20030616.p5.
- fix dependency on devel/p5-IO, which should only be used when
  perl older than 5.6.1 is installed.
- enable cpio for extraction of tar archives, which uses much less
  memory than Archive::Tar (suggested by amavisd-new author)

PR:		56013
Submitted by:	Blaz Zupan <blaz.zupan@@amis.net>
@
text
@d10 1
a10 1
PORTVERSION=	20030616.p5
d38 1
d67 8
d76 2
a77 8
	for file in amavisd.sh INSTALL DEINSTALL MESSAGE; do \
		${SED} -e 's,%%AMAVISUSER%%,${AMAVISUSER},g' \
		       -e 's,%%AMAVISGROUP%%,${AMAVISGROUP},g' \
		       -e 's,%%AMAVISDIR%%,${AMAVISDIR},g' \
		       -e 's,%%AMAVISQUARANTINE%%,${AMAVISQUARANTINE},g' \
		       -e 's,%%DOCSDIR%%,${DOCSDIR},g' \
		       -e 's,%%PREFIX%%,${PREFIX},g' \
	               < ${FILESDIR}/$${file}.tmpl > ${WRKDIR}/$${file}; \
d80 1
a80 6
		${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}; \
d90 1
@


1.10
log
@Update to 20030616.p2.

Submitted by:	Rob Evers <rob@@debank.tv> (20030616.p1)
Approved by:	maintainer (20030616.p2)
PR:		53728
@
text
@d10 1
a10 1
PORTVERSION=	20030616.p2
d18 1
a18 2
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 \
d106 7
a112 1
.include <bsd.port.mk>
@


1.9
log
@- installs two new README files that I missed in the previous update
- adds an entry to amavisd.conf for the Fizzer worm because it fakes
  the sender address (suggested by mutt@@free.fr)
- set the log level back to 0, because apparently it was set to 2 by
  mistake by the author (suggested by mutt@@free.fr)

- Bump PORTREVISION

PR:		52399
Submitted by:	maintainer
@
text
@d10 1
a10 2
PORTVERSION=	20030314.p2
PORTREVISION=	1
d31 1
d33 1
@


1.8
log
@- update to 20030314.p2
- remove the locale hack in the startup script; it's no
  longer necessary

PR:		52066
Submitted by:	maintainer
@
text
@d11 1
d98 1
a98 7
.for FILE in AAAREADME.first INSTALL LICENSE \
	README_FILES/README.customize README_FILES/README.exim_v3 \
	README_FILES/README.exim_v4 README_FILES/README.exim_v4_app \
	README_FILES/README.lookups README_FILES/README.milter \
	README_FILES/README.chroot README_FILES/README.old.scanners \
	README_FILES/README.performance README_FILES/README.postfix \
	README_FILES/README.sendmail RELEASE_NOTES
@


1.7
log
@Update amavisd-new port to 20030314.p1.
Don't remove amavis user/group and directories, just remind user that they
should do it manually if they don't want to use the port anymore.

PR:		51153
Submitted by:	Blaz Zupan <blaz.zupan@@amis.net>
@
text
@d10 1
a10 1
PORTVERSION=	20030314.p1
@


1.6
log
@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>
@
text
@d10 1
a10 2
PORTVERSION=	20021227.p2
PORTREVISION=	2
a35 2
SITE_PERL=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}

d75 1
a75 1
	for file in amavisd.conf amavisd amavisdconf; do \
a92 1
	${INSTALL_SCRIPT} ${WRKDIR}/amavisdconf ${PREFIX}/sbin
d101 1
a101 1
	README_FILES/README.old README_FILES/README.old.scanners \
@


1.5
log
@Fix a bug where non-RFC 2822 compliant mails were generated when a
non-US locale was in use.

PR:		50028
Submitted by:	maintainer
@
text
@d11 1
a11 1
PORTREVISION=	1
d19 2
a20 1
RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
d78 8
a85 5
	${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
d95 2
a96 1
	${INSTALL_SCRIPT} ${WRKSRC}/amavisd ${PREFIX}/sbin
@


1.4
log
@De-pkg-comment.
@
text
@d11 1
@


1.3
log
@upgrade to 20021227 p2
allow build without sendmail milter

Submitted by:	maintainer
@
text
@d16 1
@


1.2
log
@Update to version 20021227.p1.
Pass maintainership to submitter (approved by former maintainer).

Submitted by:	Blaz Zupan <blaz@@si.FreeBSD.org>
@
text
@d10 1
a10 1
PORTVERSION=	20021227.p1
d48 11
d63 1
d85 1
d88 1
@


1.1
log
@Add amavisd-new, performance-enhanced daemonized version of amavis-perl.

PR:		38934
Submitted by:	Christopher K Davis (ckd-freebsd@@ckdhr.com)
@
text
@d10 1
a10 1
PORTVERSION=	20020517
d13 1
a13 1
DISTNAME=	${PORTNAME}-${PORTVERSION}
d15 1
a15 1
MAINTAINER=	ckd-freebsd@@ckdhr.com
d17 12
a28 1
BUILD_DEPENDS=	${LOCALBASE}/bin/arc:${PORTSDIR}/archivers/arc \
d32 3
a34 16
		${LOCALBASE}/bin/zoo:${PORTSDIR}/archivers/zoo \
		${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
		${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
		${SITE_PERL}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \
		${SITE_PERL}/${PERL_ARCH}/Convert/UUlib.pm:${PORTSDIR}/converters/p5-Convert-UUlib \
		${SITE_PERL}/${PERL_ARCH}/IO/Socket/UNIX.pm:${PORTSDIR}/devel/p5-IO \
		${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
		${SITE_PERL}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \
		${SITE_PERL}/Archive/Tar.pm:${PORTSDIR}/archivers/p5-Archive-Tar \
		${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
		${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF \
		${SITE_PERL}/IO/AtomicFile.pm:${PORTSDIR}/devel/p5-IO-stringy \
		${SITE_PERL}/MIME/Body.pm:${PORTSDIR}/mail/p5-MIME-Tools \
		${SITE_PERL}/Mail/Address.pm:${PORTSDIR}/mail/p5-Mail-Tools \
		${SITE_PERL}/Net/SMTP.pm:${PORTSDIR}/net/p5-Net \
		${SITE_PERL}/Net/Server.pm:${PORTSDIR}/net/p5-Net-Server
d36 1
a36 1
RUN_DEPENDS=	${BUILD_DEPENDS}
d38 3
a40 1
GNU_CONFIGURE=	yes
a41 1
SITE_PERL=		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
d44 2
d47 21
a67 38
CONFIGURE_ARGS+=	--sysconfdir=${PREFIX}/etc --with-amavisuser=${AMAVISUSER}:${AMAVISGROUP}

STARTSCRIPT=	amavisd.sh

.if defined(WITH_POSTFIX)
CONFIGURE_ARGS+=	--enable-postfix
MTA?=		postfix
RUN_DEPENDS+=	${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix
.elif defined(WITH_POSTFIX_CURRENT)
CONFIGURE_ARGS+=	--enable-postfix
MTA?=		postfix
RUN_DEPENDS+=	${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix-current
.elif defined(WITH_MILTER)
CONFIGURE_ARGS+=	--enable-milter
MTA?=		milter
PLIST=		${PKGDIR}/pkg-plist.milter
STARTSCRIPT=	amavisd-milter.sh
.else
CONFIGURE_ARGS+=	--enable-sendmail
MTA?=		sendmail
.endif

.if defined(WITH_SPAMASSASSIN)
BUILD_DEPENDS+=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Mail/SpamAssassin.pm:${PORTSDIR}/mail/p5-Mail-SpamAssassin \
		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/DNS.pm:${PORTSDIR}/net/p5-Net-DNS \
		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Razor/Client.pm:${PORTSDIR}/mail/razor-agents

pre-configure:
		${CP} ${WRKSRC}/amavis/amavisd.in.all ${WRKSRC}/amavis/amavisd.in
.endif

# you must define this if you have no scanners (example: to use amavisd-new only as a SpamAssassin/Razor filter)
.if defined(WITH_ALL_SCANNERS)
CONFIGURE_ARGS+=	--enable-all
.endif

post-patch:
	@@${SED} 's,%%AMAVISUSER%%,${AMAVISUSER},g' ${FILESDIR}/${STARTSCRIPT} > ${WRKSRC}/${STARTSCRIPT}
d70 1
a70 1
	@@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${AMAVISUSER} ${AMAVISGROUP}
d72 6
a77 2
post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/${STARTSCRIPT} ${PREFIX}/etc/rc.d
d80 7
a86 1
.for FILE in FAQ INSTALL README README.exim README.milter README.postfix README.qmail README.scanners README.sendmail doc/amavis.html doc/amavis.m4 doc/amavis.png doc/amavis.txt
d89 3
a91 3
	@@${ECHO} "==============================================================================="
	@@${ECHO} "Please read ${DOCSDIR}/README.${MTA}"
	@@${ECHO} "==============================================================================="
@

