. 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
This commit is contained in:
Greg Lewis 2003-04-17 05:19:37 +00:00
parent 58dc3a02c5
commit 5c92fed5ec
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=79117

View file

@ -35,6 +35,8 @@ ONLY_FOR_ARCHS= i386
TARGET_DIR?= ${PREFIX}/${PKGBASE}${JDK_VERSION} TARGET_DIR?= ${PREFIX}/${PKGBASE}${JDK_VERSION}
DOWNLOAD_URL?= http://java.sun.com/webapps/download/Display?BundleId=7479 DOWNLOAD_URL?= http://java.sun.com/webapps/download/Display?BundleId=7479
CPIO?= /usr/bin/cpio
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING) .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
@ -67,8 +69,9 @@ post-patch:
@find ${WRKSRC} -name '*.orig' -print | xargs ${RM} -f @find ${WRKSRC} -name '*.orig' -print | xargs ${RM} -f
do-install: do-install:
@${MKDIR} ${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION} ${MKDIR} ${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION}
@${TAR} -C ${WRKSRC} -cf- . | ${TAR} -C ${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION} --unlink -xpf- cd ${WRKSRC} && ${FIND} . -print \
@${LOCALBASE}/bin/registervm "${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION}/bin/java # Linux-JDK${JDK_VERSION}" | ${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> .include <bsd.port.post.mk>