From baac61bfd33ffc659212bbc1312a4b7892da320b Mon Sep 17 00:00:00 2001 From: YellowJacketLinux Date: Wed, 9 Oct 2024 21:26:41 -0700 Subject: [PATCH] build wget and dependencies --- CH03-get-sources.sh | 4 +++ CH8Build/BLFS.04-libunistring.sh | 42 ++++++++++++++++++++++++++++++++ CH8Build/BLFS.05-libidn2.sh | 36 +++++++++++++++++++++++++++ CH8Build/BLFS.06-libpsl.sh | 37 ++++++++++++++++++++++++++++ CH8Build/BLFS.07-wget.sh | 37 ++++++++++++++++++++++++++++ CH8Build/Master2.sh | 40 ++++++++++++++++++++++++++++++ 6 files changed, 196 insertions(+) create mode 100644 CH8Build/BLFS.04-libunistring.sh create mode 100644 CH8Build/BLFS.05-libidn2.sh create mode 100644 CH8Build/BLFS.06-libpsl.sh create mode 100644 CH8Build/BLFS.07-wget.sh diff --git a/CH03-get-sources.sh b/CH03-get-sources.sh index 52becf7..310e811 100644 --- a/CH03-get-sources.sh +++ b/CH03-get-sources.sh @@ -89,9 +89,12 @@ getSource "${kmod_dnl}" "${kmod_sha256}" "${kmod_tarball}" getSource "${less_dnl}" "${less_sha256}" "${less_tarball}" getSource "${libcap_dnl}" "${libcap_sha256}" "${libcap_tarball}" getSource "${libffi_dnl}" "${libffi_sha256}" "${libffi_tarball}" +getSource "${libidn2_dnl}" "${libidn2_sha256}" "${libidn2_tarball}" getSource "${libpipeline_dnl}" "${libpipeline_sha256}" "${libpipeline_tarball}" +getSource "${libpsl_dnl}" "${libpsl_sha256}" "${libpsl_tarball}" getSource "${libressl_dnl}" "${libressl_sha256}" "${libressl_tarball}" getSource "${libtool_dnl}" "${libtool_sha256}" "${libtool_tarball}" +getSource "${libunistring_dnl}" "${libunistring_sha256}" "${libunistring_tarball}" getSource "${libxcrypt_dnl}" "${libxcrypt_sha256}" "${libxcrypt_tarball}" getSource "${linux_lts_dnl}" "${linux_lts_sha256}" "${linux_lts_tarball}" getSource "${lz4_dnl}" "${lz4_sha256}" "${lz4_tarball}" @@ -127,6 +130,7 @@ getSource "${texinfo_dnl}" "${texinfo_sha256}" "${texinfo_tarball}" getSource "${tzdata_dnl}" "${tzdata_sha256}" "${tzdata_tarball}" getSource "${util_linux_dnl}" "${util_linux_sha256}" "${util_linux_tarball}" getSource "${vim_dnl}" "${vim_sha256}" "${vim_tarball}" +getSource "${wget_dnl}" "${wget_sha256}" "${wget_tarball}" getSource "${wheel_dnl}" "${wheel_sha256}" "${wheel_tarball}" getSource "${xml_parser_dnl}" "${xml_parser_sha256}" "${xml_parser_tarball}" getSource "${xz_dnl}" "${xz_sha256}" "${xz_tarball}" diff --git a/CH8Build/BLFS.04-libunistring.sh b/CH8Build/BLFS.04-libunistring.sh new file mode 100644 index 0000000..4bb0996 --- /dev/null +++ b/CH8Build/BLFS.04-libunistring.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +source versions.sh + +GLSOURCES="/sources" + +pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}" + +[ -d libunistring-${libunistring_version} ] && rm -rf libunistring-${libunistring_version} + +tar -Jxf ${libunistring_tarball} + +cd libunistring-${libunistring_version} + +./configure --prefix=/usr \ + --disable-static \ + --docdir=/usr/share/doc/libunistring-${libunistring_version} + +make +if [ $? -ne 0 ]; then + myfail "Failed building libunistring" +fi + +if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then + echo "running libunistring make check" + make check > ${GLSOURCES}/libunistring.check.log 2>&1 +fi + +make install +if [ $? -ne 0 ]; then + myfail "Failed installing libunistring" +fi + +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf libunistring-${libunistring_version} + +popd diff --git a/CH8Build/BLFS.05-libidn2.sh b/CH8Build/BLFS.05-libidn2.sh new file mode 100644 index 0000000..7fb99b8 --- /dev/null +++ b/CH8Build/BLFS.05-libidn2.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +source versions.sh + +GLSOURCES="/sources" + +pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}" + +[ -d libidn2-${libidn2_version} ] && rm -rf libidn2-${libidn2_version} + +tar -zxf ${libidn2_tarball} + +cd libidn2-${libidn2_version} + +./configure --prefix=/usr \ + --disable-static + +make +if [ $? -ne 0 ]; then + myfail "Failed building libidn2" +fi + +make install +if [ $? -ne 0 ]; then + myfail "Failed installing libidn2" +fi + +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf libidn2-${libidn2_version} + +popd diff --git a/CH8Build/BLFS.06-libpsl.sh b/CH8Build/BLFS.06-libpsl.sh new file mode 100644 index 0000000..7b79d9f --- /dev/null +++ b/CH8Build/BLFS.06-libpsl.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +source versions.sh + +GLSOURCES="/sources" + +pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}" + +[ -d libpsl-${libpsl_version} ] && rm -rf libpsl-${libpsl_version} + +tar -zxf ${libpsl_tarball} + +cd libpsl-${libpsl_version} + +mkdir build && cd build + +meson setup --prefix=/usr --buildtype=release + +ninja +if [ $? -ne 0 ]; then + myfail "Failed building libpsl" +fi + +ninja install +if [ $? -ne 0 ]; then + myfail "Failed installing libpsl" +fi + +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf libpsl-${libpsl_version} + +popd diff --git a/CH8Build/BLFS.07-wget.sh b/CH8Build/BLFS.07-wget.sh new file mode 100644 index 0000000..5c82238 --- /dev/null +++ b/CH8Build/BLFS.07-wget.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +source versions.sh + +GLSOURCES="/sources" + +pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}" + +[ -d wget-${wget_version} ] && rm -rf wget-${wget_version} + +tar -zxf ${wget_tarball} + +cd wget-${wget_version} + +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --with-ssl=openssl + +make +if [ $? -ne 0 ]; then + myfail "Failed building wget" +fi + +make install +if [ $? -ne 0 ]; then + myfail "Failed installing wget" +fi + +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf wget-${wget_version} + +popd diff --git a/CH8Build/Master2.sh b/CH8Build/Master2.sh index c88438c..de36f39 100644 --- a/CH8Build/Master2.sh +++ b/CH8Build/Master2.sh @@ -490,6 +490,46 @@ else sleep 3 fi +/bin/bash BLFS.04-libunistring.sh + +if [ $? -ne 0 ]; then + echo "failed BLFS.04-libunistring.sh" + exit 1 +else + echo "BLFS Libunistring Install Complete [83/86]" + sleep 3 +fi + +/bin/bash BLFS.05-libidn2.sh + +if [ $? -ne 0 ]; then + echo "failed BLFS.05-libidn2.sh" + exit 1 +else + echo "BLFS Libisn2 Install Complete [84/86]" + sleep 3 +fi + +/bin/bash BLFS.06-libpsl.sh + +if [ $? -ne 0 ]; then + echo "failed BLFS.06-libpsl.sh" + exit 1 +else + echo "BLFS Libpsl Install Complete [85/86]" + sleep 3 +fi + +/bin/bash BLFS.07-wget.sh + +if [ $? -ne 0 ]; then + echo "failed BLFS.07-wget.sh" + exit 1 +else + echo "BLFS Wget Install Complete [86/86]" + sleep 3 +fi + #stripping /bin/bash CH08.80-stripping.sh > /dev/null 2>&1