* [Buildroot] [PATCH 1/2] busybox: add 1.19.2 tftp fix
@ 2011-10-07 20:29 Gustavo Zacarias
2011-10-07 20:29 ` [Buildroot] [PATCH 2/2] jimsh: new package Gustavo Zacarias
2011-10-08 11:47 ` [Buildroot] [PATCH 1/2] busybox: add 1.19.2 tftp fix Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2011-10-07 20:29 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
.../busybox-1.19.2/busybox-1.19.2-tftp.patch | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
create mode 100644 package/busybox/busybox-1.19.2/busybox-1.19.2-tftp.patch
diff --git a/package/busybox/busybox-1.19.2/busybox-1.19.2-tftp.patch b/package/busybox/busybox-1.19.2/busybox-1.19.2-tftp.patch
new file mode 100644
index 0000000..15dc9e1
--- /dev/null
+++ b/package/busybox/busybox-1.19.2/busybox-1.19.2-tftp.patch
@@ -0,0 +1,12 @@
+--- busybox-1.19.2/networking/tftp.c
++++ busybox-1.19.2-tftp/networking/tftp.c
+@@ -813,7 +813,8 @@ int tftpd_main(int argc UNUSED_PARAM, ch
+ goto err;
+ }
+ mode = local_file + strlen(local_file) + 1;
+- if (mode >= block_buf + result || strcmp(mode, "octet") != 0) {
++ /* RFC 1350 says mode string is case independent */
++ if (mode >= block_buf + result || strcasecmp(mode, "octet") != 0) {
+ goto err;
+ }
+ # if ENABLE_FEATURE_TFTP_BLOCKSIZE
--
1.7.3.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 2/2] jimsh: new package
2011-10-07 20:29 [Buildroot] [PATCH 1/2] busybox: add 1.19.2 tftp fix Gustavo Zacarias
@ 2011-10-07 20:29 ` Gustavo Zacarias
2011-10-08 11:47 ` [Buildroot] [PATCH 1/2] busybox: add 1.19.2 tftp fix Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2011-10-07 20:29 UTC (permalink / raw)
To: buildroot
Add new jimsh package - a lightweight tclsh alternative.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/Config.in | 1 +
package/jimsh/Config.in | 6 ++++++
package/jimsh/jimsh.mk | 29 +++++++++++++++++++++++++++++
3 files changed, 36 insertions(+), 0 deletions(-)
create mode 100644 package/jimsh/Config.in
create mode 100644 package/jimsh/jimsh.mk
diff --git a/package/Config.in b/package/Config.in
index 904ebb6..757a4cd 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -222,6 +222,7 @@ endmenu
menu "Interpreter languages and scripting"
source "package/haserl/Config.in"
source "package/java/jamvm/Config.in"
+source "package/jimsh/Config.in"
source "package/lua/Config.in"
if BR2_PACKAGE_LUA
menu "LUA libraries/modules"
diff --git a/package/jimsh/Config.in b/package/jimsh/Config.in
new file mode 100644
index 0000000..82d8aea
--- /dev/null
+++ b/package/jimsh/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_JIMSH
+ bool "jimsh"
+ help
+ A small footprint implementation of the Tcl programming language.
+
+ http://jim.berlios.de
diff --git a/package/jimsh/jimsh.mk b/package/jimsh/jimsh.mk
new file mode 100644
index 0000000..b1cf5ac
--- /dev/null
+++ b/package/jimsh/jimsh.mk
@@ -0,0 +1,29 @@
+#############################################################
+#
+# jimsh
+#
+#############################################################
+
+JIMSH_VERSION = fbbc8e0b402adb4b0c8d3976015fe4a82c94560f
+JIMSH_SITE = git://repo.or.cz/jimtcl.git
+
+ifneq ($(BR2_PACKAGE_TCL),y)
+define JIMSH_LINK_TCLSH
+ ln -sf jimsh $(TARGET_DIR)/usr/bin/tclsh
+endef
+define JIMSH_UNLINK_TCLSH
+ rm -f $(TARGET_DIR)/usr/bin/tclsh
+endef
+endif
+
+define JIMSH_INSTALL_TARGET_CMDS
+ $(INSTALL) -D $(@D)/jimsh $(TARGET_DIR)/usr/bin/jimsh
+ $(JIMSH_LINK_TCLSH)
+endef
+
+define JIMSH_UNINSTALL_TARGET_CMDS
+ rm -rf $(TARGET_DIR)/usr/bin/jimsh
+ $(JIMSH_UNLINK_TCLSH)
+endef
+
+$(eval $(call AUTOTARGETS))
--
1.7.3.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/2] busybox: add 1.19.2 tftp fix
2011-10-07 20:29 [Buildroot] [PATCH 1/2] busybox: add 1.19.2 tftp fix Gustavo Zacarias
2011-10-07 20:29 ` [Buildroot] [PATCH 2/2] jimsh: new package Gustavo Zacarias
@ 2011-10-08 11:47 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2011-10-08 11:47 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-08 11:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-07 20:29 [Buildroot] [PATCH 1/2] busybox: add 1.19.2 tftp fix Gustavo Zacarias
2011-10-07 20:29 ` [Buildroot] [PATCH 2/2] jimsh: new package Gustavo Zacarias
2011-10-08 11:47 ` [Buildroot] [PATCH 1/2] busybox: add 1.19.2 tftp fix Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox