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