Removed ifconfig and hostname in favor of the ones in net-tools

This commit is contained in:
2016-11-06 18:32:09 -06:00
parent 39b48c45f4
commit a481cf8ace

View File

@@ -12,7 +12,7 @@ DEPENDS = glibc,ncurses,readline
ARCH = x86_64
URL = https://www.gnu.org/software/inetutils/
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)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
@@ -48,6 +48,8 @@ $(SRCDIR)/config.log: $(SRCDIR)/configure
--localstatedir=/var \
--disable-logger \
--disable-whois \
--disable-hostname \
--disable-ifconfig \
--disable-rcp \
--disable-rexec \
--disable-rlogin \
@@ -57,10 +59,10 @@ $(SRCDIR)/config.log: $(SRCDIR)/configure
--host=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
$(ROOT): $(SRCDIR)/ifconfig/ifconfig
$(ROOT): $(SRCDIR)/ping/ping6
@if [ -d $(ROOT) ]; then \
touch $(ROOT); \
else \
@@ -70,8 +72,7 @@ $(ROOT): $(SRCDIR)/ifconfig/ifconfig
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
install -d -m 755 $(ROOT)/bin && \
install -d -m 755 $(ROOT)/sbin && \
mv -v $(ROOT)/usr/bin/{hostname,ping{,6},traceroute} $(ROOT)/bin && \
mv -v $(ROOT)/usr/bin/ifconfig $(ROOT)/sbin && \
mv -v $(ROOT)/usr/bin/{ping{,6},traceroute} $(ROOT)/bin && \
rm -v $(ROOT)/usr/share/info/dir
test: $(ROOT)