diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2003-04-17 05:19:37 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2003-04-17 05:19:37 +0000 |
commit | 5c92fed5ecca0bd7adf28f3c2a8cec3b3a8439cc (patch) | |
tree | a4159eccfd3530003170c11baea91f8205867784 /java/linux-sun-jdk13 | |
parent | . Switch to using cpio to install in line with other JDKs. This allows (diff) |
. Switch to using cpio to install in line with other JDKs. This allows
us to ensure ownership is correct on the installed files.
. Note that this is a Sun JDK in the registervm comment.
PR: 36411 (more ports to go)
Reviewed by: znerd
Approved by: znerd
Notes
Notes:
svn path=/head/; revision=79117
Diffstat (limited to 'java/linux-sun-jdk13')
-rw-r--r-- | java/linux-sun-jdk13/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/java/linux-sun-jdk13/Makefile b/java/linux-sun-jdk13/Makefile index 5bfaad2617d0..72ef9e21b24c 100644 --- a/java/linux-sun-jdk13/Makefile +++ b/java/linux-sun-jdk13/Makefile @@ -35,6 +35,8 @@ ONLY_FOR_ARCHS= i386 TARGET_DIR?= ${PREFIX}/${PKGBASE}${JDK_VERSION} DOWNLOAD_URL?= http://java.sun.com/webapps/download/Display?BundleId=7479 +CPIO?= /usr/bin/cpio + .include <bsd.port.pre.mk> .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING) @@ -67,8 +69,9 @@ post-patch: @find ${WRKSRC} -name '*.orig' -print | xargs ${RM} -f do-install: - @${MKDIR} ${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION} - @${TAR} -C ${WRKSRC} -cf- . | ${TAR} -C ${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION} --unlink -xpf- - @${LOCALBASE}/bin/registervm "${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION}/bin/java # Linux-JDK${JDK_VERSION}" + ${MKDIR} ${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION} + cd ${WRKSRC} && ${FIND} . -print \ + | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION} + ${LOCALBASE}/bin/registervm "${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION}/bin/java # Linux-Sun-JDK${JDK_VERSION}" .include <bsd.port.post.mk> |