1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/mail/phplist/Makefile
Muhammad Moinur Rahman c00a7b36df
*/*: Mark IGNORE_WITH_PHP=84
These ports are currently not compatible with php84 and is only a limited
set of ports. There might be more ports which has runtime issues. Please
check if your ports are compatible with php84 and if not pleae mark them
IGNORE_WITH_PHP=84

Approved by:	portmgr (blanket)
2024-07-28 15:15:18 +02:00

52 lines
1.5 KiB
Makefile

PORTNAME= phplist
DISTVERSION= 3.6.15
CATEGORIES= mail www
MASTER_SITES= SF
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
MAINTAINER= ports@bsdserwis.com
COMMENT= Full-featured open-source newsletter manager
WWW= https://www.phplist.org/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${PEARDIR}/HTTP/Request.php:www/pear-HTTP_Request@${PHP_FLAVOR}
USES= cpe tar:tgz php:web,flavors
USE_PHP= curl gd gettext iconv imap mbstring mysqli session xml zlib
IGNORE_WITH_PHP= 83 84
NO_ARCH= yes
NO_BUILD= yes
SUB_FILES= phplist
PLIST_SUB= WWWOWN=${WWWOWN} \
WWWGRP=${WWWGRP}
PORTDOCS= CONTRIBUTING.md COPYING INSTALL PEOPLE README.* TODO UPGRADE VERSION
OPTIONS_DEFINE= DOCS
PEARDIR?= ${LOCALBASE}/share/pear
post-extract:
@${MV} ${WRKSRC}/public_html/lists/config/config.php ${WRKSRC}/public_html/lists/config/config.php.sample
# Note: there is file(s) with non-ascii filenames. So it's difficult to add
# such files to pkg-plist. That's why there is find with delete
#
do-install:
@${FIND} ${WRKSRC}/public_html/ -type f -regex '.*[^!-~].*' -delete
@${FIND} ${WRKSRC}/public_html/ -type l -delete
@${FIND} ${WRKSRC}/public_html/ -type d -empty -delete
${MKDIR} ${STAGEDIR}${WWWDIR}/
(cd ${WRKSRC}/public_html/ && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
${INSTALL_SCRIPT} ${WRKDIR}/phplist ${STAGEDIR}${PREFIX}/bin
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>