head	1.16;
access;
symbols
	RELEASE_8_3_0:1.10
	RELEASE_9_0_0:1.10
	RELEASE_7_4_0:1.7
	RELEASE_8_2_0:1.7
	RELEASE_6_EOL:1.6
	RELEASE_8_1_0:1.4
	RELEASE_7_3_0:1.4
	RELEASE_8_0_0:1.3
	RELEASE_7_2_0:1.3
	RELEASE_7_1_0:1.2
	RELEASE_6_4_0:1.2
	RELEASE_5_EOL:1.1;
locks; strict;
comment	@# @;


1.16
date	2012.12.16.06.16.58;	author svnexp;	state Exp;
branches;
next	1.15;

1.15
date	2012.11.17.06.01.08;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2012.09.26.21.27.31;	author glarkin;	state Exp;
branches;
next	1.13;

1.13
date	2012.08.18.14.29.08;	author ohauer;	state Exp;
branches;
next	1.12;

1.12
date	2012.07.01.05.42.54;	author az;	state Exp;
branches;
next	1.11;

1.11
date	2012.06.08.20.13.43;	author scheidell;	state Exp;
branches;
next	1.10;

1.10
date	2011.11.06.21.05.24;	author ohauer;	state Exp;
branches;
next	1.9;

1.9
date	2011.09.08.19.32.16;	author crees;	state Exp;
branches;
next	1.8;

1.8
date	2011.08.29.15.57.18;	author crees;	state Exp;
branches;
next	1.7;

1.7
date	2010.12.16.02.34.01;	author glarkin;	state Exp;
branches;
next	1.6;

1.6
date	2010.09.21.07.56.39;	author mm;	state Exp;
branches;
next	1.5;

1.5
date	2010.08.09.08.54.36;	author nemoliu;	state Exp;
branches;
next	1.4;

1.4
date	2010.01.26.15.01.07;	author kuriyama;	state Exp;
branches;
next	1.3;

1.3
date	2008.12.16.16.02.00;	author wxs;	state Exp;
branches;
next	1.2;

1.2
date	2008.06.06.14.00.56;	author edwin;	state Exp;
branches;
next	1.1;

1.1
date	2008.01.20.06.38.05;	author beech;	state Exp;
branches;
next	;


desc
@@


1.16
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
@# Ports collection Makefile for:    maia
# Date created:                         03 Jan 2008
# Whom:                                 Janky Jay <ek@@purplehat.org>
#
# $FreeBSD: head/security/maia/Makefile 308985 2012-12-16 06:12:28Z az $
#

PORTNAME=	maia
DISTVERSION=	1.0.3-${SVNREVISION}
PORTREVISION=	3
CATEGORIES=	security
MASTER_SITES=	http://www.purplehat.org/downloads/maia/

MAINTAINER=	ek@@purplehat.org
COMMENT=	A web-based management system based on amavisd-new and SpamAssassin

RUN_DEPENDS=	p5-Unix-Syslog>=0.94:${PORTSDIR}/sysutils/p5-Unix-Syslog \
		p5-MIME-Tools>=4.116:${PORTSDIR}/mail/p5-MIME-Tools \
		p5-Convert-TNEF>=0.08:${PORTSDIR}/converters/p5-Convert-TNEF \
		p5-Convert-UUlib>=1.08,1:${PORTSDIR}/converters/p5-Convert-UUlib \
		p5-Net-CIDR-Lite>=0.18:${PORTSDIR}/net/p5-Net-CIDR-Lite \
		p5-forks>=0.34:${PORTSDIR}/devel/p5-forks \
		p5-Archive-Zip>=0.10:${PORTSDIR}/archivers/p5-Archive-Zip \
		p5-IO-stringy>=1.203:${PORTSDIR}/devel/p5-IO-stringy \
		p5-IO-Socket-INET6>=1.27:${PORTSDIR}/net/p5-IO-Socket-INET6 \
		p5-Text-CSV>=1.02:${PORTSDIR}/textproc/p5-Text-CSV \
		p5-Data-UUID>=1.148:${PORTSDIR}/devel/p5-Data-UUID \
		p5-Template-Toolkit>=2.13:${PORTSDIR}/www/p5-Template-Toolkit \
		p5-Net-Server>=0.93:${PORTSDIR}/net/p5-Net-Server

