2013-03-05 17:07:43 +00:00
|
|
|
# Created by: Chifeng QU <chifeng@gmail.com>
|
2007-04-03 15:17:44 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= extman
|
2010-01-06 10:51:52 +00:00
|
|
|
PORTVERSION= 1.1
|
2010-03-28 06:47:48 +00:00
|
|
|
PORTREVISION= 3
|
2007-04-03 15:17:44 +00:00
|
|
|
CATEGORIES= mail
|
2007-12-12 14:54:56 +00:00
|
|
|
MASTER_SITES= http://www.chifeng.name/dist/extman/%SUBDIR%/ \
|
2008-04-23 17:05:36 +00:00
|
|
|
http://mirror3.extmail.net/dist/%SUBDIR%/
|
2007-04-03 15:17:44 +00:00
|
|
|
|
2009-11-08 11:58:19 +00:00
|
|
|
MAINTAINER= chifeng@gmail.com
|
2007-04-03 15:17:44 +00:00
|
|
|
COMMENT= Web interface to manage Virtual Accounts
|
|
|
|
|
2012-06-30 13:10:09 +00:00
|
|
|
RUN_DEPENDS= p5-GD>=0:${PORTSDIR}/graphics/p5-GD
|
2007-04-03 15:17:44 +00:00
|
|
|
|
2013-09-14 18:12:50 +00:00
|
|
|
USES= perl5
|
2009-11-08 11:58:19 +00:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
2013-03-05 17:07:43 +00:00
|
|
|
OPTIONS_DEFINE= MYSQL LDAP
|
|
|
|
OPTIONS_DEFAULT= MYSQL
|
2007-04-03 15:17:44 +00:00
|
|
|
|
2013-09-20 19:59:12 +00:00
|
|
|
NO_STAGE= yes
|
2013-03-05 17:07:43 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2007-04-03 15:17:44 +00:00
|
|
|
|
2013-03-05 17:07:43 +00:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2012-06-30 13:10:09 +00:00
|
|
|
RUN_DEPENDS+= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
|
2007-04-03 15:17:44 +00:00
|
|
|
.endif
|
2009-11-23 16:09:21 +00:00
|
|
|
|
2013-03-05 17:07:43 +00:00
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
2012-06-30 13:10:09 +00:00
|
|
|
RUN_DEPENDS+= p5-DBD-LDAP>=0:${PORTSDIR}/databases/p5-DBD-LDAP
|
2007-04-03 15:17:44 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2009-03-14 13:36:43 +00:00
|
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
|
2009-11-23 16:09:21 +00:00
|
|
|
|
2009-11-08 11:58:19 +00:00
|
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
2009-11-23 16:09:21 +00:00
|
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR:S,^${PREFIX}/,%D/,}' >> ${TMPPLIST}
|
|
|
|
|
|
|
|
@${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
|
|
|
|
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR:S,^${PREFIX}/,%D/,} -type d -print0 | \
|
|
|
|
${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}
|
|
|
|
|
|
|
|
@${FIND} \
|
|
|
|
${WWWDIR}/cgi \
|
|
|
|
${WWWDIR}/contrib \
|
|
|
|
${WWWDIR}/tools \
|
|
|
|
${WWWDIR}/addon/mailgraph_ext/mailgraph-init \
|
|
|
|
${WWWDIR}/addon/mailgraph_ext/mailgraph_ext.pl \
|
|
|
|
${WWWDIR}/addon/mailgraph_ext/qmonitor.pl \
|
|
|
|
-type f -print0 | ${XARGS} -0 ${CHMOD} +x
|
|
|
|
@${ECHO_CMD} '@exec ${FIND} \
|
|
|
|
${WWWDIR:S,^${PREFIX}/,%D/,}/cgi \
|
|
|
|
${WWWDIR:S,^${PREFIX}/,%D/,}/contrib \
|
|
|
|
${WWWDIR:S,^${PREFIX}/,%D/,}/tools \
|
|
|
|
${WWWDIR:S,^${PREFIX}/,%D/,}/addon/mailgraph_ext/mailgraph-init \
|
|
|
|
${WWWDIR:S,^${PREFIX}/,%D/,}/addon/mailgraph_ext/mailgraph_ext.pl \
|
|
|
|
${WWWDIR:S,^${PREFIX}/,%D/,}/addon/mailgraph_ext/qmonitor.pl \
|
|
|
|
-type f -print0 | ${XARGS} -0 ${CHMOD} +x' >> ${TMPPLIST}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@if [ ! -f ${WWWDIR}/webman.cf ]; then \
|
|
|
|
${CP} -p ${WWWDIR}/webman.cf.default ${WWWDIR}/webman.cf ; \
|
|
|
|
${CHMOD} +w ${WWWDIR}/webman.cf ; \
|
|
|
|
fi
|
2007-04-03 15:17:44 +00:00
|
|
|
|
2013-03-05 17:07:43 +00:00
|
|
|
.include <bsd.port.mk>
|