mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-19 17:53:00 +01:00
curl: update to 8.12.1
This commit is contained in:
parent
c00fa39838
commit
02ed0da3d2
12 changed files with 134 additions and 187 deletions
54
steps/curl-8.12.1/pass1.sh
Executable file
54
steps/curl-8.12.1/pass1.sh
Executable file
|
|
@ -0,0 +1,54 @@
|
|||
# SPDX-FileCopyrightText: 2022,2025 fosslinux <fosslinux@aussies.space>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Regnerate src/tool_cb_prg.c
|
||||
sed '/sinus/q' src/tool_cb_prg.c > src/tool_cb_prg.c.new
|
||||
perl sinus.pl | sed "s/, $//" >> src/tool_cb_prg.c.new
|
||||
sed '1,/^[0-9, ]*[0-9]$/d' src/tool_cb_prg.c >> src/tool_cb_prg.c.new
|
||||
mv src/tool_cb_prg.c.new src/tool_cb_prg.c
|
||||
|
||||
rm src/tool_listhelp.c src/tool_hugehelp.c
|
||||
|
||||
# Make scripts work with our perl
|
||||
sed -i "s/:crlf//" scripts/managen scripts/cd2nroff
|
||||
# sed rewrites permissions?!
|
||||
chmod 755 scripts/managen scripts/cd2nroff
|
||||
|
||||
# This one doesn't compile properly
|
||||
touch docs/libcurl/libcurl-symbols.md docs/libcurl/libcurl-symbols.md
|
||||
|
||||
AUTOMAKE=automake-1.15 ACLOCAL=aclocal-1.15 autoreconf-2.69 -fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
LDFLAGS="-static" ./configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--libdir="${LIBDIR}" \
|
||||
--build=i386-unknown-linux-gnu \
|
||||
--enable-ipv6 \
|
||||
--without-ssl \
|
||||
--without-libpsl \
|
||||
--disable-hsts
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Recreate tool_help.h
|
||||
sed '/bitmask output/{n; n; n; n; q}' src/tool_help.h > src/tool_help.h.new
|
||||
make -s -C docs/cmdline-opts listcats >> src/tool_help.h.new
|
||||
sed '1,/CURLHELP_VERBOSE/d' src/tool_help.h >> src/tool_help.h.new
|
||||
mv src/tool_help.h.new src/tool_help.h
|
||||
|
||||
# tool_listhelp.c
|
||||
make -C src listhelp
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
install -m 755 scripts/mk-ca-bundle.pl "${DESTDIR}/usr/bin/mk-ca-bundle"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue