Lines 2-11
Link Here
|
2 |
# $FreeBSD: head/security/maia/Makefile 477372 2018-08-16 20:29:28Z rene $ |
2 |
# $FreeBSD: head/security/maia/Makefile 477372 2018-08-16 20:29:28Z rene $ |
3 |
|
3 |
|
4 |
PORTNAME= maia |
4 |
PORTNAME= maia |
5 |
DISTVERSION= 1.0.4 |
5 |
DISTVERSION= 1.0.4-g20181202 |
6 |
PORTREVISION= 3 |
|
|
7 |
CATEGORIES= security |
6 |
CATEGORIES= security |
8 |
MASTER_SITES= http://www.purplehat.org/downloads/maia/ |
7 |
DISTNAME= maia_mailguard |
|
|
8 |
|
9 |
USE_GITHUB= yes |
10 |
GH_ACCOUNT= technion |
11 |
GH_PROJECT= maia_mailguard |
12 |
GH_TAGNAME= 09eb7e5 |
9 |
|
13 |
|
10 |
MAINTAINER= ek@purplehat.org |
14 |
MAINTAINER= ek@purplehat.org |
11 |
COMMENT= Web-based management system based on amavisd-new and SpamAssassin |
15 |
COMMENT= Web-based management system based on amavisd-new and SpamAssassin |
Lines 24-30
Link Here
|
24 |
p5-Template-Toolkit>=2.13:www/p5-Template-Toolkit \ |
28 |
p5-Template-Toolkit>=2.13:www/p5-Template-Toolkit \ |
25 |
p5-Net-Server>=0.93:net/p5-Net-Server |
29 |
p5-Net-Server>=0.93:net/p5-Net-Server |
26 |
|
30 |
|
27 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} |
31 |
WRKSRC= ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME} |
28 |
USES= perl5 shebangfix |
32 |
USES= perl5 shebangfix |
29 |
USE_PERL5= run |
33 |
USE_PERL5= run |
30 |
NO_BUILD= yes |
34 |
NO_BUILD= yes |
Lines 40-46
Link Here
|
40 |
PLIST_SUB+= USERS="${USERS}" GROUPS="${GROUPS}" WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" |
44 |
PLIST_SUB+= USERS="${USERS}" GROUPS="${GROUPS}" WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" |
41 |
|
45 |
|
42 |
OPTIONS_DEFINE= APACHE LIGHTTPD WEBHOST MYSQL MYSQLSERVER PGSQL PGSQLSERVER DOVECOT2 \ |
46 |
OPTIONS_DEFINE= APACHE LIGHTTPD WEBHOST MYSQL MYSQLSERVER PGSQL PGSQLSERVER DOVECOT2 \ |
43 |
POSTFIX PFA FUZZYOCR CLAMAV SPAMASSASSIN BDB ALTERMIME CRYPT \ |
47 |
POSTFIX PFA CLAMAV SPAMASSASSIN BDB ALTERMIME CRYPT \ |
44 |
IPCOUNTRY DOMAINKEYS SPF DKIM FILE RAR ARJ UNARJ LHA ARC NOMARCH CAB \ |
48 |
IPCOUNTRY DOMAINKEYS SPF DKIM FILE RAR ARJ UNARJ LHA ARC NOMARCH CAB \ |
45 |
RPM ZOO UNZOO LZOP P7ZIP TNEF DOCS |
49 |
RPM ZOO UNZOO LZOP P7ZIP TNEF DOCS |
46 |
|
50 |
|
Lines 57-63
Link Here
|
57 |
DOVECOT2_DESC= Use Dovecot 2.x IMAP/POP3 |
61 |
DOVECOT2_DESC= Use Dovecot 2.x IMAP/POP3 |
58 |
POSTFIX_DESC= Use Postfix MTA |
62 |
POSTFIX_DESC= Use Postfix MTA |
59 |
PFA_DESC= Use Postfixadmin |
63 |
PFA_DESC= Use Postfixadmin |
60 |
FUZZYOCR_DESC= Use FuzzyOcr |
|
|
61 |
CLAMAV_DESC= Use ClamAV anti-virus |
64 |
CLAMAV_DESC= Use ClamAV anti-virus |
62 |
SPAMASSASSIN_DESC= Use SpamAssassin |
65 |
SPAMASSASSIN_DESC= Use SpamAssassin |
63 |
BDB_DESC= Use BerkeleyDB |
66 |
BDB_DESC= Use BerkeleyDB |
Lines 124-131
Link Here
|
124 |
${PEAR_DIR}/Numbers/Roman.php:textproc/pear-Numbers_Roman@${PHP_FLAVOR} \ |
127 |
${PEAR_DIR}/Numbers/Roman.php:textproc/pear-Numbers_Roman@${PHP_FLAVOR} \ |
125 |
${PEAR_DIR}/Numbers/Words.php:textproc/pear-Numbers_Words@${PHP_FLAVOR} \ |
128 |
${PEAR_DIR}/Numbers/Words.php:textproc/pear-Numbers_Words@${PHP_FLAVOR} \ |
126 |
${PEAR_DIR}/MDB2.php:databases/pear-MDB2@${PHP_FLAVOR} \ |
129 |
${PEAR_DIR}/MDB2.php:databases/pear-MDB2@${PHP_FLAVOR} \ |
127 |
${PEAR_DIR}/MDB2/Driver/mysql.php:databases/pear-MDB2_Driver_mysql@${PHP_FLAVOR} \ |
130 |
${PEAR_DIR}/MDB2/Driver/mysqli.php:databases/pear-MDB2_Driver_mysqli@${PHP_FLAVOR} \ |
128 |
${LOCALBASE}/share/smarty/Smarty.class.php:www/smarty2@${PHP_FLAVOR} \ |
131 |
${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} |
132 |
${LOCALBASE}/lib/php/${PHP_EXT_DIR}/scrypt.so:security/pecl-scrypt@${PHP_FLAVOR} |
130 |
PLIST_SUB+= WEBHOST="" |
133 |
PLIST_SUB+= WEBHOST="" |
131 |
.else |
134 |
.else |
Lines 136-142
Link Here
|
136 |
USE_MYSQL= yes |
139 |
USE_MYSQL= yes |
137 |
.endif |
140 |
.endif |
138 |
.if ${PORT_OPTIONS:MMYSQL} && ${PORT_OPTIONS:MWEBHOST} |
141 |
.if ${PORT_OPTIONS:MMYSQL} && ${PORT_OPTIONS:MWEBHOST} |
139 |
USE_PHP+= mysql mysqli |
142 |
USE_PHP+= mysqli |
140 |
.endif |
143 |
.endif |
141 |
|
144 |
|
142 |
.if ${PORT_OPTIONS:MPGSQL} |
145 |
.if ${PORT_OPTIONS:MPGSQL} |
Lines 179-188
Link Here
|
179 |
RUN_DEPENDS+= ${LOCALBASE}/www/postfixadmin/config.inc.php:mail/postfixadmin |
182 |
RUN_DEPENDS+= ${LOCALBASE}/www/postfixadmin/config.inc.php:mail/postfixadmin |
180 |
.endif |
183 |
.endif |
181 |
|
184 |
|
182 |
.if ${PORT_OPTIONS:MFUZZYOCR} |
|
|
183 |
RUN_DEPENDS+= p5-FuzzyOcr-devel>=0:mail/p5-FuzzyOcr-devel |
184 |
.endif |
185 |
|
186 |
.if ${PORT_OPTIONS:MCLAMAV} |
185 |
.if ${PORT_OPTIONS:MCLAMAV} |
187 |
RUN_DEPENDS+= clamd:security/clamav |
186 |
RUN_DEPENDS+= clamd:security/clamav |
188 |
.endif |
187 |
.endif |
Lines 323-333
Link Here
|
323 |
-e "s@'zoo'\]@['zoo','unzoo'] ]@" ${WRKSRC}/maiad |
322 |
-e "s@'zoo'\]@['zoo','unzoo'] ]@" ${WRKSRC}/maiad |
324 |
|
323 |
|
325 |
@${FIND} -E ${WRKSRC} -iregex '.*(bak|~)$$' -delete |
324 |
@${FIND} -E ${WRKSRC} -iregex '.*(bak|~)$$' -delete |
|
|
325 |
@${FIND} -E ${WRKSRC} -iregex '.*(gitkeep|~)$$' -delete |
326 |
|
326 |
|
327 |
do-install: |
327 |
do-install: |
328 |
${MKDIR} ${STAGEDIR}${WWWDIR} |
328 |
${MKDIR} ${STAGEDIR}${WWWDIR} ${STAGEDIR}${WWWDIR}/web |
329 |
@cd ${WRKSRC}/php && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} |
329 |
@cd ${WRKSRC}/php && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} |
330 |
${LN} -s ${PREFIX}/share/smarty ${STAGEDIR}${WWWDIR}/libs/Smarty |
330 |
${LN} -s ${PREFIX}/share/smarty3-${PHP_FLAVOR} ${STAGEDIR}${WWWDIR}/libs/Smarty |
331 |
${MKDIR} -p ${STAGEDIR}${DATADIR} |
331 |
${MKDIR} -p ${STAGEDIR}${DATADIR} |
332 |
@cd ${WRKSRC}/scripts && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/scripts |
332 |
@cd ${WRKSRC}/scripts && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/scripts |
333 |
${MKDIR} -p ${STAGEDIR}${ETCDIR}/templates |
333 |
${MKDIR} -p ${STAGEDIR}${ETCDIR}/templates |