Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Sep 2008 17:52:30 +0900
From:      "Akinori MUSHA" <knu@iDaemons.org>
To:        ports@FreeBSD.org
Cc:        portmgr@FreeBSD.org
Subject:   COPYTREE_AUTO
Message-ID:  <864p4xy5kh.knu@iDaemons.org>

next in thread | raw e-mail | index | archive | help
--pgp-sign-Multipart_Wed_Sep__3_17:52:30_2008-1
Content-Type: text/plain; charset=US-ASCII

Hi,

What about adding COPYTREE_AUTO defined as below?

You often need some scripts in an example directory to have executable
bits so that the examples actually work, and it is waste of time to
sort files out into COPYTREE_BIN and COPYTREE_SHARE when they already
have proper bits out of the tarball.

Index: Mk/bsd.port.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.603
diff -u -r1.603 bsd.port.mk
--- Mk/bsd.port.mk	25 Aug 2008 01:29:01 -0000	1.603
+++ Mk/bsd.port.mk	3 Sep 2008 08:42:37 -0000
@@ -2262,6 +2262,13 @@
 					${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \
 					${FIND} $$1/ -type d -exec chmod 755 {} \; && \
 					${FIND} $$1/ -type f -exec chmod ${SHAREMODE} {} \;' --
+COPYTREE_AUTO=	${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
+					2>&1) && \
+					${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \
+					${FIND} $$1 -type d -exec chmod 755 {} \; && \
+					${FIND} $$1 -type f \! -perm +100 -exec chmod ${SHAREMODE} {} \; && \
+					${FIND} $$1 -type f -perm +100 -exec ${CHOWN} ${BINOWN}:${BINGRP} {} \; && \
+					${FIND} $$1 -type f -perm +100 -exec chmod ${BINMODE} {} \;' --
 .else
 COPYTREE_BIN=	${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
 					2>&1) && \
@@ -2271,6 +2278,11 @@
 					2>&1) && \
 					${FIND} $$1/ -type d -exec chmod 755 {} \; && \
 					${FIND} $$1/ -type f -exec chmod ${SHAREMODE} {} \;' --
+COPYTREE_AUTO=	${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
+					2>&1) && \
+					${FIND} $$1 -type d -exec chmod 755 {} \; && \
+					${FIND} $$1 -type f \! -perm +100 -exec chmod ${SHAREMODE} {} \; && \
+					${FIND} $$1 -type f -perm +100 -exec chmod ${BINMODE} {} \;' --
 .endif

 # The user can override the NO_PACKAGE by specifying this from


Regards,

--
Akinori MUSHA / http://akinori.org/

--pgp-sign-Multipart_Wed_Sep__3_17:52:30_2008-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEABECAAYFAki+UE4ACgkQkgvvx5/Z4e6xygCfZPDAyEbaKpVADDn4011Pv2vj
44IAnRVefmmpIXedpbwlBY2waNDmDIpv
=LBO/
-----END PGP SIGNATURE-----

--pgp-sign-Multipart_Wed_Sep__3_17:52:30_2008-1--



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