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.

24 lines
461 B

  1. install_jdk () {
  2. cp -a $archdir/j2sdk-${ver//./_}-linux-i586.bin java.bin
  3. chmod +x java.bin
  4. patch -p0 < $confdir/head-tail.patch
  5. yes | ./java.bin
  6. cp -a --reply=yes j2sdk1.4* /opt
  7. JAVA_HOME="/opt/`ls -d j2sdk1.4*`"
  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="