# SVN source: https://www.maiamailguard.com/svn/branches/1.0
SVNREVISION=	r1575
WRKSRC=		${WRKDIR}/${PORTNAME}-1.0-${SVNREVISION}
USE_PERL5_RUN=	yes
NO_BUILD=	yes

DOCS=	LICENSE README maiad.conf.dist maia-mysql.sql maia-pgsql.sql maia.conf.dist

USERS=	vscan
GROUPS=	vscan
MAIADIR?=	/var/maiad
MAIAQUARANTINE?=	/var/maiad/virusmails
PEAR_DIR?=	${LOCALBASE}/share/pear

OPTIONS=	APACHE	"Use Apache web server"	off\
		LIGHTTPD	"Use LighTTPD web server"	off \
		WEBHOST	"PHP, PEAR, etc... for Maia web interface"	off \
		MYSQL	"Use MySQL datebase"		on \
		MYSQLSERVER	"Install MySQL Server"	on \
		PGSQL	"Use PgSQL database"		off \
		PGSQLSERVER	"Install PGSQL Server"	off \
		DOVECOT	"Use Dovecot IMAP/POP3"	on \
		POSTFIX	"Use Postfix MTA"	on \
		PFA	"Use Postfixadmin"	off \
		FUZZYOCR	"Use FuzzyOcr"	off \
		CLAMAV	"Use ClamAV anti-virus"	on \
		SPAMASSASSIN	"Use SpamAssassin"	on \
		GRAPHICS	"Enable pie chart stats"	off \
		BDB	"Use BerkeleyDB"	on \
		ALTERMIME	"Use AlterMime"	off \
		CRYPT	"Encryption support"	off \
		IPCOUNTRY	"SpamAssassin IP Country plugin"	on \
		DOMAINKEYS	"SpamAssassin DomainKey plugin"	on \
		SPF	"SpamAssassin SPF plugin"	on \
		DKIM	"SpamAssassin DKIM plugin"	on \
		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"	off \
		FREEZE	"FREEZE support with archivers/freeze"	on \
		P7ZIP	"P7ZIP support with archivers/p7zip"	on \
		TNEF	"Add external tnef decoder"	off

SUB_FILES=	pkg-install pkg-deinstall pkg-message
SUB_LIST+=	MAIAUSER=${USERS} \
		MAIAGROUP=${GROUPS} \
		MAIADIR=${MAIADIR} \
		MAIAQUARANTINE=${MAIAQUARANTINE}
USE_RC_SUBR+=	maiad

.include <bsd.port.options.mk>

# Code is a bit fiddly here; we can't use USE variables after pre.mk so we have
# to duplicate some WITH_ parts like WEBHOST that use pre.mk vars as well as
# setting USE_ variables. C'est la vie.

.if defined(WITH_APACHE)
USE_APACHE_RUN=	22+
.endif

.if defined(WITH_WEBHOST)
USE_PHP=	bcmath ctype dom gettext hash iconv imap json mbstring \
		mcrypt pdo pdo_sqlite posix session simplexml sockets \
		sqlite3 tokenizer xml wddx xmlreader xmlwriter xmlrpc
.endif

.if defined(WITH_MYSQL)
USE_MYSQL=	yes
USE_PHP+=	mysql mysqli
.endif

.if defined(WITH_PGSQL)
USE_PGSQL=	yes
USE_PHP+=	pgsql
.endif

.include <bsd.port.pre.mk>

.if defined(WITH_LIGHTTPD)
RUN_DEPENDS+=	lighttpd:${PORTSDIR}/www/lighttpd
.endif

.if defined(WITH_WEBHOST)
RUN_DEPENDS+=	${PEAR_DIR}/Mail/mime.php:${PORTSDIR}/mail/pear-Mail_Mime \
		${PEAR_DIR}/Mail/mimeDecode.php:${PORTSDIR}/mail/pear-Mail_mimeDecode \
		${PEAR_DIR}/DB.php:${PORTSDIR}/databases/pear-DB \
		${PEAR_DIR}/Pager/Pager.php:${PORTSDIR}/devel/pear-Pager \
		${PEAR_DIR}/Net/Socket.php:${PORTSDIR}/net/pear-Net_Socket \
		${PEAR_DIR}/Net/SMTP.php:${PORTSDIR}/net/pear-Net_SMTP \
		${PEAR_DIR}/Log.php:${PORTSDIR}/sysutils/pear-Log \
		${LOCALBASE}/share/smarty/Smarty.class.php:${PORTSDIR}/www/smarty2
.endif

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

.if defined(WITH_MYSQLSERVER)
RUN_DEPENDS+=	${LOCALBASE}/bin/mysqld_safe:${PORTSDIR}/databases/mysql55-server
.endif

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

.if defined(WITH_PGSQLSERVER)
RUN_DEPENDS+=	${LOCALBASE}/bin/pg_ctl:${PORTSDIR}/databases/postgresql84-server
.endif

.if defined(WITH_DOVECOT)
RUN_DEPENDS+=	dovecot:${PORTSDIR}/mail/dovecot
.endif

.if defined(WITH_POSTFIX)
RUN_DEPENDS+=	postfix:${PORTSDIR}/mail/postfix
.endif

.if defined(WITH_PFA)
RUN_DEPENDS+=	${LOCALBASE}/www/postfixadmin/config.inc.php:${PORTSDIR}/mail/postfixadmin
.endif

.if defined(WITH_FUZZYOCR)
RUN_DEPENDS+=	p5-FuzzyOcr-devel>=0:${PORTSDIR}/mail/p5-FuzzyOcr-devel
.endif

.if defined(WITH_CLAMAV)
RUN_DEPENDS+=	clamd:${PORTSDIR}/security/clamav
.endif

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

.if defined(WITH_GRAPHICS)
RUN_DEPENDS+=	${PEAR_DIR}/Image/Color.php:${PORTSDIR}/graphics/pear-Image_Color \
		${PEAR_DIR}/Image/Canvas.php:${PORTSDIR}/graphics/pear-Image_Canvas \
		${PEAR_DIR}/Image/Graph.php:${PORTSDIR}/graphics/pear-Image_Graph \
		${PEAR_DIR}/Numbers/Roman.php:${PORTSDIR}/textproc/pear-Numbers_Roman \
		${PEAR_DIR}/Numbers/Words.php:${PORTSDIR}/textproc/pear-Numbers_Words
.endif

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

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

.if defined(WITH_CRYPT)
RUN_DEPENDS+=	p5-Crypt-Blowfish>=0:${PORTSDIR}/security/p5-Crypt-Blowfish \
		p5-Crypt-OpenSSL-RSA>=0:${PORTSDIR}/security/p5-Crypt-OpenSSL-RSA \
		p5-Crypt-CBC>=0:${PORTSDIR}/security/p5-Crypt-CBC
.endif

.if defined(WITH_IPCOUNTRY)
RUN_DEPENDS+=	p5-IP-Country>=0:${PORTSDIR}/net/p5-IP-Country
.endif

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

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

.if defined(WITH_DKIM)
RUN_DEPENDS+=	p5-Mail-DKIM>=0:${PORTSDIR}/mail/p5-Mail-DKIM
.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)
IA32_BINARY_PORT=	yes
RUN_DEPENDS+=	rar:${PORTSDIR}/archivers/rar
.endif

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

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

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

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

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

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

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

.if defined(WITH_RPM)
RUN_DEPENDS+=	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+=	lzop:${PORTSDIR}/archivers/lzop
.endif

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

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

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

post-patch:
.for m in scripts/configtest.pl scripts/expire-quarantine-cache.pl \
	scripts/generate-key.pl scripts/load-sa-rules.pl scripts/maiadbtool.pl \
	scripts/process-quarantine.pl scripts/resend.pl scripts/send-quarantine-digests.pl \
	scripts/send-quarantine-reminders.pl scripts/stats-snapshot.pl
		@@${REINPLACE_CMD} -e "s|/etc/maia/maia.conf|${PREFIX}/etc/maia.conf|" \
			${WRKSRC}/${m}

.endfor
.for a in maiad.conf.dist
	@@${REINPLACE_CMD} -e "s|daemon_user  = 'maia'|daemon_user  = '${USERS}'|" \
		-e "s|daemon_group = 'maia'|daemon_group = '${GROUPS}'|" \
		-e "s|/var/lib/maia|${MAIADIR}|" \
		-e "s|/var/log/maia|${MAIADIR}|" ${WRKSRC}/${a}
.endfor
.for i in maia.conf.dist
	@@${REINPLACE_CMD} -e "s|/etc/maia.conf|${PREFIX}/etc/maia.conf|" \
		-e "s|username = 'maia'|username = '${USERS}'|" \
		-e "s|/var/lib/maia|${MAIADIR}/maia|" \
		-e "s|/usr/bin/sa-learn|/usr/local/bin/sa-learn|" \
		-e "s|local_cf_dir = undef|local_cf_dir = '${PREFIX}/etc/mail/spamassassin'|" \
		-e "s|system_rules_dir = undef|system_rules_dir = '/var/db/spamassassin'|" \
		-e "s|user_rules_dir = undef|user_rules_dir = '${MAIADIR}/.spamassassin'|" \
		-e "s|pid_dir = '/var/run/maia/'|pid_dir = '${MAIADIR}/'|" \
		-e "s|log_dir = '/var/log/maia'|log_dir = '${MAIADIR}'|" \
		-e "s|template_dir = '/etc/maia/templates/'|template_dir = '${MAIADIR}/maia/templates/'|" \
			${WRKSRC}/${i}
.endfor
.for a in maiad
	@@${REINPLACE_CMD} -e "s|/etc/maia/maiad.conf|${PREFIX}/etc/maiad.conf|" \
		-e "s|/var/lib/maia|${MAIADIR}|" \
		-e "s@@'zoo'\]@@['zoo','unzoo'] ]@@" ${WRKSRC}/${a}
.endfor
	@@${FIND} -E ${WRKSRC} -iregex '.*(bak|~)$$' -delete

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

do-install:
	@@${INSTALL} -d ${WWWDIR}
	@@cd ${WRKSRC}/php && ${FIND} . | ${CPIO} --quiet -pdm -L ${WWWDIR}
	@@cd ${WRKSRC}/scripts && ${FIND} . | ${CPIO} --quiet -pdm -L ${MAIADIR}/maia/scripts
	@@cd ${WRKSRC}/templates && ${FIND} . | ${CPIO} --quiet -pdm -L ${MAIADIR}/maia/templates

.for i in maiad
	@@${INSTALL_SCRIPT} ${WRKSRC}/${i} ${PREFIX}/sbin
.endfor
	@@${INSTALL_SCRIPT} -m 640 ${WRKSRC}/maiad.conf.dist ${PREFIX}/etc/maiad.conf.dist
	@@${INSTALL_SCRIPT} -m 640 ${WRKSRC}/maia.conf.dist ${PREFIX}/etc/maia.conf.dist
#
#  This can contain sensitive information, e.g. SQL passwords, so it should be handled
#  with care.
#
.if !exists(${PREFIX}/www/${PORTNAME}/config.php)
	@@${INSTALL} -o ${WWWOWN} -g ${WWWGRP} -m 640 \
		${WRKSRC}/php/config.php.dist \
		${PREFIX}/www/${PORTNAME}/config.php
.endif
.if !defined(NOPORTDOCS)
	@@${MKDIR} ${DOCSDIR}
.for i in ${DOCS}
	@@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

post-install:
.for maiaconf in maia maiad
	@@if [ ! -f ${PREFIX}/etc/${maiaconf}.conf ]; then \
		${CP} -p ${PREFIX}/etc/${maiaconf}.conf.dist \
		${PREFIX}/etc/${maiaconf}.conf ; \
	fi
	@@${CHOWN} ${USERS}:${GROUPS} ${PREFIX}/etc/${maiaconf}.conf \
		${PREFIX}/etc/${maiaconf}.conf.dist
.endfor
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
	@@${CHOWN} -R ${USERS}:${GROUPS} ${MAIADIR}/
	@@${ECHO_CMD} '@@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST}
	@@${ECHO_CMD} '@@exec ${CHOWN} -R ${USERS}:${GROUPS} ${MAIADIR}' >> ${TMPPLIST}
	@@${LN} -s ${PREFIX}/share/smarty ${PREFIX}/www/${PORTNAME}/libs/Smarty
	@@${CAT} ${PKGMESSAGE}

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


1.15
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/security/maia/Makefile 304930 2012-09-26 21:27:31Z glarkin $
d34 1
a34 1
USE_PERL5_RUN=	5.8.2+
@


1.14
log
@SVN rev 304930 on 2012-09-26 21:27:31Z by glarkin

- Chase www/smarty -> www/smarty2 rename
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.13
log
@SVN rev 302724 on 2012-08-18 14:29:08Z by ohauer

- remove www/apache20 and devel/apr0
- s/USE_APACHE= 20+/USE_APACHE= 22+/
- unify s/YES/yes/
- cleanup APACHE_VERSION <= 22 usage
- add entry to MOVED

with hat apache@@
@
text
@d10 1
a10 1
PORTREVISION=	2
d130 1
a130 1
		${LOCALBASE}/share/smarty/Smarty.class.php:${PORTSDIR}/www/smarty
@


1.12
log
@- Remove SITE_PERL from *_DEPENDS

Approved by: portmgr@@ (bapt@@)
@
text
@d97 1
a97 1
USE_APACHE=	20+
@


1.11
log
@- Unbreak after php5 (5.4) upgrade.  sqlite deprecated. use sqlite3
- Bump PORTREVISION

PR:		ports/168345
Reported by:	Justin <freebsd.users@@gmail.com>
Submitted by:	"Janky Jay, III" <ek@@purplehat.org> (maintainer)
@
text
@d134 1
a134 1
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
d142 1
a142 1
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
d162 1
a162 1
RUN_DEPENDS+=	${SITE_PERL}/Mail/SpamAssassin/Plugin/FuzzyOcr.pm:${PORTSDIR}/mail/p5-FuzzyOcr-devel
d170 1
a170 1
RUN_DEPENDS+=	${SITE_PERL}/Mail/SpamAssassin.pm:${PORTSDIR}/mail/p5-Mail-SpamAssassin
d182 1
a182 1
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB
d190 3
a192 3
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Crypt/Blowfish.pm:${PORTSDIR}/security/p5-Crypt-Blowfish \
		${SITE_PERL}/${PERL_ARCH}/Crypt/OpenSSL/RSA.pm:${PORTSDIR}/security/p5-Crypt-OpenSSL-RSA \
		${SITE_PERL}/Crypt/CBC.pm:${PORTSDIR}/security/p5-Crypt-CBC
d196 1
a196 1
RUN_DEPENDS+=	${SITE_PERL}/IP/Country.pm:${PORTSDIR}/net/p5-IP-Country
d200 1
a200 1
RUN_DEPENDS+=	${SITE_PERL}/Mail/DomainKeys.pm:${PORTSDIR}/mail/p5-Mail-DomainKeys
d204 1
a204 1
RUN_DEPENDS+=	${SITE_PERL}/Mail/SPF.pm:${PORTSDIR}/mail/p5-Mail-SPF
d208 1
a208 1
RUN_DEPENDS+=	${SITE_PERL}/Mail/DKIM.pm:${PORTSDIR}/mail/p5-Mail-DKIM
@


1.10
log
@- change USE_APACHE 1.3/2.0 to 13/20

to prepare enforcement in Mk/bsd.apache.mk
@
text
@d10 1
a10 1
PORTREVISION=	1
d103 1
a103 1
		sqlite tokenizer xml wddx xmlreader xmlwriter xmlrpc
@


1.9
log
@- Add missing dependency
- Chase distfile change
- Correct SPF option, add option for DKIM plugin

