OpenSDE Packages Database (without history before r20070)
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

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../net-tools/no_hostname.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./Makefile.orig 2006-11-28 12:15:12.000000000 -0300
  17. +++ ./Makefile 2006-11-28 12:16:01.000000000 -0300
  18. @@ -76,7 +76,7 @@
  19. NET_LIB_PATH = lib
  20. NET_LIB_NAME = net-tools
  21. -PROGS := ifconfig hostname arp netstat route rarp slattach plipconfig nameif ether-wake
  22. +PROGS := ifconfig arp netstat route rarp slattach plipconfig nameif ether-wake
  23. -include config.make
  24. ifeq ($(HAVE_IP_TOOLS),1)
  25. @@ -227,7 +227,6 @@
  26. install -m 0755 -d ${BASEDIR}/sbin
  27. install -m 0755 -d ${BASEDIR}/bin
  28. install -m 0755 arp ${BASEDIR}/sbin
  29. - install -m 0755 hostname ${BASEDIR}/bin
  30. install -m 0755 ifconfig ${BASEDIR}/sbin
  31. install -m 0755 nameif ${BASEDIR}/sbin
  32. install -m 0755 netstat ${BASEDIR}/bin
  33. @@ -243,21 +242,12 @@
  34. ifeq ($(HAVE_MII),1)
  35. install -m 0755 mii-tool $(BASEDIR)/sbin
  36. endif
  37. - ln -fs hostname $(BASEDIR)/bin/dnsdomainname
  38. - ln -fs hostname $(BASEDIR)/bin/ypdomainname
  39. - ln -fs hostname $(BASEDIR)/bin/nisdomainname
  40. - ln -fs hostname $(BASEDIR)/bin/domainname
  41. -ifeq ($(HAVE_AFDECnet),1)
  42. - ln -fs hostname $(BASEDIR)/bin/nodename
  43. -endif
  44. savebin:
  45. @for i in ${BASEDIR}/sbin/arp ${BASEDIR}/sbin/ifconfig \
  46. ${BASEDIR}/bin/netstat \
  47. ${BASEDIR}/sbin/rarp ${BASEDIR}/sbin/route \
  48. - ${BASEDIR}/bin/hostname ${BASEDIR}/bin/ypdomainname \
  49. - ${BASEDIR}/bin/dnsdomainname ${BASEDIR}/bin/nisdomainname \
  50. - ${BASEDIR}/bin/domainname ; do \
  51. + ; do \
  52. [ -f $$i ] && cp -f $$i $$i.old ; done ; echo Saved.
  53. installdata: