<commit_before>#! /bin/bash

source ./install_helpers.sh "" || exit 1

PKG_NAME="curl"
PKG_INSTALLED_FILE="$SWEET_LOCAL_SOFTWARE_DST_DIR/bin/curl"
PKG_URL_SRC="curl-7.61.1.tar.xz"

config_package $@ || exit 1

config_configure --with-ca-path=$SWEET_LOCAL_SOFTWARE_DST_DIR/ssl/certs || exit 1

config_make_default || exit 1
config_exec "make test" || exit 1
config_make_install || exit 1
config_success || exit 1
<commit_msg>updated curl script to install certificates<commit_after>#! /bin/bash

source ./install_helpers.sh "" || exit 1

PKG_NAME="curl"
PKG_INSTALLED_FILE="$SWEET_LOCAL_SOFTWARE_DST_DIR/bin/curl"
PKG_URL_SRC="curl-7.61.1.tar.xz"

config_package $@ || exit 1

CONFIG_PARAMS=""
CONFIG_PARAMS+=" --enable-http"
CONFIG_PARAMS+=" --enable-file"
CONFIG_PARAMS+=" --enable-proxy"
CONFIG_PARAMS+=" --enable-tftp"
CONFIG_PARAMS+=" --enable-ipv6"

CONFIG_PARAMS+=" --enable-versioned-symbols"

CONFIG_PARAMS+=" --with-nghttp2"
#CONFIG_PARAMS+=" --with-libssh2"

# SSL/TLS config
CONFIG_PARAMS+=" --with-ssl=$SWEET_LOCAL_SOFTWARE_DST_DIR"
CONFIG_PARAMS+=" --with-ca-path=$SWEET_LOCAL_SOFTWARE_DST_DIR/ssl/certs"
CONFIG_PARAMS+=" --with-ca-bundle=$SWEET_LOCAL_SOFTWARE_DST_DIR/ssl/ca-bundle.crt"

config_configure $CONFIG_PARAMS || exit 1

config_make_default || exit 1

if [ "${HOSTNAME:0:10}" != "mpp2-login" ]; then
	# Just save some time :-)
	config_exec "make test" || exit 1
fi
config_make_install || exit 1

echo_info "Installing certificates"
echo_warning "We enforce getting certificates even over an unsecure connection!"
config_exec ./lib/mk-ca-bundle.pl -k

echo_info "Installing bundle"
config_exec cp "ca-bundle.crt" "$SWEET_LOCAL_SOFTWARE_DST_DIR/ssl/ca-bundle.crt" || echo_error_exit "Failed to install ca-bundle.crt"

config_success || exit 1

{'fraction_non_alphanumeric': 0.14220963172804532, 'fraction_numerical': 0.01643059490084986, 'mean_word_length': 5.714828897338403, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3926702', 'n_tokens_mistral': 708, 'n_tokens_neox': 673, 'n_words': 127}