diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-02-18 11:08:47 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-02-18 11:08:47 -0500 |
commit | 82adb5b56b838fa2d96a1e5a6af27d47ea40374f (patch) | |
tree | c2c4f4049b3f60afcbac8bc7f0e03be93d1d1dde | |
parent | 46c21464a7da09f784b32d7c2fb87054715fbd80 (diff) | |
download | docker-python-82adb5b56b838fa2d96a1e5a6af27d47ea40374f.tar.gz |
OpenSSL moved to base
-rwxr-xr-x | etc/pkgs/001-openssl.sh | 77 | ||||
-rwxr-xr-x | etc/pkgs/001-python.sh (renamed from etc/pkgs/002-python.sh) | 0 |
2 files changed, 0 insertions, 77 deletions
diff --git a/etc/pkgs/001-openssl.sh b/etc/pkgs/001-openssl.sh deleted file mode 100755 index 596ae87..0000000 --- a/etc/pkgs/001-openssl.sh +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/bash -set -x - -name="openssl" -version="1.1.0j" - -tarball="${name}-${version}.tar.gz" -dest="${tarball%%.tar.gz}" -url="https://www.openssl.org/source/${tarball}" -prefix="${TOOLCHAIN}" - - -function pre() -{ - curl -LO "${url}" - tar xf "${tarball}" -} - - -function get_system_cacert() { - local paths=( - /etc/ssl/cert.pem - /etc/ssl/cacert.pem - /etc/ssl/certs/cacert.pem - /etc/ssl/certs/ca-bundle.crt - ) - for bundle in "${paths[@]}" - do - if [[ -f ${bundle} ]]; then - echo "${bundle}" - break - fi - done -} - - -function build() -{ - pre - pushd "${dest}" - export PATH="${prefix}/bin:${PATH}" - export LDFLAGS="-Wl,-rpath=${prefix}/lib" - export KERNEL_BITS=64 - target="linux-x86_64" - - sed -i -e "s@./demoCA@${TOOLCHAIN}/ssl@" \ - apps/openssl.cnf \ - apps/CA.pl.in - - ./Configure \ - --prefix="${prefix}" \ - --openssldir="ssl" \ - --libdir="lib" \ - ${LDFLAGS} \ - ${target} \ - enable-ec_nistp_64_gcc_128 \ - zlib-dynamic \ - shared \ - no-ssl3-method - make -j${_maxjobs} - make install MANDIR="${prefix}/share/man" MANSUFFIX=ssl - popd - post -} - -function post() -{ - bundle=$(get_system_cacert) - install -D -m644 "${bundle}" "${prefix}/ssl/cert.pem" - rm -rf "${prefix}/share/doc/openssl/html" - rm -rf "${dest}" - rm -rf "${tarball}" - echo "All done." -} - -# Main -build diff --git a/etc/pkgs/002-python.sh b/etc/pkgs/001-python.sh index 36cebc6..36cebc6 100755 --- a/etc/pkgs/002-python.sh +++ b/etc/pkgs/001-python.sh |