From 58dc3a02c5282a0824f1dec99ab09c886499e0de Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Thu, 17 Apr 2003 05:16:53 +0000 Subject: . 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 Blackdown JDK in the registervm comment. PR: 36411 (more ports to go) Reviewed by: znerd Approved by: znerd --- java/linux-blackdown-jdk12/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'java/linux-blackdown-jdk12') diff --git a/java/linux-blackdown-jdk12/Makefile b/java/linux-blackdown-jdk12/Makefile index 70afb636a70d..6f15c83af34a 100644 --- a/java/linux-blackdown-jdk12/Makefile +++ b/java/linux-blackdown-jdk12/Makefile @@ -33,10 +33,16 @@ NO_BUILD= YES APP_HOME?= ${PREFIX}/${PKGBASE}${PORTVERSION} PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///} +CPIO?= /usr/bin/cpio + +post-patch: + ${FIND} ${WRKSRC} \( -name '*.orig' -o -name '.*.orig' \) -print \ + | xargs ${RM} -f + do-install: ${MKDIR} ${APP_HOME} - (cd ${WRKSRC} && tar --exclude "*.orig" -c -f - .) \ - | (cd ${APP_HOME} && tar fx -) - ${LOCALBASE}/bin/registervm "${APP_HOME}/bin/java # Linux-JDK${PORTVERSION}" + cd ${WRKSRC} && ${FIND} . -print \ + | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${APP_HOME} + ${LOCALBASE}/bin/registervm "${APP_HOME}/bin/java # Linux-Blackdown-JDK${PORTVERSION}" .include -- cgit v1.2.3