ports/mail/postfixadmin/Makefile
Kirill Ponomarev 2ac1292e57 Update mail/postfixadmin to 3.0.2 (security fix)
SECURITY FIX: don't allow to delete protected aliases
(CVE-2017-5930, PR#23).

Following non-security bugs were fixed:

- Fix VacationHandler for PostgreSQL
- AliasHandler: restrict mailbox subquery to allowed and specified domains to improve performance on setups with
+lots of mailboxes
- Allow switching between dovecot: password schemes while still accepting passwords hashed using the previous dov
+ecot: scheme
- FetchmailHandler: use a valid date as default for 'date'
- Fix date formatting in non-english languages when using PostgreSQL

PR:		216932
Submitted by:	lukasz@wasikowski.net
Approved by:	maintainer, mat (mentor)
Differential Revision:	https://reviews.freebsd.org/D9521
2017-02-10 17:33:53 +00:00

62 lines
1.6 KiB
Makefile

# Created by: Rob Evers <rob@debank.tv>
# $FreeBSD$
PORTNAME= postfixadmin
PORTVERSION= 3.0.2
CATEGORIES= mail www
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports.maintainer@evilphi.com
COMMENT= PHP web-based management tool for Postfix virtual domains and users
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/GPL-LICENSE.TXT
RUN_DEPENDS+= p5-DBI>=1.634:databases/p5-DBI \
p5-Email-Valid>=0.12:mail/p5-Email-Valid \
p5-Log-Dispatch>=1.79:devel/p5-Log-Dispatch \
p5-Log-Log4perl>=0.26:devel/p5-Log-Log4perl \
p5-Mail-Sender>=0.7.04:mail/p5-Mail-Sender \
p5-MIME-EncWords>=0.040:mail/p5-MIME-EncWords
USES= cpe perl5 shebangfix php
CPE_VENDOR= postfix_admin_project
CPE_PRODUCT= postfix_admin
NO_ARCH= yes
NO_BUILD= yes
SUB_FILES+= pkg-message
PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
OPTIONS_DEFINE= DOCS
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE
OPTIONS_DEFAULT= PGSQL
USE_PERL5= run
USE_PHP= mbstring pcre session spl xmlrpc
MYSQL_USE= php=mysqli
PGSQL_USE= php=pgsql
SQLITE_USE= php=sqlite3
do-install:
@${MKDIR} ${STAGEDIR}${WWWDIR}
.for i in *.php calendar.js
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${WWWDIR}
.endfor
.for i in configs css images languages model scripts smarty templates templates_c tests users
@cd ${WRKSRC}/${i} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/${i}
.endfor
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.TXT ${STAGEDIR}${DATADIR}
.for i in ADDITIONS VIRTUAL_VACATION
@cd ${WRKSRC}/${i} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/${i}
.endfor
do-install-DOCS-on:
@cd ${WRKSRC}/DOCUMENTS && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>