From owner-freebsd-ports@FreeBSD.ORG Wed Sep 3 09:07:42 2008 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44066106566B; Wed, 3 Sep 2008 09:07:42 +0000 (UTC) (envelope-from knu@iDaemons.org) Received: from mail.musha.org (daemon.musha.org [210.189.104.8]) by mx1.freebsd.org (Postfix) with ESMTP id 13AA18FC19; Wed, 3 Sep 2008 09:07:41 +0000 (UTC) (envelope-from knu@iDaemons.org) Received: from daemon.musha.org (daemon.local.idaemons.org [192.168.1.1]) by mail.musha.org (Postfix) with ESMTP id 6F40713E6E0D; Wed, 3 Sep 2008 17:52:30 +0900 (JST) Date: Wed, 03 Sep 2008 17:52:30 +0900 Message-ID: <864p4xy5kh.knu@iDaemons.org> From: "Akinori MUSHA" To: ports@FreeBSD.org Organization: Associated I. Daemons X-PGP-Public-Key: finger knu@FreeBSD.org X-PGP-Fingerprint: 081D 099C 1705 861D 4B70 B04A 920B EFC7 9FD9 E1EE MIME-Version: 1.0 (generated by EMIKO 1.14.1 - "Choanoflagellata") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Wed_Sep__3_17:52:30_2008-1"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Cc: portmgr@FreeBSD.org Subject: COPYTREE_AUTO X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 09:07:42 -0000 --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--