diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2012-10-28 02:11:29 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2012-10-28 02:11:29 +0000 |
commit | ace34c1a63d2023b28ff447b8f2f73f81b4b4a83 (patch) | |
tree | e5a8bb5e922e547d2f7d8bc2ecd235875f5b02c7 /java/javavmwrapper/files | |
parent | 1f2c8b09c343a1cc51d6682ab68188c6518d1f6f (diff) | |
download | ports-ace34c1a63d2023b28ff447b8f2f73f81b4b4a83.tar.gz ports-ace34c1a63d2023b28ff447b8f2f73f81b4b4a83.zip |
- Ignore bootstrap-openjdk when we automatically register existing JVMs.
- Make sure to destroy all symlinks pointing to ${PREFIX}/bin/javavm and
${PREFIX}/etc/javavms when we deinstall the package.
Reviewed by: glewis (maintainer)
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=306536
Diffstat (limited to 'java/javavmwrapper/files')
-rw-r--r-- | java/javavmwrapper/files/pkg-install.in | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/java/javavmwrapper/files/pkg-install.in b/java/javavmwrapper/files/pkg-install.in index 92a7d10b9e97..a978b3f5abf6 100644 --- a/java/javavmwrapper/files/pkg-install.in +++ b/java/javavmwrapper/files/pkg-install.in @@ -21,9 +21,14 @@ else 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" > /dev/null 2>&1 +_excl_dirs='bootstrap-openjdk' +_find_expr='-depth 2 -regex .*/bin/java' +for dir in ${_excl_dirs}; do + _find_expr="${_find_expr} ! -regex ${dir}/bin/java" +done +for jvm in `cd "${LOCALBASE}" && find *jdk* *jre* ${_find_expr}`; do + if [ -x "${LOCALBASE}/${jvm}" ]; then + "${PKG_PREFIX}"/bin/registervm "${LOCALBASE}/${jvm}" > /dev/null 2>&1 fi done |