iptables 1.4.9.1: DEPENDS on libnfnetlink
authorRoman I Khimov <khimov@altell.ru>
Wed, 25 Aug 2010 07:07:51 +0000 (11:07 +0400)
committerRoman I Khimov <khimov@altell.ru>
Wed, 25 Aug 2010 16:43:25 +0000 (20:43 +0400)
Actually, it can be built with and without libnfnetlink support.
libnfnetlink-enabled build enables nfnl_osf utility for passive OS
fingerprinting and pf.os is its 'database', so it shouldn't be moved to
documents. Just build with it and package separately.

Signed-off-by: Roman I Khimov <khimov@altell.ru>
recipes/iptables/iptables_1.4.9.1.bb

index b51c5a4..8119016 100644 (file)
@@ -1,15 +1,16 @@
 require iptables.inc
+
+DEPENDS += "libnfnetlink"
+
 inherit autotools
 EXTRA_OECONF = "--with-kernel=${STAGING_INCDIR} \
                 ${@base_contains('DISTRO_FEATURES', 'ipv6', '', '--disable-ipv6', d)}"
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 SRC_URI[iptables-1.4.9.1.md5sum] = "fbadfb0b5f2dbda49e0ad06a798898e3"
 SRC_URI[iptables-1.4.9.1.sha256sum] = "0550f7ba7a170811dcf9b2df65036999786d84040b767238effc40232f617839"
 
-do_install_append() {
-       install -d ${D}${docdir}/xtables
-       mv ${D}${datadir}/xtables/* ${D}${docdir}/xtables/ || echo "No ${D}${datadir}/xtables/* here"
-       rm -fr ${D}${datadir}/xtables
-}
+PACKAGES =+ "${PN}-osf"
+
+FILES_${PN}-osf = "${sbindir}/nfnl_osf ${datadir}/xtables"