ports/114445: [maintainer update] www/cakephp: Changed the use of find/xargs to improve installation performance
Greg Larkin
glarkin at sourcehosting.net
Mon Jul 9 15:20:02 UTC 2007
>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 at 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:
More information about the freebsd-ports-bugs
mailing list