aboutsummaryrefslogtreecommitdiffstats
path: root/java/linux-sun-jre16
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2011-02-18 06:48:52 +0800
committerjkim <jkim@FreeBSD.org>2011-02-18 06:48:52 +0800
commitd413f164d34e99c7e932e29ae5cc36c29a70a148 (patch)
treebb8c590d30a945c1ac01d897a7ab0c0937403cbd /java/linux-sun-jre16
parent697b03f1e559a36ce0dbd2777c97b930aefdc51d (diff)
downloadfreebsd-ports-gnome-d413f164d34e99c7e932e29ae5cc36c29a70a148.tar.gz
freebsd-ports-gnome-d413f164d34e99c7e932e29ae5cc36c29a70a148.tar.zst
freebsd-ports-gnome-d413f164d34e99c7e932e29ae5cc36c29a70a148.zip
Unpack files more reliably.
Diffstat (limited to 'java/linux-sun-jre16')
-rw-r--r--java/linux-sun-jre16/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/java/linux-sun-jre16/Makefile b/java/linux-sun-jre16/Makefile
index b9cf3fcacb9d..749451c22186 100644
--- a/java/linux-sun-jre16/Makefile
+++ b/java/linux-sun-jre16/Makefile
@@ -36,8 +36,8 @@ DL_JRE_VERSION= ${JRE_VERSION}_${JRE_REVISION}
ONLY_FOR_ARCHS= i386 amd64
DOWNLOAD_URL?= http://www.oracle.com/technetwork/java/javase/downloads/index.html
APP_HOME= ${PREFIX}/${PKGNAMEPREFIX}${PORTNAME}${JRE_VERSION}
-PACKED_JARS= lib/charsets.jar lib/deploy.jar lib/ext/localedata.jar lib/javaws.jar lib/jsse.jar lib/plugin.jar lib/rt.jar
-UNPACK_CMD= ${APP_HOME}/bin/unpack200
+PACKED_JARS= lib/charsets lib/deploy lib/ext/localedata lib/javaws lib/jsse lib/plugin lib/rt
+UNPACK_CMD= ${WRKSRC}/bin/unpack200
.include <bsd.port.pre.mk>
@@ -53,7 +53,10 @@ do-extract:
@cd ${WRKDIR} \
&& ${TAIL} -n +162 ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} > ${WRKDIR}/install.sfx \
&& ${CHMOD} +x ${WRKDIR}/install.sfx \
- && ${WRKDIR}/install.sfx > /dev/null
+ && ${WRKDIR}/install.sfx -o > /dev/null
+.for i in ${PACKED_JARS}
+ @${UNPACK_CMD} -r ${WRKSRC}/${i}.pack ${WRKSRC}/${i}.jar
+.endfor
post-patch:
${REINPLACE_CMD} -i.orig -e 's:^#!/bin/bash:#!/bin/sh:' ${WRKSRC}/bin/jcontrol
@@ -65,12 +68,6 @@ do-install:
${MKDIR} ${APP_HOME}
cd ${WRKSRC} && ${FIND} . -print \
| ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${APP_HOME}
- for i in ${PACKED_JARS}; do \
- if [ -f ${APP_HOME}/`dirname $$i`/`basename $$i .jar`.pack ]; then \
- ${UNPACK_CMD} ${APP_HOME}/`dirname $$i`/`basename $$i .jar`.pack ${APP_HOME}/$$i; \
- ${RM} -f ${APP_HOME}/`dirname $$i`/`basename $$i .jar`.pack; \
- fi \
- done
post-install:
${LOCALBASE}/bin/registervm "${APP_HOME}/bin/java # Linux-Sun-JRE${PORTVERSION}"