ports/190380: [patch] Add staging support to www/repos-style

Joseph Benden joe at thrallingpenguin.com
Thu May 29 19:30:00 UTC 2014


>Number:         190380
>Category:       ports
>Synopsis:       [patch] Add staging support to www/repos-style
>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:   Thu May 29 19:30: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 at lucy:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Adds staging support to www/repos-style.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff --git a/www/repos-style/Makefile b/www/repos-style/Makefile
index dc6fc23..94e3436 100644
--- a/www/repos-style/Makefile
+++ b/www/repos-style/Makefile
@@ -24,18 +24,14 @@ WRKSRC=		${WRKDIR}/repos-web
 SUB_LIST+=	PORTNAME=${PORTNAME}
 SUB_FILES+=	pkg-message
 
-NO_STAGE=	yes
 pre-install:
 # Prevent installation of .orig files by deleting them.
 	@${FIND} ${WRKSRC} -name '*.orig' -delete
 	${MV} ${WRKSRC}/open/log/index.php ${WRKSRC}/open/log/index.dist.php
 
 do-install:
-	@${MKDIR} ${WWWDIR}
-	@(cd ${WRKSRC} && ${PAX} -r -w . ${WWWDIR})
-	if [ ! -f ${WWWDIR}/open/log/index.php ]; then \
-		${CP} -p ${WWWDIR}/open/log/index.dist.php ${WWWDIR}/open/log/index.php; \
-	fi
+	@${MKDIR} ${STAGEDIR}${WWWDIR}
+	@(cd ${WRKSRC} && ${PAX} -r -w . ${STAGEDIR}${WWWDIR})
 
 post-install:
 	@${CAT} ${PKGMESSAGE}


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


More information about the freebsd-ports-bugs mailing list