Skip to contentSkip to conversation

inetutils: new package for random network tools

PATCH Superseded Mike Frysinger 2 participants 7 messages Nov 19, 2010 – Dec 7, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 inetutils: new package for random network tools

---
 package/Config.in                                  |    1 +
 package/inetutils/Config.in                        |   34 ++++++++++++
 ...tf-parse-pull-in-features.h-for-__GLIBC__.patch |   27 +++++++++
 ...rgp-fix-program_invocation_name-detection.patch |   51 +++++++++++++++++
 package/inetutils/inetutils-1.8-0003-wchar.patch   |   12 ++++
 ...me-ruserpass-to-avoid-C-library-collision.patch |   58 ++++++++++++++++++++
 ...detect-__rcmd_errstr-support-in-the-C-lib.patch |   57 +++++++++++++++++++
 ...e-daemon-from-the-C-library-when-possible.patch |   42 ++++++++++++++
 .../inetutils-1.8-1004-detect-fork-support.patch   |   54 ++++++++++++++++++
 package/inetutils/inetutils.mk                     |   35 ++++++++++++
 10 files changed, 371 insertions(+), 0 deletions(-)
 create mode 100644 package/inetutils/Config.in
 create mode 100644 package/inetutils/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch
 create mode 100644 package/inetutils/inetutils-1.8-0002-argp-fix-program_invocation_name-detection.patch
 create mode 100644 package/inetutils/inetutils-1.8-0003-wchar.patch
 create mode 100644 package/inetutils/inetutils-1.8-1001-ftp-rename-ruserpass-to-avoid-C-library-collision.patch
 create mode 100644 package/inetutils/inetutils-1.8-1002-rshd-detect-__rcmd_errstr-support-in-the-C-lib.patch
 create mode 100644 package/inetutils/inetutils-1.8-1003-use-daemon-from-the-C-library-when-possible.patch
 create mode 100644 package/inetutils/inetutils-1.8-1004-detect-fork-support.patch
 create mode 100644 package/inetutils/inetutils.mk
package/Config.in +1 -0
index d3629ff..0b131a0 100644
@@ -373,6 +373,7 @@ source "package/dropbear/Config.in"
 source "package/ethtool/Config.in"
 source "package/hostapd/Config.in"
 source "package/ifplugd/Config.in"
+source "package/inetutils/Config.in"
 source "package/iperf/Config.in"
 source "package/iproute2/Config.in"
 source "package/ipsec-tools/Config.in"
package/inetutils/Config.in new file +34 -0
new file mode 100644
index 0000000..2fa7510
@@ -0,0 +1,34 @@
+config BR2_PACKAGE_INETUTILS
+	bool "inetutils"
+	help
+	  Inetutils is a collection of common network programs.
+
+	  http://www.gnu.org/software/inetutils/
+
+config BR2_PACKAGE_INETUTILS_RCP
+	bool "rcp"
+	depends on BR2_PACKAGE_INETUTILS
+
+config BR2_PACKAGE_INETUTILS_REXEC
+	bool "rexec"
+	depends on BR2_PACKAGE_INETUTILS
+
+config BR2_PACKAGE_INETUTILS_REXECD
+	bool "rexecd"
+	depends on BR2_PACKAGE_INETUTILS
+
+config BR2_PACKAGE_INETUTILS_RLOGIN
+	bool "rlogin"
+	depends on BR2_PACKAGE_INETUTILS
+
+config BR2_PACKAGE_INETUTILS_RLOGIND
+	bool "rlogind"
+	depends on BR2_PACKAGE_INETUTILS
+
+config BR2_PACKAGE_INETUTILS_RSH
+	bool "rsh"
+	depends on BR2_PACKAGE_INETUTILS
+
+config BR2_PACKAGE_INETUTILS_RSHD
+	bool "rshd"
+	depends on BR2_PACKAGE_INETUTILS
package/inetutils/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch new file +27 -0
new file mode 100644
index 0000000..719a484
@@ -0,0 +1,27 @@
+From 552a7d64ad4a7188a9b7cd89933ae7caf7ebfe90 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <[email protected]>
+Date: Thu, 18 Nov 2010 16:59:14 -0500
+Subject: [PATCH 1/2] printf-parse: pull in features.h for __GLIBC__
+
+Signed-off-by: Mike Frysinger <[email protected]>
+---
+ lib/printf-parse.h |    3 +++
+ 1 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/lib/printf-parse.h b/lib/printf-parse.h
+index 67a4a2a..3bd6152 100644
+--- a/lib/printf-parse.h
++++ b/lib/printf-parse.h
+@@ -25,6 +25,9 @@
+ 
+ #include "printf-args.h"
+ 
++#ifdef HAVE_FEATURES_H
++# include <features.h>	/* for __GLIBC__ */
++#endif
+ 
+ /* Flags */
+ #define FLAG_GROUP       1      /* ' flag */
+-- 
+1.7.3.2
+
package/inetutils/inetutils-1.8-0002-argp-fix-program_invocation_name-detection.patch new file +51 -0

