aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-08-23 09:37:27 +0800
committermarino <marino@FreeBSD.org>2014-08-23 09:37:27 +0800
commita49d6963e92b2251c279eac946716a265941bcd8 (patch)
treefe2bc3ffae183e97e7e8acad2d0929f6d194c384 /www
parent8dfa256c203672d29e260a7278688205670d367d (diff)
downloadfreebsd-ports-gnome-a49d6963e92b2251c279eac946716a265941bcd8.tar.gz
freebsd-ports-gnome-a49d6963e92b2251c279eac946716a265941bcd8.tar.zst
freebsd-ports-gnome-a49d6963e92b2251c279eac946716a265941bcd8.zip
www/siteframe: Rework so that overriding extract target is unnecessary
Diffstat (limited to 'www')
-rw-r--r--www/siteframe/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/www/siteframe/Makefile b/www/siteframe/Makefile
index f575b0c6d568..b03ad9bb3229 100644
--- a/www/siteframe/Makefile
+++ b/www/siteframe/Makefile
@@ -19,7 +19,7 @@ USE_MYSQL= yes
# where to install
NO_BUILD= yes
-NO_WRKSUBDIR= yes
+WRKSRC= ${WRKDIR}/__site
.ifndef SITEFRAMEDIR
.ifdef APACHE_DATADIR
SITEFRAMEDIR= ${APACHE_DATADIR}/siteframe
@@ -32,12 +32,12 @@ SUB_FILES= pkg-message
SUB_LIST= DIR=${SITEFRAMEDIR}
PLIST_SUB= WWWOWN="${WWWOWN}"
-do-extract:
- @${MKDIR} ${WRKDIR}/${PORTNAME}
- @ cd ${WRKDIR}/${PORTNAME}; ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DISTFILES} ${EXTRACT_AFTER_ARGS}
+post-extract:
+ @${MKDIR} ${WRKSRC}
+ @(cd ${WRKDIR} && ${MV} [CLRa-z]* _htaccess ${WRKSRC})
do-install:
- ${MKDIR} ${STAGEDIR}${SITEFRAMEDIR}/
- ${CP} -R ${WRKDIR}/${PORTNAME}/* ${STAGEDIR}${SITEFRAMEDIR}/
+ ${MKDIR} ${STAGEDIR}${SITEFRAMEDIR}
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${SITEFRAMEDIR})
.include <bsd.port.mk>