curl-impersonate: A special build of curl that can impersonate Chrome & Firefox
Move Chrome related files to their own directory
lwthiker367f91922d10
diff --git a/Dockerfile.chrome b/chrome/Dockerfilesimilarity index 96%rename from Dockerfile.chromerename to chrome/Dockerfileindex 863de0d..68554d8 100644--- a/Dockerfile.chrome+++ b/chrome/Dockerfile@@ -40,7 +40,7 @@ RUN curl -o ${NGHTTP2_VERSION}.tar.bz2 -L ${NGHTTP2_URL}RUN tar xf ${NGHTTP2_VERSION}.tar.bz2# Patch nghttp2 pkg config file to support static builds.-COPY libnghttp2-*.patch ${NGHTTP2_VERSION}/+COPY patches/libnghttp2-*.patch ${NGHTTP2_VERSION}/RUN cd ${NGHTTP2_VERSION} && \for p in $(ls libnghttp2-*.patch); do patch -p1 < $p; done && \autoreconf -i && automake && autoconf@@ -56,7 +56,7 @@ RUN curl -o ${CURL_VERSION}.tar.xz https://curl.se/download/${CURL_VERSION}.tar.RUN tar xf ${CURL_VERSION}.tar.xz# Patch curl and re-generate the configure script-COPY curl-*.patch ${CURL_VERSION}/+COPY patches/curl-*.patch ${CURL_VERSION}/RUN cd ${CURL_VERSION} && \for p in $(ls curl-*.patch); do patch -p1 < $p; done && \autoreconf -fidiff --git a/curl_chrome98 b/chrome/curl_chrome98similarity index 100%rename from curl_chrome98rename to chrome/curl_chrome98diff --git a/chrome/patches/curl-configure.patch b/chrome/patches/curl-configure.patchnew file mode 100644index 0000000..8e5c749--- /dev/null+++ b/chrome/patches/curl-configure.patch@@ -0,0 +1,17 @@+--- curl-7.81.0-original/configure.ac 2022-01-03 18:36:46.000000000 +0200++++ curl-7.81.0/configure.ac 2022-02-17 13:40:02.248497926 +0200+@@ -2575,3 +2575,3 @@+ LIB_H2=`CURL_EXPORT_PCDIR([$want_nghttp2_path])+- $PKGCONFIG --libs-only-l libnghttp2`++ $PKGCONFIG --static --libs-only-l libnghttp2`+ AC_MSG_NOTICE([-l is $LIB_H2])+@@ -2579,3 +2579,3 @@+ CPP_H2=`CURL_EXPORT_PCDIR([$want_nghttp2_path]) dnl+- $PKGCONFIG --cflags-only-I libnghttp2`++ $PKGCONFIG --static --cflags-only-I libnghttp2`+ AC_MSG_NOTICE([-I is $CPP_H2])+@@ -2583,3 +2583,3 @@+ LD_H2=`CURL_EXPORT_PCDIR([$want_nghttp2_path])+- $PKGCONFIG --libs-only-L libnghttp2`++ $PKGCONFIG --static --libs-only-L libnghttp2`+ AC_MSG_NOTICE([-L is $LD_H2])diff --git a/curl-http2-b.patch b/chrome/patches/curl-http-h.patchsimilarity index 100%rename from curl-http2-b.patchrename to chrome/patches/curl-http-h.patchdiff --git a/curl-http2-a.patch b/chrome/patches/curl-http2-c.patchsimilarity index 100%rename from curl-http2-a.patchrename to chrome/patches/curl-http2-c.patchdiff --git a/curl-http2-d.patch b/chrome/patches/curl-http2-h.patchsimilarity index 100%rename from curl-http2-d.patchrename to chrome/patches/curl-http2-h.patchdiff --git a/curl-http2-c.patch b/chrome/patches/curl-multi-c.patchsimilarity index 100%rename from curl-http2-c.patchrename to chrome/patches/curl-multi-c.patchdiff --git a/curl-openssl.patch b/chrome/patches/curl-openssl-c.patchsimilarity index 100%rename from curl-openssl.patchrename to chrome/patches/curl-openssl-c.patchdiff --git a/chrome/patches/libnghttp2-pc.patch b/chrome/patches/libnghttp2-pc.patchnew file mode 100644index 0000000..0758b8b--- /dev/null+++ b/chrome/patches/libnghttp2-pc.patch@@ -0,0 +1,8 @@+--- nghttp2-1.46.0-original/lib/libnghttp2.pc.in 2021-10-19 12:31:47.000000000 +0300++++ nghttp2-1.46.0/lib/libnghttp2.pc.in 2022-02-17 13:44:46.722604316 +0200+@@ -31,3 +31,4 @@+ Version: @VERSION@+-Libs: -L${libdir} -lnghttp2++Libs: -L${libdir}++Libs.private: -l:libnghttp2.a+ Cflags: -I${includedir}