51 lines not on this page · raw message

package/inetutils/inetutils-1.8-0003-wchar.patch new file +12 -0
new file mode 100644
index 0000000..21635a7
@@ -0,0 +1,12 @@
+--- inetutils-1.8/lib/wchar.in.h
++++ inetutils-1.8/lib/wchar.in.h
+@@ -70,6 +70,9 @@
+ /* The include_next requires a split double-inclusion guard.  */
+ #if @HAVE_WCHAR_H@
+ # @INCLUDE_NEXT@ @NEXT_WCHAR_H@
++#else
++# include <stddef.h>
++# define MB_CUR_MAX 1
+ #endif
+ 
+ #undef _GL_ALREADY_INCLUDING_WCHAR_H
package/inetutils/inetutils-1.8-1001-ftp-rename-ruserpass-to-avoid-C-library-collision.patch new file +58 -0

58 lines not on this page · raw message

package/inetutils/inetutils-1.8-1002-rshd-detect-__rcmd_errstr-support-in-the-C-lib.patch new file +57 -0

57 lines not on this page · raw message

package/inetutils/inetutils-1.8-1003-use-daemon-from-the-C-library-when-possible.patch new file +42 -0

42 lines not on this page · raw message

package/inetutils/inetutils-1.8-1004-detect-fork-support.patch new file +54 -0

54 lines not on this page · raw message

package/inetutils/inetutils.mk new file +35 -0
new file mode 100644
index 0000000..e6c8cd9
@@ -0,0 +1,35 @@
+#############################################################
+#
+# inetutils
+#
+#############################################################
+
+INETUTILS_VERSION = 1.8
+INETUTILS_SOURCE = inetutils-$(INETUTILS_VERSION).tar.gz
+INETUTILS_SITE = $(BR2_GNU_MIRROR)/inetutils/
+# patches update many autotool files, and then we need to touch all
+# the man pages to keep from `help2man` running on the binaries
+INETUTILS_AUTORECONF = YES
+define INETUTILS_AUTORECONF_HOOK
+	touch $(INETUTILS_SRCDIR)/*/*.[0-9]
+endef
+INETUTILS_CONF_OPT = \
+	--libexecdir=/usr/sbin \
+	--program-transform-name= \
+	--without-included-regex \
+	--disable-libls \
+	--disable-servers --disable-clients \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_RCP,rcp) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_REXEC,rexec) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_REXECD,rexecd) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_RLOGIN,rlogin) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_RLOGIND,rlogind) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_RSH,rsh) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_RSHD,rshd)
+
+$(eval $(call AUTOTARGETS,package,inetutils))
+
+# append after autotools generation so we get autoreconf then touch
+INETUTILS_PRE_CONFIGURE_HOOKS += INETUTILS_AUTORECONF_HOOK
+
+INETUTILS_INSTALL_TARGET_OPT += SUIDMODE="-m 4775"
Signature · 1 line
1.7.3.2
#1 lore raw

PATCH 1/1 inetutils: new package for random network tools

Quoted 17 lines · On Fri, 19 Nov 2010 00:39:20 -0500 Mike Frysinger <[email protected]> wrote:
package/inetutils/Config.in new file +17 -0
+config BR2_PACKAGE_INETUTILS_RCP
+	bool "rcp"
+	depends on BR2_PACKAGE_INETUTILS
+
+config BR2_PACKAGE_INETUTILS_REXEC
+	bool "rexec"
+	depends on BR2_PACKAGE_INETUTILS
+
+config BR2_PACKAGE_INETUTILS_REXECD
+	bool "rexecd"
+	depends on BR2_PACKAGE_INETUTILS
+
+config BR2_PACKAGE_INETUTILS_RLOGIN
+	bool "rlogin"
+	depends on BR2_PACKAGE_INETUTILS
+
+config BR2_PACKAGE_INETUTILS_RLOGIND

package/inetutils/Config.in line 34

Quoted 10 lines
package/inetutils/Config.in new file +10 -0
+	bool "rlogind"
+	depends on BR2_PACKAGE_INETUTILS
+
+config BR2_PACKAGE_INETUTILS_RSH
+	bool "rsh"
+	depends on BR2_PACKAGE_INETUTILS
+
+config BR2_PACKAGE_INETUTILS_RSHD
+	bool "rshd"
+	depends on BR2_PACKAGE_INETUTILS

Instead of all these "depends on" we generally enclose the options in a "if BR2_PACKAGE_INETUTILS ... endif" statement.

Quoted 29 lines

index 0000000..e6c8cd9

package/inetutils/inetutils.mk new file +25 -0
@@ -0,0 +1,35 @@
+#############################################################
+#
+# inetutils
+#
+#############################################################
+
+INETUTILS_VERSION = 1.8
+INETUTILS_SOURCE = inetutils-$(INETUTILS_VERSION).tar.gz
+INETUTILS_SITE = $(BR2_GNU_MIRROR)/inetutils/
+# patches update many autotool files, and then we need to touch all
+# the man pages to keep from `help2man` running on the binaries
+INETUTILS_AUTORECONF = YES
+define INETUTILS_AUTORECONF_HOOK
+	touch $(INETUTILS_SRCDIR)/*/*.[0-9]
+endef
+INETUTILS_CONF_OPT = \
+	--libexecdir=/usr/sbin \
+	--program-transform-name= \
+	--without-included-regex \
+	--disable-libls \
+	--disable-servers --disable-clients \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_RCP,rcp) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_REXEC,rexec) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_REXECD,rexecd) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_RLOGIN,rlogin) \

