From 5a73e969fe99d6b420486529a16808655a812705 Mon Sep 17 00:00:00 2001 From: kurt Date: Tue, 1 Aug 2006 14:43:56 +0000 Subject: [PATCH] javaPathHelper is a script that java applications can use to provide a constant and familiar method for launching java applications on OpenBSD. The use of JAVACMD, JAVA_HOME and PATH environment variables are well known methods for users to control which JVM is used to launch a java application. When a user sets up his environment javaPathHelp will use it. No attempt is made to prevent the user from running an application that requires a particular JVM version with a lower version. When the user's environment has not be setup, javaPathHelper falls back to inspecting which JDK or JVM satisfied the RUN_DEPENDS for the package. okay ian@ --- java/javaPathHelper/Makefile | 29 +++++++++++++++++++++++++++++ java/javaPathHelper/distinfo | 4 ++++ java/javaPathHelper/pkg/DESCR | 10 ++++++++++ java/javaPathHelper/pkg/PLIST | 2 ++ 4 files changed, 45 insertions(+) create mode 100644 java/javaPathHelper/Makefile create mode 100644 java/javaPathHelper/distinfo create mode 100644 java/javaPathHelper/pkg/DESCR create mode 100644 java/javaPathHelper/pkg/PLIST diff --git a/java/javaPathHelper/Makefile b/java/javaPathHelper/Makefile new file mode 100644 index 00000000000..acd50e238b1 --- /dev/null +++ b/java/javaPathHelper/Makefile @@ -0,0 +1,29 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/08/01 14:43:56 kurt Exp $ + +COMMENT= "helper script for launching java applications" + +DISTNAME= javaPathHelper-0.1 +CATEGORIES= java + +HOMEPAGE= http://www.intricatesoftware.com/OpenBSD/java + +MAINTAINER= kurt@openbsd.org + +MASTER_SITES= http://www.intricatesoftware.com/OpenBSD/java/ + +# BSD +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +NO_BUILD= Yes +NO_REGRESS= Yes + +do-install: + @sed -e "s+%%LOCALBASE%%+${TRUEPREFIX}+g" \ + -e "s+%%PKG_DBDIR%%+${PKG_DBDIR}+g" \ + ${WRKBUILD}/javaPathHelper.in > ${WRKBUILD}/javaPathHelper + ${INSTALL_SCRIPT} ${WRKBUILD}/javaPathHelper ${PREFIX}/bin + +.include diff --git a/java/javaPathHelper/distinfo b/java/javaPathHelper/distinfo new file mode 100644 index 00000000000..45cf5264ffd --- /dev/null +++ b/java/javaPathHelper/distinfo @@ -0,0 +1,4 @@ +MD5 (javaPathHelper-0.1.tar.gz) = d8eb59ae07fcfcdb4aff34edd060a222 +RMD160 (javaPathHelper-0.1.tar.gz) = 34de9f1d76856036d437f727c83f2451bd47eafe +SHA1 (javaPathHelper-0.1.tar.gz) = f0fd5e26650c5020a5744496ca3e1b1abe896617 +SIZE (javaPathHelper-0.1.tar.gz) = 1763 diff --git a/java/javaPathHelper/pkg/DESCR b/java/javaPathHelper/pkg/DESCR new file mode 100644 index 00000000000..5b0a8759e33 --- /dev/null +++ b/java/javaPathHelper/pkg/DESCR @@ -0,0 +1,10 @@ +javaPathHelper is a script that java applications can use to provide a +constant and familiar method for launching java applications on +OpenBSD. The use of JAVACMD, JAVA_HOME and PATH environment variables are +well known methods for users to control which JVM is used to launch a +java application. When a user sets up his environment javaPathHelp will +use it. No attempt is made to prevent the user from running an +application that requires a particular JVM version with a lower version. +When the user's environment has not be setup, javaPathHelper falls back +to inspecting which JDK or JVM satisfied the RUN_DEPENDS for the +package. diff --git a/java/javaPathHelper/pkg/PLIST b/java/javaPathHelper/pkg/PLIST new file mode 100644 index 00000000000..5b30b986a86 --- /dev/null +++ b/java/javaPathHelper/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/08/01 14:43:56 kurt Exp $ +bin/javaPathHelper