I uploaded a new j2se14.spec file. I added options to it so that you can keep the demos if you want, add docs, remove man pages and/or add the US Encryption policy files. I tried to upload the src.rpm which included an rc script that just adds the JAVA_HOME into the environment, but it was rejected. I attached the rc script to this email in case anyone wants it.
-- David M. Fetter - UNIX Systems Administrator Portland State University - www.oit.pdx.edu "Only those who attempt the absurd can achieve the impossible."
#!/usr/local/lib/openpkg/bash /usr/local/etc/rc
##
## rc.j2se14 -- Run-Commands
##
%config
j2se14_enable="$openpkg_rc_def"
j2se14_home="/usr/local/libexec/j2se14"
java_home="$j2se14_home"
%status -u root -o
j2se14_usable="unknown"
j2se14_active="no"
${j2se14_home}/bin/java -version 2> /dev/null
status=$?
if [ $status -eq 0 ]; then
j2se14_active="yes"
fi
echo "j2se14_enable=\"$j2se14_enable\""
# active is the same as usable
echo "j2se14_usable=\"$j2se14_active\""
echo "j2se14_active=\"$j2se14_active\""
%start
:
%stop
:
%env
rcService j2se14 enable yes || exit 0
JAVA_HOME="$JDK_home"
JDK_home="$j2se14_home"
JAVA_home="$j2se14_home"
export JAVA_HOME JDK_home JAVA_home
signature.asc
Description: This is a digitally signed message part
