security/maia: 1.0.3 -> 1.0.4

TODO: find a suitable changelog

PR:		198042
Submitted by:	ek@purplehat.org (maintainer)
This commit is contained in:
Kurt Jaeger 2015-03-29 08:41:53 +00:00
parent f16c61641e
commit 49224a9b1e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=382571
4 changed files with 929 additions and 976 deletions

View file

@ -2,8 +2,7 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= maia PORTNAME= maia
DISTVERSION= 1.0.3-${SVNREVISION} DISTVERSION= 1.0.4
PORTREVISION= 5
CATEGORIES= security CATEGORIES= security
MASTER_SITES= http://www.purplehat.org/downloads/maia/ MASTER_SITES= http://www.purplehat.org/downloads/maia/
@ -24,27 +23,27 @@ RUN_DEPENDS= p5-Unix-Syslog>=0.94:${PORTSDIR}/sysutils/p5-Unix-Syslog \
p5-Template-Toolkit>=2.13:${PORTSDIR}/www/p5-Template-Toolkit \ p5-Template-Toolkit>=2.13:${PORTSDIR}/www/p5-Template-Toolkit \
p5-Net-Server>=0.93:${PORTSDIR}/net/p5-Net-Server p5-Net-Server>=0.93:${PORTSDIR}/net/p5-Net-Server
# SVN source: https://www.maiamailguard.com/svn/branches/1.0 WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
SVNREVISION= r1575 USES= perl5 shebangfix
WRKSRC= ${WRKDIR}/${PORTNAME}-1.0-${SVNREVISION}
USES= perl5
USE_PERL5= run USE_PERL5= run
NO_BUILD= yes NO_BUILD= yes
DOCS= LICENSE README maiad.conf.dist maia-mysql.sql maia-pgsql.sql maia.conf.dist DOCS= LICENSE.txt README.md maiad.conf.dist maia-mysql.sql maia-pgsql.sql maia.conf.dist
USERS= vscan USERS= vscan
GROUPS= vscan GROUPS= vscan
MAIAHOME= /var/maiad MAIAHOME= /var/maiad
MAIAQUARANTINE?= /var/maiad/virusmails MAIAQUARANTINE?= /var/maiad/virusmails
PEAR_DIR?= ${LOCALBASE}/share/pear PEAR_DIR?= ${LOCALBASE}/share/pear
PLIST_SUB+= USERS="${USERS}" GROUPS="${GROUPS}" WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" PLIST_SUB+= USERS="${USERS}" GROUPS="${GROUPS}" WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
OPTIONS_DEFINE= APACHE LIGHTTPD WEBHOST MYSQL MYSQLSERVER PGSQL PGSQLSERVER DOVECOT \ OPTIONS_DEFINE= APACHE LIGHTTPD WEBHOST MYSQL MYSQLSERVER PGSQL PGSQLSERVER DOVECOT DOVECOT2 \
POSTFIX PFA FUZZYOCR CLAMAV SPAMASSASSIN BDB ALTERMIME CRYPT \ POSTFIX PFA FUZZYOCR CLAMAV SPAMASSASSIN BDB ALTERMIME CRYPT \
IPCOUNTRY DOMAINKEYS SPF DKIM FILE RAR ARJ UNARJ LHA ARC NOMARCH CAB \ IPCOUNTRY DOMAINKEYS SPF DKIM FILE RAR ARJ UNARJ LHA ARC NOMARCH CAB \
RPM ZOO UNZOO LZOP FREEZE P7ZIP TNEF DOCS RPM ZOO UNZOO LZOP FREEZE P7ZIP TNEF DOCS
OPTIONS_DEFAULT= MYSQL MYSQLSERVER DOVECOT POSTFIX CLAMAV SPAMASSASSIN BDB IPCOUNTRY \
OPTIONS_DEFAULT= MYSQL CLAMAV SPAMASSASSIN BDB IPCOUNTRY \
DOMAINKEYS SPF DKIM FILE UNRAR ARJ LHA ARC CAB RPM ZOO FREEZE P7ZIP DOMAINKEYS SPF DKIM FILE UNRAR ARJ LHA ARC CAB RPM ZOO FREEZE P7ZIP
APACHE_DESC= Use Apache web server APACHE_DESC= Use Apache web server
LIGHTTPD_DESC= Use LighTTPD web server LIGHTTPD_DESC= Use LighTTPD web server
@ -53,7 +52,8 @@ MYSQL_DESC= Use MySQL datebase
MYSQLSERVER_DESC= Install MySQL Server MYSQLSERVER_DESC= Install MySQL Server
PGSQL_DESC= Use PgSQL database PGSQL_DESC= Use PgSQL database
PGSQLSERVER_DESC= Install PGSQL Server PGSQLSERVER_DESC= Install PGSQL Server
DOVECOT_DESC= Use Dovecot IMAP/POP3 DOVECOT_DESC= Use Dovecot 1.x IMAP/POP3
DOVECOT2_DESC= Use Dovecot 2.x IMAP/POP3
POSTFIX_DESC= Use Postfix MTA POSTFIX_DESC= Use Postfix MTA
PFA_DESC= Use Postfixadmin PFA_DESC= Use Postfixadmin
FUZZYOCR_DESC= Use FuzzyOcr FUZZYOCR_DESC= Use FuzzyOcr
@ -84,6 +84,7 @@ P7ZIP_DESC= P7ZIP support with archivers/p7zip
TNEF_DESC= Add external tnef decoder TNEF_DESC= Add external tnef decoder
SUB_FILES= maiad pkg-message SUB_FILES= maiad pkg-message
SHEBANG_FILES= maiad
SUB_LIST+= USERS=${USERS} \ SUB_LIST+= USERS=${USERS} \
GROUPS=${GROUPS} \ GROUPS=${GROUPS} \
MAIAHOME=${MAIAHOME} \ MAIAHOME=${MAIAHOME} \
@ -105,6 +106,7 @@ USE_APACHE_RUN= 22+
USE_PHP= bcmath ctype dom gettext hash iconv imap json mbstring \ USE_PHP= bcmath ctype dom gettext hash iconv imap json mbstring \
mcrypt pdo pdo_sqlite posix session simplexml sockets \ mcrypt pdo pdo_sqlite posix session simplexml sockets \
sqlite3 tokenizer xml wddx xmlreader xmlwriter xmlrpc sqlite3 tokenizer xml wddx xmlreader xmlwriter xmlrpc
RUN_DEPENDS+= ${PEAR_DIR}/Mail/mime.php:${PORTSDIR}/mail/pear-Mail_Mime \ RUN_DEPENDS+= ${PEAR_DIR}/Mail/mime.php:${PORTSDIR}/mail/pear-Mail_Mime \
${PEAR_DIR}/Mail/mimeDecode.php:${PORTSDIR}/mail/pear-Mail_mimeDecode \ ${PEAR_DIR}/Mail/mimeDecode.php:${PORTSDIR}/mail/pear-Mail_mimeDecode \
${PEAR_DIR}/DB.php:${PORTSDIR}/databases/pear-DB \ ${PEAR_DIR}/DB.php:${PORTSDIR}/databases/pear-DB \
@ -121,7 +123,10 @@ RUN_DEPENDS+= ${PEAR_DIR}/Mail/mime.php:${PORTSDIR}/mail/pear-Mail_Mime \
${PEAR_DIR}/Image/Graph.php:${PORTSDIR}/graphics/pear-Image_Graph \ ${PEAR_DIR}/Image/Graph.php:${PORTSDIR}/graphics/pear-Image_Graph \
${PEAR_DIR}/Numbers/Roman.php:${PORTSDIR}/textproc/pear-Numbers_Roman \ ${PEAR_DIR}/Numbers/Roman.php:${PORTSDIR}/textproc/pear-Numbers_Roman \
${PEAR_DIR}/Numbers/Words.php:${PORTSDIR}/textproc/pear-Numbers_Words \ ${PEAR_DIR}/Numbers/Words.php:${PORTSDIR}/textproc/pear-Numbers_Words \
${LOCALBASE}/share/smarty/Smarty.class.php:${PORTSDIR}/www/smarty2 ${PEAR_DIR}/MDB2.php:${PORTSDIR}/databases/pear-MDB2 \
${PEAR_DIR}/MDB2/Driver/mysql.php:${PORTSDIR}/databases/pear-MDB2_Driver_mysql \
${LOCALBASE}/share/smarty/Smarty.class.php:${PORTSDIR}/www/smarty2 \
${LOCALBASE}/lib/php/${PHP_EXT_DIR}/scrypt.so:${PORTSDIR}/security/pecl-scrypt
PLIST_SUB+= WEBHOST="" PLIST_SUB+= WEBHOST=""
.else .else
PLIST_SUB+= WEBHOST="@comment " PLIST_SUB+= WEBHOST="@comment "
@ -129,11 +134,15 @@ PLIST_SUB+= WEBHOST="@comment "
.if ${PORT_OPTIONS:MMYSQL} .if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes USE_MYSQL= yes
.endif
.if ${PORT_OPTIONS:MMYSQL} && ${PORT_OPTIONS:MWEBHOST}
USE_PHP+= mysql mysqli USE_PHP+= mysql mysqli
.endif .endif
.if ${PORT_OPTIONS:MPGSQL} .if ${PORT_OPTIONS:MPGSQL}
USES+= pgsql USES+= pgsql
.endif
.if ${PORT_OPTIONS:MPGSQL} && ${PORT_OPTIONS:MWEBHOST}
USE_PHP+= pgsql USE_PHP+= pgsql
.endif .endif
@ -158,10 +167,18 @@ USES:= ${USES:Npgsql} pgsql
WANT_PGSQL= server WANT_PGSQL= server
.endif .endif
.if ${PORT_OPTIONS:MDOVECOT} && ${PORT_OPTIONS:MDOVECOT2}
BROKEN=Please run 'make config' again and choose only one version of Dovecot. Both version 1.x and 2.x cannot co-exist.
.endif
.if ${PORT_OPTIONS:MDOVECOT} .if ${PORT_OPTIONS:MDOVECOT}
RUN_DEPENDS+= dovecot:${PORTSDIR}/mail/dovecot RUN_DEPENDS+= dovecot:${PORTSDIR}/mail/dovecot
.endif .endif
.if ${PORT_OPTIONS:MDOVECOT2}
RUN_DEPENDS+= dovecot:${PORTSDIR}/mail/dovecot2
.endif
.if ${PORT_OPTIONS:MPOSTFIX} .if ${PORT_OPTIONS:MPOSTFIX}
RUN_DEPENDS+= postfix:${PORTSDIR}/mail/postfix RUN_DEPENDS+= postfix:${PORTSDIR}/mail/postfix
.endif .endif
@ -286,7 +303,7 @@ RUN_DEPENDS+= tnef:${PORTSDIR}/converters/tnef
post-patch: post-patch:
.for m in scripts/configtest.pl scripts/expire-quarantine-cache.pl \ .for m in scripts/configtest.pl scripts/expire-quarantine-cache.pl \
scripts/generate-key.pl scripts/load-sa-rules.pl scripts/maiadbtool.pl \ scripts/load-sa-rules.pl scripts/maiadbtool.pl \
scripts/process-quarantine.pl scripts/resend.pl scripts/send-quarantine-digests.pl \ scripts/process-quarantine.pl scripts/resend.pl scripts/send-quarantine-digests.pl \
scripts/send-quarantine-reminders.pl scripts/stats-snapshot.pl scripts/send-quarantine-reminders.pl scripts/stats-snapshot.pl
@${REINPLACE_CMD} -e "s|/etc/maia/maia.conf|${ETCDIR}/maia.conf|" \ @${REINPLACE_CMD} -e "s|/etc/maia/maia.conf|${ETCDIR}/maia.conf|" \
@ -299,13 +316,14 @@ post-patch:
@${REINPLACE_CMD} -e "s|daemon_user = 'maia'|daemon_user = '${USERS}'|" \ @${REINPLACE_CMD} -e "s|daemon_user = 'maia'|daemon_user = '${USERS}'|" \
-e "s|daemon_group = 'maia'|daemon_group = '${GROUPS}'|" \ -e "s|daemon_group = 'maia'|daemon_group = '${GROUPS}'|" \
-e "s|/var/lib/maia|${MAIAHOME}|" ${WRKSRC}/maiad.conf.dist -e "s|/var/lib/maia|${MAIAHOME}|" \
-e "s|DO_SYSLOG = 0|DO_SYSLOG = 1|" ${WRKSRC}/maiad.conf.dist
@${REINPLACE_CMD} -e "s|/etc/maia.conf|${ETCDIR}/maia.conf|" \ @${REINPLACE_CMD} -e "s|/etc/maia.conf|${ETCDIR}/maia.conf|" \
-e "s|username = 'maia'|username = '${USERS}'|" \ -e "s|username = 'maia'|username = '${USERS}'|" \
-e "s|/var/lib/maia|${DATADIR}|" \ -e "s|/var/lib/maia|${DATADIR}|" \
-e "s|/usr/bin/sa-learn|${PREFIX}/bin/sa-learn|" \ -e "s|/usr/bin/sa-learn|${PREFIX}/bin/sa-learn|" \
-e "s|local_cf_dir = undef|local_cf_dir = '${ETCDIR}/mail/spamassassin'|" \ -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|system_rules_dir = undef|system_rules_dir = '/var/db/spamassassin'|" \
-e "s|user_rules_dir = undef|user_rules_dir = '${MAIAHOME}/.spamassassin'|" \ -e "s|user_rules_dir = undef|user_rules_dir = '${MAIAHOME}/.spamassassin'|" \
-e "s|template_dir = '/etc/maia/templates/'|template_dir = '${ETCDIR}/templates/'|" \ -e "s|template_dir = '/etc/maia/templates/'|template_dir = '${ETCDIR}/templates/'|" \
@ -318,12 +336,10 @@ post-patch:
@${FIND} -E ${WRKSRC} -iregex '.*(bak|~)$$' -delete @${FIND} -E ${WRKSRC} -iregex '.*(bak|~)$$' -delete
do-install: do-install:
.if ${PORT_OPTIONS:MWEBHOST} ${MKDIR} ${STAGEDIR}${WWWDIR}
${MKDIR} -p ${STAGEDIR}${WWWDIR}
@cd ${WRKSRC}/php && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} @cd ${WRKSRC}/php && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}/themes/*/compiled ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}/
${LN} -s ${PREFIX}/share/smarty ${STAGEDIR}${WWWDIR}/libs/Smarty ${LN} -s ${PREFIX}/share/smarty ${STAGEDIR}${WWWDIR}/libs/Smarty
.endif
${MKDIR} -p ${STAGEDIR}${DATADIR} ${MKDIR} -p ${STAGEDIR}${DATADIR}
@cd ${WRKSRC}/scripts && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/scripts @cd ${WRKSRC}/scripts && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/scripts
${MKDIR} -p ${STAGEDIR}${ETCDIR}/templates ${MKDIR} -p ${STAGEDIR}${ETCDIR}/templates
@ -331,8 +347,8 @@ do-install:
${INSTALL} -m 644 ${WRKSRC}/templates/${i}.dist ${STAGEDIR}${ETCDIR}/templates ${INSTALL} -m 644 ${WRKSRC}/templates/${i}.dist ${STAGEDIR}${ETCDIR}/templates
.endfor .endfor
${INSTALL_SCRIPT} ${WRKSRC}/maiad ${STAGEDIR}${PREFIX}/sbin ${INSTALL_SCRIPT} ${WRKSRC}/maiad ${STAGEDIR}${PREFIX}/sbin
${INSTALL} -m 644 ${WRKSRC}/maiad.conf.dist ${STAGEDIR}${ETCDIR}/maiad.conf.dist ${INSTALL} -m 640 ${WRKSRC}/maiad.conf.dist ${STAGEDIR}${ETCDIR}/maiad.conf.dist
${INSTALL} -m 644 ${WRKSRC}/maia.conf.dist ${STAGEDIR}${ETCDIR}/maia.conf.dist ${INSTALL} -m 640 ${WRKSRC}/maia.conf.dist ${STAGEDIR}${ETCDIR}/maia.conf.dist
.if ${PORT_OPTIONS:MDOCS} .if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR} ${MKDIR} ${STAGEDIR}${DOCSDIR}
@ -341,7 +357,4 @@ do-install:
.endfor .endfor
.endif .endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk> .include <bsd.port.post.mk>

View file

@ -1,2 +1,2 @@
SHA256 (maia-1.0.3-r1575.tar.gz) = 96c910a2e2cdf296dfbf4c8505f36d1f596ac28bbf8e0aad04a0ee43f6342301 SHA256 (maia-1.0.4.tar.gz) = fdb971d916979172019c5ad5802a45d94980e9a847aede75d6249fac52d78748
SIZE (maia-1.0.3-r1575.tar.gz) = 2273669 SIZE (maia-1.0.4.tar.gz) = 4514924

View file

@ -12,7 +12,7 @@
maiad_enable="YES" maiad_enable="YES"
Configuration templates are available in %%PREFIX%%/etc Configuration templates are available in %%ETCDIR%%
as maia.conf.dist and maiad.conf.dist. as maia.conf.dist and maiad.conf.dist.
******************************************************************* *******************************************************************

File diff suppressed because it is too large Load diff