فهرست منبع

allow busybox wget to be used in an OpenADK system for native ADK usage

Waldemar Brodkorb 15 سال پیش
والد
کامیت
2cbfc08e1b
2فایلهای تغییر یافته به همراه24 افزوده شده و 1 حذف شده
  1. 1 1
      package/busybox/Makefile
  2. 23 0
      package/busybox/patches/004-wget-accept-long-opts.patch

+ 1 - 1
package/busybox/Makefile

@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
 
 
 PKG_NAME:=		busybox
 PKG_NAME:=		busybox
 PKG_VERSION:=		1.17.0
 PKG_VERSION:=		1.17.0
-PKG_RELEASE:=		2
+PKG_RELEASE:=		3
 PKG_MD5SUM:=		2908d1d1ca83ff12bc0b05f0d2a3335c
 PKG_MD5SUM:=		2908d1d1ca83ff12bc0b05f0d2a3335c
 PKG_DESCR:=		Core utilities for embedded systems
 PKG_DESCR:=		Core utilities for embedded systems
 PKG_SECTION:=		base
 PKG_SECTION:=		base

+ 23 - 0
package/busybox/patches/004-wget-accept-long-opts.patch

@@ -0,0 +1,23 @@
+diff -Nur busybox-1.17.0.orig/networking/wget.c busybox-1.17.0/networking/wget.c
+--- busybox-1.17.0.orig/networking/wget.c	2010-06-24 04:40:43.000000000 +0200
++++ busybox-1.17.0/networking/wget.c	2010-07-16 15:00:51.819609996 +0200
+@@ -542,8 +542,8 @@
+ 		"proxy\0"            Required_argument "Y"
+ 		"user-agent\0"       Required_argument "U"
+ 		/* Ignored: */
+-		// "tries\0"            Required_argument "t"
+-		// "timeout\0"          Required_argument "T"
++		"tries\0"            Required_argument "t"
++		"timeout\0"          Required_argument "T"
+ 		/* Ignored (we always use PASV): */
+ 		"passive-ftp\0"      No_argument       "\xff"
+ 		"header\0"           Required_argument "\xfe"
+@@ -560,7 +560,7 @@
+ #endif
+ 	/* server.allocated = target.allocated = NULL; */
+ 	opt_complementary = "-1" IF_FEATURE_WGET_LONG_OPTIONS(":\xfe::");
+-	opt = getopt32(argv, "csqO:P:Y:U:" /*ignored:*/ "t:T:",
++	opt = getopt32(argv, "csqO:P:Y:U:t:T:",
+ 				&fname_out, &dir_prefix,
+ 				&proxy_flag, &user_agent,
+ 				NULL, /* -t RETRIES */