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.

PR:		114445
Submitted by:	Greg Larkin <glarkin@sourcehosting.net> (maintainer)
This commit is contained in:
Martin Wilke 2007-07-09 18:03:21 +00:00
parent a93e04a3ae
commit 0561b556ed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=195317
6 changed files with 18 additions and 12 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= cakephp PORTNAME= cakephp
PORTVERSION= 1.1.15.5144 PORTVERSION= 1.1.15.5144
PORTREVISION= 1
CATEGORIES= www CATEGORIES= www
MASTER_SITES= http://cakeforge.org/frs/download.php/410/ MASTER_SITES= http://cakeforge.org/frs/download.php/410/
DISTNAME= cake_${PORTVERSION} DISTNAME= cake_${PORTVERSION}
@ -115,8 +116,8 @@ do-install:
${WRKSRC}/index.php \ ${WRKSRC}/index.php \
${WRKSRC}/vendors ${WWWDIR} ${WRKSRC}/vendors ${WWWDIR}
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
${FIND} ${WWWDIR} -type f -print | ${XARGS} -n1 ${CHMOD} 644 ${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
${FIND} ${WWWDIR} -type d -print | ${XARGS} -n1 ${CHMOD} 755 ${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
post-install: post-install:
@if [ -d "${CONFDIR}" ]; then \ @if [ -d "${CONFDIR}" ]; then \

View file

@ -7,6 +7,7 @@
PORTNAME= cakephp PORTNAME= cakephp
PORTVERSION= 1.1.15.5144 PORTVERSION= 1.1.15.5144
PORTREVISION= 1
CATEGORIES= www CATEGORIES= www
MASTER_SITES= http://cakeforge.org/frs/download.php/410/ MASTER_SITES= http://cakeforge.org/frs/download.php/410/
DISTNAME= cake_${PORTVERSION} DISTNAME= cake_${PORTVERSION}
@ -115,8 +116,8 @@ do-install:
${WRKSRC}/index.php \ ${WRKSRC}/index.php \
${WRKSRC}/vendors ${WWWDIR} ${WRKSRC}/vendors ${WWWDIR}
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
${FIND} ${WWWDIR} -type f -print | ${XARGS} -n1 ${CHMOD} 644 ${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
${FIND} ${WWWDIR} -type d -print | ${XARGS} -n1 ${CHMOD} 755 ${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
post-install: post-install:
@if [ -d "${CONFDIR}" ]; then \ @if [ -d "${CONFDIR}" ]; then \

View file

@ -7,6 +7,7 @@
PORTNAME= cakephp PORTNAME= cakephp
PORTVERSION= 1.1.15.5144 PORTVERSION= 1.1.15.5144
PORTREVISION= 1
CATEGORIES= www CATEGORIES= www
MASTER_SITES= http://cakeforge.org/frs/download.php/410/ MASTER_SITES= http://cakeforge.org/frs/download.php/410/
DISTNAME= cake_${PORTVERSION} DISTNAME= cake_${PORTVERSION}
@ -115,8 +116,8 @@ do-install:
${WRKSRC}/index.php \ ${WRKSRC}/index.php \
${WRKSRC}/vendors ${WWWDIR} ${WRKSRC}/vendors ${WWWDIR}
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
${FIND} ${WWWDIR} -type f -print | ${XARGS} -n1 ${CHMOD} 644 ${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
${FIND} ${WWWDIR} -type d -print | ${XARGS} -n1 ${CHMOD} 755 ${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
post-install: post-install:
@if [ -d "${CONFDIR}" ]; then \ @if [ -d "${CONFDIR}" ]; then \

View file

@ -7,6 +7,7 @@
PORTNAME= cakephp PORTNAME= cakephp
PORTVERSION= 1.1.15.5144 PORTVERSION= 1.1.15.5144
PORTREVISION= 1
CATEGORIES= www CATEGORIES= www
MASTER_SITES= http://cakeforge.org/frs/download.php/410/ MASTER_SITES= http://cakeforge.org/frs/download.php/410/
DISTNAME= cake_${PORTVERSION} DISTNAME= cake_${PORTVERSION}
@ -115,8 +116,8 @@ do-install:
${WRKSRC}/index.php \ ${WRKSRC}/index.php \
${WRKSRC}/vendors ${WWWDIR} ${WRKSRC}/vendors ${WWWDIR}
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
${FIND} ${WWWDIR} -type f -print | ${XARGS} -n1 ${CHMOD} 644 ${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
${FIND} ${WWWDIR} -type d -print | ${XARGS} -n1 ${CHMOD} 755 ${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
post-install: post-install:
@if [ -d "${CONFDIR}" ]; then \ @if [ -d "${CONFDIR}" ]; then \

View file

@ -7,6 +7,7 @@
PORTNAME= cakephp PORTNAME= cakephp
PORTVERSION= 1.1.15.5144 PORTVERSION= 1.1.15.5144
PORTREVISION= 1
CATEGORIES= www CATEGORIES= www
MASTER_SITES= http://cakeforge.org/frs/download.php/410/ MASTER_SITES= http://cakeforge.org/frs/download.php/410/
DISTNAME= cake_${PORTVERSION} DISTNAME= cake_${PORTVERSION}
@ -115,8 +116,8 @@ do-install:
${WRKSRC}/index.php \ ${WRKSRC}/index.php \
${WRKSRC}/vendors ${WWWDIR} ${WRKSRC}/vendors ${WWWDIR}
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
${FIND} ${WWWDIR} -type f -print | ${XARGS} -n1 ${CHMOD} 644 ${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
${FIND} ${WWWDIR} -type d -print | ${XARGS} -n1 ${CHMOD} 755 ${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
post-install: post-install:
@if [ -d "${CONFDIR}" ]; then \ @if [ -d "${CONFDIR}" ]; then \

View file

@ -7,6 +7,7 @@
PORTNAME= cakephp PORTNAME= cakephp
PORTVERSION= 1.1.15.5144 PORTVERSION= 1.1.15.5144
PORTREVISION= 1
CATEGORIES= www CATEGORIES= www
MASTER_SITES= http://cakeforge.org/frs/download.php/410/ MASTER_SITES= http://cakeforge.org/frs/download.php/410/
DISTNAME= cake_${PORTVERSION} DISTNAME= cake_${PORTVERSION}
@ -115,8 +116,8 @@ do-install:
${WRKSRC}/index.php \ ${WRKSRC}/index.php \
${WRKSRC}/vendors ${WWWDIR} ${WRKSRC}/vendors ${WWWDIR}
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
${FIND} ${WWWDIR} -type f -print | ${XARGS} -n1 ${CHMOD} 644 ${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
${FIND} ${WWWDIR} -type d -print | ${XARGS} -n1 ${CHMOD} 755 ${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
post-install: post-install:
@if [ -d "${CONFDIR}" ]; then \ @if [ -d "${CONFDIR}" ]; then \