package/inetutils/inetutils.mk line 35

Quoted 10 lines
package/inetutils/inetutils.mk new file +10 -0
+	$(call USE_ENABLE,PACKAGE_INETUTILS_RLOGIND,rlogind) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_RSH,rsh) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_RSHD,rshd)
+
+$(eval $(call AUTOTARGETS,package,inetutils))
+
+# append after autotools generation so we get autoreconf then touch
+INETUTILS_PRE_CONFIGURE_HOOKS += INETUTILS_AUTORECONF_HOOK
+
+INETUTILS_INSTALL_TARGET_OPT += SUIDMODE="-m 4775"

Both of these should be before the evaluation of AUTOTARGETS.

Thanks!

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw

PATCH v2 1/1 inetutils: new package for random network tools

In reply to Mike Frysinger

---
v2
- tweak Config style

note: the inetutils.mk is correct -- read the comment already in the file

 package/Config.in                                  |    1 +
 package/inetutils/Config.in                        |   31 +++++++++++
 ...tf-parse-pull-in-features.h-for-__GLIBC__.patch |   27 +++++++++
 ...rgp-fix-program_invocation_name-detection.patch |   51 +++++++++++++++++
 package/inetutils/inetutils-1.8-0003-wchar.patch   |   12 ++++
 ...me-ruserpass-to-avoid-C-library-collision.patch |   58 ++++++++++++++++++++
 ...detect-__rcmd_errstr-support-in-the-C-lib.patch |   57 +++++++++++++++++++
 ...e-daemon-from-the-C-library-when-possible.patch |   42 ++++++++++++++
 .../inetutils-1.8-1004-detect-fork-support.patch   |   54 ++++++++++++++++++
 package/inetutils/inetutils.mk                     |   35 ++++++++++++
 10 files changed, 368 insertions(+), 0 deletions(-)
 create mode 100644 package/inetutils/Config.in
 create mode 100644 package/inetutils/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch
 create mode 100644 package/inetutils/inetutils-1.8-0002-argp-fix-program_invocation_name-detection.patch
 create mode 100644 package/inetutils/inetutils-1.8-0003-wchar.patch
 create mode 100644 package/inetutils/inetutils-1.8-1001-ftp-rename-ruserpass-to-avoid-C-library-collision.patch
 create mode 100644 package/inetutils/inetutils-1.8-1002-rshd-detect-__rcmd_errstr-support-in-the-C-lib.patch
 create mode 100644 package/inetutils/inetutils-1.8-1003-use-daemon-from-the-C-library-when-possible.patch
 create mode 100644 package/inetutils/inetutils-1.8-1004-detect-fork-support.patch
 create mode 100644 package/inetutils/inetutils.mk
package/Config.in +1 -0
index d3629ff..0b131a0 100644
@@ -373,6 +373,7 @@ source "package/dropbear/Config.in"
 source "package/ethtool/Config.in"
 source "package/hostapd/Config.in"
 source "package/ifplugd/Config.in"
+source "package/inetutils/Config.in"
 source "package/iperf/Config.in"
 source "package/iproute2/Config.in"
 source "package/ipsec-tools/Config.in"
package/inetutils/Config.in new file +31 -0
new file mode 100644
index 0000000..e459993
@@ -0,0 +1,31 @@
+config BR2_PACKAGE_INETUTILS
+	bool "inetutils"
+	help
+	  Inetutils is a collection of common network programs.
+
+	  http://www.gnu.org/software/inetutils/
+
+if BR2_PACKAGE_INETUTILS
+
+config BR2_PACKAGE_INETUTILS_RCP
+	bool "rcp"
+
+config BR2_PACKAGE_INETUTILS_REXEC
+	bool "rexec"
+
+config BR2_PACKAGE_INETUTILS_REXECD
+	bool "rexecd"
+
+config BR2_PACKAGE_INETUTILS_RLOGIN
+	bool "rlogin"
+
+config BR2_PACKAGE_INETUTILS_RLOGIND
+	bool "rlogind"
+
+config BR2_PACKAGE_INETUTILS_RSH
+	bool "rsh"
+
+config BR2_PACKAGE_INETUTILS_RSHD
+	bool "rshd"
+
+endif
package/inetutils/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch new file +27 -0
new file mode 100644
index 0000000..719a484
@@ -0,0 +1,27 @@
+From 552a7d64ad4a7188a9b7cd89933ae7caf7ebfe90 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <[email protected]>
+Date: Thu, 18 Nov 2010 16:59:14 -0500
+Subject: [PATCH 1/2] printf-parse: pull in features.h for __GLIBC__
+
+Signed-off-by: Mike Frysinger <[email protected]>
+---
+ lib/printf-parse.h |    3 +++
+ 1 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/lib/printf-parse.h b/lib/printf-parse.h
+index 67a4a2a..3bd6152 100644
+--- a/lib/printf-parse.h
++++ b/lib/printf-parse.h
+@@ -25,6 +25,9 @@
+ 
+ #include "printf-args.h"
+ 
++#ifdef HAVE_FEATURES_H
++# include <features.h>	/* for __GLIBC__ */
++#endif
+ 
+ /* Flags */
+ #define FLAG_GROUP       1      /* ' flag */
+-- 
+1.7.3.2
+
package/inetutils/inetutils-1.8-0002-argp-fix-program_invocation_name-detection.patch new file +51 -0

51 lines not on this page · raw message

package/inetutils/inetutils-1.8-0003-wchar.patch new file +12 -0
new file mode 100644
index 0000000..21635a7
@@ -0,0 +1,12 @@
+--- inetutils-1.8/lib/wchar.in.h
++++ inetutils-1.8/lib/wchar.in.h
+@@ -70,6 +70,9 @@
+ /* The include_next requires a split double-inclusion guard.  */
+ #if @HAVE_WCHAR_H@
+ # @INCLUDE_NEXT@ @NEXT_WCHAR_H@
++#else
++# include <stddef.h>
++# define MB_CUR_MAX 1
+ #endif
+ 
+ #undef _GL_ALREADY_INCLUDING_WCHAR_H
package/inetutils/inetutils-1.8-1001-ftp-rename-ruserpass-to-avoid-C-library-collision.patch new file +58 -0

58 lines not on this page · raw message

package/inetutils/inetutils-1.8-1002-rshd-detect-__rcmd_errstr-support-in-the-C-lib.patch new file +57 -0

57 lines not on this page · raw message

package/inetutils/inetutils-1.8-1003-use-daemon-from-the-C-library-when-possible.patch new file +42 -0

42 lines not on this page · raw message

package/inetutils/inetutils-1.8-1004-detect-fork-support.patch new file +54 -0

54 lines not on this page · raw message

