diff options
author | glewis <glewis@FreeBSD.org> | 2003-04-17 05:16:53 +0000 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2003-04-17 05:16:53 +0000 |
commit | 6dd37d9049502255160588a1e1fadbac41725702 (patch) | |
tree | bffa1a6c7b6dbbdea35b5fc9e4b449fa7fbf4860 /java/linux-blackdown-jdk12 | |
parent | 2b09ef63c94ffce79cc45bf1ab46084411bbdd81 (diff) | |
download | FreeBSD-ports-6dd37d9049502255160588a1e1fadbac41725702.zip FreeBSD-ports-6dd37d9049502255160588a1e1fadbac41725702.tar.gz |
. 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
Diffstat (limited to 'java/linux-blackdown-jdk12')
-rw-r--r-- | java/linux-blackdown-jdk12/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/java/linux-blackdown-jdk12/Makefile b/java/linux-blackdown-jdk12/Makefile index 70afb63..6f15c83 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 <bsd.port.mk> |