net-tools: Commit missing patch file.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 4 Jun 2014 22:50:08 +0000 (00:50 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 4 Jun 2014 22:50:08 +0000 (00:50 +0200)
src/patches/net-tools-1.60-no-hostname.patch [new file with mode: 0644]

diff --git a/src/patches/net-tools-1.60-no-hostname.patch b/src/patches/net-tools-1.60-no-hostname.patch
new file mode 100644 (file)
index 0000000..e2e34a1
--- /dev/null
@@ -0,0 +1,52 @@
+--- a/Makefile.bak     2014-06-03 19:01:39.758845492 +0000
++++ b/Makefile 2014-06-03 19:02:34.119171419 +0000
+@@ -76,7 +76,7 @@
+ NET_LIB_PATH = lib
+ NET_LIB_NAME = net-tools
+-PROGS := ifconfig hostname arp netstat route rarp slattach plipconfig nameif
++PROGS := ifconfig arp netstat route rarp slattach plipconfig nameif
+ -include config.make
+ ifeq ($(HAVE_IP_TOOLS),1)
+@@ -190,9 +190,6 @@
+ nameif:       nameif.o
+               $(CC) $(LDFLAGS) -o nameif nameif.o 
+-hostname:     hostname.o
+-              $(CC) $(LDFLAGS) -o hostname hostname.o $(DNLIB)
+-
+ route:                $(NET_LIB) route.o
+               $(CC) $(LDFLAGS) -o route route.o $(NLIB) $(RESLIB)
+@@ -224,7 +221,6 @@
+       install -m 0755 -d ${BASEDIR}/sbin
+       install -m 0755 -d ${BASEDIR}/bin
+       install -m 0755 arp        ${BASEDIR}/sbin
+-      install -m 0755 hostname   ${BASEDIR}/bin
+       install -m 0755 ifconfig   ${BASEDIR}/sbin
+       install -m 0755 nameif     ${BASEDIR}/sbin
+       install -m 0755 netstat    ${BASEDIR}/bin
+@@ -239,21 +235,11 @@
+ ifeq ($(HAVE_MII),1)
+       install -m 0755 mii-tool   $(BASEDIR)/sbin
+ endif
+-      ln -fs hostname $(BASEDIR)/bin/dnsdomainname
+-      ln -fs hostname $(BASEDIR)/bin/ypdomainname
+-      ln -fs hostname $(BASEDIR)/bin/nisdomainname
+-      ln -fs hostname $(BASEDIR)/bin/domainname
+-ifeq ($(HAVE_AFDECnet),1)
+-      ln -fs hostname $(BASEDIR)/bin/nodename
+-endif
+ savebin:
+       @for i in ${BASEDIR}/sbin/arp ${BASEDIR}/sbin/ifconfig \
+                  ${BASEDIR}/bin/netstat \
+-               ${BASEDIR}/sbin/rarp ${BASEDIR}/sbin/route \
+-               ${BASEDIR}/bin/hostname ${BASEDIR}/bin/ypdomainname \
+-                 ${BASEDIR}/bin/dnsdomainname ${BASEDIR}/bin/nisdomainname \
+-               ${BASEDIR}/bin/domainname ; do \
++               ${BASEDIR}/sbin/rarp ${BASEDIR}/sbin/route; do \
+                [ -f $$i ] && cp -f $$i $$i.old ; done ; echo Saved.
+ installdata: