STAGE support

requires PHP hash module

Submitted by:	p.novikov@step.nnov.ru
This commit is contained in:
Mark Felder 2014-02-14 15:13:31 +00:00
parent 7a03c27878
commit 334d56dc6a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344248

View file

@ -10,12 +10,12 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@bsdserwis.com
COMMENT= A full-featured open-source newsletter manager
USE_PHP= session mysql imap xml pcre zlib iconv
RUN_DEPENDS= ${PEARDIR}/HTTP/Request.php:${PORTSDIR}/www/pear-HTTP_Request
USE_PHP= hash iconv imap mysql pcre session xml zlib
NO_BUILD= yes
PEARDIR?= ${LOCALBASE}/share/pear
RUN_DEPENDS= ${PEARDIR}/HTTP/Request.php:${PORTSDIR}/www/pear-HTTP_Request
PORTDOCS= BUGS INSTALL NEWS PEOPLE README README.batches \
README.bounces README.commandline README.passwords \
README.repetition README.rssfeeds README.security \
@ -24,19 +24,17 @@ PORTDOCS= BUGS INSTALL NEWS PEOPLE README README.batches \
SUB_FILES= phplist pkg-message
NO_STAGE= yes
.include <bsd.port.options.mk>
post-extract:
@${MV} ${WRKSRC}/public_html/lists/config/config.php ${WRKSRC}/public_html/lists/config/config.php-dist
do-install:
@cd ${WRKSRC}/public_html/&&${COPYTREE_SHARE} . ${WWWDIR}/
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}/
@${INSTALL_SCRIPT} ${WRKDIR}/phplist ${PREFIX}/bin
@${ECHO_CMD} @exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR:S|^${PREFIX}/|%D/|} >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
@${INSTALL} -d ${DOCSDIR}
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
@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
@${CAT} ${PKGMESSAGE}