libnl: new package
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Sun, 26 Jul 2009 19:08:51 +0000 (21:08 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 26 Jul 2009 19:10:56 +0000 (21:10 +0200)
Closes #287.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Tested-by: Will Newton <will.newton@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/Config.in
package/libnl/Config.in [new file with mode: 0644]
package/libnl/libnl.mk [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
index 3d61bc7ed8a6b19666fd068be40308d29147fb17..7111e91cb1ea57a03e241969c30ebed724834c1d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,7 @@
        #163: Xtensa architecture port
        #241: device mapper + lvm2: build together
        #271: Library 'libgcc_s.so.1' not installed in search path
+       #287: New package libnl
        #333: Bump sqlite package to 3.6.15
        #349: update libsoup to version 2.26.2
        #359,#413: Upgrade openvpn to Makefile.autotools.in
index d27c01792472eb0bb083c56ad01c82fd619ed8d3..c4cad8d58ee7f5bd0bc5f76ff2561daf8e7d2b2f 100644 (file)
@@ -155,6 +155,7 @@ source "package/libcgicc/Config.in"
 source "package/libcurl/Config.in"
 source "package/libdnet/Config.in"
 source "package/libeXosip2/Config.in"
+source "package/libnl/Config.in"
 source "package/libosip2/Config.in"
 source "package/libpcap/Config.in"
 source "package/libsoup/Config.in"
diff --git a/package/libnl/Config.in b/package/libnl/Config.in
new file mode 100644 (file)
index 0000000..24e4813
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LIBNL
+       bool "libnl"
+       help
+         A library for applications dealing with netlink socket.
+
+         http://people.suug.ch/~tgr/libnl/
diff --git a/package/libnl/libnl.mk b/package/libnl/libnl.mk
new file mode 100644 (file)
index 0000000..1a66746
--- /dev/null
@@ -0,0 +1,22 @@
+#############################################################
+#
+# libnl
+#
+#############################################################
+
+LIBNL_VERSION = 1.1
+LIBNL_SOURCE = libnl-$(LIBNL_VERSION).tar.gz
+LIBNL_SITE = http://distfiles.gentoo.org/distfiles
+LIBNL_INSTALL_STAGING = YES
+LIBNL_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
+
+$(eval $(call AUTOTARGETS,package,libnl))
+
+$(LIBNL_HOOK_POST_INSTALL): $(LIBNL_TARGET_INSTALL_TARGET)
+       $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libnl.so*
+       touch $@
+
+$(LIBNL_TARGET_UNINSTALL):
+       $(call MESSAGE,"Uninstalling")
+       rm -f $(TARGET_DIR)/usr/lib/libnl.so*
+       rm -f $(LIBNL_TARGET_INSTALL_TARGET) $(LIBNL_HOOK_POST_INSTALL)