package/inetutils/inetutils.mk new file +35 -0
new file mode 100644
index 0000000..e6c8cd9
@@ -0,0 +1,35 @@
+#############################################################
+#
+# inetutils
+#
+#############################################################
+
+INETUTILS_VERSION = 1.8
+INETUTILS_SOURCE = inetutils-$(INETUTILS_VERSION).tar.gz
+INETUTILS_SITE = $(BR2_GNU_MIRROR)/inetutils/
+# patches update many autotool files, and then we need to touch all
+# the man pages to keep from `help2man` running on the binaries
+INETUTILS_AUTORECONF = YES
+define INETUTILS_AUTORECONF_HOOK
+	touch $(INETUTILS_SRCDIR)/*/*.[0-9]
+endef
+INETUTILS_CONF_OPT = \
+	--libexecdir=/usr/sbin \
+	--program-transform-name= \
+	--without-included-regex \
+	--disable-libls \
+	--disable-servers --disable-clients \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_RCP,rcp) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_REXEC,rexec) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_REXECD,rexecd) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_RLOGIN,rlogin) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_RLOGIND,rlogind) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_RSH,rsh) \
+	$(call USE_ENABLE,PACKAGE_INETUTILS_RSHD,rshd)
+
+$(eval $(call AUTOTARGETS,package,inetutils))
+
+# append after autotools generation so we get autoreconf then touch
+INETUTILS_PRE_CONFIGURE_HOOKS += INETUTILS_AUTORECONF_HOOK
+
+INETUTILS_INSTALL_TARGET_OPT += SUIDMODE="-m 4775"
Signature · 1 line
1.7.3.2
#3 lore raw

PATCH v2 1/1 inetutils: new package for random network tools

In reply to Mike Frysinger

---
v2
- update autotools helpers
- expose ftp/ftpd in the Config.in
- add patch to make nommu ftpd work

 package/Config.in                                  |    1 +
 package/inetutils/Config.in                        |   37 +++++++
 ...tf-parse-pull-in-features.h-for-__GLIBC__.patch |   27 +++++
 ...rgp-fix-program_invocation_name-detection.patch |   51 +++++++++
 package/inetutils/inetutils-1.8-0003-wchar.patch   |   12 ++
 ...me-ruserpass-to-avoid-C-library-collision.patch |   58 +++++++++++
 ...detect-__rcmd_errstr-support-in-the-C-lib.patch |   57 ++++++++++
 ...e-daemon-from-the-C-library-when-possible.patch |   42 ++++++++
 .../inetutils-1.8-1004-detect-fork-support.patch   |   54 ++++++++++
 ...-1.8-1005-ftpd-add-daemon-D-nommu-support.patch |  109 ++++++++++++++++++++
 package/inetutils/inetutils.mk                     |   37 +++++++
 11 files changed, 485 insertions(+), 0 deletions(-)
 create mode 100644 package/inetutils/Config.in
 create mode 100644 package/inetutils/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch
 create mode 100644 package/inetutils/inetutils-1.8-0002-argp-fix-program_invocation_name-detection.patch
 create mode 100644 package/inetutils/inetutils-1.8-0003-wchar.patch
 create mode 100644 package/inetutils/inetutils-1.8-1001-ftp-rename-ruserpass-to-avoid-C-library-collision.patch
 create mode 100644 package/inetutils/inetutils-1.8-1002-rshd-detect-__rcmd_errstr-support-in-the-C-lib.patch
 create mode 100644 package/inetutils/inetutils-1.8-1003-use-daemon-from-the-C-library-when-possible.patch
 create mode 100644 package/inetutils/inetutils-1.8-1004-detect-fork-support.patch
 create mode 100644 package/inetutils/inetutils-1.8-1005-ftpd-add-daemon-D-nommu-support.patch
 create mode 100644 package/inetutils/inetutils.mk
package/Config.in +1 -0
index d3629ff..0b131a0 100644
@@ -373,6 +373,7 @@ source "package/dropbear/Config.in"
 source "package/ethtool/Config.in"
 source "package/hostapd/Config.in"
 source "package/ifplugd/Config.in"
+source "package/inetutils/Config.in"
 source "package/iperf/Config.in"
 source "package/iproute2/Config.in"
 source "package/ipsec-tools/Config.in"
package/inetutils/Config.in new file +37 -0
new file mode 100644
index 0000000..aa67fe6
@@ -0,0 +1,37 @@
+config BR2_PACKAGE_INETUTILS
+	bool "inetutils"
+	help
+	  Inetutils is a collection of common network programs.
+
+	  http://www.gnu.org/software/inetutils/
+
+if BR2_PACKAGE_INETUTILS
+
+config BR2_PACKAGE_INETUTILS_FTP
+	bool "ftp"
+
+config BR2_PACKAGE_INETUTILS_FTPD
+	bool "ftpd"
+
+config BR2_PACKAGE_INETUTILS_RCP
+	bool "rcp"
+
+config BR2_PACKAGE_INETUTILS_REXEC
+	bool "rexec"
+
+config BR2_PACKAGE_INETUTILS_REXECD
+	bool "rexecd"
+
+config BR2_PACKAGE_INETUTILS_RLOGIN
+	bool "rlogin"
+
+config BR2_PACKAGE_INETUTILS_RLOGIND
+	bool "rlogind"
+
+config BR2_PACKAGE_INETUTILS_RSH
+	bool "rsh"
+
+config BR2_PACKAGE_INETUTILS_RSHD
+	bool "rshd"
+
+endif
package/inetutils/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch new file +27 -0
new file mode 100644
index 0000000..b69ab96
@@ -0,0 +1,27 @@
+From 552a7d64ad4a7188a9b7cd89933ae7caf7ebfe90 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <[email protected]>
+Date: Thu, 18 Nov 2010 16:59:14 -0500
+Subject: [PATCH gnulib] printf-parse: pull in features.h for __GLIBC__
+
+Signed-off-by: Mike Frysinger <[email protected]>
+---
+ lib/printf-parse.h |    3 +++
+ 1 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/lib/printf-parse.h b/lib/printf-parse.h
+index 67a4a2a..3bd6152 100644
+--- a/lib/printf-parse.h
++++ b/lib/printf-parse.h
+@@ -25,6 +25,9 @@
+ 
+ #include "printf-args.h"
+ 
++#ifdef HAVE_FEATURES_H
++# include <features.h>	/* for __GLIBC__ */
++#endif
+ 
+ /* Flags */
+ #define FLAG_GROUP       1      /* ' flag */
+-- 
+1.7.3.2
+
package/inetutils/inetutils-1.8-0002-argp-fix-program_invocation_name-detection.patch new file +51 -0

