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

login
register
mail settings
Submitter yaoxp
Date Aug. 4, 2014, 9:15 a.m.
Message ID <1407143720-1213-1-git-send-email-yaoxp@cn.fujitsu.com>
Download mbox | patch
Permalink /patch/77183/
State Accepted
Commit a0dcda8c797606ef24be00e369f28685d1755069
Headers show

Comments

yaoxp - Aug. 4, 2014, 9:15 a.m.
Signed-off-by: Yao Xinpan <yaoxp@cn.fujitsu.com>
---
 meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb | 5 +++++
 1 file changed, 5 insertions(+)
Khem Raj - Aug. 4, 2014, 7:37 p.m.
On Mon, Aug 4, 2014 at 2:15 AM, Yao Xinpan <yaoxp@cn.fujitsu.com> wrote:
> +
> +       install -d ${D}${sysconfdir}
> +       touch ${D}${sysconfdir}/hosts.allow
> +       touch ${D}${sysconfdir}/hosts.deny
>  }
>
> +FILES_${PN} += "${sysconfdir}/hosts.allow ${sysconfdir}/hosts.deny"

these are dynamic files I dont think its the right place to put them.
probably a image post processing function would be ok

Patch

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 c7954e7..034b33b 100644
--- a/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb
+++ b/meta/recipes-extended/tcp-wrappers/tcp-wrappers_7.6.bb
@@ -117,5 +117,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"