From 6e54503ac840b95786cce0e162bd65727ea0754e Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Thu, 16 Dec 2004 15:38:17 +0000 Subject: . Move pkg-install to files/pkg-install.in since it is modified before use. This also fixes a problem that when being modified it wasn't specified by absolute path. Reported by: Robert Backhaus --- java/javavmwrapper/files/pkg-install.in | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 java/javavmwrapper/files/pkg-install.in (limited to 'java/javavmwrapper/files') diff --git a/java/javavmwrapper/files/pkg-install.in b/java/javavmwrapper/files/pkg-install.in new file mode 100644 index 000000000000..e76f047b4f77 --- /dev/null +++ b/java/javavmwrapper/files/pkg-install.in @@ -0,0 +1,20 @@ +#!/bin/sh +# +# $FreeBSD: /tmp/pcvs/ports/java/javavmwrapper/files/pkg-install.in,v 1.1 2004-12-16 15:38:17 glewis Exp $ + +LOCALBASE=%%LOCALBASE%% + +# This script runs during post-install +if [ "x${2}" != "xPOST-INSTALL" ]; then + exit 0 +fi + +# Ensure all JDKs and JREs are installed +for jvm in "${LOCALBASE}"/*jdk* "${LOCALBASE}"/*jre*; do + if [ -x "${jvm}/bin/java" ]; then + "${PKG_PREFIX}"/bin/registervm "${jvm}/bin/java" + fi +done + +# Ensure all VMs are configured correctly +"${PKG_PREFIX}"/bin/checkvms -- cgit v1.2.3