Removed ifconfig and hostname in favor of the ones in net-tools
This commit is contained in:
11
Makefile
11
Makefile
@@ -12,7 +12,7 @@ DEPENDS = glibc,ncurses,readline
|
|||||||
ARCH = x86_64
|
ARCH = x86_64
|
||||||
URL = https://www.gnu.org/software/inetutils/
|
URL = https://www.gnu.org/software/inetutils/
|
||||||
DESC = Inetutils is a collection of common network programs.
|
DESC = Inetutils is a collection of common network programs.
|
||||||
SNAPVER = sr2
|
SNAPVER = sr3
|
||||||
|
|
||||||
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||||
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||||
@@ -48,6 +48,8 @@ $(SRCDIR)/config.log: $(SRCDIR)/configure
|
|||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--disable-logger \
|
--disable-logger \
|
||||||
--disable-whois \
|
--disable-whois \
|
||||||
|
--disable-hostname \
|
||||||
|
--disable-ifconfig \
|
||||||
--disable-rcp \
|
--disable-rcp \
|
||||||
--disable-rexec \
|
--disable-rexec \
|
||||||
--disable-rlogin \
|
--disable-rlogin \
|
||||||
@@ -57,10 +59,10 @@ $(SRCDIR)/config.log: $(SRCDIR)/configure
|
|||||||
--host=x86_64-snap-linux-gnu \
|
--host=x86_64-snap-linux-gnu \
|
||||||
--target=x86_64-snap-linux-gnu
|
--target=x86_64-snap-linux-gnu
|
||||||
|
|
||||||
$(SRCDIR)/ifconfig/ifconfig: $(SRCDIR)/config.log
|
$(SRCDIR)/ping/ping6: $(SRCDIR)/config.log
|
||||||
@cd $(SRCDIR) && make
|
@cd $(SRCDIR) && make
|
||||||
|
|
||||||
$(ROOT): $(SRCDIR)/ifconfig/ifconfig
|
$(ROOT): $(SRCDIR)/ping/ping6
|
||||||
@if [ -d $(ROOT) ]; then \
|
@if [ -d $(ROOT) ]; then \
|
||||||
touch $(ROOT); \
|
touch $(ROOT); \
|
||||||
else \
|
else \
|
||||||
@@ -70,8 +72,7 @@ $(ROOT): $(SRCDIR)/ifconfig/ifconfig
|
|||||||
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
|
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
|
||||||
install -d -m 755 $(ROOT)/bin && \
|
install -d -m 755 $(ROOT)/bin && \
|
||||||
install -d -m 755 $(ROOT)/sbin && \
|
install -d -m 755 $(ROOT)/sbin && \
|
||||||
mv -v $(ROOT)/usr/bin/{hostname,ping{,6},traceroute} $(ROOT)/bin && \
|
mv -v $(ROOT)/usr/bin/{ping{,6},traceroute} $(ROOT)/bin && \
|
||||||
mv -v $(ROOT)/usr/bin/ifconfig $(ROOT)/sbin && \
|
|
||||||
rm -v $(ROOT)/usr/share/info/dir
|
rm -v $(ROOT)/usr/share/info/dir
|
||||||
|
|
||||||
test: $(ROOT)
|
test: $(ROOT)
|
||||||
|
|||||||
Reference in New Issue
Block a user