- Switch to options helpers
- Modernize plist Approved by: portmgr blanket
This commit is contained in:
parent
bdf0104016
commit
d39f4fdff3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=404193
2 changed files with 20 additions and 10 deletions
|
@ -24,7 +24,7 @@ DEFAULT_PHP_VER= 5
|
|||
USE_PHP= zlib
|
||||
USE_PHPEXT= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
||||
CONFIGURE_ARGS= --with-png-dir=${LOCALBASE} --with-gif-dir=${LOCALBASE}
|
||||
|
||||
PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
||||
|
@ -35,16 +35,23 @@ PORTEXAMPLES= *
|
|||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/sample/${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
|
||||
@${MKDIR} ${STAGEDIR}${WWWDIR}
|
||||
${CP} -R ${WRKDIR}/${DISTNAME}/www/ ${STAGEDIR}${WWWDIR}
|
||||
|
||||
post-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
post-install-EXAMPLES-on:
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/sample/${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
x-generate-plist: stage
|
||||
${FIND} ${STAGEDIR}${WWWDIR} -type f | ${SORT} | ${SED} -e 's,${STAGEDIR}${WWWDIR},%%WWWDIR%%,g' > pkg-plist.new
|
||||
${FIND} ${STAGEDIR}${WWWDIR} -type d -depth | ${SORT} -r | ${SED} -e 's,${STAGEDIR}${WWWDIR},@dirrm %%WWWDIR%%,g' >> pkg-plist.new
|
||||
${ECHO} '@exec chown -R %%WWWOWN%%:%%WWWGRP%% %D/%%WWWDIR%%' >> pkg-plist.new
|
||||
${ECHO_CMD} '@owner %%WWWOWN%%' > pkg-plist.new
|
||||
${ECHO_CMD} '@group %%WWWGRP%%' >> pkg-plist.new
|
||||
${FIND} ${STAGEDIR}${WWWDIR} -type f | ${SORT} | ${SED} -e 's,${STAGEDIR}${WWWDIR},%%WWWDIR%%,g' >> pkg-plist.new
|
||||
${FIND} ${STAGEDIR}${WWWDIR} -type d -depth | ${SORT} -r | ${SED} -e 's,${STAGEDIR}${WWWDIR},@dir %%WWWDIR%%,g' >> pkg-plist.new
|
||||
${ECHO_CMD} '@owner' >> pkg-plist.new
|
||||
${ECHO_CMD} '@group' >> pkg-plist.new
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@owner %%WWWOWN%%
|
||||
@group %%WWWGRP%%
|
||||
%%WWWDIR%%/define.php
|
||||
%%WWWDIR%%/index.php
|
||||
%%WWWDIR%%/shapetpl.swf
|
||||
|
@ -5,5 +7,6 @@
|
|||
%%WWWDIR%%/swfimagelist.php
|
||||
%%WWWDIR%%/swfimagereplace.php
|
||||
%%WWWDIR%%/swfshape.php
|
||||
@dirrm %%WWWDIR%%
|
||||
@exec chown -R %%WWWOWN%%:%%WWWGRP%% %D/%%WWWDIR%%
|
||||
@dir %%WWWDIR%%
|
||||
@owner
|
||||
@group
|
||||
|
|
Loading…
Reference in a new issue