mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
413 B

  1. install_jdk ()
  2. {
  3. cp -a $archdir/jdk-${ver//./_}-linux-i586.bin java.bin
  4. chmod +x java.bin
  5. yes | ./java.bin
  6. cp -a --reply=yes jdk1.5* /opt
  7. JAVA_HOME="/opt/`ls -d jdk1.5*`"
  8. if [ "$ROCKCFG_JAVA_DEFAULT_JDK_JRE" == "$pkg" ] ; then
  9. cat > $root/etc/profile.d/$pkg <<-EOP
  10. JAVA_HOME="$JAVA_HOME"
  11. export JAVA_HOME
  12. EOP
  13. fi
  14. }
  15. autoextract=0
  16. custmain="install_jdk"
  17. # don't split this package
  18. postflist="pkgsplits="