Skip to content

Commit

Permalink
arp/rarp: add a config knob to control them
Browse files Browse the repository at this point in the history
  • Loading branch information
vapier committed Feb 15, 2016
1 parent 2cc98e1 commit fbc11bb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ SBINDIR ?= /sbin
NET_LIB_PATH = lib
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
ifeq ($(HAVE_ARP_TOOLS),1)
PROGS += arp rarp
endif
ifeq ($(HAVE_IP_TOOLS),1)
PROGS += iptunnel ipmaddr
endif
Expand Down Expand Up @@ -201,15 +204,17 @@ installbin:
@echo
install -m 0755 -d ${BASEDIR}${SBINDIR}
install -m 0755 -d ${BASEDIR}${BINDIR}
install -m 0755 arp ${BASEDIR}${SBINDIR}
install -m 0755 hostname ${BASEDIR}${BINDIR}
install -m 0755 ifconfig ${BASEDIR}${BINDIR}
install -m 0755 nameif ${BASEDIR}${SBINDIR}
install -m 0755 netstat ${BASEDIR}${BINDIR}
install -m 0755 plipconfig $(BASEDIR)${SBINDIR}
install -m 0755 rarp ${BASEDIR}${SBINDIR}
install -m 0755 route ${BASEDIR}${BINDIR}
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)
install -m 0755 ipmaddr $(BASEDIR)${SBINDIR}
install -m 0755 iptunnel $(BASEDIR)${SBINDIR}
Expand Down
1 change: 1 addition & 0 deletions config.in
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ bool 'InfiniBand hardware support' HAVE_HWIB y
* Other Features.
*
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 mii-tool' HAVE_MII y
bool 'SELinux support' HAVE_SELINUX n
3 changes: 3 additions & 0 deletions man/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ LANGS = en_US
endif

IGNORE_CMDS = ""
ifneq ($(HAVE_ARP_TOOLS),1)
IGNORE_CMDS += |arp.?|rarp.?
endif
ifneq ($(HAVE_IP_TOOLS),1)
IGNORE_CMDS += |ipmaddr.?|iptunnel.?
endif
Expand Down

0 comments on commit fbc11bb

Please sign in to comment.