mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
f63f83f458
PR: 194471 Submitted by: Krzysztof Stryjek <ports@bsdserwis.com> Approved by: mentors (implicit)
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# Created by: Nick Hilliard <nick@foobar.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= phplist
|
|
PORTVERSION= 3.0.10
|
|
CATEGORIES= mail www
|
|
MASTER_SITES= SF
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= ports@bsdserwis.com
|
|
COMMENT= Full-featured open-source newsletter manager
|
|
|
|
LICENSE= GPLv2
|
|
|
|
RUN_DEPENDS= ${PEARDIR}/HTTP/Request.php:${PORTSDIR}/www/pear-HTTP_Request
|
|
|
|
USE_PHP= hash iconv imap mysql pcre session xml zlib
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
|
|
PEARDIR?= ${LOCALBASE}/share/pear
|
|
|
|
PORTDOCS= BUGS INSTALL PEOPLE README.md README.batches \
|
|
README.bounces README.commandline README.passwords \
|
|
README.repetition README.rssfeeds README.security \
|
|
README.usertables README.utf8 TODO UPGRADE VERSION \
|
|
phplist.sql
|
|
|
|
SUB_FILES= phplist
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
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
|
|
${MKDIR} ${STAGEDIR}${WWWDIR}/
|
|
@cd ${WRKSRC}/public_html/ && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/
|
|
${INSTALL_SCRIPT} ${WRKDIR}/phplist ${STAGEDIR}${PREFIX}/bin
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|