mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-22 20:41:26 +00:00
Support staging.
This commit is contained in:
parent
22c31c19ba
commit
ab3ad3546b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331917
@ -20,38 +20,19 @@ USE_PHP= gd mbstring openssl pcre session xml zlib
|
||||
NO_BUILD= YES
|
||||
WANT_PHP_WEB= YES
|
||||
|
||||
DOKUWIKI_DIR?= www/${PORTNAME}
|
||||
WRKSRC= ${WRKDIR}/${DIST_VER}
|
||||
PLIST_SUB= DOKUWIKI_DIR=${DOKUWIKI_DIR}
|
||||
TEMP_PLIST= ${WRKDIR}/temp-pkg-plist
|
||||
SUB_FILES= pkg-message
|
||||
SUB_LIST+= PORTNAME=${PORTNAME} DOKUWIKI_DIR=${DOKUWIKI_DIR}
|
||||
SUB_LIST+= PORTNAME=${PORTNAME}
|
||||
SHAREOWN= ${WWWOWN}
|
||||
SHAREGRP= ${WWWGRP}
|
||||
|
||||
REINPLACE_ARGS= -i ''
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# This target is only meant to be used by the port maintainer.
|
||||
x-generate-plist:
|
||||
@cd ${WRKSRC} && ${FIND} -s . -type f | \
|
||||
${SED} -e 's|^./||;s|^|%%DOKUWIKI_DIR%%/|' > ${TEMP_PLIST} \
|
||||
&& ${FIND} -d * -type d | \
|
||||
${SED} -e 's|^|@dirrm %%DOKUWIKI_DIR%%/|' >> ${TEMP_PLIST} \
|
||||
&& ${ECHO_CMD} "@dirrmtry %%DOKUWIKI_DIR%%" >> ${TEMP_PLIST}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|' ${WRKSRC}/bin/*.php
|
||||
@${FIND} ${WRKSRC} -name '*.orig' -delete
|
||||
@${RM} ${WRKSRC}/data/deleted.files
|
||||
|
||||
do-install:
|
||||
# Data files
|
||||
-${MKDIR} ${PREFIX}/${DOKUWIKI_DIR}
|
||||
@${CP} -R ${WRKSRC}/ ${PREFIX}/${DOKUWIKI_DIR}
|
||||
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${DOKUWIKI_DIR}
|
||||
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -4,7 +4,7 @@
|
||||
[1;32m#
|
||||
# Directives to allow use of dokuwiki
|
||||
#
|
||||
Alias /%%PORTNAME%% "%%PREFIX%%/%%DOKUWIKI_DIR%%/"[m
|
||||
Alias /%%PORTNAME%% "%%WWWDIR%%/"[m
|
||||
|
||||
2) Open the following page in your browser and follow the instructions:
|
||||
[1;36mhttp://www.your.host/dokuwiki/install.php[m
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user