From e4daf0c8e36f64a16d6a46f65c0359abbf08cbcd Mon Sep 17 00:00:00 2001 From: Maxython Date: Sun, 15 Oct 2023 15:22:03 +0300 Subject: [PATCH] gpkg/wget: new pkg --- gpkg/wget/build.sh | 14 ++++++++++++++ gpkg/wget/tmpdir-path.patch | 23 +++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 gpkg/wget/build.sh create mode 100644 gpkg/wget/tmpdir-path.patch diff --git a/gpkg/wget/build.sh b/gpkg/wget/build.sh new file mode 100644 index 000000000..231e00cbe --- /dev/null +++ b/gpkg/wget/build.sh @@ -0,0 +1,14 @@ +TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/wget/ +TERMUX_PKG_DESCRIPTION="Commandline tool for retrieving files using HTTP, HTTPS and FTP" +TERMUX_PKG_LICENSE="GPL-3.0" +TERMUX_PKG_MAINTAINER="@termux-pacman" +TERMUX_PKG_VERSION=1.21.4 +TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/wget/wget-${TERMUX_PKG_VERSION}.tar.lz +TERMUX_PKG_SHA256=3683619a5f50edcbccb1720a79006fa37bf9b9a255a8c5b48048bc3c7a874bd9 +TERMUX_PKG_DEPENDS="libidn2-glibc, libuuid-glibc, openssl-glibc, pcre2-glibc, zlib-glibc, libnettle-glibc, libpsl-glibc, libgnutls-glibc" +TERMUX_PKG_CONFFILES="glibc/etc/wgetrc" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" +--disable-rpath +--enable-nls +--with-ssl=gnutls +" diff --git a/gpkg/wget/tmpdir-path.patch b/gpkg/wget/tmpdir-path.patch new file mode 100644 index 000000000..4c67f0613 --- /dev/null +++ b/gpkg/wget/tmpdir-path.patch @@ -0,0 +1,23 @@ +diff -uNr wget-1.20.1/lib/tmpdir.c wget-1.20.1.mod/lib/tmpdir.c +--- wget-1.20.1/lib/tmpdir.c 2018-12-26 22:08:19.000000000 +0200 ++++ wget-1.20.1.mod/lib/tmpdir.c 2019-03-01 18:27:22.434424043 +0200 +@@ -36,7 +36,7 @@ + # ifdef _P_tmpdir /* native Windows */ + # define P_tmpdir _P_tmpdir + # else +-# define P_tmpdir "/tmp" ++# define P_tmpdir "@TERMUX_PREFIX_CLASSICAL@/tmp" + # endif + #endif + +@@ -130,8 +130,8 @@ + #endif + if (direxists (P_tmpdir)) + dir = P_tmpdir; +- else if (strcmp (P_tmpdir, "/tmp") != 0 && direxists ("/tmp")) +- dir = "/tmp"; ++ else if (strcmp (P_tmpdir, "@TERMUX_PREFIX_CLASSICAL@/tmp") != 0 && direxists ("@TERMUX_PREFIX_CLASSICAL@/tmp")) ++ dir = "@TERMUX_PREFIX_CLASSICAL@/tmp"; + else + { + __set_errno (ENOENT);