* [Buildroot] [PATCH v2] add package inetutils
@ 2010-12-11 23:44 heiko at zuerker.org
2010-12-12 3:54 ` Mike Frysinger
0 siblings, 1 reply; 4+ messages in thread
From: heiko at zuerker.org @ 2010-12-11 23:44 UTC (permalink / raw)
To: buildroot
From: Heiko Zuerker <smiley73@users.sourceforge.net>
Signed-off-by: Heiko Zuerker <smiley73@users.sourceforge.net>
---
package/Config.in | 3 ++
package/inetutils/Config.in | 17 +++++++++
.../inetutils/inetutils-1.8-PATH_PROCNET_DEV.patch | 14 ++++++++
package/inetutils/inetutils.mk | 35 ++++++++++++++++++++
4 files changed, 69 insertions(+), 0 deletions(-)
create mode 100644 package/inetutils/Config.in
create mode 100644 package/inetutils/inetutils-1.8-PATH_PROCNET_DEV.patch
create mode 100644 package/inetutils/inetutils.mk
diff --git a/package/Config.in b/package/Config.in
index 10d8918..9acf765 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -376,6 +376,9 @@ source "package/dropbear/Config.in"
source "package/ethtool/Config.in"
source "package/hostapd/Config.in"
source "package/ifplugd/Config.in"
+if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+source "package/inetutils/Config.in"
+endif
source "package/iperf/Config.in"
source "package/iproute2/Config.in"
source "package/ipsec-tools/Config.in"
diff --git a/package/inetutils/Config.in b/package/inetutils/Config.in
new file mode 100644
index 0000000..9b3827e
--- /dev/null
+++ b/package/inetutils/Config.in
@@ -0,0 +1,17 @@
+config BR2_PACKAGE_INETUTILS
+ bool "inetutils"
+ help
+ GNU Inetutils
+
+ This is a distribution of common networking utilities and servers.
+ It provides apps like ftp, hostname, ping, ping6, rcp, rexec,
+ rlogin, rsh, talk, telnet, tftp, and traceroute
+
+config BR2_PACKAGE_INETUTILS_DISABLE_SERVERS
+ depends on BR2_PACKAGE_INETUTILS
+ bool "Don't compile servers"
+
+config BR2_PACKAGE_INETUTILS_DISABLE_CLIENTS
+ depends on BR2_PACKAGE_INETUTILS
+ bool "Don't compile clients"
+
diff --git a/package/inetutils/inetutils-1.8-PATH_PROCNET_DEV.patch b/package/inetutils/inetutils-1.8-PATH_PROCNET_DEV.patch
new file mode 100644
index 0000000..c46d1ee
--- /dev/null
+++ b/package/inetutils/inetutils-1.8-PATH_PROCNET_DEV.patch
@@ -0,0 +1,14 @@
+diff -ru inetutils-1.8.orig/ifconfig/system/linux.c inetutils-1.8/ifconfig/system/linux.c
+--- inetutils-1.8.orig/ifconfig/system/linux.c 2010-05-15 06:48:38.000000000 -0500
++++ inetutils-1.8/ifconfig/system/linux.c 2010-12-11 17:14:22.000000000 -0600
+@@ -49,6 +49,10 @@
+ #include "../ifconfig.h"
+ \f
+
++#ifndef PATH_PROCNET_DEV
++ #define PATH_PROCNET_DEV "/proc/net/dev"
++#endif
++
+ /* ARPHRD stuff. */
+
+ static void
diff --git a/package/inetutils/inetutils.mk b/package/inetutils/inetutils.mk
new file mode 100644
index 0000000..9b9687b
--- /dev/null
+++ b/package/inetutils/inetutils.mk
@@ -0,0 +1,35 @@
+#############################################################
+#
+# inetutils
+#
+#############################################################
+INETUTILS_VERSION = 1.8
+INETUTILS_SOURCE = inetutils-$(INETUTILS_VERSION).tar.gz
+INETUTILS_SITE = http://ftp.gnu.org/gnu/inetutils/
+
+INETUTILS_DEPENDENCIES =
+INETUTILS_CONF_OPT = --disable-syslogd --disable-logger --program-prefix= --program-suffix=
+
+ifeq ($(BR2_INET_IPV6),y)
+ INETUTILS_CONF_OPT += --enable-ipv6
+else
+ INETUTILS_CONF_OPT += --disable-ipv6
+endif
+
+ifeq ($(BR2_PACKAGE_NCURSES),y)
+ INETUTILS_CONF_OPT += --enable-ncurses
+ INETUTILS_DEPENDENCIES += ncurses
+else
+ INETUTILS_CONF_OPT += --disable-ncurses
+endif
+
+ifeq ($(BR2_PACKAGE_INETUTILS_DISABLE_SERVERS),y)
+ INETUTILS_CONF_OPT += --disable-servers
+endif
+
+ifeq ($(BR2_PACKAGE_INETUTILS_DISABLE_CLIENTS),y)
+ INETUTILS_CONF_OPT += --disable-clients
+endif
+
+$(eval $(call AUTOTARGETS,package,inetutils))
+
--
1.7.3.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2] add package inetutils
2010-12-11 23:44 [Buildroot] [PATCH v2] add package inetutils heiko at zuerker.org
@ 2010-12-12 3:54 ` Mike Frysinger
2010-12-12 14:35 ` Heiko Zuerker
0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2010-12-12 3:54 UTC (permalink / raw)
To: buildroot
NAK: i already posted an inetutils patch that is much more complete (search
the list). if my version is missing something, let me know.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20101211/68586b28/attachment.pgp>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2] add package inetutils
2010-12-12 3:54 ` Mike Frysinger
@ 2010-12-12 14:35 ` Heiko Zuerker
2010-12-13 16:56 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Heiko Zuerker @ 2010-12-12 14:35 UTC (permalink / raw)
To: buildroot
Quoting Mike Frysinger <vapier@gentoo.org>:
> NAK: i already posted an inetutils patch that is much more complete (search
> the list). if my version is missing something, let me know.
Found it. Yes your patch looks better.
You sent it in before I started my activities with buildroot, that's
why I missed it.
Now I just need to figure out how I can apply this from the
mailinglist archive...
--
Regards
Heiko Zuerker
http://www.devil-linux.org
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2] add package inetutils
2010-12-12 14:35 ` Heiko Zuerker
@ 2010-12-13 16:56 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2010-12-13 16:56 UTC (permalink / raw)
To: buildroot
On Sun, 12 Dec 2010 08:35:38 -0600
Heiko Zuerker <heiko@zuerker.org> wrote:
> Now I just need to figure out how I can apply this from the
> mailinglist archive...
Have a look at "git am".
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-12-13 16:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-11 23:44 [Buildroot] [PATCH v2] add package inetutils heiko at zuerker.org
2010-12-12 3:54 ` Mike Frysinger
2010-12-12 14:35 ` Heiko Zuerker
2010-12-13 16:56 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox