summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-12-25 23:38:33 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-12-25 23:38:33 +0100
commit15ae8eec3b124e5040dde33d5ebaeafed3c1058c (patch)
tree59985eb2f0e221ef64f1f5c583dc51b713b509dc /packages
parentf400e9e845fece44455584f3314cb4b0ca4ded35 (diff)
downloadembtoolkit-15ae8eec3b124e5040dde33d5ebaeafed3c1058c.tar.gz
embtoolkit-15ae8eec3b124e5040dde33d5ebaeafed3c1058c.tar.bz2
embtoolkit-15ae8eec3b124e5040dde33d5ebaeafed3c1058c.tar.xz
Packages: add New packages: libpcap-1.3.0
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/net/libpcap/libpcap.kconfig51
-rw-r--r--packages/net/libpcap/libpcap.mk37
-rw-r--r--packages/net/net.kconfig3
-rw-r--r--packages/net/net.mk4
4 files changed, 95 insertions, 0 deletions
diff --git a/packages/net/libpcap/libpcap.kconfig b/packages/net/libpcap/libpcap.kconfig
new file mode 100644
index 0000000..a279c74
--- /dev/null
+++ b/packages/net/libpcap/libpcap.kconfig
@@ -0,0 +1,51 @@
+################################################################################
+# 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 <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file libpcap.kconfig
+# \brief libpcap.kconfig of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date December 2012
+################################################################################
+
+config EMBTK_HAVE_LIBPCAP
+ bool "Have libpcap"
+ help
+ libpcap, a system-independent interface for user-level packet capture.
+ libpcap provides a portable framework for low-level network monitoring.
+ Applications include network statistics collection, securitymonitoring,
+ network debugging, etc.
+
+choice
+ prompt "libpcap version you wish"
+ depends on EMBTK_HAVE_LIBPCAP
+ help
+ Here you can choose which version of libpcap you want to use.
+
+ config EMBTK_LIBPCAP_VERSION_1_3_0
+ bool "libpcap-1.3.0"
+endchoice
+
+config EMBTK_LIBPCAP_VERSION_STRING
+ string
+ default "1.3.0" if EMBTK_LIBPCAP_VERSION_1_3_0
+
+config EMBTK_LIBPCAP_NEED_PATCH
+ bool
+config EMBTK_LIBPCAP_NEED_AUTORECONF
+ bool
diff --git a/packages/net/libpcap/libpcap.mk b/packages/net/libpcap/libpcap.mk
new file mode 100644
index 0000000..fc90996
--- /dev/null
+++ b/packages/net/libpcap/libpcap.mk
@@ -0,0 +1,37 @@
+################################################################################
+# 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 <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file libpcap.mk
+# \brief libpcap.mk of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date December 2012
+################################################################################
+
+LIBPCAP_NAME := libpcap
+LIBPCAP_VERSION := $(call embtk_get_pkgversion,libpcap)
+LIBPCAP_SITE := http://www.tcpdump.org/release
+LIBPCAP_PACKAGE := libpcap-$(LIBPCAP_VERSION).tar.gz
+LIBPCAP_SRC_DIR := $(embtk_pkgb)/libpcap-$(LIBPCAP_VERSION)
+LIBPCAP_BUILD_DIR := $(embtk_pkgb)/libpcap-$(LIBPCAP_VERSION)
+
+LIBPCAP_BINS := pcap-config
+LIBPCAP_INCLUDES := pcap*
+LIBPCAP_LIBS := libpcap*
+
+LIBPCAP_CONFIGURE_OPTS := --with-pcap=linux
diff --git a/packages/net/net.kconfig b/packages/net/net.kconfig
index c5db23c..3c5b11d 100644
--- a/packages/net/net.kconfig
+++ b/packages/net/net.kconfig
@@ -29,5 +29,8 @@ source packages/net/iptables/iptables.kconfig
# LIBNL
source packages/net/libnl/libnl.kconfig
+# libpcap
+source packages/net/libpcap/libpcap.kconfig
+
# libtirpc
source packages/net/libtirpc/libtirpc.kconfig
diff --git a/packages/net/net.mk b/packages/net/net.mk
index d06ad34..5350ab9 100644
--- a/packages/net/net.mk
+++ b/packages/net/net.mk
@@ -31,6 +31,10 @@ ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_IPTABLES) += iptables_install
include packages/net/libnl/libnl.mk
ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBNL) += libnl_install
+# libpcap
+include packages/net/libpcap/libpcap.mk
+ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBPCAP) += libpcap_install
+
# libtirpc
include packages/net/libtirpc/libtirpc.mk
ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBTIRPC) += libtirpc_install