summaryrefslogtreecommitdiff
path: root/java/linux-blackdown-jdk12
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2003-04-17 05:16:53 +0000
committerGreg Lewis <glewis@FreeBSD.org>2003-04-17 05:16:53 +0000
commit58dc3a02c5282a0824f1dec99ab09c886499e0de (patch)
tree32695a9a3e39fb68304c3dab91f2152401a10605 /java/linux-blackdown-jdk12
parentAdded openldap21 directory (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 Blackdown JDK in the registervm comment. PR: 36411 (more ports to go) Reviewed by: znerd Approved by: znerd
Notes
Notes: svn path=/head/; revision=79116
Diffstat (limited to 'java/linux-blackdown-jdk12')
-rw-r--r--java/linux-blackdown-jdk12/Makefile12
1 files changed, 9 insertions, 3 deletions
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 <bsd.port.mk>