PR:		ports/160379
Submitted by:	Janky Jay III <ek@@purplehat.org> (maintainer)
@
text
@d97 1
a97 1
USE_APACHE=	2.0+
@


1.8
log
@- Update to latest SVN
- While here, fix perl depends to use packages
- Use USERS and GROUPS
- Add some more OPTIONS
- Rename rc script to maiad

PR:		ports/159949
Submitted by:	Janky Jay III <ek@@purplehat.org> (maintainer)
@
text
@d10 1
d22 1
d64 2
a65 1
		SPFQUERY	"SpamAssassin SPF Query plugin"	on \
d203 1
a203 1
.if defined(WITH_SPFQUERY)
d207 4
d282 7
a288 2
.for f in maiad.conf.dist maiad
	@@${REINPLACE_CMD} "s@@'zoo'\]@@['zoo','unzoo'] ]@@" ${WRKSRC}/${f}
d290 5
a294 6
.for i in maiad.conf.dist maiad
	@@${REINPLACE_CMD} -e "s|$daemon_user  = \'amavis\';|$daemon_user  = \'${USERS}\';|" \
	    -e "s|$daemon_group = \'amavis\';|$daemon_group = \'${GROUPS}\';|" \
	    -e 's|$$log_level = 0;|$$log_level = 1;|' \
	    -e 's|/etc/maiad.conf|${PREFIX}/etc/maiad.conf|' \
	    -e "s|/var/virusmails|${MAIAQUARANTINE}|" ${WRKSRC}/${i}
d296 12
a307 3
.for f in maiad maiad.conf.dist maia.conf.dist scripts/send-quarantine-digests.pl \
	scripts/process-quarantine.pl scripts/load-sa-rules.pl
		@@${REINPLACE_CMD} "s|/var/maiad|${MAIADIR}|" ${WRKSRC}/${f}
d309 4
a312 5
.for i in maia.conf.dist scripts/expire-quarantine-cache.pl scripts/stats-snapshot.pl \
	scripts/maiadbtool.pl scripts/configtest.pl scripts/send-quarantine-reminders.pl \
	scripts/send-quarantine-digests.pl scripts/process-quarantine.pl \
	scripts/load-sa-rules.pl
		@@${REINPLACE_CMD} "s|/etc/maia.conf|${PREFIX}/etc/maia.conf|" ${WRKSRC}/${i}
d314 1
a316 1
	@@${FIND} -E ${WRKSRC} -iregex '.*(bak|~)$$' -delete
d352 2
@


1.7
log
@- Chase security/libksba shlib version bump