51 lines not on this page · raw message

package/inetutils/inetutils-1.8-0003-wchar.patch new file +12 -0
new file mode 100644
index 0000000..21635a7
@@ -0,0 +1,12 @@
+--- inetutils-1.8/lib/wchar.in.h
++++ inetutils-1.8/lib/wchar.in.h
+@@ -70,6 +70,9 @@
+ /* The include_next requires a split double-inclusion guard.  */
+ #if @HAVE_WCHAR_H@
+ # @INCLUDE_NEXT@ @NEXT_WCHAR_H@
++#else
++# include <stddef.h>
++# define MB_CUR_MAX 1
+ #endif
+ 
+ #undef _GL_ALREADY_INCLUDING_WCHAR_H
package/inetutils/inetutils-1.8-1001-ftp-rename-ruserpass-to-avoid-C-library-collision.patch new file +58 -0

58 lines not on this page · raw message

package/inetutils/inetutils-1.8-1002-rshd-detect-__rcmd_errstr-support-in-the-C-lib.patch new file +57 -0

57 lines not on this page · raw message

package/inetutils/inetutils-1.8-1003-use-daemon-from-the-C-library-when-possible.patch new file +42 -0

42 lines not on this page · raw message

package/inetutils/inetutils-1.8-1004-detect-fork-support.patch new file +54 -0

54 lines not on this page · raw message

package/inetutils/inetutils-1.8-1005-ftpd-add-daemon-D-nommu-support.patch new file +109 -0

109 lines not on this page · raw message

