diff options
Diffstat (limited to 'package/libs/libpcap/.svn')
-rw-r--r-- | package/libs/libpcap/.svn/entries | 99 | ||||
-rw-r--r-- | package/libs/libpcap/.svn/prop-base/Makefile.svn-base | 9 | ||||
-rw-r--r-- | package/libs/libpcap/.svn/text-base/Config.in.svn-base | 15 | ||||
-rw-r--r-- | package/libs/libpcap/.svn/text-base/Makefile.svn-base | 85 |
4 files changed, 208 insertions, 0 deletions
diff --git a/package/libs/libpcap/.svn/entries b/package/libs/libpcap/.svn/entries new file mode 100644 index 0000000..69832f9 --- /dev/null +++ b/package/libs/libpcap/.svn/entries @@ -0,0 +1,99 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/package/libs/libpcap +svn://svn.openwrt.org/openwrt + + + +2012-10-10T12:49:37.020840Z +33693 +nbd + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +patches +dir + +Config.in +file + + + + +2013-03-17T12:13:08.000000Z +734743b7911fcb10b492b2b4e913c8a1 +2012-10-08T11:24:12.513797Z +33657 +nbd + + + + + + + + + + + + + + + + + + + + + +259 + +Makefile +file + + + + +2013-03-17T12:13:08.000000Z +19e167d4c80bdd4e0e0d339f0f07854c +2012-10-10T12:49:37.020840Z +33693 +nbd +has-props + + + + + + + + + + + + + + + + + + + + +2085 + diff --git a/package/libs/libpcap/.svn/prop-base/Makefile.svn-base b/package/libs/libpcap/.svn/prop-base/Makefile.svn-base new file mode 100644 index 0000000..8e522ae --- /dev/null +++ b/package/libs/libpcap/.svn/prop-base/Makefile.svn-base @@ -0,0 +1,9 @@ +K 13 +svn:copyright +V 30 +Copyright (C) 2006 OpenWrt.org +K 13 +svn:eol-style +V 6 +native +END diff --git a/package/libs/libpcap/.svn/text-base/Config.in.svn-base b/package/libs/libpcap/.svn/text-base/Config.in.svn-base new file mode 100644 index 0000000..ef32c1b --- /dev/null +++ b/package/libs/libpcap/.svn/text-base/Config.in.svn-base @@ -0,0 +1,15 @@ +menu "Configuration" + depends PACKAGE_libpcap + +config PCAP_HAS_USB + bool "Include USB support" + depends PACKAGE_kmod-usb-core + default n + +config PCAP_HAS_BT + bool "Include bluetooth support" + depends PACKAGE_kmod-bluetooth + depends BROKEN + default n + +endmenu diff --git a/package/libs/libpcap/.svn/text-base/Makefile.svn-base b/package/libs/libpcap/.svn/text-base/Makefile.svn-base new file mode 100644 index 0000000..de77c00 --- /dev/null +++ b/package/libs/libpcap/.svn/text-base/Makefile.svn-base @@ -0,0 +1,85 @@ +# +# Copyright (C) 2006-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libpcap +PKG_VERSION:=1.1.1 +PKG_RELEASE:=2 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.tcpdump.org/release/ +PKG_MD5SUM:=1bca27d206970badae248cfa471bbb47 + +PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org> + +PKG_INSTALL:=1 +PKG_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/kernel.mk + +define Package/libpcap + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Low-level packet capture library + URL:=http://www.tcpdump.org/ + MENU:=1 +endef + +define Package/libpcap/description +This package contains a system-independent library for user-level network packet +capture. +endef + +define Package/libpcap/config + source "$(SOURCE)/Config.in" +endef + +TARGET_CFLAGS += \ + -ffunction-sections \ + -fdata-sections + +CONFIGURE_VARS += \ + ac_cv_linux_vers=$(LINUX_VERSION) + +CONFIGURE_ARGS += \ + --enable-shared \ + --enable-static \ + --disable-yydebug \ + --enable-ipv6 \ + --with-build-cc="$(HOSTCC)" \ + --with-pcap=linux \ + --without-septel \ + --without-dag \ + --without-libnl + +MAKE_FLAGS += \ + CCOPT="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include" + +define Build/Configure + $(call Build/Configure/Default) + $(if $(CONFIG_PCAP_HAS_USB),,$(SED) '/^#define PCAP_SUPPORT_USB/D' $(PKG_BUILD_DIR)/config.h) + $(if $(CONFIG_PCAP_HAS_USB),,$(SED) 's/pcap-usb-linux.c *//' $(PKG_BUILD_DIR)/Makefile) + $(if $(CONFIG_PCAP_HAS_BT),,$(SED) '/^#define PCAP_SUPPORT_BT/D' $(PKG_BUILD_DIR)/config.h) + $(if $(CONFIG_PCAP_HAS_BT),,$(SED) 's/pcap-bt-linux.c *//' $(PKG_BUILD_DIR)/Makefile) +endef + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/pcap* $(1)/usr/include/ + + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap.{a,so*} $(1)/usr/lib/ +endef + +define Package/libpcap/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap.so* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libpcap)) |