diff options
-rw-r--r-- | security/maia/Makefile | 46 | ||||
-rw-r--r-- | security/maia/distinfo | 5 | ||||
-rw-r--r-- | security/maia/files/pkg-message.in | 5 | ||||
-rw-r--r-- | security/maia/pkg-plist | 37 |
4 files changed, 69 insertions, 24 deletions
diff --git a/security/maia/Makefile b/security/maia/Makefile index 9f8dc214e864..a1499682b13f 100644 --- a/security/maia/Makefile +++ b/security/maia/Makefile @@ -3,13 +3,16 @@ PORTNAME= maia DISTVERSION= 1.0.4 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= security -MASTER_SITES= http://www.purplehat.org/downloads/maia/ +DISTNAME= maia_mailguard MAINTAINER= ek@purplehat.org COMMENT= Web-based management system based on amavisd-new and SpamAssassin +LICENSE=GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + RUN_DEPENDS= p5-Unix-Syslog>=0.94:sysutils/p5-Unix-Syslog \ p5-MIME-Tools>=4.116:mail/p5-MIME-Tools \ p5-Convert-TNEF>=0.08:converters/p5-Convert-TNEF \ @@ -24,29 +27,32 @@ RUN_DEPENDS= p5-Unix-Syslog>=0.94:sysutils/p5-Unix-Syslog \ p5-Template-Toolkit>=2.13:www/p5-Template-Toolkit \ p5-Net-Server>=0.93:net/p5-Net-Server -WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} USES= perl5 shebangfix + +USE_GITHUB= yes +GH_ACCOUNT= technion +GH_PROJECT= maia_mailguard +GH_TAGNAME= 09eb7e5 USE_PERL5= run NO_BUILD= yes - +WRKSRC= ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME} DOCS= LICENSE.txt README.md maiad.conf.dist maia-mysql.sql maia-pgsql.sql maia.conf.dist - USERS= vscan GROUPS= vscan MAIAHOME= /var/maiad MAIAQUARANTINE?= /var/maiad/virusmails - PEAR_DIR?= ${LOCALBASE}/share/pear PLIST_SUB+= USERS="${USERS}" GROUPS="${GROUPS}" WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" OPTIONS_DEFINE= APACHE LIGHTTPD WEBHOST MYSQL MYSQLSERVER PGSQL PGSQLSERVER DOVECOT2 \ - POSTFIX PFA FUZZYOCR CLAMAV SPAMASSASSIN BDB ALTERMIME CRYPT \ - IPCOUNTRY DOMAINKEYS SPF DKIM FILE RAR ARJ UNARJ LHA ARC NOMARCH CAB \ + POSTFIX PFA CLAMAV SPAMASSASSIN BDB ALTERMIME CRYPT \ + IPCOUNTRY DOMAINKEYS SPF DKIM FILE RAR UNRAR ARJ UNARJ LHA ARC NOMARCH CAB \ RPM ZOO UNZOO LZOP P7ZIP TNEF DOCS OPTIONS_DEFAULT= MYSQL CLAMAV SPAMASSASSIN BDB IPCOUNTRY \ DOMAINKEYS SPF DKIM FILE UNRAR ARJ LHA ARC CAB RPM \ ZOO P7ZIP + APACHE_DESC= Use Apache web server LIGHTTPD_DESC= Use LighTTPD web server WEBHOST_DESC= PHP, PEAR, etc... for Maia web interface @@ -57,7 +63,6 @@ PGSQLSERVER_DESC= Install PGSQL Server DOVECOT2_DESC= Use Dovecot 2.x IMAP/POP3 POSTFIX_DESC= Use Postfix MTA PFA_DESC= Use Postfixadmin -FUZZYOCR_DESC= Use FuzzyOcr CLAMAV_DESC= Use ClamAV anti-virus SPAMASSASSIN_DESC= Use SpamAssassin BDB_DESC= Use BerkeleyDB @@ -124,19 +129,19 @@ RUN_DEPENDS+= ${PEAR_DIR}/Mail/mime.php:mail/pear-Mail_Mime@${PHP_FLAVOR} \ ${PEAR_DIR}/Numbers/Roman.php:textproc/pear-Numbers_Roman@${PHP_FLAVOR} \ ${PEAR_DIR}/Numbers/Words.php:textproc/pear-Numbers_Words@${PHP_FLAVOR} \ ${PEAR_DIR}/MDB2.php:databases/pear-MDB2@${PHP_FLAVOR} \ - ${PEAR_DIR}/MDB2/Driver/mysql.php:databases/pear-MDB2_Driver_mysql@${PHP_FLAVOR} \ - ${LOCALBASE}/share/smarty/Smarty.class.php:www/smarty2@${PHP_FLAVOR} \ + ${PEAR_DIR}/MDB2/Driver/mysqli.php:databases/pear-MDB2_Driver_mysqli@${PHP_FLAVOR} \ + ${LOCALBASE}/share/smarty3-${PHP_FLAVOR}/Smarty.class.php:www/smarty3@${PHP_FLAVOR} \ ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/scrypt.so:security/pecl-scrypt@${PHP_FLAVOR} -PLIST_SUB+= WEBHOST="" +PLIST_SUB+= WEBHOST="" .else -PLIST_SUB+= WEBHOST="@comment " +PLIST_SUB+= WEBHOST="@comment " .endif .if ${PORT_OPTIONS:MMYSQL} USE_MYSQL= yes .endif .if ${PORT_OPTIONS:MMYSQL} && ${PORT_OPTIONS:MWEBHOST} -USE_PHP+= mysql mysqli +USE_PHP+= mysqli .endif .if ${PORT_OPTIONS:MPGSQL} @@ -179,10 +184,6 @@ RUN_DEPENDS+= postfix:mail/postfix RUN_DEPENDS+= ${LOCALBASE}/www/postfixadmin/config.inc.php:mail/postfixadmin .endif -.if ${PORT_OPTIONS:MFUZZYOCR} -RUN_DEPENDS+= p5-FuzzyOcr-devel>=0:mail/p5-FuzzyOcr-devel -.endif - .if ${PORT_OPTIONS:MCLAMAV} RUN_DEPENDS+= clamd:security/clamav .endif @@ -323,14 +324,15 @@ post-patch: -e "s@'zoo'\]@['zoo','unzoo'] ]@" ${WRKSRC}/maiad @${FIND} -E ${WRKSRC} -iregex '.*(bak|~)$$' -delete + @${FIND} -E ${WRKSRC} -iregex '.*(gitkeep|~)$$' -delete do-install: - ${MKDIR} ${STAGEDIR}${WWWDIR} + ${MKDIR} ${STAGEDIR}${WWWDIR} ${STAGEDIR}${WWWDIR}/web @cd ${WRKSRC}/php && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} - ${LN} -s ${PREFIX}/share/smarty ${STAGEDIR}${WWWDIR}/libs/Smarty - ${MKDIR} -p ${STAGEDIR}${DATADIR} + ${LN} -s ${PREFIX}/share/smarty3-${PHP_FLAVOR} ${STAGEDIR}${WWWDIR}/libs/Smarty + ${MKDIR} ${STAGEDIR}${DATADIR} @cd ${WRKSRC}/scripts && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/scripts - ${MKDIR} -p ${STAGEDIR}${ETCDIR}/templates + ${MKDIR} ${STAGEDIR}${ETCDIR}/templates .for i in digest.tpl newuser.tpl reminder.tpl ${INSTALL} -m 644 ${WRKSRC}/templates/${i}.dist ${STAGEDIR}${ETCDIR}/templates .endfor diff --git a/security/maia/distinfo b/security/maia/distinfo index 8295c5f1c263..1e54ce7f0834 100644 --- a/security/maia/distinfo +++ b/security/maia/distinfo @@ -1,2 +1,3 @@ -SHA256 (maia-1.0.4.tar.gz) = fdb971d916979172019c5ad5802a45d94980e9a847aede75d6249fac52d78748 -SIZE (maia-1.0.4.tar.gz) = 4514924 +TIMESTAMP = 1546121679 +SHA256 (maia_mailguard_GH0.tar.gz) = 15789ad4b7e00efdfe115bd7688e02d7b456c015ef4d061a2425ff8a1d4b818f +SIZE (maia_mailguard_GH0.tar.gz) = 2298436 diff --git a/security/maia/files/pkg-message.in b/security/maia/files/pkg-message.in index 98c72b94822b..7f94915a442b 100644 --- a/security/maia/files/pkg-message.in +++ b/security/maia/files/pkg-message.in @@ -16,3 +16,8 @@ as maia.conf.dist and maiad.conf.dist. ******************************************************************* + Please note that Maia Mailguard no longer supports "mysql" but has + moved forward to using "mysqli" instead. So, please check your + %%WWWDIR%%/config.php file and make any appropriate changes. +******************************************************************* + diff --git a/security/maia/pkg-plist b/security/maia/pkg-plist index a35ba60de590..f82341a228c9 100644 --- a/security/maia/pkg-plist +++ b/security/maia/pkg-plist @@ -358,6 +358,43 @@ sbin/maiad %%WWWDIR%%/locale/it/welcome.php %%WWWDIR%%/locale/it/xadminusers.php %%WWWDIR%%/locale/it/xlogin.php +%%WWWDIR%%/locale/ja/admindex.php +%%WWWDIR%%/locale/ja/admindomains.php +%%WWWDIR%%/locale/ja/adminhelp.php +%%WWWDIR%%/locale/ja/adminlanguages.php +%%WWWDIR%%/locale/ja/adminstats.php +%%WWWDIR%%/locale/ja/adminsystem.php +%%WWWDIR%%/locale/ja/adminthemes.php +%%WWWDIR%%/locale/ja/adminusers.php +%%WWWDIR%%/locale/ja/adminviruses.php +%%WWWDIR%%/locale/ja/auth.php +%%WWWDIR%%/locale/ja/confirmspam.php +%%WWWDIR%%/locale/ja/db.php +%%WWWDIR%%/locale/ja/deleteitem.php +%%WWWDIR%%/locale/ja/deliver.php +%%WWWDIR%%/locale/ja/display.php +%%WWWDIR%%/locale/ja/domainsettings.php +%%WWWDIR%%/locale/ja/errors.php +%%WWWDIR%%/locale/ja/falsenegative.php +%%WWWDIR%%/locale/ja/help.php +%%WWWDIR%%/locale/ja/internal-init.php +%%WWWDIR%%/locale/ja/listcache.php +%%WWWDIR%%/locale/ja/login.php +%%WWWDIR%%/locale/ja/logout.php +%%WWWDIR%%/locale/ja/mime.php +%%WWWDIR%%/locale/ja/quarantine.php +%%WWWDIR%%/locale/ja/quickstats.php +%%WWWDIR%%/locale/ja/reportspam.php +%%WWWDIR%%/locale/ja/rulestats.php +%%WWWDIR%%/locale/ja/settings.php +%%WWWDIR%%/locale/ja/smtp.php +%%WWWDIR%%/locale/ja/stats.php +%%WWWDIR%%/locale/ja/viewmail.php +%%WWWDIR%%/locale/ja/virusstats.php +%%WWWDIR%%/locale/ja/wblist.php +%%WWWDIR%%/locale/ja/welcome.php +%%WWWDIR%%/locale/ja/xadminusers.php +%%WWWDIR%%/locale/ja/xlogin.php %%WWWDIR%%/locale/nl/admindex.php %%WWWDIR%%/locale/nl/admindomains.php %%WWWDIR%%/locale/nl/adminhelp.php |