* [Buildroot] [PATCH] hans: new package
@ 2015-02-21 12:45 Gustavo Zacarias
2015-02-21 14:49 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2015-02-21 12:45 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/Config.in | 1 +
package/hans/Config.in | 13 +++++++++++++
package/hans/hans.hash | 3 +++
package/hans/hans.mk | 20 ++++++++++++++++++++
4 files changed, 37 insertions(+)
create mode 100644 package/hans/Config.in
create mode 100644 package/hans/hans.hash
create mode 100644 package/hans/hans.mk
diff --git a/package/Config.in b/package/Config.in
index 20f0a9a..a93faab 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1087,6 +1087,7 @@ endif
source "package/fping/Config.in"
source "package/gesftpserver/Config.in"
source "package/gutenprint/Config.in"
+ source "package/hans/Config.in"
source "package/hiawatha/Config.in"
source "package/hostapd/Config.in"
source "package/hplip/Config.in"
diff --git a/package/hans/Config.in b/package/hans/Config.in
new file mode 100644
index 0000000..7b60090
--- /dev/null
+++ b/package/hans/Config.in
@@ -0,0 +1,13 @@
+comment "hans needs a toolchain w/ C++"
+ depends on !BR2_INSTALL_LIBSTDCPP
+
+config BR2_PACKAGE_HANS
+ bool "hans"
+ depends on BR2_INSTALL_LIBSTDCPP
+ help
+ Hans makes it possible to tunnel IPv4 through ICMP echo packets,
+ so you could call it a ping tunnel.
+ This can be useful when you find yourself in the situation
+ that your Internet access is firewalled, but pings are allowed.
+
+ http://code.gerade.org/hans/
diff --git a/package/hans/hans.hash b/package/hans/hans.hash
new file mode 100644
index 0000000..c1a28df
--- /dev/null
+++ b/package/hans/hans.hash
@@ -0,0 +1,3 @@
+# From http://sourceforge.net/projects/hanstunnel/files/source/
+md5 97a93a886bc766212257198fd99d1061 hans-0.4.4.tar.gz
+sha1 8a21a9acc6d52cf7d2a5049523469e2609716ab3 hans-0.4.4.tar.gz
diff --git a/package/hans/hans.mk b/package/hans/hans.mk
new file mode 100644
index 0000000..bda091f
--- /dev/null
+++ b/package/hans/hans.mk
@@ -0,0 +1,20 @@
+################################################################################
+#
+# hans
+#
+################################################################################
+
+HANS_VERSION = 0.4.4
+HANS_SITE = http://downloads.sourceforge.net/project/hanstunnel/source
+HANS_LICENSE = GPLv3+
+HANS_LICENSE_FILES = LICENSE
+
+define HANS_BUILD_CMDS
+ $(MAKE) GCC="$(TARGET_CC)" GPP="$(TARGET_CXX)" -C $(@D)
+endef
+
+define HANS_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 755 -D $(@D)/hans $(TARGET_DIR)/usr/sbin/hans
+endef
+
+$(eval $(generic-package))
--
2.0.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] hans: new package
2015-02-21 12:45 [Buildroot] [PATCH] hans: new package Gustavo Zacarias
@ 2015-02-21 14:49 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-02-21 14:49 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Sat, 21 Feb 2015 09:45:12 -0300, Gustavo Zacarias wrote:
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> package/Config.in | 1 +
> package/hans/Config.in | 13 +++++++++++++
> package/hans/hans.hash | 3 +++
> package/hans/hans.mk | 20 ++++++++++++++++++++
> 4 files changed, 37 insertions(+)
> create mode 100644 package/hans/Config.in
> create mode 100644 package/hans/hans.hash
> create mode 100644 package/hans/hans.mk
Applied, thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-21 14:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-21 12:45 [Buildroot] [PATCH] hans: new package Gustavo Zacarias
2015-02-21 14:49 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox