# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/openssl/openssl.conf # Copyright (C) 2004 - 2024 The T2 SDE Project # Copyright (C) 1998 - 2003 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 --- confopt="enable-md2" # e.g. for nmap if [ "$SDECFG_STATIC" != 1 ]; then var_append confopt " " "shared" else var_append confopt " " "no-shared" var_append confopt " " "no-dso" fi if [ "$SDECFG_LIBC" = "uclibc" ]; then var_append confopt " " "no-async" fi sysconfdir=$sysconfdir/ssl # We can't use ./config becouse that would probably add optimize # options which won't work on our taget system. case "$arch_machine" in i?86) [ "$SDECFG_X86_OPT" = i386 ] && trg="linux-elf no-asm" || trg=linux-elf ;; x86_64) [ "$SDECFG_X8664_X32" = 1 ] && trg="linux-x32 no-asm" || trg=linux-x86_64 ;; alpha) trg=linux-alpha-gcc ;; powerpc) trg=linux-ppc ;; powerpc64) trg=linux-ppc64 ;; riscv32) trg=linux32-riscv32 ;; riscv64) trg=linux64-riscv64 ;; sparc64) trg=linux64-sparcv9 ;; sparc*) # v7, v8, v9, ... remove plus, vis, ... trg=linux-$(echo $arch_machine | sed 's/sparc\(v.\).*/sparc\1/') #[ "$trg" = "linux-sparc" ] && # broken in 1.1.1i 2021 trg=linux-generic32 ;; s390x) trg=linux64-s390x ;; *) if [ "$arch_bigendian" == "yes" ]; then trg="linux-generic32 -DB_ENDIAN"; else trg="linux-generic32 -DL_ENDIAN"; fi ;; esac runconf= hook_add premake 4 "./Configure --prefix=/$prefix --libdir=$libdir --openssldir=$sysconfdir $trg $confopt" var_remove_regex makeopt " " "AS=.*" var_remove_regex makeopt " " "AR=.*" var_insert makeinstopt " " "MANDIR=$mandir INSTALL_PREFIX=$root"