Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 May 2014 22:42:11 GMT
From:      Joseph Benden <joe@thrallingpenguin.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/190155: [patch] Add staging support to www/jawstats
Message-ID:  <201405232242.s4NMgB8s098619@cgiserv.freebsd.org>
Resent-Message-ID: <201405232250.s4NMo0M4043302@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         190155
>Category:       ports
>Synopsis:       [patch] Add staging support to www/jawstats
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 23 22:50:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Joseph Benden
>Release:        FreeBSD 11
>Organization:
>Environment:
FreeBSD lucy 11.0-CURRENT FreeBSD 11.0-CURRENT #4 r264887: Thu Apr 24 12:43:46 MST 2014     root@lucy:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Adds staging support to www/jawstats.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff --git a/www/jawstats/Makefile b/www/jawstats/Makefile
index dd3802b..8648228 100644
--- a/www/jawstats/Makefile
+++ b/www/jawstats/Makefile
@@ -15,14 +15,19 @@ NO_WRKSUBDIR=	yes
 NO_BUILD=	yes
 USE_PHP=	yes
 WANT_PHP_WEB=	yes
-DEFAULT_PHP_VER=5
+DEFAULT_VERSIONS=php=5
 SUB_FILES=	pkg-message
 PKGMESSAGE=	${WRKDIR}/pkg-message
 
-NO_STAGE=	yes
 do-install:
-	${MKDIR} ${WWWDIR}
-	cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${WWWDIR}
+	@${MKDIR} ${STAGEDIR}/${WWWDIR}
+	@cd ${WRKSRC}; ${FIND} . ! -path '*stage*' -print |\
+	   	${CPIO} --quiet -pdum -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}/${WWWDIR}
+	@${RM} -f ${STAGEDIR}${WWWDIR}/.PLIST.mktmp \
+		${STAGEDIR}${WWWDIR}/.build_done.jawstats._usr_local \
+		${STAGEDIR}${WWWDIR}/.configure_done.jawstats._usr_local \
+		${STAGEDIR}${WWWDIR}/.extract_done.jawstats._usr_local \
+		${STAGEDIR}${WWWDIR}/.patch_done.jawstats._usr_local
 
 post-install:
 	@${CAT} ${PKGMESSAGE}


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405232242.s4NMgB8s098619>