Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Oct 2003 12:21:59 -0600
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        Ernst de Haan <ernst.dehaan@nl.wanadoo.com>
Cc:        "Georg-W. Koltermann" <gwk@rahn-koltermann.de>
Subject:   Re: Native jdk1.4.1 working
Message-ID:  <20031001182159.GA11190@misty.eyesbeyond.com>
In-Reply-To: <200310010918.53967.ernst.dehaan@nl.wanadoo.com>
References:  <Pine.GSO.4.10.10308281531530.4610-100000@pcnet5.pcnet.com> <1062706874.886.27.camel@hunter.muc.eu.mscsoftware.com> <20031001011519.GB6490@misty.eyesbeyond.com> <200310010918.53967.ernst.dehaan@nl.wanadoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--C7zPtVaVf+AK4Oqc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, Oct 01, 2003 at 09:18:53AM +0200, Ernst de Haan wrote:
> > Argh, thats what I was missing.  I need to put them in jre!  Ernst, I
> > think I can come up with a patch for this.
> 
> What can I say? This is great. I'm looking forward to your patch.

Look forward no longer... Here 'tis :).

I have a similar patch for the native port which I'll run by Alexey if
you think this one is ok.

It may also be worthwhile adding something similar to both
linux-blackdown-jdk14 and linux-ibm-jdk14.  I'll try and figure out if
they need it (I'm sure Blackdown does, not so sure about IBM).

-- 
Greg Lewis                          Email   : glewis@eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis@FreeBSD.org


--C7zPtVaVf+AK4Oqc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="prefs.diff"

Index: Makefile
===================================================================
RCS file: /var/fcvs/ports/java/linux-sun-jdk14/Makefile,v
retrieving revision 1.36
diff -u -r1.36 Makefile
--- Makefile	30 Sep 2003 23:42:51 -0000	1.36
+++ Makefile	1 Oct 2003 18:16:39 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	jdk
 PORTVERSION=	${INSTALL_JDK_VERSION}
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	java devel
 MASTER_SITES=	#
 PKGNAMEPREFIX=	linux-sun-
@@ -71,6 +71,11 @@
 	    ${RM} -f ${APP_HOME}/`dirname $$i`/`basename $$i .jar`.pack; \
 	  fi \
 	done
+
+post-install:
 	${LOCALBASE}/bin/registervm "${APP_HOME}/bin/java # Linux-Sun-JDK${PORTVERSION}"
+	${SED} -e "s:%%JRE_HOME%%:${APP_HOME}/jre:g" \
+	  < ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
+	${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 
 .include <bsd.port.post.mk>
Index: pkg-plist
===================================================================
RCS file: /var/fcvs/ports/java/linux-sun-jdk14/pkg-plist,v
retrieving revision 1.15
diff -u -r1.15 pkg-plist
--- pkg-plist	4 Sep 2003 15:09:56 -0000	1.15
+++ pkg-plist	1 Oct 2003 17:15:45 -0000
@@ -883,6 +883,8 @@
 %%T%%/include/jvmpi.h
 %%T%%/include/linux/jawt_md.h
 %%T%%/include/linux/jni_md.h
+%%T%%/jre/.systemPrefs/.system.lock
+%%T%%/jre/.systemPrefs/.systemRootModFile
 %%T%%/jre/CHANGES
 %%T%%/jre/COPYRIGHT
 %%T%%/jre/ControlPanel.html
@@ -1589,6 +1591,7 @@
 @dirrm %%T%%/jre/javaws/resources
 @dirrm %%T%%/jre/javaws
 @dirrm %%T%%/jre/bin
+@dirrm %%T%%/jre/.systemPrefs
 @dirrm %%T%%/jre
 @dirrm %%T%%/include/linux
 @dirrm %%T%%/include
Index: files/pkg-install.in
===================================================================
RCS file: files/pkg-install.in
diff -N files/pkg-install.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/pkg-install.in	1 Oct 2003 17:16:00 -0000
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# System preference location
+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"
+	fi
+	if [ ! -f "${PREFS_LOCATION}/.systemPrefs/.system.lock" ] ; then
+		touch "${PREFS_LOCATION}/.systemPrefs/.system.lock"
+		chmod 644 "${PREFS_LOCATION}/.systemPrefs/.system.lock"
+	fi
+	if [ ! -f "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile" ] ; then
+		touch "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
+		chmod 644 "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
+	fi
+fi

--C7zPtVaVf+AK4Oqc--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031001182159.GA11190>