You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
2.1 KiB
58 lines
2.1 KiB
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
# |
|
# Filename: package/.../net-tools/no_hostname.patch |
|
# Copyright (C) 2006 The OpenSDE Project |
|
# |
|
# More information can be found in the files COPYING and README. |
|
# |
|
# This patch file is dual-licensed. It is available under the license the |
|
# patched project is licensed under, as long as it is an OpenSource license |
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms |
|
# of the GNU General Public License as published by the Free Software |
|
# Foundation; either version 2 of the License, or (at your option) any later |
|
# version. |
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
--- ./Makefile.orig 2006-11-28 12:15:12.000000000 -0300 |
|
+++ ./Makefile 2006-11-28 12:16:01.000000000 -0300 |
|
@@ -76,7 +76,7 @@ |
|
NET_LIB_PATH = lib |
|
NET_LIB_NAME = net-tools |
|
|
|
-PROGS := ifconfig hostname arp netstat route rarp slattach plipconfig nameif ether-wake |
|
+PROGS := ifconfig arp netstat route rarp slattach plipconfig nameif ether-wake |
|
|
|
-include config.make |
|
ifeq ($(HAVE_IP_TOOLS),1) |
|
@@ -227,7 +227,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 |
|
@@ -243,21 +242,12 @@ |
|
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 \ |
|
+ ; do \ |
|
[ -f $$i ] && cp -f $$i $$i.old ; done ; echo Saved. |
|
|
|
installdata:
|
|
|