Lines 3-15
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= maia |
4 |
PORTNAME= maia |
5 |
DISTVERSION= 1.0.4 |
5 |
DISTVERSION= 1.0.4 |
6 |
PORTREVISION= 3 |
6 |
PORTREVISION= 4 |
7 |
CATEGORIES= security |
7 |
CATEGORIES= security |
8 |
MASTER_SITES= http://www.purplehat.org/downloads/maia/ |
8 |
DISTNAME= maia_mailguard |
9 |
|
9 |
|
10 |
MAINTAINER= ek@purplehat.org |
10 |
MAINTAINER= ek@purplehat.org |
11 |
COMMENT= Web-based management system based on amavisd-new and SpamAssassin |
11 |
COMMENT= Web-based management system based on amavisd-new and SpamAssassin |
12 |
|
12 |
|
|
|
13 |
LICENSE=GPLv3 |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
15 |
|
13 |
RUN_DEPENDS= p5-Unix-Syslog>=0.94:sysutils/p5-Unix-Syslog \ |
16 |
RUN_DEPENDS= p5-Unix-Syslog>=0.94:sysutils/p5-Unix-Syslog \ |
14 |
p5-MIME-Tools>=4.116:mail/p5-MIME-Tools \ |
17 |
p5-MIME-Tools>=4.116:mail/p5-MIME-Tools \ |
15 |
p5-Convert-TNEF>=0.08:converters/p5-Convert-TNEF \ |
18 |
p5-Convert-TNEF>=0.08:converters/p5-Convert-TNEF \ |
Lines 24-52
Link Here
|
24 |
p5-Template-Toolkit>=2.13:www/p5-Template-Toolkit \ |
27 |
p5-Template-Toolkit>=2.13:www/p5-Template-Toolkit \ |
25 |
p5-Net-Server>=0.93:net/p5-Net-Server |
28 |
p5-Net-Server>=0.93:net/p5-Net-Server |
26 |
|
29 |
|
27 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} |
|
|
28 |
USES= perl5 shebangfix |
30 |
USES= perl5 shebangfix |
|
|
31 |
|
32 |
USE_GITHUB= yes |
33 |
GH_ACCOUNT= technion |
34 |
GH_PROJECT= maia_mailguard |
35 |
GH_TAGNAME= 09eb7e5 |
29 |
USE_PERL5= run |
36 |
USE_PERL5= run |
30 |
NO_BUILD= yes |
37 |
NO_BUILD= yes |
31 |
|
38 |
WRKSRC= ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME} |
32 |
DOCS= LICENSE.txt README.md maiad.conf.dist maia-mysql.sql maia-pgsql.sql maia.conf.dist |
39 |
DOCS= LICENSE.txt README.md maiad.conf.dist maia-mysql.sql maia-pgsql.sql maia.conf.dist |
33 |
|
|
|
34 |
USERS= vscan |
40 |
USERS= vscan |
35 |
GROUPS= vscan |
41 |
GROUPS= vscan |
36 |
MAIAHOME= /var/maiad |
42 |
MAIAHOME= /var/maiad |
37 |
MAIAQUARANTINE?= /var/maiad/virusmails |
43 |
MAIAQUARANTINE?= /var/maiad/virusmails |
38 |
|
|
|
39 |
PEAR_DIR?= ${LOCALBASE}/share/pear |
44 |
PEAR_DIR?= ${LOCALBASE}/share/pear |
40 |
PLIST_SUB+= USERS="${USERS}" GROUPS="${GROUPS}" WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" |
45 |
PLIST_SUB+= USERS="${USERS}" GROUPS="${GROUPS}" WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" |
41 |
|
46 |
|
42 |
OPTIONS_DEFINE= APACHE LIGHTTPD WEBHOST MYSQL MYSQLSERVER PGSQL PGSQLSERVER DOVECOT2 \ |
47 |
OPTIONS_DEFINE= APACHE LIGHTTPD WEBHOST MYSQL MYSQLSERVER PGSQL PGSQLSERVER DOVECOT2 \ |
43 |
POSTFIX PFA FUZZYOCR CLAMAV SPAMASSASSIN BDB ALTERMIME CRYPT \ |
48 |
POSTFIX PFA CLAMAV SPAMASSASSIN BDB ALTERMIME CRYPT \ |
44 |
IPCOUNTRY DOMAINKEYS SPF DKIM FILE RAR ARJ UNARJ LHA ARC NOMARCH CAB \ |
49 |
IPCOUNTRY DOMAINKEYS SPF DKIM FILE RAR UNRAR ARJ UNARJ LHA ARC NOMARCH CAB \ |
45 |
RPM ZOO UNZOO LZOP P7ZIP TNEF DOCS |
50 |
RPM ZOO UNZOO LZOP P7ZIP TNEF DOCS |
46 |
|
51 |
|
47 |
OPTIONS_DEFAULT= MYSQL CLAMAV SPAMASSASSIN BDB IPCOUNTRY \ |
52 |
OPTIONS_DEFAULT= MYSQL CLAMAV SPAMASSASSIN BDB IPCOUNTRY \ |
48 |
DOMAINKEYS SPF DKIM FILE UNRAR ARJ LHA ARC CAB RPM \ |
53 |
DOMAINKEYS SPF DKIM FILE UNRAR ARJ LHA ARC CAB RPM \ |
49 |
ZOO P7ZIP |
54 |
ZOO P7ZIP |
|
|
55 |
|
50 |
APACHE_DESC= Use Apache web server |
56 |
APACHE_DESC= Use Apache web server |
51 |
LIGHTTPD_DESC= Use LighTTPD web server |
57 |
LIGHTTPD_DESC= Use LighTTPD web server |
52 |
WEBHOST_DESC= PHP, PEAR, etc... for Maia web interface |
58 |
WEBHOST_DESC= PHP, PEAR, etc... for Maia web interface |
Lines 57-63
Link Here
|
57 |
DOVECOT2_DESC= Use Dovecot 2.x IMAP/POP3 |
63 |
DOVECOT2_DESC= Use Dovecot 2.x IMAP/POP3 |
58 |
POSTFIX_DESC= Use Postfix MTA |
64 |
POSTFIX_DESC= Use Postfix MTA |
59 |
PFA_DESC= Use Postfixadmin |
65 |
PFA_DESC= Use Postfixadmin |
60 |
FUZZYOCR_DESC= Use FuzzyOcr |
|
|
61 |
CLAMAV_DESC= Use ClamAV anti-virus |
66 |
CLAMAV_DESC= Use ClamAV anti-virus |
62 |
SPAMASSASSIN_DESC= Use SpamAssassin |
67 |
SPAMASSASSIN_DESC= Use SpamAssassin |
63 |
BDB_DESC= Use BerkeleyDB |
68 |
BDB_DESC= Use BerkeleyDB |
Lines 124-131
Link Here
|
124 |
${PEAR_DIR}/Numbers/Roman.php:textproc/pear-Numbers_Roman@${PHP_FLAVOR} \ |
129 |
${PEAR_DIR}/Numbers/Roman.php:textproc/pear-Numbers_Roman@${PHP_FLAVOR} \ |
125 |
${PEAR_DIR}/Numbers/Words.php:textproc/pear-Numbers_Words@${PHP_FLAVOR} \ |
130 |
${PEAR_DIR}/Numbers/Words.php:textproc/pear-Numbers_Words@${PHP_FLAVOR} \ |
126 |
${PEAR_DIR}/MDB2.php:databases/pear-MDB2@${PHP_FLAVOR} \ |
131 |
${PEAR_DIR}/MDB2.php:databases/pear-MDB2@${PHP_FLAVOR} \ |
127 |
${PEAR_DIR}/MDB2/Driver/mysql.php:databases/pear-MDB2_Driver_mysql@${PHP_FLAVOR} \ |
132 |
${PEAR_DIR}/MDB2/Driver/mysqli.php:databases/pear-MDB2_Driver_mysqli@${PHP_FLAVOR} \ |
128 |
${LOCALBASE}/share/smarty/Smarty.class.php:www/smarty2@${PHP_FLAVOR} \ |
133 |
${LOCALBASE}/share/smarty3-${PHP_FLAVOR}/Smarty.class.php:www/smarty3@${PHP_FLAVOR} \ |
129 |
${LOCALBASE}/lib/php/${PHP_EXT_DIR}/scrypt.so:security/pecl-scrypt@${PHP_FLAVOR} |
134 |
${LOCALBASE}/lib/php/${PHP_EXT_DIR}/scrypt.so:security/pecl-scrypt@${PHP_FLAVOR} |
130 |
PLIST_SUB+= WEBHOST="" |
135 |
PLIST_SUB+= WEBHOST="" |
131 |
.else |
136 |
.else |
Lines 136-142
Link Here
|
136 |
USE_MYSQL= yes |
141 |
USE_MYSQL= yes |
137 |
.endif |
142 |
.endif |
138 |
.if ${PORT_OPTIONS:MMYSQL} && ${PORT_OPTIONS:MWEBHOST} |
143 |
.if ${PORT_OPTIONS:MMYSQL} && ${PORT_OPTIONS:MWEBHOST} |
139 |
USE_PHP+= mysql mysqli |
144 |
USE_PHP+= mysqli |
140 |
.endif |
145 |
.endif |
141 |
|
146 |
|
142 |
.if ${PORT_OPTIONS:MPGSQL} |
147 |
.if ${PORT_OPTIONS:MPGSQL} |
Lines 179-188
Link Here
|
179 |
RUN_DEPENDS+= ${LOCALBASE}/www/postfixadmin/config.inc.php:mail/postfixadmin |
184 |
RUN_DEPENDS+= ${LOCALBASE}/www/postfixadmin/config.inc.php:mail/postfixadmin |
180 |
.endif |
185 |
.endif |
181 |
|
186 |
|
182 |
.if ${PORT_OPTIONS:MFUZZYOCR} |
|
|
183 |
RUN_DEPENDS+= p5-FuzzyOcr-devel>=0:mail/p5-FuzzyOcr-devel |
184 |
.endif |
185 |
|
186 |
.if ${PORT_OPTIONS:MCLAMAV} |
187 |
.if ${PORT_OPTIONS:MCLAMAV} |
187 |
RUN_DEPENDS+= clamd:security/clamav |
188 |
RUN_DEPENDS+= clamd:security/clamav |
188 |
.endif |
189 |
.endif |
Lines 323-336
Link Here
|
323 |
-e "s@'zoo'\]@['zoo','unzoo'] ]@" ${WRKSRC}/maiad |
324 |
-e "s@'zoo'\]@['zoo','unzoo'] ]@" ${WRKSRC}/maiad |
324 |
|
325 |
|
325 |
@${FIND} -E ${WRKSRC} -iregex '.*(bak|~)$$' -delete |
326 |
@${FIND} -E ${WRKSRC} -iregex '.*(bak|~)$$' -delete |
|
|
327 |
@${FIND} -E ${WRKSRC} -iregex '.*(gitkeep|~)$$' -delete |
326 |
|
328 |
|
327 |
do-install: |
329 |
do-install: |
328 |
${MKDIR} ${STAGEDIR}${WWWDIR} |
330 |
${MKDIR} ${STAGEDIR}${WWWDIR} ${STAGEDIR}${WWWDIR}/web |
329 |
@cd ${WRKSRC}/php && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} |
331 |
@cd ${WRKSRC}/php && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} |
330 |
${LN} -s ${PREFIX}/share/smarty ${STAGEDIR}${WWWDIR}/libs/Smarty |
332 |
${LN} -s ${PREFIX}/share/smarty3-${PHP_FLAVOR} ${STAGEDIR}${WWWDIR}/libs/Smarty |
331 |
${MKDIR} -p ${STAGEDIR}${DATADIR} |
333 |
${MKDIR} ${STAGEDIR}${DATADIR} |
332 |
@cd ${WRKSRC}/scripts && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/scripts |
334 |
@cd ${WRKSRC}/scripts && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/scripts |
333 |
${MKDIR} -p ${STAGEDIR}${ETCDIR}/templates |
335 |
${MKDIR} ${STAGEDIR}${ETCDIR}/templates |
334 |
.for i in digest.tpl newuser.tpl reminder.tpl |
336 |
.for i in digest.tpl newuser.tpl reminder.tpl |
335 |
${INSTALL} -m 644 ${WRKSRC}/templates/${i}.dist ${STAGEDIR}${ETCDIR}/templates |
337 |
${INSTALL} -m 644 ${WRKSRC}/templates/${i}.dist ${STAGEDIR}${ETCDIR}/templates |
336 |
.endfor |
338 |
.endfor |