Bug 187536 - [PATCH] java/linux-sun-jdk16: Stage
Summary: [PATCH] java/linux-sun-jdk16: Stage
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-13 15:00 UTC by Johannes Meixner
Modified: 2014-03-23 19:50 UTC (History)
1 user (show)

See Also:


Attachments
linux-sun-jdk16-1.6.0.45.patch (2.56 KB, patch)
2014-03-13 15:00 UTC, Johannes Meixner
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Meixner 2014-03-13 15:00:00 UTC
- Stage

Port maintainer (java@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 1.00.2014.03.12 (mode: change, diff: SVN)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-13 15:00:34 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-java

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Steve Wills freebsd_committer freebsd_triage 2014-03-23 19:44:42 UTC
Responsible Changed
From-To: freebsd-java->swills

I'll take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2014-03-23 19:48:12 UTC
Author: swills
Date: Sun Mar 23 19:48:09 2014
New Revision: 348884
URL: http://svnweb.freebsd.org/changeset/ports/348884
QAT: https://qat.redports.org/buildarchive/r348884/

Log:
  - Stage
  
  PR:		ports/187536
  Submitted by:	Johannes Jost Meixner <xmj@chaot.net>

Modified:
  head/java/linux-sun-jdk16/Makefile
  head/java/linux-sun-jdk16/files/pkg-install.in

Modified: head/java/linux-sun-jdk16/Makefile
==============================================================================
--- head/java/linux-sun-jdk16/Makefile	Sun Mar 23 19:43:54 2014	(r348883)
+++ head/java/linux-sun-jdk16/Makefile	Sun Mar 23 19:48:09 2014	(r348884)
@@ -27,6 +27,7 @@ PLIST_SUB+=	T=${APP_HOME:S/^${PREFIX}\//
 PKGINSTALL=	${WRKDIR}/pkg-install
 
 NO_BUILD=	yes
+USES=	shebangfix
 USE_LINUX=	yes
 USE_LINUX_APPS=	xorglibs
 JDK_VERSION=	1.6.0
@@ -38,7 +39,6 @@ APP_HOME=	${PREFIX}/${PKGNAMEPREFIX}${PO
 PACKED_JARS=	jre/lib/charsets jre/lib/deploy jre/lib/ext/localedata jre/lib/javaws jre/lib/jsse jre/lib/plugin jre/lib/rt lib/tools
 UNPACK_CMD=	${WRKSRC}/bin/unpack200
 
-NO_STAGE=	yes
 .include <bsd.port.pre.mk>
 
 .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
@@ -95,13 +95,13 @@ post-patch:
 # XXX: This is missing a "${BRANDELF} -t Linux <executables>".
 
 do-install:
-	${MKDIR} ${APP_HOME}
+	${MKDIR} ${STAGEDIR}${APP_HOME}
 	cd ${WRKSRC} && ${FIND} . -print \
-	  | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${APP_HOME}
+	  | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${STAGEDIR}${APP_HOME}
 
 post-install:
-	${LOCALBASE}/bin/registervm "${APP_HOME}/bin/java # Linux-Sun-JDK${PORTVERSION}"
-	${SED} -e "s:%%JRE_HOME%%:${APP_HOME}/jre:g" \
+	${SED} -e "s:%%JRE_HOME%%:${APP_HOME}/jre:g; \
+		s:%%STAGEDIR%%:${STAGEDIR}:g" \
 	  < ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
 	${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 

Modified: head/java/linux-sun-jdk16/files/pkg-install.in
==============================================================================
--- head/java/linux-sun-jdk16/files/pkg-install.in	Sun Mar 23 19:43:54 2014	(r348883)
+++ head/java/linux-sun-jdk16/files/pkg-install.in	Sun Mar 23 19:48:09 2014	(r348884)
@@ -5,15 +5,15 @@ PREFS_LOCATION=%%JRE_HOME%%
 
 # Set up system preferences during post install
 if [ "$2" = "POST-INSTALL" ]; then
-	if [ ! -d "${PREFS_LOCATION}/.systemPrefs" ] ; then
-		mkdir -m 755 "${PREFS_LOCATION}/.systemPrefs"
+	if [ ! -d "%%STAGEDIR%%${PREFS_LOCATION}/.systemPrefs" ] ; then
+		mkdir -m 755 "%%STAGEDIR%%${PREFS_LOCATION}/.systemPrefs"
 	fi
-	if [ ! -f "${PREFS_LOCATION}/.systemPrefs/.system.lock" ] ; then
-		touch "${PREFS_LOCATION}/.systemPrefs/.system.lock"
-		chmod 644 "${PREFS_LOCATION}/.systemPrefs/.system.lock"
+	if [ ! -f "%%STAGEDIR%%${PREFS_LOCATION}/.systemPrefs/.system.lock" ] ; then
+		touch "%%STAGEDIR%%${PREFS_LOCATION}/.systemPrefs/.system.lock"
+		chmod 644 "%%STAGEDIR%%${PREFS_LOCATION}/.systemPrefs/.system.lock"
 	fi
-	if [ ! -f "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile" ] ; then
-		touch "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
-		chmod 644 "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
+	if [ ! -f "%%STAGEDIR%%${PREFS_LOCATION}/.systemPrefs/.systemRootModFile" ] ; then
+		touch "%%STAGEDIR%%${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
+		chmod 644 "%%STAGEDIR%%${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
 	fi
 fi
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Steve Wills freebsd_committer freebsd_triage 2014-03-23 19:48:16 UTC
State Changed
From-To: open->closed

Committed. Thanks!