summaryrefslogtreecommitdiffstats
path: root/rules/tcpwrapper.make
diff options
context:
space:
mode:
Diffstat (limited to 'rules/tcpwrapper.make')
-rw-r--r--rules/tcpwrapper.make7
1 files changed, 6 insertions, 1 deletions
diff --git a/rules/tcpwrapper.make b/rules/tcpwrapper.make
index 417953360..3e9d9427d 100644
--- a/rules/tcpwrapper.make
+++ b/rules/tcpwrapper.make
@@ -23,7 +23,6 @@ TCPWRAPPER_URL := ftp://ftp.porcupine.org/pub/security/$(TCPWRAPPER).tar.gz
TCPWRAPPER_SOURCE := $(SRCDIR)/$(TCPWRAPPER).tar.gz
TCPWRAPPER_DIR := $(BUILDDIR)/$(TCPWRAPPER)
-
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
@@ -71,6 +70,12 @@ $(STATEDIR)/tcpwrapper.targetinstall:
ifdef PTXCONF_TCPWRAPPER_INSTALL_TCPD
@$(call install_copy, tcpwrapper, 0, 0, 0755, $(TCPWRAPPER_DIR)/tcpd, /usr/sbin/tcpd)
endif
+
+ifdef PTXCONF_TCPWRAPPER_INSTALL_HOSTS_ACCESS_CONFIGS
+ @$(call install_alternative, tcpwrapper, 0, 0, 0644, /etc/hosts.allow)
+ @$(call install_alternative, tcpwrapper, 0, 0, 0644, /etc/hosts.deny)
+endif
+
@$(call install_finish, tcpwrapper)
@$(call touch)