# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/blackdown-jre/java-blackdown-conf.in # Copyright (C) 2004 - 2023 The T2 SDE Project # Copyright (C) 1998 - 2005 ROCK Linux Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- # Prevent normal package extraction. However since auto package # extraction is turned off, so are the pre and post patch hooks. # Instead we abuse the preconf hook to do the necessary patching. autoextract=0 # Prevent executing normal make and install build steps. # This package has custom make and install. makeopt='' makeinstopt='' # Make prefix same a java_home. This way artifacts like the bin, lib # and doc directory are created at the proper level. . $base/package/*/*/java-jdk-conf.in $1 java_install_opt="" java_home_original= # Check if installing needs to be done with or without X11. if ! pkginstalled xorg; then var_append java_install_opt ' ' "--nox11" fi # The archive to be installed/patched depends on the # current architecture. java_srctar= case $arch in x86) java_srctar="`match_source_file -p -i586`" ;; x86-64) java_srctar="`match_source_file -p -amd64`" ;; esac # Make sure there is a file to be patched. If not we # apparently do not support the current architecture. [ "$java_srctar" ] || abort "No binary for this architecture ($arch) detected!" # Custom pre patching. java_preconf() { # eliminate interactivity and integrity checks. cp -v $java_srctar . sed -i 's/MD5=.*$/MD5=\\"00000000000000000000000000000000\\"; SETUP_NOCHECK=1/' ${java_srctar##*/} sed -i 's/more <