diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2003-02-16 08:33:22 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2003-02-16 08:33:22 +0000 |
commit | 7f05c36ddb2f9f17fae44c01a15d8f8dd30646ed (patch) | |
tree | a385db20814b1463eb1a52b12a1b215869116d57 /java/shujit/pkg-install | |
parent | 6ed85a8360418eb8863008273ca1bd31be118e6c (diff) | |
download | ports-7f05c36ddb2f9f17fae44c01a15d8f8dd30646ed.tar.gz ports-7f05c36ddb2f9f17fae44c01a15d8f8dd30646ed.zip |
Notes
Diffstat (limited to 'java/shujit/pkg-install')
-rw-r--r-- | java/shujit/pkg-install | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/java/shujit/pkg-install b/java/shujit/pkg-install new file mode 100644 index 000000000000..98c2ef2063e3 --- /dev/null +++ b/java/shujit/pkg-install @@ -0,0 +1,64 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +[ "$2" = "POST-INSTALL" ] || exit 0 + +linkfile="${PKG_PREFIX}/etc/shujit-links" +:>"${linkfile}" + +sed 's/[[:space:]]*#.*//' ${PKG_PREFIX}/etc/javavms | while read vm +do + case "$vm" in + *linux*) + # Linux JDKs are not supported + ;; + *) + java_home="${vm%%/bin/*}" + case "$java_home" in + *jdk1.1.8*) + libdir="${java_home}/lib/i386/green_threads" + ;; + *) + libdir="${java_home}/jre/lib/i386" + ;; + esac + echo "Installing link in ${libdir}" + ln -fs "${PKG_PREFIX}/lib/libshujit.so" "${libdir}/libshujit.so" + echo "${libdir}/libshujit.so" >>"${linkfile}" + ;; + esac +done +#!/bin/sh +# +# $FreeBSD$ +# + +[ "$2" = "POST-INSTALL" ] || exit 0 + +linkfile="${PKG_PREFIX}/etc/shujit-links" +:>"${linkfile}" + +sed 's/[[:space:]]*#.*//' ${PKG_PREFIX}/etc/javavms | while read vm +do + case "$vm" in + *linux*) + # Linux JDKs are not supported + ;; + *) + java_home="${vm%%/bin/*}" + case "$java_home" in + *jdk1.1.8*) + libdir="${java_home}/lib/i386/green_threads" + ;; + *) + libdir="${java_home}/jre/lib/i386" + ;; + esac + echo "Installing link in ${libdir}" + ln -fs "${PKG_PREFIX}/lib/libshujit.so" "${libdir}/libshujit.so" + echo "${libdir}/libshujit.so" >>"${linkfile}" + ;; + esac +done |