Requested by:	kwm
Pointyhat to:	glarkin
@
text
@d1 1
a1 1
# New ports collection makefile for:    maia
a6 1
# Based on amavisd-new ports makefile.
d9 1
a9 2
PORTVERSION=	1.0.2a
PORTREVISION=	4
d16 3
a18 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 \
d20 7
a26 5
		${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
		${SITE_PERL}/IO/Wrap.pm:${PORTSDIR}/devel/p5-IO-stringy \
		${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-Socket-INET6 \
		${SITE_PERL}/${PERL_ARCH}/Data/UUID.pm:${PORTSDIR}/devel/p5-Data-UUID \
		${SITE_PERL}/${PERL_ARCH}/Template.pm:${PORTSDIR}/www/p5-Template-Toolkit \
d29 3
a32 1

d35 1
a35 1
DOCS=	LICENSE README amavisd.conf.dist maia-mysql.sql maia-pgsql.sql maia.conf.dist
d37 18
a54 8
MAIAUSER?=	vscan
MAIAGROUP?=	vscan
MAIADIR?=	/var/amavisd
MAIAQUARANTINE?=	/var/amavisd/virusmails

OPTIONS=	BDB	"Use BerkeleyDB"	on \
		MYSQL	"Use MySQL"		on \
		PGSQL	"Use PgSQL"		off \
d56 2
d59 1
a59 1
		CRYPT	"Encryption support"	on \
d75 1
a75 1
		LZOP	"LZOP support with archivers/lzop"	on \
d78 1
a78 1
		TNEF	"Add external tnef decoder converters/tnef"	off
d81 2
a82 3

SUB_LIST+=	MAIAUSER=${MAIAUSER} \
		MAIAGROUP=${MAIAGROUP} \
d85 27
d115 2
a116 2
.if ${PERL_LEVEL} < 500903
RUN_DEPENDS+=	p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
d119 9
a127 4
USE_RC_SUBR+=	maia.sh

.if defined(WITH_BDB)
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB
d134 4
d142 24
d170 12
d183 1
a183 1
RUN_DEPENDS+=	${LOCALBASE}/bin/altermime:${PORTSDIR}/mail/altermime
d201 1
a201 1
RUN_DEPENDS+=	${SITE_PERL}/Mail/SPF/Query.pm:${PORTSDIR}/mail/p5-Mail-SPF-Query
a211 1

d214 1
a214 1
RUN_DEPENDS+=	${LOCALBASE}/bin/rar:${PORTSDIR}/archivers/rar
d218 1
a218 1
RUN_DEPENDS+=	${LOCALBASE}/bin/unrar:${PORTSDIR}/archivers/unrar
d222 1
a222 1
RUN_DEPENDS+=	${LOCALBASE}/bin/arj:${PORTSDIR}/archivers/arj
d226 1
a226 1
RUN_DEPENDS+=	${LOCALBASE}/bin/unarj:${PORTSDIR}/archivers/unarj
d230 1
a230 1
RUN_DEPENDS+=	${LOCALBASE}/bin/lha:${PORTSDIR}/archivers/lha
d234 1
a234 1
RUN_DEPENDS+=	${LOCALBASE}/bin/arc:${PORTSDIR}/archivers/arc
d238 1
a238 1
RUN_DEPENDS+=	${LOCALBASE}/bin/nomarch:${PORTSDIR}/archivers/nomarch
d242 1
a242 1
RUN_DEPENDS+=	${LOCALBASE}/bin/cabextract:${PORTSDIR}/archivers/cabextract
d246 1
a246 1
RUN_DEPENDS+=	${LOCALBASE}/bin/rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio
d259 1
a259 1
RUN_DEPENDS+=	${LOCALBASE}/bin/lzop:${PORTSDIR}/archivers/lzop
d263 1
a263 1
RUN_DEPENDS+=	${LOCALBASE}/bin/unfreeze:${PORTSDIR}/archivers/freeze
d267 1
a267 1
RUN_DEPENDS+=	${LOCALBASE}/bin/7zr:${PORTSDIR}/archivers/p7zip
d271 1
a271 1
RUN_DEPENDS+=	${LOCALBASE}/bin/tnef:${PORTSDIR}/converters/tnef
d275 1
a275 1
.for f in amavisd.conf.dist amavisd-maia
d278 6
a283 6
.for i in amavisd.conf.dist amavisd-maia
	@@${REINPLACE_CMD} -e "s|$daemon_user  = \'amavis\';|$daemon_user  = \'${MAIAUSER}\';|" \
		-e "s|$daemon_group = \'amavis\';|$daemon_group = \'${MAIAGROUP}\';|" \
		-e 's|$$log_level = 0;|$$log_level = 1;|' \
		-e 's|/etc/amavisd.conf|${PREFIX}/etc/amavisd.conf|' \
		-e "s|/var/virusmails|${MAIAQUARANTINE}|" ${WRKSRC}/${i}
d285 1
a285 1
.for f in amavisd-maia amavisd.conf.dist maia.conf.dist scripts/send-quarantine-digests.pl \
d287 1
a287 1
		@@${REINPLACE_CMD} "s|/var/amavisd|${MAIADIR}|" ${WRKSRC}/${f}
d292 1
a292 1
	scripts/load-sa-rules.pl scripts/process-quarantine-sub.pl
d297 1
a297 1
	${FIND} ${WRKSRC} -name '*.bak' -delete
d302 3
a304 3
	cd ${WRKSRC}/php && ${FIND} . | ${CPIO} --quiet -pdm -L ${WWWDIR}
	cd ${WRKSRC}/scripts && ${FIND} . | ${CPIO} --quiet -pdm -L ${MAIADIR}/maia/scripts
	cd ${WRKSRC}/templates && ${FIND} . | ${CPIO} --quiet -pdm -L ${MAIADIR}/maia/templates
d306 2
a307 2
.for i in amavisd-maia
	${INSTALL_SCRIPT} ${WRKSRC}/${i} ${PREFIX}/sbin
d309 2
a310 2
	${INSTALL_SCRIPT} -m 640 ${WRKSRC}/amavisd.conf.dist ${PREFIX}/etc/amavisd.conf.dist
	${INSTALL_SCRIPT} -m 640 ${WRKSRC}/maia.conf.dist ${PREFIX}/etc/maia.conf.dist
d316 2
a317 1
	${INSTALL} -o ${WWWOWN} -g ${WWWGRP} -m 640 ${WRKSRC}/php/config.php.dist \
d323 1
a323 1
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
d326 1
d328 6
a333 4
	@@if [ ! -f ${PREFIX}/etc/amavisd.conf ]; then \
	${CP} -p ${PREFIX}/etc/amavisd.conf.dist ${PREFIX}/etc/amavisd.conf ; fi
	@@if [ ! -f ${PREFIX}/etc/maia.conf ]; then \
	${CP} -p ${PREFIX}/etc/maia.conf.dist ${PREFIX}/etc/maia.conf ; fi
d335 1
a335 1
	@@${CHOWN} -R ${MAIAUSER}:${MAIAGROUP} ${MAIADIR}/
d337 2
a338 2
	@@${ECHO_CMD} '@@exec ${CHOWN} -R ${MAIAUSER}:${MAIAGROUP} ${MAIADIR}' >> ${TMPPLIST}
	${LN} -s ${PREFIX}/share/smarty ${PREFIX}/www/${PORTNAME}/libs/Smarty
@


1.6
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=	3
@


1.5
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
@a21 1
		p5-Compress-Zlib>=2.004:${PORTSDIR}/archivers/p5-Compress-Zlib \
d75 4
@


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

Approved by:	portmgr (itetcu)
@
text
@d25 1
a25 1
		${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-INET6 \
@


1.3
log
@- Install PORTDOCS into the proper location
- Cleanup unnecessary files being installed

PR:		ports/129552
Submitted by:	Janky@@test.purplehat.org (maintainer)
@
text
@d11 1
a11 1
PORTREVISION=	2
a19 1
		${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
a23 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.2
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
@d11 1
a11 1
PORTREVISION=	1
d37 2
d213 1
d225 2
a226 2
	${INSTALL_SCRIPT} -m 640 ${WRKSRC}/amavisd.conf.dist ${PREFIX}/etc/amavisd.conf-dist
	${INSTALL_SCRIPT} -m 640 ${WRKSRC}/maia.conf.dist ${PREFIX}/etc/maia.conf-dist
d235 6
a240 1

a241 3
	@@cd ${FILESDIR} && ${CP} .placeholder ${WWWDIR}/themes/ocean_surf/compiled/ \
	&& ${CP} .placeholder ${WWWDIR}/themes/dgm/compiled/ \
	&& ${CP} .placeholder ${WWWDIR}/themes/desert_sand/compiled/
d243 1
a243 1
        ${CP} -p ${PREFIX}/etc/amavisd.conf-dist ${PREFIX}/etc/amavisd.conf ; fi
d245 1
a245 1
        ${CP} -p ${PREFIX}/etc/maia.conf-dist ${PREFIX}/etc/maia.conf ; fi
@


1.1
log
@- New Port maia-1.0.2a

- Maia Mailguard is a web-based interface and management system based on
  the popular amavisd-new e-mail scanner and SpamAssassin. Written in Perl
  and PHP, Maia Mailguard gives end-users control over how their mail is
  processed by virus scanners and spam filters, while giving mail administrators
  the power to configure site-wide defaults and limits.

	WWW: http://www.maiamailguard.com/

PR:		ports/119325
Submitted by:	Janky Jay <ek@@purplehat.org> (maintainer)
Approved by:	linimon (mentor)
@
text
@d11 1
@

