iptstate: add version 2.2.2
authorRoman I Khimov <khimov@altell.ru>
Mon, 22 Mar 2010 20:48:13 +0000 (23:48 +0300)
committerRoman I Khimov <khimov@altell.ru>
Mon, 22 Mar 2010 20:49:30 +0000 (23:49 +0300)
Signed-off-by: Roman I Khimov <khimov@altell.ru>
recipes/iptstate/iptstate.inc
recipes/iptstate/iptstate/iptstate-use-ldflags.patch [new file with mode: 0644]
recipes/iptstate/iptstate_2.2.2.bb [new file with mode: 0644]

index df47555..233526f 100644 (file)
@@ -5,7 +5,7 @@ LICENSE = "zlib"
 DEPENDS = "ncurses libnetfilter-conntrack"
 INC_PR = "r1"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/iptstate/iptstate-${PV}.tar.bz2"
+SRC_URI = "${SOURCEFORGE_MIRROR}/iptstate/iptstate-${PV}.tar.bz2;name=iptstate-${PV}"
 
 do_install () {
        oe_runmake install SBIN=${D}/${sbindir} MAN=${D}/${mandir}
diff --git a/recipes/iptstate/iptstate/iptstate-use-ldflags.patch b/recipes/iptstate/iptstate/iptstate-use-ldflags.patch
new file mode 100644 (file)
index 0000000..692fd8c
--- /dev/null
@@ -0,0 +1,13 @@
+Index: iptstate-2.2.2/Makefile
+===================================================================
+--- iptstate-2.2.2.orig/Makefile
++++ iptstate-2.2.2/Makefile
+@@ -45,7 +45,7 @@ iptstate: iptstate.cc Makefile
+       echo "+------------------------------------------------------------+" ;\
+       echo "";
+-      $(CXX) $(CXXFLAGS) $(CXXFILES) -o iptstate $(LIBS) $(CPPFLAGS)
++      $(CXX) $(CXXFLAGS) $(CXXFILES) $(LDFLAGS) -o iptstate $(LIBS) $(CPPFLAGS)
+       @touch iptstate
+       @\
diff --git a/recipes/iptstate/iptstate_2.2.2.bb b/recipes/iptstate/iptstate_2.2.2.bb
new file mode 100644 (file)
index 0000000..c6734d4
--- /dev/null
@@ -0,0 +1,8 @@
+include iptstate.inc
+
+PR = "${INC_PR}.0"
+
+SRC_URI += "file://iptstate-use-ldflags.patch;patch=1"
+
+SRC_URI[iptstate-2.2.2.md5sum] = "b3f2e89ef38d6e8a85c8ab88a9c514d8"
+SRC_URI[iptstate-2.2.2.sha256sum] = "2d9654a30a1e22159d93b2988c140571d048d08370b4869b1cb91562c29e1c39"