aboutsummaryrefslogtreecommitdiff
path: root/java/javavmwrapper/files
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2004-12-16 15:38:17 +0000
committerGreg Lewis <glewis@FreeBSD.org>2004-12-16 15:38:17 +0000
commit6e54503ac840b95786cce0e162bd65727ea0754e (patch)
tree4b0939785abc240f7f93e154f177ff762671541d /java/javavmwrapper/files
parentc5e4515b6c5f0aa5d961644c7891a0f6e373589f (diff)
downloadports-6e54503ac840b95786cce0e162bd65727ea0754e.tar.gz
ports-6e54503ac840b95786cce0e162bd65727ea0754e.zip
Notes
Diffstat (limited to 'java/javavmwrapper/files')
-rw-r--r--java/javavmwrapper/files/pkg-install.in20
1 files changed, 20 insertions, 0 deletions
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