From 5c67312f3759cdba3c69b944480983fd6b9efe05 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Tue, 25 Dec 2012 23:40:31 +0100 Subject: Packages: add New packages: tcpdump-4.3.0 Signed-off-by: Abdoulaye Walsimou Gaye --- packages/net/net.kconfig | 3 +++ packages/net/net.mk | 4 +++ packages/net/tcpdump/tcpdump.kconfig | 49 ++++++++++++++++++++++++++++++++++++ packages/net/tcpdump/tcpdump.mk | 38 ++++++++++++++++++++++++++++ 4 files changed, 94 insertions(+) create mode 100644 packages/net/tcpdump/tcpdump.kconfig create mode 100644 packages/net/tcpdump/tcpdump.mk (limited to 'packages') diff --git a/packages/net/net.kconfig b/packages/net/net.kconfig index 3c5b11d..3960663 100644 --- a/packages/net/net.kconfig +++ b/packages/net/net.kconfig @@ -34,3 +34,6 @@ source packages/net/libpcap/libpcap.kconfig # libtirpc source packages/net/libtirpc/libtirpc.kconfig + +# tcpdump +source packages/net/tcpdump/tcpdump.kconfig diff --git a/packages/net/net.mk b/packages/net/net.mk index 5350ab9..904f336 100644 --- a/packages/net/net.mk +++ b/packages/net/net.mk @@ -38,3 +38,7 @@ ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBPCAP) += libpcap_install # libtirpc include packages/net/libtirpc/libtirpc.mk ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_LIBTIRPC) += libtirpc_install + +# tcpdump +include packages/net/tcpdump/tcpdump.mk +ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_TCPDUMP) += tcpdump_install diff --git a/packages/net/tcpdump/tcpdump.kconfig b/packages/net/tcpdump/tcpdump.kconfig new file mode 100644 index 0000000..fbd09de --- /dev/null +++ b/packages/net/tcpdump/tcpdump.kconfig @@ -0,0 +1,49 @@ +################################################################################ +# 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 tcpdump.kconfig +# \brief tcpdump.kconfig of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date December 2012 +################################################################################ + +config EMBTK_HAVE_TCPDUMP + bool "Have tcpdump" + help + Tcpdump uses libpcap, a system-independent interface for user-level + packet capture. + +choice + prompt "tcpdump version you wish" + depends on EMBTK_HAVE_TCPDUMP + help + Here you can choose which version of tcpdump you want to use. + + config EMBTK_TCPDUMP_VERSION_4_3_0 + bool "tcpdump-4.3.0" +endchoice + +config EMBTK_TCPDUMP_VERSION_STRING + string + default "4.3.0" if EMBTK_TCPDUMP_VERSION_4_3_0 + +config EMBTK_TCPDUMP_NEED_PATCH + bool +config EMBTK_TCPDUMP_NEED_AUTORECONF + bool diff --git a/packages/net/tcpdump/tcpdump.mk b/packages/net/tcpdump/tcpdump.mk new file mode 100644 index 0000000..fd90630 --- /dev/null +++ b/packages/net/tcpdump/tcpdump.mk @@ -0,0 +1,38 @@ +################################################################################ +# 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 tcpdump.mk +# \brief tcpdump.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date December 2012 +################################################################################ + +TCPDUMP_NAME := tcpdump +TCPDUMP_VERSION := $(call embtk_get_pkgversion,tcpdump) +TCPDUMP_SITE := http://www.tcpdump.org/release +TCPDUMP_PACKAGE := tcpdump-$(TCPDUMP_VERSION).tar.gz +TCPDUMP_SRC_DIR := $(embtk_pkgb)/tcpdump-$(TCPDUMP_VERSION) +TCPDUMP_BUILD_DIR := $(embtk_pkgb)/tcpdump-$(TCPDUMP_VERSION) + +TCPDUMP_SBINS := tcpdump* + +TCPDUMP_CONFIGURE_ENV := ac_cv_linux_vers=2 +TCPDUMP_CONFIGURE_OPTS := --with-pcap=linux --without-smi --without-crypto + +TCPDUMP_DEPS := libpcap_install -- cgit v1.2.3