1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/mail/postfixadmin/Makefile
Muhammad Moinur Rahman 0ac3a69555 */*: Remove merged or non-existent USE_PHP directives
- Remove USE_PHP=hash which is available in default php installation of
  all versions of php
  * security/pear-Horde_Crypt_Blowfish: Remove OPTION MHASH
- Remove USE_PHP=json which is available in default php installation of
  all versions of php
  * devel/pear-PHPTAL: Remove OPTION JSON
  * www/ilias: Remove OPTION SCORM2004
- Remove USE_PHP=mssql which is no longer available in php from php80
  and later and has been replaced with sqlsrv module which is Windows
  only
  * www/codeigniter: Remove OPTION MSSQL
  * www/moodle311: Remove OPTION MSSQL
  * www/moodle39: Remove OPTION MSSQL
  * www/moodle40: Remove OPTION MSSQL
  * www/moodle41: Remove OPTION MSSQL
- Remove USE_PHP=openssl which is available in default php installation
  of all versions of php
  * databases/phpmyadmin: Remove OPTION OPENSSL
  * databases/phpmyadmin5: Remove OPTION OPENSSL
  * security/pear-Horde_Crypt_Blowfish: Remove OPTION OPENSSL
  * www/nextcloud: Remove OPTION SSL
  * www/owncloud: Remove OPTION SSL
- Remove USE_PHP=pcre which is available in default php installation of
  all versions of php
  * sysutils/racktables: Remove OPTION PCRE
- Remove USE_PHP=postgresql which should be USE_PHP=pgsql and update
  following ports
  * www/typo3-11
  * www/typo3-12
- Remove USE_PHP=pdf which is no longer available as php module
  * databases/phpmyadmin: Remove OPTION PDF
- Remove USE_PHP=spl which is available in default php installation of
  all versions of php
- Remove USE_PHP=sqlsrv which was never imported into FreeBSD as that is
  Windows only php module
  * www/typo3-11: Remove OPTION SQLSRV
  * www/typo3-12: Remove OPTION SQLSRV
- Bump where DEFAULT OPTIONS are affected

Sponsored by:	Bounce Experts

Approved by:	portmgr(blanket)
2023-04-16 20:09:23 +02:00

83 lines
2.4 KiB
Makefile

PORTNAME= postfixadmin
DISTVERSIONPREFIX= postfixadmin-
DISTVERSION= 3.4.dev.20211018
CATEGORIES= mail www
.if defined(_PFA_LITE)
PKGNAMESUFFIX= -lite${PHP_PKGNAMESUFFIX}
.else
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
.endif
MAINTAINER= ports.maintainer@evilphi.com
COMMENT= PHP web-based management tool for Postfix virtual domains and users
WWW= http://www.postfixadmin.org/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/GPL-LICENSE.TXT
USES= cpe php:flavors shebangfix
CPE_VENDOR= postfix_admin_project
CPE_PRODUCT= postfix_admin
USE_GITHUB= yes
GH_TAGNAME= d3bc1551
USE_PHP= mbstring session
NO_ARCH= yes
NO_BUILD= yes
SUB_FILES+= pkg-message
PLIST_SUB= WWWGRP=${WWWGRP} \
WWWOWN=${WWWOWN}
OPTIONS_DEFINE= ADDONS DOCS IMAP
.if defined(_PFA_LITE)
OPTIONS_DEFAULT= SQLITE
.else
OPTIONS_DEFAULT= ADDONS IMAP SQLITE
.endif
OPTIONS_MULTI= DATABASE
OPTIONS_MULTI_DATABASE= MYSQL PGSQL SQLITE
OPTIONS_SUB= yes
ADDONS_DESC= Include add-ons and related Perl dependencies
IMAP_DESC= Support automated sub-folder creation for new mailboxes
ADDONS_RUN_DEPENDS= p5-DBI>=1.634:databases/p5-DBI \
p5-Email-Sender>=1.300031:mail/p5-Email-Sender \
p5-Email-Simple>=1.998:mail/p5-Email-Simple \
p5-Email-Valid>=0.12:mail/p5-Email-Valid \
p5-LockFile-Simple>=0.208:devel/p5-LockFile-Simple \
p5-Log-Log4perl>=0.26:devel/p5-Log-Log4perl \
p5-MIME-EncWords>=0.040:mail/p5-MIME-EncWords \
p5-Net-DNS>=1.32:dns/p5-Net-DNS \
p5-Try-Tiny>=0.30:lang/p5-Try-Tiny
ADDONS_USES= gettext perl5
IMAP_USE= PHP=imap
MYSQL_USE= PHP=pdo_mysql
PGSQL_USE= PHP=pdo_pgsql
SQLITE_USE= PHP=pdo_sqlite
do-install:
${MKDIR} ${STAGEDIR}${WWWDIR}
${MKDIR} ${STAGEDIR}${WWWDIR}/templates_c
${INSTALL_DATA} ${WRKSRC}/*.php ${STAGEDIR}${WWWDIR}
.for i in configs languages lib model public scripts templates tests
(cd ${WRKSRC}/${i} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/${i})
.endfor
${MKDIR} ${STAGEDIR}${DATADIR}
.for i in GPL-LICENSE.TXT LICENSE.TXT password_expiration.sql postfixadmin.my.cnf
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DATADIR}
.endfor
do-install-ADDONS-on:
(cd ${WRKSRC}/ADDITIONS && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/ADDITIONS)
(cd ${WRKSRC}/VIRTUAL_VACATION && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/VIRTUAL_VACATION)
do-install-DOCS-on:
(cd ${WRKSRC}/DOCUMENTS && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.for i in CHANGELOG.TXT INSTALL.TXT README.md
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>