[oe-commits] Roman I Khimov : iptstate: move to .inc to ease newer versions addition

git version control git at git.openembedded.org
Tue Mar 23 06:38:02 UTC 2010


Module: openembedded.git
Branch: shr/unstable
Commit: f7f706bc05c2dfe3403a01389e013b2739f5a1a3
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f7f706bc05c2dfe3403a01389e013b2739f5a1a3

Author: Roman I Khimov <khimov at altell.ru>
Date:   Mon Mar 22 23:16:14 2010 +0300

iptstate: move to .inc to ease newer versions addition

Signed-off-by: Roman I Khimov <khimov at altell.ru>

---

 recipes/iptstate/iptstate.inc      |   19 +++++++++++++++++++
 recipes/iptstate/iptstate_2.2.1.bb |   20 ++------------------
 2 files changed, 21 insertions(+), 18 deletions(-)

diff --git a/recipes/iptstate/iptstate.inc b/recipes/iptstate/iptstate.inc
new file mode 100644
index 0000000..0988eb1
--- /dev/null
+++ b/recipes/iptstate/iptstate.inc
@@ -0,0 +1,19 @@
+DESCRIPTION = "IPTState is a top-like interface to your netfilter connection-tracking table."
+HOMEPAGE = "http://www.phildev.net/iptstate/"
+SECTION = "console/network"
+LICENSE = "zlib"
+DEPENDS = "ncurses"
+INC_PR = "r0"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/iptstate/iptstate-${PV}.tar.bz2"
+
+#
+# Make it use it's old style proc interface - these should be removed
+# once libnetfilter_conntrack and libnfnetlink are added to OE.
+#
+CPPFLAGS += " -DIPTSTATE_USE_PROC -L${STAGING_LIBDIR}"
+export LIBS = "-lncurses"
+
+do_install () {
+	oe_runmake install SBIN=${D}/${sbindir} MAN=${D}/${mandir}
+}
diff --git a/recipes/iptstate/iptstate_2.2.1.bb b/recipes/iptstate/iptstate_2.2.1.bb
index 40be6eb..a27f4c2 100644
--- a/recipes/iptstate/iptstate_2.2.1.bb
+++ b/recipes/iptstate/iptstate_2.2.1.bb
@@ -1,19 +1,3 @@
-DESCRIPTION = "IPTState is a top-like interface to your netfilter connection-tracking table."
-HOMEPAGE = "http://www.phildev.net/iptstate/"
-SECTION = "console/network"
-LICENSE = "zlib"
-DEPENDS = "ncurses"
-PR = "r0"
+include iptstate.inc
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/iptstate/iptstate-${PV}.tar.bz2"
-
-#
-# Make it use it's old style proc interface - these should be removed
-# once libnetfilter_conntrack and libnfnetlink are added to OE.
-#
-CPPFLAGS += " -DIPTSTATE_USE_PROC -L${STAGING_LIBDIR}"
-export LIBS = "-lncurses"
-
-do_install () {
-	oe_runmake install SBIN=${D}/${sbindir} MAN=${D}/${mandir}
-}
+PR = "${INC_PR}.0"





More information about the Openembedded-commits mailing list