[oe-commits] Yao Xinpan : tcp-wrappers: install /etc/hosts.allow and /etc/hosts.deny

git at git.openembedded.org git at git.openembedded.org
Mon Aug 4 15:26:31 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 46de69510ab20500ddb82097d524713cdd3017e6
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=46de69510ab20500ddb82097d524713cdd3017e6

Author: Yao Xinpan <yaoxp at cn.fujitsu.com>
Date:   Mon Aug  4 17:15:20 2014 +0800

tcp-wrappers: install /etc/hosts.allow and /etc/hosts.deny

Signed-off-by: Yao Xinpan <yaoxp at cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb | 5 +++++
 1 file changed, 5 insertions(+)

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 11cc243..4d64306 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"



More information about the Openembedded-commits mailing list