summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYao Xinpan <yaoxp@cn.fujitsu.com>2014-08-04 17:15:20 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-06 10:02:39 +0100
commite62b2c08df585a94d4713e5c88a64465f9bb88e6 (patch)
treee3fba32e8f73f5a99be21ee5e6a494721682f942
parentebc2b2f7d256ab1f05b9fe8af414c6425f9a2bf1 (diff)
downloadopenembedded-core-e62b2c08df585a94d4713e5c88a64465f9bb88e6.tar.gz
openembedded-core-e62b2c08df585a94d4713e5c88a64465f9bb88e6.tar.bz2
openembedded-core-e62b2c08df585a94d4713e5c88a64465f9bb88e6.zip
tcp-wrappers: install /etc/hosts.allow and /etc/hosts.deny
Signed-off-by: Yao Xinpan <yaoxp@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb b/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb
index 11cc243e6d..4d6430634e 100644
--- a/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb
+++ b/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb
@@ -119,5 +119,10 @@ do_install () {
install -d ${D}${includedir}
install -m 0644 tcpd.h ${D}${includedir}/
+
+ install -d ${D}${sysconfdir}
+ touch ${D}${sysconfdir}/hosts.allow
+ touch ${D}${sysconfdir}/hosts.deny
}
+FILES_${PN} += "${sysconfdir}/hosts.allow ${sysconfdir}/hosts.deny"