genode/repos/ports/src/noux-pkg/noux-etc/target.mk
Josef Söntgen 74dcc7a3d5 libc: use socket fs for DNS information
The libc will now use the file given by the 'nameserver_file' attribute
to get the DNS nameserver address instead of reading '/etc/resolv.conf'.
It defaults to '/socket/nameserver' which is the common location when
using the lxip VFS plugin. As a constraint the libc will read the first
line and expects the nameserver address without any keywords in front of
it.

Fixes #2861.
2018-06-29 10:44:55 +02:00

29 lines
619 B
Makefile

#
# This is no actual noux-pkg but a collection of files
# which are essential for noux/net.
#
BUILD_BIN_DIR = ../../bin
TARGET_DIR = $(BUILD_BIN_DIR)/noux-etc/etc
ETC_CONTRIB_DIR := $(call select_from_ports,etc)/src/noux-pkg/etc
ETC_FILES = hosts \
nsswitch.conf \
protocols \
services
TARGET = noux-etc.build
copy-contrib-files:
$(VERBOSE)mkdir -p $(TARGET_DIR)
$(VERBOSE)for i in $(ETC_FILES); do \
cp $(ETC_CONTRIB_DIR)/$$i $(TARGET_DIR) ; \
done
generate-files: copy-contrib-files
$(BUILD_BIN_DIR)/$(TARGET): generate-files
$(TARGET): $(BUILD_BIN_DIR)/$(TARGET)