aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2002-04-13 17:06:30 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2002-04-13 17:06:30 +0000
commit7058cbdec0573c824fb4dab852cb6e208e3cb7e4 (patch)
treecc0b90c6570af8a342133100b2fbd6a7567b07e0
parent1bbd6ef5f2134206af9c1058e83afbe4f782fc09 (diff)
downloadports-7058cbdec0573c824fb4dab852cb6e208e3cb7e4.tar.gz
ports-7058cbdec0573c824fb4dab852cb6e208e3cb7e4.zip
Allow installed files to have correct permissions when built by a non-root
user. PR: 35980 Submitted by: Alan Eldridge <ports@geeksrus.net> Reviewed by: sobomax Approved by: sobomax
Notes
Notes: svn path=/head/; revision=57663
-rw-r--r--www/mozilla-devel/Makefile4
-rw-r--r--www/mozilla-headers-devel/Makefile5
-rw-r--r--www/mozilla-headers-vendor/Makefile5
-rw-r--r--www/mozilla-headers/Makefile5
-rw-r--r--www/mozilla-vendor/Makefile4
-rw-r--r--www/mozilla/Makefile4
-rw-r--r--www/seamonkey/Makefile4
-rw-r--r--www/seamonkey2/Makefile4
8 files changed, 19 insertions, 16 deletions
diff --git a/www/mozilla-devel/Makefile b/www/mozilla-devel/Makefile
index c8b1ac83feb1..6ccbee4bf62c 100644
--- a/www/mozilla-devel/Makefile
+++ b/www/mozilla-devel/Makefile
@@ -86,8 +86,8 @@ post-build:
do-install:
${MKDIR} ${PREFIX}/lib/mozilla
${CHMOD} 755 ${PREFIX}/lib/mozilla
- cd ${WRKSRC}/dist/bin && ${TAR} -chf - . | \
- ${TAR} -xf - -C ${PREFIX}/lib/mozilla
+ cd ${WRKSRC}/dist/bin && ${FIND} . | \
+ cpio -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/mozilla
${INSTALL_SCRIPT} ${WRKSRC}/mozilla ${PREFIX}/bin
${LN} -sf ${LOCALBASE}/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so \
${PREFIX}/lib/mozilla/plugins/libjavaplugin_oji.so
diff --git a/www/mozilla-headers-devel/Makefile b/www/mozilla-headers-devel/Makefile
index 6d584cc42f88..993322d945d8 100644
--- a/www/mozilla-headers-devel/Makefile
+++ b/www/mozilla-headers-devel/Makefile
@@ -27,9 +27,10 @@ USE_GMAKE= yes
ALL_TARGET= export
do-install:
+ -${RM} -fr ${PREFIX}/include/mozilla
${MKDIR} ${PREFIX}/include/mozilla
${CHMOD} 755 ${PREFIX}/include/mozilla
- ${TAR} -C ${WRKSRC}/dist/include -chf - . | \
- ${TAR} -C ${PREFIX}/include/mozilla --unlink -xf -
+ cd ${WRKSRC}/dist/include && ${FIND} . | \
+ cpio -pdm -L -R ${INCOWN}:${INCGRP} ${PREFIX}/include/mozilla
.include <bsd.port.mk>
diff --git a/www/mozilla-headers-vendor/Makefile b/www/mozilla-headers-vendor/Makefile
index 6d584cc42f88..993322d945d8 100644
--- a/www/mozilla-headers-vendor/Makefile
+++ b/www/mozilla-headers-vendor/Makefile
@@ -27,9 +27,10 @@ USE_GMAKE= yes
ALL_TARGET= export
do-install:
+ -${RM} -fr ${PREFIX}/include/mozilla
${MKDIR} ${PREFIX}/include/mozilla
${CHMOD} 755 ${PREFIX}/include/mozilla
- ${TAR} -C ${WRKSRC}/dist/include -chf - . | \
- ${TAR} -C ${PREFIX}/include/mozilla --unlink -xf -
+ cd ${WRKSRC}/dist/include && ${FIND} . | \
+ cpio -pdm -L -R ${INCOWN}:${INCGRP} ${PREFIX}/include/mozilla
.include <bsd.port.mk>
diff --git a/www/mozilla-headers/Makefile b/www/mozilla-headers/Makefile
index 6d584cc42f88..993322d945d8 100644
--- a/www/mozilla-headers/Makefile
+++ b/www/mozilla-headers/Makefile
@@ -27,9 +27,10 @@ USE_GMAKE= yes
ALL_TARGET= export
do-install:
+ -${RM} -fr ${PREFIX}/include/mozilla
${MKDIR} ${PREFIX}/include/mozilla
${CHMOD} 755 ${PREFIX}/include/mozilla
- ${TAR} -C ${WRKSRC}/dist/include -chf - . | \
- ${TAR} -C ${PREFIX}/include/mozilla --unlink -xf -
+ cd ${WRKSRC}/dist/include && ${FIND} . | \
+ cpio -pdm -L -R ${INCOWN}:${INCGRP} ${PREFIX}/include/mozilla
.include <bsd.port.mk>
diff --git a/www/mozilla-vendor/Makefile b/www/mozilla-vendor/Makefile
index c8b1ac83feb1..6ccbee4bf62c 100644
--- a/www/mozilla-vendor/Makefile
+++ b/www/mozilla-vendor/Makefile
@@ -86,8 +86,8 @@ post-build:
do-install:
${MKDIR} ${PREFIX}/lib/mozilla
${CHMOD} 755 ${PREFIX}/lib/mozilla
- cd ${WRKSRC}/dist/bin && ${TAR} -chf - . | \
- ${TAR} -xf - -C ${PREFIX}/lib/mozilla
+ cd ${WRKSRC}/dist/bin && ${FIND} . | \
+ cpio -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/mozilla
${INSTALL_SCRIPT} ${WRKSRC}/mozilla ${PREFIX}/bin
${LN} -sf ${LOCALBASE}/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so \
${PREFIX}/lib/mozilla/plugins/libjavaplugin_oji.so
diff --git a/www/mozilla/Makefile b/www/mozilla/Makefile
index c8b1ac83feb1..6ccbee4bf62c 100644
--- a/www/mozilla/Makefile
+++ b/www/mozilla/Makefile
@@ -86,8 +86,8 @@ post-build:
do-install:
${MKDIR} ${PREFIX}/lib/mozilla
${CHMOD} 755 ${PREFIX}/lib/mozilla
- cd ${WRKSRC}/dist/bin && ${TAR} -chf - . | \
- ${TAR} -xf - -C ${PREFIX}/lib/mozilla
+ cd ${WRKSRC}/dist/bin && ${FIND} . | \
+ cpio -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/mozilla
${INSTALL_SCRIPT} ${WRKSRC}/mozilla ${PREFIX}/bin
${LN} -sf ${LOCALBASE}/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so \
${PREFIX}/lib/mozilla/plugins/libjavaplugin_oji.so
diff --git a/www/seamonkey/Makefile b/www/seamonkey/Makefile
index c8b1ac83feb1..6ccbee4bf62c 100644
--- a/www/seamonkey/Makefile
+++ b/www/seamonkey/Makefile
@@ -86,8 +86,8 @@ post-build:
do-install:
${MKDIR} ${PREFIX}/lib/mozilla
${CHMOD} 755 ${PREFIX}/lib/mozilla
- cd ${WRKSRC}/dist/bin && ${TAR} -chf - . | \
- ${TAR} -xf - -C ${PREFIX}/lib/mozilla
+ cd ${WRKSRC}/dist/bin && ${FIND} . | \
+ cpio -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/mozilla
${INSTALL_SCRIPT} ${WRKSRC}/mozilla ${PREFIX}/bin
${LN} -sf ${LOCALBASE}/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so \
${PREFIX}/lib/mozilla/plugins/libjavaplugin_oji.so
diff --git a/www/seamonkey2/Makefile b/www/seamonkey2/Makefile
index c8b1ac83feb1..6ccbee4bf62c 100644
--- a/www/seamonkey2/Makefile
+++ b/www/seamonkey2/Makefile
@@ -86,8 +86,8 @@ post-build:
do-install:
${MKDIR} ${PREFIX}/lib/mozilla
${CHMOD} 755 ${PREFIX}/lib/mozilla
- cd ${WRKSRC}/dist/bin && ${TAR} -chf - . | \
- ${TAR} -xf - -C ${PREFIX}/lib/mozilla
+ cd ${WRKSRC}/dist/bin && ${FIND} . | \
+ cpio -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/mozilla
${INSTALL_SCRIPT} ${WRKSRC}/mozilla ${PREFIX}/bin
${LN} -sf ${LOCALBASE}/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so \
${PREFIX}/lib/mozilla/plugins/libjavaplugin_oji.so