Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jul 2007 11:11:28 -0400 (EDT)
From:      Greg Larkin <glarkin@sourcehosting.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        glarkin@sourcehosting.net
Subject:   ports/114445: [maintainer update] www/cakephp: Changed the use of find/xargs to improve installation performance
Message-ID:  <200707091511.l69FBSDZ068474@ports.entropy.prv>
Resent-Message-ID: <200707091520.l69FK26Z070499@freefall.freebsd.org>

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

>Number:         114445
>Category:       ports
>Synopsis:       [maintainer update] www/cakephp: Changed the use of find/xargs to improve installation performance
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 09 15:20:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Greg Larkin
>Release:        FreeBSD 6.1-SECURITY i386
>Organization:
SourceHosting.net, LLC
>Environment:
System: FreeBSD ports.entropy.prv 6.1-SECURITY FreeBSD 6.1-SECURITY #0: Thu Apr 26 14:24:01 UTC 2007
>Description:
The use of "find ... -print0/xargs -0 ..." is faster than
"find ... -print/xargs -n1 ...", so use that here to fix file
and directory permissions after installation.

Port maintainer (glarkin@sourcehosting.net) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- cakephp-1.1.15.5144_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/www/cakephp.orig/Makefile /usr/ports/www/cakephp/Makefile
--- /usr/ports/www/cakephp.orig/Makefile	Fri Jul  6 02:45:16 2007
+++ /usr/ports/www/cakephp/Makefile	Mon Jul  9 10:47:42 2007
@@ -7,6 +7,7 @@
 
 PORTNAME=	cakephp
 PORTVERSION=	1.1.15.5144
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	http://cakeforge.org/frs/download.php/410/
 DISTNAME=	cake_${PORTVERSION}
@@ -115,8 +116,8 @@
 			${WRKSRC}/index.php \
 			${WRKSRC}/vendors ${WWWDIR}
 	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
-	${FIND} ${WWWDIR} -type f -print | ${XARGS} -n1 ${CHMOD} 644
-	${FIND} ${WWWDIR} -type d -print | ${XARGS} -n1 ${CHMOD} 755
+	${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
+	${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
 
 post-install:
 	@if [ -d "${CONFDIR}" ]; then \
--- cakephp-1.1.15.5144_1.patch ends here ---

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



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