diff options
author | lawrance <lawrance@FreeBSD.org> | 2006-02-14 20:26:36 +0800 |
---|---|---|
committer | lawrance <lawrance@FreeBSD.org> | 2006-02-14 20:26:36 +0800 |
commit | 2e3663cdb59794a4fe5c7b907cf3a4dd5661cadf (patch) | |
tree | e94675e9b21284c84651da52df52daa3b7c47666 /www/pmwiki | |
parent | ceb6788d4b63880b212eb86d2ada536a71afc180 (diff) | |
download | freebsd-ports-gnome-2e3663cdb59794a4fe5c7b907cf3a4dd5661cadf.tar.gz freebsd-ports-gnome-2e3663cdb59794a4fe5c7b907cf3a4dd5661cadf.tar.zst freebsd-ports-gnome-2e3663cdb59794a4fe5c7b907cf3a4dd5661cadf.zip |
Unbreak - don't write outside of ${WRKDIRPREFIX}.
PR: ports/93288
Submitted by: Babak Farrokhi <babak@farrokhi.net> (maintainer)
Diffstat (limited to 'www/pmwiki')
-rw-r--r-- | www/pmwiki/Makefile | 15 | ||||
-rw-r--r-- | www/pmwiki/files/pkg-message.in (renamed from www/pmwiki/pkg-message) | 0 |
2 files changed, 3 insertions, 12 deletions
diff --git a/www/pmwiki/Makefile b/www/pmwiki/Makefile index ba5a6ee3912d..73d88b0bc9be 100644 --- a/www/pmwiki/Makefile +++ b/www/pmwiki/Makefile @@ -16,22 +16,21 @@ EXTRACT_SUFX= .tgz MAINTAINER= babak@farrokhi.net COMMENT= A WikiWikiWeb clone using PHP -BROKEN= Does not build with read-only ports tree - USE_PHP= mbstring PHP4_PORT?= www/mod_php4 WANT_PHP_WEB= yes WRKSRC= ${WRKDIR}/${DISTNAME} NO_BUILD= yes -PKGMESSAGE= ${WRKDIR}/pkg-message PLIST_SUB+= PMWIKIDIR=${PMWIKIDIR} +SUB_LIST+= PMWIKIDIR=${PMWIKIDIR} +SUB_FILES= pkg-message pre-fetch: .if !defined(PMWIKIDIR) @${ECHO_MSG} "" - @${ECHO_MSG} "Define PMWIKIDIR to override default of 'www/data/pmwiki'." + @${ECHO_MSG} "Define PMWIKIDIR to override default of ${PMWIKIDIR}." @${ECHO_MSG} "" .endif @@ -39,19 +38,11 @@ PMWIKIDIR?= www/data/pmwiki WWWUSER?= www WWWGROUP?= www -post-configure: - @${SED} -e 's#%%PREFIX%%#${PREFIX}#g' -e 's#%%PMWIKIDIR%%#${PMWIKIDIR}#g' pkg-message > ${PKGMESSAGE} - do-install: @${MKDIR} -m 755 ${PREFIX}/${PMWIKIDIR} @${CP} -R ${WRKSRC}/ ${PREFIX}/${PMWIKIDIR} @${CHOWN} ${WWWUSER}:${WWWGROUP} ${PREFIX}/${PMWIKIDIR} -pre-install: - cd ${WRKSRC} && ${FIND} -s * -type f | ${SED} -e 's|^|${PMWIKIDIR}/|' > ${PLIST} \ - && ${FIND} -d * -type d | ${SED} -e 's|^|@dirrm ${PMWIKIDIR}/|' >> ${PLIST} \ - && ${ECHO_MSG} "@unexec rmdir ${PMWIKIDIR} 2>/dev/null || true" >> ${PLIST} - post-install: @${MKDIR} -m 775 ${PREFIX}/${PMWIKIDIR}/wiki.d @${CHOWN} ${WWWUSER}:${WWWGROUP} ${PREFIX}/${PMWIKIDIR}/wiki.d diff --git a/www/pmwiki/pkg-message b/www/pmwiki/files/pkg-message.in index bac154b216dd..bac154b216dd 100644 --- a/www/pmwiki/pkg-message +++ b/www/pmwiki/files/pkg-message.in |