Skip to content

Commit

Permalink
Add libpsl
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jan 31, 2024
1 parent 2c1b39c commit 53b79e9
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 0 deletions.
22 changes: 22 additions & 0 deletions php-80/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,28 @@ RUN CFLAGS="" \
RUN make install


###############################################################################
# LIBPSL
# This adds support for the public suffix list in curl.
# https://github.com/rockdaboot/libpsl/releases
# Needed by:
# - curl
ENV VERSION_LIBPSL=0.21.5
ENV LIBPSL_BUILD_DIR=${BUILD_DIR}/libpsl
RUN set -xe; \
mkdir -p ${LIBPSL_BUILD_DIR}; \
curl -Ls https://github.com/rockdaboot/libpsl/archive/refs/tags/${VERSION_LIBPSL}.tar.gz \
| tar xzC ${LIBPSL_BUILD_DIR} --strip-components=1
WORKDIR ${LIBPSL_BUILD_DIR}/
RUN ./autogen.sh && autoconf
RUN CFLAGS="" \
CPPFLAGS="-I${INSTALL_DIR}/include -I/usr/include" \
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib" \
./configure \
--prefix=${INSTALL_DIR}
RUN make -j $(nproc) && make install


###############################################################################
# CURL
# # https://github.com/curl/curl/releases
Expand Down
22 changes: 22 additions & 0 deletions php-81/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,28 @@ RUN CFLAGS="" \
RUN make install


###############################################################################
# LIBPSL
# This adds support for the public suffix list in curl.
# https://github.com/rockdaboot/libpsl/releases
# Needed by:
# - curl
ENV VERSION_LIBPSL=0.21.5
ENV LIBPSL_BUILD_DIR=${BUILD_DIR}/libpsl
RUN set -xe; \
mkdir -p ${LIBPSL_BUILD_DIR}; \
curl -Ls https://github.com/rockdaboot/libpsl/archive/refs/tags/${VERSION_LIBPSL}.tar.gz \
| tar xzC ${LIBPSL_BUILD_DIR} --strip-components=1
WORKDIR ${LIBPSL_BUILD_DIR}/
RUN ./autogen.sh && autoconf
RUN CFLAGS="" \
CPPFLAGS="-I${INSTALL_DIR}/include -I/usr/include" \
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib" \
./configure \
--prefix=${INSTALL_DIR}
RUN make -j $(nproc) && make install


###############################################################################
# CURL
# # https://github.com/curl/curl/releases
Expand Down
22 changes: 22 additions & 0 deletions php-82/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,28 @@ RUN CFLAGS="" \
RUN make install


###############################################################################
# LIBPSL
# This adds support for the public suffix list in curl.
# https://github.com/rockdaboot/libpsl/releases
# Needed by:
# - curl
ENV VERSION_LIBPSL=0.21.5
ENV LIBPSL_BUILD_DIR=${BUILD_DIR}/libpsl
RUN set -xe; \
mkdir -p ${LIBPSL_BUILD_DIR}; \
curl -Ls https://github.com/rockdaboot/libpsl/archive/refs/tags/${VERSION_LIBPSL}.tar.gz \
| tar xzC ${LIBPSL_BUILD_DIR} --strip-components=1
WORKDIR ${LIBPSL_BUILD_DIR}/
RUN ./autogen.sh && autoconf
RUN CFLAGS="" \
CPPFLAGS="-I${INSTALL_DIR}/include -I/usr/include" \
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib" \
./configure \
--prefix=${INSTALL_DIR}
RUN make -j $(nproc) && make install


###############################################################################
# CURL
# # https://github.com/curl/curl/releases
Expand Down
22 changes: 22 additions & 0 deletions php-83/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,28 @@ RUN CFLAGS="" \
RUN make install


###############################################################################
# LIBPSL
# This adds support for the public suffix list in curl.
# https://github.com/rockdaboot/libpsl/releases
# Needed by:
# - curl
ENV VERSION_LIBPSL=0.21.5
ENV LIBPSL_BUILD_DIR=${BUILD_DIR}/libpsl
RUN set -xe; \
mkdir -p ${LIBPSL_BUILD_DIR}; \
curl -Ls https://github.com/rockdaboot/libpsl/archive/refs/tags/${VERSION_LIBPSL}.tar.gz \
| tar xzC ${LIBPSL_BUILD_DIR} --strip-components=1
WORKDIR ${LIBPSL_BUILD_DIR}/
RUN ./autogen.sh && autoconf
RUN CFLAGS="" \
CPPFLAGS="-I${INSTALL_DIR}/include -I/usr/include" \
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib" \
./configure \
--prefix=${INSTALL_DIR}
RUN make -j $(nproc) && make install


###############################################################################
# CURL
# # https://github.com/curl/curl/releases
Expand Down

0 comments on commit 53b79e9

Please sign in to comment.