package/inetutils/inetutils.mk new file +37 -0
new file mode 100644
index 0000000..95a78e3
@@ -0,0 +1,37 @@
+#############################################################
+#
+# inetutils
+#
+#############################################################
+
+INETUTILS_VERSION = 1.8
+INETUTILS_SOURCE = inetutils-$(INETUTILS_VERSION).tar.gz
+INETUTILS_SITE = $(BR2_GNU_MIRROR)/inetutils/
+# patches update many autotool files, and then we need to touch all
+# the man pages to keep from `help2man` running on the binaries
+INETUTILS_AUTORECONF = YES
+define INETUTILS_AUTORECONF_HOOK
+	touch $(INETUTILS_SRCDIR)/*/*.[0-9]
+endef
+INETUTILS_CONF_OPT = \
+	--libexecdir=/usr/sbin \
+	--program-transform-name= \
+	--without-included-regex \
+	--disable-libls \
+	--disable-servers --disable-clients \
+	$(call USE_ENABLE,INETUTILS_FTP,ftp) \
+	$(call USE_ENABLE,INETUTILS_FTPD,ftpd) \
+	$(call USE_ENABLE,INETUTILS_RCP,rcp) \
+	$(call USE_ENABLE,INETUTILS_REXEC,rexec) \
+	$(call USE_ENABLE,INETUTILS_REXECD,rexecd) \
+	$(call USE_ENABLE,INETUTILS_RLOGIN,rlogin) \
+	$(call USE_ENABLE,INETUTILS_RLOGIND,rlogind) \
+	$(call USE_ENABLE,INETUTILS_RSH,rsh) \
+	$(call USE_ENABLE,INETUTILS_RSHD,rshd)
+
+$(eval $(call AUTOTARGETS,package,inetutils))
+
+# append after autotools generation so we get autoreconf then touch
+INETUTILS_PRE_CONFIGURE_HOOKS += INETUTILS_AUTORECONF_HOOK
+
+INETUTILS_INSTALL_TARGET_OPT += SUIDMODE="-m 4775"
Signature · 1 line
1.7.3.2
#4 lore raw

PATCH v4 1/1 inetutils: new package for random network tools

In reply to Mike Frysinger

---
v4
- add inetd/telnet/tftp config options
- move back to older autotool helpers
- control ipv6

 package/Config.in                                  |    1 +
 package/inetutils/Config.in                        |   52 +++++++++
 ...tf-parse-pull-in-features.h-for-__GLIBC__.patch |   27 +++++
 ...rgp-fix-program_invocation_name-detection.patch |   51 +++++++++
 package/inetutils/inetutils-1.8-0003-wchar.patch   |   12 ++
 ...me-ruserpass-to-avoid-C-library-collision.patch |   58 +++++++++++
 ...detect-__rcmd_errstr-support-in-the-C-lib.patch |   57 ++++++++++
 ...e-daemon-from-the-C-library-when-possible.patch |   42 ++++++++
 .../inetutils-1.8-1004-detect-fork-support.patch   |   54 ++++++++++
 ...-1.8-1005-ftpd-add-daemon-D-nommu-support.patch |  109 ++++++++++++++++++++
 package/inetutils/inetutils.mk                     |   43 ++++++++
 11 files changed, 506 insertions(+), 0 deletions(-)
 create mode 100644 package/inetutils/Config.in
 create mode 100644 package/inetutils/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch
 create mode 100644 package/inetutils/inetutils-1.8-0002-argp-fix-program_invocation_name-detection.patch
 create mode 100644 package/inetutils/inetutils-1.8-0003-wchar.patch
 create mode 100644 package/inetutils/inetutils-1.8-1001-ftp-rename-ruserpass-to-avoid-C-library-collision.patch
 create mode 100644 package/inetutils/inetutils-1.8-1002-rshd-detect-__rcmd_errstr-support-in-the-C-lib.patch
 create mode 100644 package/inetutils/inetutils-1.8-1003-use-daemon-from-the-C-library-when-possible.patch
 create mode 100644 package/inetutils/inetutils-1.8-1004-detect-fork-support.patch
 create mode 100644 package/inetutils/inetutils-1.8-1005-ftpd-add-daemon-D-nommu-support.patch
 create mode 100644 package/inetutils/inetutils.mk
package/Config.in +1 -0
index d3629ff..0b131a0 100644
@@ -373,6 +373,7 @@ source "package/dropbear/Config.in"
 source "package/ethtool/Config.in"
 source "package/hostapd/Config.in"
 source "package/ifplugd/Config.in"
+source "package/inetutils/Config.in"
 source "package/iperf/Config.in"
 source "package/iproute2/Config.in"
 source "package/ipsec-tools/Config.in"
package/inetutils/Config.in new file +52 -0

52 lines not on this page · raw message

package/inetutils/inetutils-1.8-0001-printf-parse-pull-in-features.h-for-__GLIBC__.patch new file +27 -0
new file mode 100644
index 0000000..b69ab96
@@ -0,0 +1,27 @@
+From 552a7d64ad4a7188a9b7cd89933ae7caf7ebfe90 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <[email protected]>
+Date: Thu, 18 Nov 2010 16:59:14 -0500
+Subject: [PATCH gnulib] printf-parse: pull in features.h for __GLIBC__
+
+Signed-off-by: Mike Frysinger <[email protected]>
+---
+ lib/printf-parse.h |    3 +++
+ 1 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/lib/printf-parse.h b/lib/printf-parse.h
+index 67a4a2a..3bd6152 100644
+--- a/lib/printf-parse.h
++++ b/lib/printf-parse.h
+@@ -25,6 +25,9 @@
+ 
+ #include "printf-args.h"
+ 
++#ifdef HAVE_FEATURES_H
++# include <features.h>	/* for __GLIBC__ */
++#endif
+ 
+ /* Flags */
+ #define FLAG_GROUP       1      /* ' flag */
+-- 
+1.7.3.2
+
package/inetutils/inetutils-1.8-0002-argp-fix-program_invocation_name-detection.patch new file +51 -0

