1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/curl/curl.conf
3 # Copyright (C) 2004 - 2024 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 pkginstalled libpsl || var_append confopt ' ' '--without-libpsl'
15 if ! atstage native; then
16 # work arround configure mess
17 hook_add preconf 5 "$preconf echo ac_cv_path_PKGCONFIG=/tmp/nothing >> \
21 if [ "$SDECFG_STATIC" = "1" ]; then
22 var_insert confopt " " "--disable-shared"
26 if cfile="`match_source_file -p cacert curl`"; then
27 mkdir -p $root$sysconfdir/curl
28 cat < $cfile > $root$sysconfdir/curl/cacert.pem
32 if pkginstalled openssl; then
33 var_append confopt ' ' "--with-openssl --with-ca-bundle=$sysconfdir/curl/cacert.pem"
34 hook_add postmake 3 install_cacert