aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes/libnl/libnl2/fix-pc-file.patch11
-rw-r--r--recipes/libnl/libnl2_2.0.bb23
2 files changed, 34 insertions, 0 deletions
diff --git a/recipes/libnl/libnl2/fix-pc-file.patch b/recipes/libnl/libnl2/fix-pc-file.patch
new file mode 100644
index 0000000000..17666fbadf
--- /dev/null
+++ b/recipes/libnl/libnl2/fix-pc-file.patch
@@ -0,0 +1,11 @@
+Index: libnl-2.0/libnl-2.0.pc.in
+===================================================================
+--- libnl-2.0.orig/libnl-2.0.pc.in
++++ libnl-2.0/libnl-2.0.pc.in
+@@ -6,5 +6,5 @@
+ Name: libnl
+ Description: Convenience library for netlink sockets
+ Version: @PACKAGE_VERSION@
+-Libs: -L${libdir} -lnl
++Libs: -L${libdir} -lnl -lnl-genl -lnl-nf -lnl-route
+ Cflags: -I${includedir}
diff --git a/recipes/libnl/libnl2_2.0.bb b/recipes/libnl/libnl2_2.0.bb
new file mode 100644
index 0000000000..b2d1a4e84e
--- /dev/null
+++ b/recipes/libnl/libnl2_2.0.bb
@@ -0,0 +1,23 @@
+DESCRIPTION = "libnl2 is a library for applications dealing with netlink sockets"
+SECTION = "libs/network"
+LICENSE = "LGPL"
+HOMEPAGE = "http://www.infradead.org/~tgr/libnl/"
+PE = "1"
+
+inherit autotools pkgconfig
+
+includedir = ${prefix}/include/libnl2
+
+S = "${WORKDIR}/libnl-${PV}"
+SRC_URI = "\
+ http://www.infradead.org/~tgr/libnl/files/libnl-${PV}.tar.gz \
+ file://fix-pc-file.patch \
+"
+SRC_URI[md5sum] = "6aaf1e9802a17a7d702bb0638044ffa7"
+SRC_URI[sha256sum] = "5a40dc903d3ca1074da7424b908bec8ff16936484798c7e46e53e9db8bc87a9c"
+
+PACKAGES =+ "${PN}-route ${PN}-nf ${PN}-genl ${PN}-cli"
+FILES_${PN}-route = "${libdir}/libnl-route.so.*"
+FILES_${PN}-nf = "${libdir}/libnl-nf.so.*"
+FILES_${PN}-genl = "${libdir}/libnl-genl.so.*"
+FILES_${PN}-cli = "${libdir}/libnl-cli.so.*"