summaryrefslogtreecommitdiffstats
path: root/rules/tcpwrapper.make
diff options
context:
space:
mode:
authorCarsten Schlote <c.schlote@konzeptpark.de>2010-02-18 11:22:56 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-02-21 14:22:42 +0100
commit102b53bdf6da29356b8a761ed0a3c4e489b42b8c (patch)
treea021ac8447af76359ce86678c948687f7c3dac46 /rules/tcpwrapper.make
parent4b8afe029cfa0b2befcaf649100ccc2f8135db79 (diff)
downloadptxdist-102b53bdf6da29356b8a761ed0a3c4e489b42b8c.tar.gz
ptxdist-102b53bdf6da29356b8a761ed0a3c4e489b42b8c.tar.xz
[tcpwrapper] add configurations for tcpd
- Added alternative configurations for tcpd and default generic files for ptxdist Signed-off-by: Carsten Schlote <c.schlote@konzeptpark.de> [mkl: removed "default y" from tcpd] Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
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)