+-rwxr-xr-x root/root bin
drwxr-xr-x root/root etc/
-rw-r--r-- root/root etc/inetd.conf
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/inetd
+-rwxr-xr-x root/root sbin
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/telnet
+-rwsrwxr-x root/root usr/bin/traceroute
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/ftp.1.gz
+-rw-r--r-- root/root usr/man/man1/hostname.1.gz
+-rw-r--r-- root/root usr/man/man1/ifconfig.1.gz
-rw-r--r-- root/root usr/man/man1/telnet.1.gz
+-rw-r--r-- root/root usr/man/man1/traceroute.1.gz
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/inetd.8.gz
drwxr-xr-x root/root usr/sbin/
87fdb9f85d8fc140b2f873e8e4e18440 inetd
dd0d71e008809420edada02dda7a3149 inetd.conf
+c4d6af326062d6ea848cccb038c817c8 inetutils-1.9.1-pathprocnet.patch
944f7196a2b3dba2d400e9088576000c inetutils-1.9.1.tar.gz
name=inetutils
version=1.9.1
-release=2
+release=4
source=(http://ftp.gnu.org/gnu/inetutils/inetutils-$version.tar.gz \
- inetd.conf inetd)
+ inetd.conf inetd $name-$version-pathprocnet.patch)
build() {
cd inetutils-$version
# fix for glibc 'gets' removal
sed -i -e '/gets is a/d' lib/stdio.in.h
+ # Fix for PATH_PROC_NET undefined error
+ patch -p1 -i $SRC/$name-$version-pathprocnet.patch
+
./configure --build=$CHOST \
--host=$CTARGET \
--prefix=/usr \
--localstatedir=/var \
--sysconfdir=/etc \
--disable-{servers,clients} \
- --enable-{inetd,ftp,telnet}
+ --enable-{hostname,ifconfig,inetd,ftp,telnet,traceroute}
make
make DESTDIR=$PKG install
install -d $PKG/etc/rc.d
+
+ mv $PKG/usr/bin/hostname $PKG/bin
+ mv $PKG/usr/bin/ifconfig $PKG/sbin
+
install -m 644 $SRC/inetd.conf $PKG/etc
install -m 755 $SRC/inetd $PKG/etc/rc.d
--- /dev/null
+inetutils: define PATH_PROCNET_DEV if not already defined
+
+this prevents the following compilation error :
+system/linux.c:401:15: error: 'PATH_PROCNET_DEV' undeclared (first use in this function)
+
+this patch comes from :
+ http://repository.timesys.com/buildsources/i/inetutils/inetutils-1.9/
+
+Upstream-Status: Inappropriate [not author]
+
+Signed-of-by: Eric BĂ©nard <eric at eukrea.com>
+---
+diff -Naur inetutils-1.9.orig/ifconfig/system/linux.c inetutils-1.9/ifconfig/system/linux.c
+--- inetutils-1.9.orig/ifconfig/system/linux.c 2012-01-04 16:31:36.000000000 -0500
++++ inetutils-1.9/ifconfig/system/linux.c 2012-01-04 16:40:53.000000000 -0500
+@@ -49,6 +49,10 @@
+ #include "../ifconfig.h"
+
+
++#ifndef PATH_PROCNET_DEV
++ #define PATH_PROCNET_DEV "/proc/net/dev"
++#endif
++
+ /* ARPHRD stuff. */
+
+ static void