Commit fbc11bb9 authored by Mike Frysinger's avatar Mike Frysinger

arp/rarp: add a config knob to control them

parent 2cc98e16
...@@ -33,9 +33,12 @@ SBINDIR ?= /sbin ...@@ -33,9 +33,12 @@ SBINDIR ?= /sbin
NET_LIB_PATH = lib NET_LIB_PATH = lib
NET_LIB_NAME = net-tools NET_LIB_NAME = net-tools
PROGS := ifconfig hostname arp netstat route rarp slattach plipconfig nameif PROGS := ifconfig hostname netstat route slattach plipconfig nameif
-include config.make -include config.make
ifeq ($(HAVE_ARP_TOOLS),1)
PROGS += arp rarp
endif
ifeq ($(HAVE_IP_TOOLS),1) ifeq ($(HAVE_IP_TOOLS),1)
PROGS += iptunnel ipmaddr PROGS += iptunnel ipmaddr
endif endif
...@@ -201,15 +204,17 @@ installbin: ...@@ -201,15 +204,17 @@ installbin:
@echo @echo
install -m 0755 -d ${BASEDIR}${SBINDIR} install -m 0755 -d ${BASEDIR}${SBINDIR}
install -m 0755 -d ${BASEDIR}${BINDIR} install -m 0755 -d ${BASEDIR}${BINDIR}
install -m 0755 arp ${BASEDIR}${SBINDIR}
install -m 0755 hostname ${BASEDIR}${BINDIR} install -m 0755 hostname ${BASEDIR}${BINDIR}
install -m 0755 ifconfig ${BASEDIR}${BINDIR} install -m 0755 ifconfig ${BASEDIR}${BINDIR}
install -m 0755 nameif ${BASEDIR}${SBINDIR} install -m 0755 nameif ${BASEDIR}${SBINDIR}
install -m 0755 netstat ${BASEDIR}${BINDIR} install -m 0755 netstat ${BASEDIR}${BINDIR}
install -m 0755 plipconfig $(BASEDIR)${SBINDIR} install -m 0755 plipconfig $(BASEDIR)${SBINDIR}
install -m 0755 rarp ${BASEDIR}${SBINDIR}
install -m 0755 route ${BASEDIR}${BINDIR} install -m 0755 route ${BASEDIR}${BINDIR}
install -m 0755 slattach $(BASEDIR)${SBINDIR} install -m 0755 slattach $(BASEDIR)${SBINDIR}
ifeq ($(HAVE_ARP_TOOLS),1)
install -m 0755 arp ${BASEDIR}${SBINDIR}
install -m 0755 rarp ${BASEDIR}${SBINDIR}
endif
ifeq ($(HAVE_IP_TOOLS),1) ifeq ($(HAVE_IP_TOOLS),1)
install -m 0755 ipmaddr $(BASEDIR)${SBINDIR} install -m 0755 ipmaddr $(BASEDIR)${SBINDIR}
install -m 0755 iptunnel $(BASEDIR)${SBINDIR} install -m 0755 iptunnel $(BASEDIR)${SBINDIR}
......
...@@ -90,6 +90,7 @@ bool 'InfiniBand hardware support' HAVE_HWIB y ...@@ -90,6 +90,7 @@ bool 'InfiniBand hardware support' HAVE_HWIB y
* Other Features. * Other Features.
* *
bool 'IP Masquerading support' HAVE_FW_MASQUERADE y bool 'IP Masquerading support' HAVE_FW_MASQUERADE y
bool 'Build arp and rarp' HAVE_ARP_TOOLS y
bool 'Build iptunnel and ipmaddr' HAVE_IP_TOOLS y bool 'Build iptunnel and ipmaddr' HAVE_IP_TOOLS y
bool 'Build mii-tool' HAVE_MII y bool 'Build mii-tool' HAVE_MII y
bool 'SELinux support' HAVE_SELINUX n bool 'SELinux support' HAVE_SELINUX n
...@@ -40,6 +40,9 @@ LANGS = en_US ...@@ -40,6 +40,9 @@ LANGS = en_US
endif endif
IGNORE_CMDS = "" IGNORE_CMDS = ""
ifneq ($(HAVE_ARP_TOOLS),1)
IGNORE_CMDS += |arp.?|rarp.?
endif
ifneq ($(HAVE_IP_TOOLS),1) ifneq ($(HAVE_IP_TOOLS),1)
IGNORE_CMDS += |ipmaddr.?|iptunnel.? IGNORE_CMDS += |ipmaddr.?|iptunnel.?
endif endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment