From 7058cbdec0573c824fb4dab852cb6e208e3cb7e4 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Sat, 13 Apr 2002 17:06:30 +0000 Subject: Allow installed files to have correct permissions when built by a non-root user. PR: 35980 Submitted by: Alan Eldridge Reviewed by: sobomax Approved by: sobomax --- www/mozilla-devel/Makefile | 4 ++-- www/mozilla-headers-devel/Makefile | 5 +++-- www/mozilla-headers-vendor/Makefile | 5 +++-- www/mozilla-headers/Makefile | 5 +++-- www/mozilla-vendor/Makefile | 4 ++-- www/mozilla/Makefile | 4 ++-- www/seamonkey/Makefile | 4 ++-- www/seamonkey2/Makefile | 4 ++-- 8 files changed, 19 insertions(+), 16 deletions(-) (limited to 'www') 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 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 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 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 -- cgit v1.2.3