2013-03-29 19:33:41 +00:00
|
|
|
# Created by: Sahil Tandon <sahil@tandon.net>
|
2009-08-14 19:54:33 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mailzu
|
|
|
|
DISTVERSION= 0.8rc3
|
2010-12-16 02:34:07 +00:00
|
|
|
PORTREVISION= 2
|
2009-08-14 19:54:33 +00:00
|
|
|
CATEGORIES= security
|
2009-08-22 00:35:32 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/MailZu%200.8RC3
|
2009-08-14 19:54:33 +00:00
|
|
|
DISTNAME= MailZu_${DISTVERSION:S/rc/RC/}
|
|
|
|
|
2010-07-29 02:58:44 +00:00
|
|
|
MAINTAINER= sahil@FreeBSD.org
|
2013-03-29 19:33:41 +00:00
|
|
|
COMMENT= Simple and intuitive web interface to manage amavisd-new quarantine
|
2009-08-14 19:54:33 +00:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/amavisd:${PORTSDIR}/security/amavisd-new \
|
|
|
|
${PEARDIR}/DB.php:${PORTSDIR}/databases/pear-DB \
|
|
|
|
${PEARDIR}/Mail/mime.php:${PORTSDIR}/mail/pear-Mail_Mime \
|
|
|
|
${PEARDIR}/Net/Socket.php:${PORTSDIR}/net/pear-Net_Socket \
|
|
|
|
${PEARDIR}/Mail/mimeDecode.php:${PORTSDIR}/mail/pear-Mail_mimeDecode
|
|
|
|
|
|
|
|
NO_INSTALL_MANPAGES= yes
|
|
|
|
|
|
|
|
PEARDIR?= ${LOCALBASE}/share/pear
|
|
|
|
SUB_LIST+= PKGNAME=${PKGNAME}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
NO_BUILD= yes
|
|
|
|
USE_PHP= sockets
|
|
|
|
WANT_PHP_WEB= yes
|
|
|
|
|
2013-04-28 21:02:39 +00:00
|
|
|
OPTIONS_DEFINE= IMAP LDAP DOCS
|
|
|
|
OPTIONS_MULTI= SQL
|
|
|
|
OPTIONS_MULTI_SQL= MYSQL PGSQL
|
|
|
|
OPTIONS_DEFAULT= MYSQL
|
|
|
|
SQL_DESC= SQL sotage backend
|
|
|
|
MYSQL_DESC= Use MySQL database storage/auth backend (default)
|
|
|
|
PGSQL_DESC= Use PostgreSQL database/auth storage backend
|
|
|
|
IMAP_DESC= Use IMAP auth backend
|
|
|
|
LDAP_DESC= Use LDAP auth backend
|
2009-08-14 19:54:33 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-04-28 21:02:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2009-08-14 19:54:33 +00:00
|
|
|
USE_PHP+= mysql
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 21:02:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
2009-08-14 19:54:33 +00:00
|
|
|
USE_PHP+= pgsql
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 21:02:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MIMAP}
|
2009-08-14 19:54:33 +00:00
|
|
|
USE_PHP+= imap
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 21:02:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
2009-08-14 19:54:33 +00:00
|
|
|
USE_PHP+= ldap
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 21:02:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2009-08-14 19:54:33 +00:00
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} -m 755 ${WWWDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/*.php* ${WRKSRC}/*.js* ${WRKSRC}/*.css* ${WWWDIR}
|
2010-11-27 06:48:59 +00:00
|
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} "config contrib img lang lib templates" \
|
|
|
|
${WWWDIR} "! -name *.orig"
|
2009-08-14 19:54:33 +00:00
|
|
|
@cd ${WRKSRC} && ${COPYTREE_BIN} scripts ${WWWDIR}
|
|
|
|
|
|
|
|
post-install:
|
2013-04-28 21:02:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2009-08-14 19:54:33 +00:00
|
|
|
@${INSTALL} -d -o ${DOCOWN} -g ${DOCGRP} -m 555 ${DOCSDIR}
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/CHANGELOG ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/docs/* ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
@${CHMOD} 644 ${WWWDIR}/config/config.php.sample
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|