51 lines not on this page · raw message

package/inetutils/inetutils-1.8-0003-wchar.patch new file +12 -0
new file mode 100644
index 0000000..21635a7
@@ -0,0 +1,12 @@
+--- inetutils-1.8/lib/wchar.in.h
++++ inetutils-1.8/lib/wchar.in.h
+@@ -70,6 +70,9 @@
+ /* The include_next requires a split double-inclusion guard.  */
+ #if @HAVE_WCHAR_H@
+ # @INCLUDE_NEXT@ @NEXT_WCHAR_H@
++#else
++# include <stddef.h>
++# define MB_CUR_MAX 1
+ #endif
+ 
+ #undef _GL_ALREADY_INCLUDING_WCHAR_H
package/inetutils/inetutils-1.8-1001-ftp-rename-ruserpass-to-avoid-C-library-collision.patch new file +58 -0

58 lines not on this page · raw message

package/inetutils/inetutils-1.8-1002-rshd-detect-__rcmd_errstr-support-in-the-C-lib.patch new file +57 -0

57 lines not on this page · raw message

package/inetutils/inetutils-1.8-1003-use-daemon-from-the-C-library-when-possible.patch new file +42 -0

42 lines not on this page · raw message

package/inetutils/inetutils-1.8-1004-detect-fork-support.patch new file +54 -0

54 lines not on this page · raw message

package/inetutils/inetutils-1.8-1005-ftpd-add-daemon-D-nommu-support.patch new file +109 -0

109 lines not on this page · raw message

package/inetutils/inetutils.mk new file +43 -0

43 lines not on this page · raw message

Signature · 1 line
1.7.3.2
#5 lore raw

PATCH v4 1/1 inetutils: new package for random network tools

package/inetutils/inetutils.mk line 22

Quoted 1 line · On Fri, 19 Nov 2010 22:59:07 -0500 Mike Frysinger <[email protected]> wrote:
package/inetutils/inetutils.mk new file +1 -0
+	$(call USE_ENABLE,INET_IPV6,ipv6) \

The following bit in package/Makefile.in already passes --disable-ipv6 when IPv6 is not available:

ifneq ($(BR2_INET_IPV6),y)
DISABLE_IPV6= --disable-ipv6
endif

However, it does not pass --enable-ipv6 when IPv6 is enabled.

I'm not sure what to do:

*) Pass --{disable,enable}-ipv6 to every package

*) Remove completely the snippet in package/Makefile.in and let each
package handle its options. I'm not sure --{disable,enable}-ipv6 is really a standard thing.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#6 lore raw

PATCH v4 1/1 inetutils: new package for random network tools

Quoted 10 lines · On Tuesday, November 23, 2010 14:38:18 Thomas Petazzoni wrote:

package/inetutils/inetutils.mk line 22

Quoted 1 line · On Fri, 19 Nov 2010 22:59:07 -0500 Mike Frysinger wrote:
package/inetutils/inetutils.mk new file +1 -0
+	$(call USE_ENABLE,INET_IPV6,ipv6) \

The following bit in package/Makefile.in already passes --disable-ipv6 when IPv6 is not available:

ifneq ($(BR2_INET_IPV6),y)
DISABLE_IPV6= --disable-ipv6
endif

Quoted 5 lines

However, it does not pass --enable-ipv6 when IPv6 is enabled.

I'm not sure what to do:

*) Pass --{disable,enable}-ipv6 to every package

i'd go with this as packages can go either way (default to off or on)
-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/20101207/a0482936/attachment.pgp>