597afc47ba
With hat: portmgr Sponsored by: Absolight
59 lines
1.8 KiB
Makefile
59 lines
1.8 KiB
Makefile
# Created by: Sahil Tandon <sahil@tandon.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mailzu
|
|
DISTVERSION= 0.8rc3
|
|
PORTREVISION= 4
|
|
CATEGORIES= security
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/MailZu%200.8RC3
|
|
DISTNAME= MailZu_${DISTVERSION:S/rc/RC/}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Simple and intuitive web interface to manage amavisd-new quarantine
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/amavisd:security/amavisd-new \
|
|
${PEARDIR}/DB.php:databases/pear-DB \
|
|
${PEARDIR}/Mail/mime.php:mail/pear-Mail_Mime \
|
|
${PEARDIR}/Net/Socket.php:net/pear-Net_Socket \
|
|
${PEARDIR}/Mail/mimeDecode.php:mail/pear-Mail_mimeDecode
|
|
|
|
PEARDIR?= ${LOCALBASE}/share/pear
|
|
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
|
|
SUB_LIST+= PKGNAME=${PKGNAME}
|
|
SUB_FILES= pkg-message
|
|
NO_BUILD= yes
|
|
USE_PHP= sockets
|
|
WANT_PHP_WEB= yes
|
|
|
|
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
|
|
|
|
MYSQL_USE= PHP=mysql
|
|
PGSQL_USE= PHP=pgsql
|
|
IMAP_USE= PHP=imap
|
|
LDAP_USE= PHP=ldap
|
|
|
|
PORTDOCS= *
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${WWWDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/*.php* ${WRKSRC}/*.js* ${WRKSRC}/*.css* ${STAGEDIR}${WWWDIR}
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} "config contrib img lang lib templates" \
|
|
${STAGEDIR}${WWWDIR} "! -name *.orig")
|
|
(cd ${WRKSRC} && ${COPYTREE_BIN} scripts ${STAGEDIR}${WWWDIR})
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
|
|
${CHMOD} 644 ${STAGEDIR}${WWWDIR}/config/config.php.sample
|
|
|
|
.include <bsd.port.mk>
|