From 1261966f2a8e3c43e9ddda744b59bc24822f2c69 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sun, 29 Jul 2012 16:34:20 +0200 Subject: Packages: add new package libnl-3.2.11 Signed-off-by: Abdoulaye Walsimou Gaye --- packages/net/libnl/libnl.kconfig | 55 ++++++++++++++++++++++++++++++++++++++++ packages/net/libnl/libnl.mk | 50 ++++++++++++++++++++++++++++++++++++ packages/net/net.kconfig | 3 +++ packages/net/net.mk | 4 +++ 4 files changed, 112 insertions(+) create mode 100644 packages/net/libnl/libnl.kconfig create mode 100644 packages/net/libnl/libnl.mk (limited to 'packages/net') diff --git a/packages/net/libnl/libnl.kconfig b/packages/net/libnl/libnl.kconfig new file mode 100644 index 0000000..b354a80 --- /dev/null +++ b/packages/net/libnl/libnl.kconfig @@ -0,0 +1,55 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2012 Abdoulaye Walsimou GAYE. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +################################################################################ +# +# \file libnl.kconfig +# \brief libnl.kconfig of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date June 2012 +################################################################################ + +config EMBTK_HAVE_LIBNL + bool "Have libnl" + depends on EMBTK_OS_LINUX + help + The libnl suite is a collection of libraries providing APIs to + netlink protocol based Linux kernel interfaces. + Netlink is a IPC mechanism primarly between the kernel and user + space processes. + It was designed to be a more flexible successor + to ioctl to provide mainly networking related kernel + configuration and monitoring interfaces. + +choice + prompt "libnl version you wish" + depends on EMBTK_HAVE_LIBNL + help + Here you can choose which version of libnl you want to use. + + config EMBTK_LIBNL_VERSION_3_2_11 + bool "libnl-3.2.11" +endchoice + +config EMBTK_LIBNL_VERSION_STRING + string + default "3.2.11" if EMBTK_LIBNL_VERSION_3_2_11 + +config EMBTK_LIBNL_NEED_PATCH + bool +config EMBTK_LIBNL_NEED_AUTORECONF + bool diff --git a/packages/net/libnl/libnl.mk b/packages/net/libnl/libnl.mk new file mode 100644 index 0000000..f8dd1c5 --- /dev/null +++ b/packages/net/libnl/libnl.mk @@ -0,0 +1,50 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2012 Abdoulaye Walsimou GAYE. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +################################################################################ +# +# \file libnl.mk +# \brief libnl.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date June 2012 +################################################################################ + +LIBNL_NAME := libnl +LIBNL_VERSION := $(call embtk_get_pkgversion,libnl) +LIBNL_SITE := http://www.infradead.org/~tgr/libnl/files +LIBNL_PACKAGE := libnl-$(LIBNL_VERSION).tar.gz +LIBNL_SRC_DIR := $(PACKAGES_BUILD)/libnl-$(LIBNL_VERSION) +LIBNL_BUILD_DIR := $(PACKAGES_BUILD)/libnl-$(LIBNL_VERSION) + +LIBNL_SBINS := genl-ctrl-list nl-class-add nl-class-delete +LIBNL_SBINS += nl-classid-lookup nl-class-list nl-cls-add +LIBNL_SBINS += nl-cls-delete nl-cls-list nl-link-list +LIBNL_SBINS += nl-pktloc-lookup nl-qdisc-add nl-qdisc-delete +LIBNL_SBINS := nl-qdisc-list +LIBNL_INCLUDES := libnl3 +LIBNL_LIBS := libnl* +LIBNL_PKGCONFIGS := libnl* +LIBNL_ETC := libnl +__LIBNL_SHARES := genl-ctrl-list.8 nl-classid-lookup.8 +__LIBNL_SHARES += nl-pktloc-lookup.8 nl-qdisc-add.8 nl-qdisc-delete.8 +__LIBNL_SHARES += nl-qdisc-list.8 +LIBNL_SHARES := $(addprefix man/man8/,$(__LIBNL_SHARES)) + +define embtk_postinstall_libnl + test -e $(LIBNL_BUILD_DIR)/.installed || \ + $(call __embtk_fix_libtool_files,$(LIBDIR)/libln) +endef diff --git a/packages/net/net.kconfig b/packages/net/net.kconfig index 1b0d79a..d0504c9 100644 --- a/packages/net/net.kconfig +++ b/packages/net/net.kconfig @@ -25,3 +25,6 @@ # Iptables source packages/net/iptables/iptables.kconfig + +# LIBNL +source packages/net/libnl/libnl.kconfig diff --git a/packages/net/net.mk b/packages/net/net.mk index be74343..cf91123 100644 --- a/packages/net/net.mk +++ b/packages/net/net.mk @@ -26,3 +26,7 @@ # Iptables include $(EMBTK_ROOT)/packages/net/iptables/iptables.mk ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_IPTABLES) += iptables_install + +# LIBNL +include $(EMBTK_ROOT)/packages/net/libnl/libnl.mk +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBNL) += libnl_install -- cgit v1.2.3