@@ -39,31 +39,38 @@ WORKDIR /tmp/build
3939RUN set -x && \
4040 apt-get update && \
4141 apt-get install -y --no-install-recommends \
42- build-essential fakeroot software-properties-common devscripts
42+ build-essential fakeroot devscripts equivs
4343
4444RUN set -x && \
45- export OPENSSL_VERSION=1.1.1g BUILD_PATH=$PWD DEBEMAIL=
"Team Hephy <[email protected] >" && \
46- add-apt-repository --enable-source ppa:ondrej/nginx && \
47- apt-get build-dep -y openssl=$OPENSSL_VERSION && \
48- apt-get source -y openssl=$OPENSSL_VERSION && \
45+ export OPENSSL_VERSION=1.1.1k OPENSSL_VERSION_DEB=1.1.1k-1 BUILD_PATH=$PWD DEBEMAIL=
"Team Hephy <[email protected] >" && \
46+ get_src_file b070d0422d0d666eaef5ca86b69b59e15eee8287de8183b2375ca28e038adbf1 \
47+ http://deb.debian.org/debian/pool/main/o/openssl/openssl_$OPENSSL_VERSION_DEB.dsc && \
48+ get_src_file 892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5 \
49+ http://deb.debian.org/debian/pool/main/o/openssl/openssl_$OPENSSL_VERSION.orig.tar.gz && \
50+ get_src_file addeaa197444a62c6063d7f819512c2c22b42141dec9d8ec3bff7e4518e1d1c9 \
51+ http://deb.debian.org/debian/pool/main/o/openssl/openssl_$OPENSSL_VERSION.orig.tar.gz.asc && \
52+ get_src_file 7563beb68e87bae24369dfd7569ded77ee1bc22d0d890b94c85581dc86714fa1 \
53+ http://deb.debian.org/debian/pool/main/o/openssl/openssl_$OPENSSL_VERSION_DEB.debian.tar.xz && \
54+ dpkg-source -x openssl_$OPENSSL_VERSION_DEB.dsc && \
4955 # ChaCha20-Poly1305 Draft Support for older Android versions
50- get_src_file 5e082d46544915b0a580fe71a5e53cb22f535c7dc67a35221d292316701dc085 \
51- https://raw.githubusercontent.com/hakasenyang/openssl-patch/3ea9038 /openssl-1.1.1f -chacha_draft.patch && \
56+ get_src_file 8d3e4e89a957ad8678c5f403f0969abeffc3fe96507b648cd87227bd835c3c30 \
57+ https://raw.githubusercontent.com/hakasenyang/openssl-patch/1b03526 /openssl-1.1.1i -chacha_draft.patch && \
5258 # Allow setting equal preference and TLSv1.3 ciphers in NGINX
5359 get_src_file 04f682c36405a908247c27e317fb0f5f5bb19cbac9699f5afa21fd81511e6be2 \
5460 https://raw.githubusercontent.com/hakasenyang/openssl-patch/e3bd4a8/openssl-equal-1.1.1e-dev_ciphers.patch && \
5561 cd "$BUILD_PATH/openssl-$OPENSSL_VERSION" && \
62+ sed -i '/^Build-Depends:/ s/ debhelper-compat (= 12)/ debhelper-compat (= 11)/' debian/control && \
63+ dch -l hephy "Fix build deps for Ubuntu Bionic" && \
64+ mk-build-deps -i -t "apt-get -y --no-install-recommends" && \
5665 sed -i '/^CONFARGS\s *=/ s/ enable-unit-test//' debian/rules && \
5766 dch -l hephy "Disable unit tests" && \
5867 sed -i '/^CONFARGS\s *=/ s/$/ enable-weak-ssl-ciphers/' debian/rules && \
5968 dch -l hephy "Enable weak SSL ciphers" && \
6069 cp "$BUILD_PATH/openssl-equal-1.1.1e-dev_ciphers.patch" debian/patches/ && \
6170 echo openssl-equal-1.1.1e-dev_ciphers.patch >> debian/patches/series && \
6271 dch -l hephy "Add BoringSSL port of equal preference cipher groups" && \
63- cp "$BUILD_PATH/openssl-1.1.1f-chacha_draft.patch" debian/patches/ && \
64- echo openssl-1.1.1f-chacha_draft.patch >> debian/patches/series && \
65- # Add missing libcrypto 1.1.1f symbol mapping
66- sed -i '/^ \* @OPENSSL_1_1_1e 1\. 1\. 1e/p; s/e/f/g' debian/libssl1.1.symbols && \
72+ cp "$BUILD_PATH/openssl-1.1.1i-chacha_draft.patch" debian/patches/ && \
73+ echo openssl-1.1.1i-chacha_draft.patch >> debian/patches/series && \
6774 dch -l hephy "Add ChaCha-Draft cipher support" && \
6875 dch -r " " && \
6976 DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -uc -b -rfakeroot && \
0 commit comments