aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authorjadawin <jadawin@FreeBSD.org>2013-12-27 22:47:58 +0800
committerjadawin <jadawin@FreeBSD.org>2013-12-27 22:47:58 +0800
commit20bdef96f9415a4729ab9aa7d2684a9d9babb90d (patch)
treebbcf6de766afc8fd3b581fcb6942c9857e76f292 /net-p2p
parentdf74d5bcea12ac5b371fd8fcb7ea829612539190 (diff)
downloadfreebsd-ports-gnome-20bdef96f9415a4729ab9aa7d2684a9d9babb90d.tar.gz
freebsd-ports-gnome-20bdef96f9415a4729ab9aa7d2684a9d9babb90d.tar.zst
freebsd-ports-gnome-20bdef96f9415a4729ab9aa7d2684a9d9babb90d.zip
- support STAGE
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/rtgui/Makefile13
1 files changed, 4 insertions, 9 deletions
diff --git a/net-p2p/rtgui/Makefile b/net-p2p/rtgui/Makefile
index 9a0eb0e75a31..c3e14fd81f6a 100644
--- a/net-p2p/rtgui/Makefile
+++ b/net-p2p/rtgui/Makefile
@@ -17,7 +17,6 @@ OPTIONS_DEFAULTS= APACHE
BUILD_DEPENDS+= xmlrpc-c-config:${PORTSDIR}/net/xmlrpc-c
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MAPACHE}
@@ -37,19 +36,15 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
-SUB_LIST= WWWDIR=${WWWDIR} \
- PORTNAME=${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e 's/import_request_variables("gp","r_")/extract(\$_REQUEST, EXTR_PREFIX_ALL|EXTR_REFS, "r")/' ${WRKSRC}/*.php
- @${FIND} ${WRKSRC} -name "*.bak" -delete
+ @${FIND} ${WRKSRC} -name "*.bak" -delete
+ @${FIND} ${WRKSRC} -name "*.php~" -delete
do-install:
- ${MKDIR} ${WWWDIR}
- ${RM} ${WRKSRC}/functions.php~
- ${RM} ${WRKSRC}/index.php~
- ${CP} -r ${WRKSRC}/* ${WWWDIR}
- ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
+ ${MKDIR} ${STAGEDIR}${WWWDIR}
+ ${CP} -r ${WRKSRC}/* ${STAGEDIR}${WWWDIR}
post-install:
@${CAT} ${PKGMESSAGE}