Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
93912384
Commit
93912384
authored
Feb 15, 2016
by
Mike Frysinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hostname: add a config knob to control build/install
parent
fbc11bb9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
9 deletions
+27
-9
Makefile
Makefile
+16
-9
config.in
config.in
+2
-0
man/Makefile
man/Makefile
+9
-0
No files found.
Makefile
View file @
93912384
...
@@ -33,12 +33,15 @@ SBINDIR ?= /sbin
...
@@ -33,12 +33,15 @@ SBINDIR ?= /sbin
NET_LIB_PATH
=
lib
NET_LIB_PATH
=
lib
NET_LIB_NAME
=
net-tools
NET_LIB_NAME
=
net-tools
PROGS
:=
ifconfig
hostname
netstat route slattach plipconfig nameif
PROGS
:=
ifconfig netstat route slattach plipconfig nameif
-include
config.make
-include
config.make
ifeq
($(HAVE_ARP_TOOLS),1)
ifeq
($(HAVE_ARP_TOOLS),1)
PROGS
+=
arp rarp
PROGS
+=
arp rarp
endif
endif
ifeq
($(HAVE_HOSTNAME_TOOLS),1)
PROGS
+=
hostname
endif
ifeq
($(HAVE_IP_TOOLS),1)
ifeq
($(HAVE_IP_TOOLS),1)
PROGS
+=
iptunnel ipmaddr
PROGS
+=
iptunnel ipmaddr
endif
endif
...
@@ -204,7 +207,6 @@ installbin:
...
@@ -204,7 +207,6 @@ 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
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}
...
@@ -215,20 +217,25 @@ ifeq ($(HAVE_ARP_TOOLS),1)
...
@@ -215,20 +217,25 @@ ifeq ($(HAVE_ARP_TOOLS),1)
install
-m
0755 arp
${BASEDIR}${SBINDIR}
install
-m
0755 arp
${BASEDIR}${SBINDIR}
install
-m
0755 rarp
${BASEDIR}${SBINDIR}
install
-m
0755 rarp
${BASEDIR}${SBINDIR}
endif
endif
ifeq
($(HAVE_IP_TOOLS),1)
ifeq
($(HAVE_HOSTNAME_TOOLS),1)
install
-m
0755 ipmaddr
$(BASEDIR)${SBINDIR}
install
-m
0755
hostname
${BASEDIR}${BINDIR}
install
-m
0755 iptunnel
$(BASEDIR)${SBINDIR}
endif
ifeq
($(HAVE_MII),1)
install
-m
0755 mii-tool
$(BASEDIR)${SBINDIR}
endif
ln
-fs
hostname
$(BASEDIR)${BINDIR}
/dnsdomainname
ln
-fs
hostname
$(BASEDIR)${BINDIR}
/dnsdomainname
ifeq
($(HAVE_HOSTNAME_SYMLINKS),1)
ln
-fs
hostname
$(BASEDIR)${BINDIR}
/ypdomainname
ln
-fs
hostname
$(BASEDIR)${BINDIR}
/ypdomainname
ln
-fs
hostname
$(BASEDIR)${BINDIR}
/nisdomainname
ln
-fs
hostname
$(BASEDIR)${BINDIR}
/nisdomainname
ln
-fs
hostname
$(BASEDIR)${BINDIR}
/domainname
ln
-fs
hostname
$(BASEDIR)${BINDIR}
/domainname
endif
ifeq
($(HAVE_AFDECnet),1)
ifeq
($(HAVE_AFDECnet),1)
ln
-fs
hostname
$(BASEDIR)${BINDIR}
/nodename
ln
-fs
hostname
$(BASEDIR)${BINDIR}
/nodename
endif
endif
endif
ifeq
($(HAVE_IP_TOOLS),1)
install
-m
0755 ipmaddr
$(BASEDIR)${SBINDIR}
install
-m
0755 iptunnel
$(BASEDIR)${SBINDIR}
endif
ifeq
($(HAVE_MII),1)
install
-m
0755 mii-tool
$(BASEDIR)${SBINDIR}
endif
savebin
:
savebin
:
@
for
i
in
${BASEDIR}${SBINDIR}
/arp
${BASEDIR}${SBINDIR}
/ifconfig
\
@
for
i
in
${BASEDIR}${SBINDIR}
/arp
${BASEDIR}${SBINDIR}
/ifconfig
\
...
...
config.in
View file @
93912384
...
@@ -91,6 +91,8 @@ bool 'InfiniBand hardware support' HAVE_HWIB y
...
@@ -91,6 +91,8 @@ bool 'InfiniBand hardware support' HAVE_HWIB y
*
*
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 arp and rarp' HAVE_ARP_TOOLS y
bool 'Build hostname' HAVE_HOSTNAME_TOOLS y
bool 'Install hostname NIS/YP symlinks' HAVE_HOSTNAME_SYMLINKS 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
man/Makefile
View file @
93912384
...
@@ -43,6 +43,15 @@ IGNORE_CMDS = ""
...
@@ -43,6 +43,15 @@ IGNORE_CMDS = ""
ifneq
($(HAVE_ARP_TOOLS),1)
ifneq
($(HAVE_ARP_TOOLS),1)
IGNORE_CMDS
+=
|arp.?|rarp.?
IGNORE_CMDS
+=
|arp.?|rarp.?
endif
endif
ifneq
($(HAVE_HOSTNAME_TOOLS),1)
IGNORE_CMDS
+=
|dnsdomainname.?|hostname.?
endif
ifneq
($(HAVE_HOSTNAME_SYMLINKS),1)
IGNORE_CMDS
+=
|domainname.?|nisdomainname.?|ypdomainname.?
endif
ifneq
($(HAVE_AFDECnet),1)
IGNORE_CMDS
+=
|nodename.?
endif
ifneq
($(HAVE_IP_TOOLS),1)
ifneq
($(HAVE_IP_TOOLS),1)
IGNORE_CMDS
+=
|ipmaddr.?|iptunnel.?
IGNORE_CMDS
+=
|ipmaddr.?|iptunnel.?
endif
endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment