mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
37d4f2da9d
Approved by: infrastructure modernization blanket
62 lines
1.8 KiB
Makefile
62 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@${PHP_FLAVOR} \
|
|
${PEARDIR}/Mail/mime.php:mail/pear-Mail_Mime@${PHP_FLAVOR} \
|
|
${PEARDIR}/Net/Socket.php:net/pear-Net_Socket@${PHP_FLAVOR} \
|
|
${PEARDIR}/Mail/mimeDecode.php:mail/pear-Mail_mimeDecode@${PHP_FLAVOR}
|
|
|
|
PEARDIR?= ${LOCALBASE}/share/pear
|
|
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
|
|
SUB_FILES= pkg-message
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
USE_PHP= sockets
|
|
USES= php:web
|
|
|
|
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})
|
|
${CHMOD} 644 ${STAGEDIR}${WWWDIR}/config/config.php.sample
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|