Skip to content

Commit 53b79e9

Browse files
Add libpsl
1 parent 2c1b39c commit 53b79e9

File tree

4 files changed

+88
-0
lines changed

4 files changed

+88
-0
lines changed

php-80/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,28 @@ RUN CFLAGS="" \
222222
RUN make install
223223

224224

225+
###############################################################################
226+
# LIBPSL
227+
# This adds support for the public suffix list in curl.
228+
# https://github.com/rockdaboot/libpsl/releases
229+
# Needed by:
230+
# - curl
231+
ENV VERSION_LIBPSL=0.21.5
232+
ENV LIBPSL_BUILD_DIR=${BUILD_DIR}/libpsl
233+
RUN set -xe; \
234+
mkdir -p ${LIBPSL_BUILD_DIR}; \
235+
curl -Ls https://github.com/rockdaboot/libpsl/archive/refs/tags/${VERSION_LIBPSL}.tar.gz \
236+
| tar xzC ${LIBPSL_BUILD_DIR} --strip-components=1
237+
WORKDIR ${LIBPSL_BUILD_DIR}/
238+
RUN ./autogen.sh && autoconf
239+
RUN CFLAGS="" \
240+
CPPFLAGS="-I${INSTALL_DIR}/include -I/usr/include" \
241+
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib" \
242+
./configure \
243+
--prefix=${INSTALL_DIR}
244+
RUN make -j $(nproc) && make install
245+
246+
225247
###############################################################################
226248
# CURL
227249
# # https://github.com/curl/curl/releases

php-81/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,28 @@ RUN CFLAGS="" \
223223
RUN make install
224224

225225

226+
###############################################################################
227+
# LIBPSL
228+
# This adds support for the public suffix list in curl.
229+
# https://github.com/rockdaboot/libpsl/releases
230+
# Needed by:
231+
# - curl
232+
ENV VERSION_LIBPSL=0.21.5
233+
ENV LIBPSL_BUILD_DIR=${BUILD_DIR}/libpsl
234+
RUN set -xe; \
235+
mkdir -p ${LIBPSL_BUILD_DIR}; \
236+
curl -Ls https://github.com/rockdaboot/libpsl/archive/refs/tags/${VERSION_LIBPSL}.tar.gz \
237+
| tar xzC ${LIBPSL_BUILD_DIR} --strip-components=1
238+
WORKDIR ${LIBPSL_BUILD_DIR}/
239+
RUN ./autogen.sh && autoconf
240+
RUN CFLAGS="" \
241+
CPPFLAGS="-I${INSTALL_DIR}/include -I/usr/include" \
242+
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib" \
243+
./configure \
244+
--prefix=${INSTALL_DIR}
245+
RUN make -j $(nproc) && make install
246+
247+
226248
###############################################################################
227249
# CURL
228250
# # https://github.com/curl/curl/releases

php-82/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,28 @@ RUN CFLAGS="" \
223223
RUN make install
224224

225225

226+
###############################################################################
227+
# LIBPSL
228+
# This adds support for the public suffix list in curl.
229+
# https://github.com/rockdaboot/libpsl/releases
230+
# Needed by:
231+
# - curl
232+
ENV VERSION_LIBPSL=0.21.5
233+
ENV LIBPSL_BUILD_DIR=${BUILD_DIR}/libpsl
234+
RUN set -xe; \
235+
mkdir -p ${LIBPSL_BUILD_DIR}; \
236+
curl -Ls https://github.com/rockdaboot/libpsl/archive/refs/tags/${VERSION_LIBPSL}.tar.gz \
237+
| tar xzC ${LIBPSL_BUILD_DIR} --strip-components=1
238+
WORKDIR ${LIBPSL_BUILD_DIR}/
239+
RUN ./autogen.sh && autoconf
240+
RUN CFLAGS="" \
241+
CPPFLAGS="-I${INSTALL_DIR}/include -I/usr/include" \
242+
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib" \
243+
./configure \
244+
--prefix=${INSTALL_DIR}
245+
RUN make -j $(nproc) && make install
246+
247+
226248
###############################################################################
227249
# CURL
228250
# # https://github.com/curl/curl/releases

php-83/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,28 @@ RUN CFLAGS="" \
223223
RUN make install
224224

225225

226+
###############################################################################
227+
# LIBPSL
228+
# This adds support for the public suffix list in curl.
229+
# https://github.com/rockdaboot/libpsl/releases
230+
# Needed by:
231+
# - curl
232+
ENV VERSION_LIBPSL=0.21.5
233+
ENV LIBPSL_BUILD_DIR=${BUILD_DIR}/libpsl
234+
RUN set -xe; \
235+
mkdir -p ${LIBPSL_BUILD_DIR}; \
236+
curl -Ls https://github.com/rockdaboot/libpsl/archive/refs/tags/${VERSION_LIBPSL}.tar.gz \
237+
| tar xzC ${LIBPSL_BUILD_DIR} --strip-components=1
238+
WORKDIR ${LIBPSL_BUILD_DIR}/
239+
RUN ./autogen.sh && autoconf
240+
RUN CFLAGS="" \
241+
CPPFLAGS="-I${INSTALL_DIR}/include -I/usr/include" \
242+
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib" \
243+
./configure \
244+
--prefix=${INSTALL_DIR}
245+
RUN make -j $(nproc) && make install
246+
247+
226248
###############################################################################
227249
# CURL
228250
# # https://github.com/curl/curl/releases

0 commit comments

Comments
 (0)