diff options
author | glewis <glewis@FreeBSD.org> | 2003-04-17 13:19:37 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2003-04-17 13:19:37 +0800 |
commit | 05dd7ca0cbc704374293488a5030d68f24e78d20 (patch) | |
tree | 0d019f3fad9249bdb01eee6508cf38747fc6a5c4 | |
parent | 6dd37d9049502255160588a1e1fadbac41725702 (diff) | |
download | freebsd-ports-gnome-05dd7ca0cbc704374293488a5030d68f24e78d20.tar.gz freebsd-ports-gnome-05dd7ca0cbc704374293488a5030d68f24e78d20.tar.zst freebsd-ports-gnome-05dd7ca0cbc704374293488a5030d68f24e78d20.zip |
. 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
-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> |