]> git.webhop.me Git - bs-cst-neutrino-hd.git/commitdiff
add target wget 1.19.2
authorMarkham <markham001@gmx.de>
Wed, 9 May 2018 13:17:30 +0000 (15:17 +0200)
committerMarkham <markham001@gmx.de>
Wed, 9 May 2018 13:17:30 +0000 (15:17 +0200)
archive-patches/wget-change_DEFAULT_LOGFILE.patch [new file with mode: 0644]
archive-patches/wget-remove-hardcoded-engine-support-for-openss.patch [new file with mode: 0644]
archive-patches/wget-set-check_cert-false-by-default.patch [new file with mode: 0644]
make/applications.mk
make/archives.mk
make/versions.mk

diff --git a/archive-patches/wget-change_DEFAULT_LOGFILE.patch b/archive-patches/wget-change_DEFAULT_LOGFILE.patch
new file mode 100644 (file)
index 0000000..4cffed5
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/src/log.h b/src/log.h
+index c3b7fec..1eecf3a 100644
+--- a/src/log.h
++++ b/src/log.h
+@@ -32,7 +32,7 @@ as that of the covered work.  */
+ #define LOG_H
+
+ /* The log file to which Wget writes to after HUP.  */
+-#define DEFAULT_LOGFILE "wget-log"
++#define DEFAULT_LOGFILE "/var/run/wget/wget-log"
+
+ #include <stdio.h>
+
diff --git a/archive-patches/wget-remove-hardcoded-engine-support-for-openss.patch b/archive-patches/wget-remove-hardcoded-engine-support-for-openss.patch
new file mode 100644 (file)
index 0000000..d209bf4
--- /dev/null
@@ -0,0 +1,33 @@
+From b92cffc28b6f683ed001d0c4bb08ee8a3d00f9f4 Mon Sep 17 00:00:00 2001
+Message-Id: <b92cffc28b6f683ed001d0c4bb08ee8a3d00f9f4.1449328449.git.gandharva@gmx.de>
+From: gandharva <gandharva@gmx.de>
+Date: Sat, 5 Dec 2015 16:14:01 +0100
+Subject: [PATCH] - wget: remove hardcoded engine support for openssl
+
+---
+ src/openssl.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/src/openssl.c b/src/openssl.c
+index 4876048..86b846a 100644
+--- a/src/openssl.c
++++ b/src/openssl.c
+@@ -43,7 +43,6 @@ as that of the covered work.  */
+ #include <openssl/bio.h>
+ #if OPENSSL_VERSION_NUMBER >= 0x00907000
+ #include <openssl/conf.h>
+-#include <openssl/engine.h>
+ #endif
+ #include "utils.h"
+@@ -197,7 +196,6 @@ ssl_init (void)
+ #if OPENSSL_VERSION_NUMBER >= 0x00907000
+   OPENSSL_load_builtin_modules();
+-  ENGINE_load_builtin_engines();
+   CONF_modules_load_file(NULL, NULL,
+       CONF_MFLAGS_DEFAULT_SECTION|CONF_MFLAGS_IGNORE_MISSING_FILE);
+ #endif
+-- 
+2.6.3
+
diff --git a/archive-patches/wget-set-check_cert-false-by-default.patch b/archive-patches/wget-set-check_cert-false-by-default.patch
new file mode 100644 (file)
index 0000000..38cb918
--- /dev/null
@@ -0,0 +1,26 @@
+From afb04eb59528b9cc6ff6503ecddb4ff5b5eec7c1 Mon Sep 17 00:00:00 2001
+Message-Id: <afb04eb59528b9cc6ff6503ecddb4ff5b5eec7c1.1449398019.git.gandharva@gmx.de>
+From: gandharva <gandharva@gmx.de>
+Date: Sun, 6 Dec 2015 11:33:35 +0100
+Subject: [PATCH] - wget: set check_cert = CHECK_CERT_OFF by default
+
+---
+ src/init.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/init.c b/src/init.c
+index 67c94b9..b2ce270 100644
+--- a/src/init.c
++++ b/src/init.c
+@@ -425,7 +425,7 @@ defaults (void)
+   opt.retr_symlinks = true;
+ #ifdef HAVE_SSL
+-  opt.check_cert = CHECK_CERT_ON;
++  opt.check_cert = CHECK_CERT_OFF;
+   opt.ftps_resume_ssl = true;
+   opt.ftps_fallback_to_ftp = false;
+   opt.ftps_implicit = false;
+-- 
+2.6.3
+
index 520d7fea5669d245a26c14a6e243eaf1741ca534..b40a3a548aaa1b9556a01064c8cf228873a71d99 100755 (executable)
@@ -66,6 +66,30 @@ $(D)/busybox: $(D)/libtirpc $(ARCHIVE)/busybox-$(BUSYBOX_VER).tar.bz2 | $(TARGET
        $(REMOVE)/busybox-$(BUSYBOX_VER)
        $(TOUCH)
 
+$(D)/wget: $(D)/openssl $(ARCHIVE)/wget-$(WGET_VER).tar.gz | $(TARGETPREFIX)
+       $(START_BUILD)
+       $(REMOVE)/wget-$(WGET_VER)
+       $(UNTAR)/wget-$(WGET_VER).tar.gz
+       cd $(BUILD_TMP)/wget-$(WGET_VER) && \
+       $(PATCH)/wget-remove-hardcoded-engine-support-for-openss.patch && \
+       $(PATCH)/wget-set-check_cert-false-by-default.patch && \
+       $(PATCH)/wget-change_DEFAULT_LOGFILE.patch && \
+               $(CONFIGURE) \
+                       --target=$(TARGET) \
+                       --prefix= \
+                       --datarootdir=/.remove \
+                       --docdir=/.remove \
+                       --sysconfdir=/.remove \
+                       --mandir=/.remove \
+                       --with-gnu-ld \
+                       --with-ssl=openssl \
+                       --disable-debug \
+                       && \
+               $(MAKE) && \
+               $(MAKE) install DESTDIR=$(TARGETPREFIX)
+       $(REMOVE)/wget-$(WGET_VER)
+       $(TOUCH)
+
 $(D)/e2fsprogs: $(ARCHIVE)/e2fsprogs-$(E2FSPROGS_VER).tar.gz | $(TARGETPREFIX)
        $(START_BUILD)
        $(UNTAR)/e2fsprogs-$(E2FSPROGS_VER).tar.gz
index 57745f2ae24db0a3bb3c046f8908d18b611199dd..7daf96d41fbdaa7b4c90ec020362a0e5ef48696b 100755 (executable)
@@ -342,6 +342,9 @@ $(ARCHIVE)/ofgwrite-git-$(OFGWRITE_VER).tar.bz2:
 $(ARCHIVE)/u-boot-$(U-BOOT_VER).tar.bz2:
        $(WGET) ftp://ftp.denx.de/pub/u-boot/u-boot-$(U-BOOT_VER).tar.bz2
 
+$(ARCHIVE)/wget-$(WGET_VER).tar.gz:
+       $(WGET) http://ftp.gnu.org/gnu/wget/wget-$(WGET_VER).tar.gz
+
 $(ARCHIVE)/gdb-$(GDB_VER).tar.xz:
        $(WGET) http://ftp.gnu.org/gnu/gdb/gdb-$(GDB_VER).tar.xz
 
index 912e2341f410e8fbdbb340b6423e1c00f04f5b25..904f902c6dd6950efcc0c53d1a07afb2a18c2252 100644 (file)
@@ -207,6 +207,9 @@ USHARE_VER = 1.1a
 # Very secure ftp-Server
 VSFTPD_VER = 3.0.3
 
+# GNU Wget is a free software package for retrieving files using HTTP, HTTPS, FTP and FTPS the most widely-used Internet protocols
+WGET_VER = 1.19.2
+
 # eXtensible UPnP agent (official)
 XUPNPD_GIT = 6578ceb