2010-02-19 00:14:01 +00:00
|
|
|
#
|
2014-03-08 00:56:37 +00:00
|
|
|
# Copyright (C) 2006-2014 OpenWrt.org
|
2006-10-03 17:33:08 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2007-12-27 11:05:45 +00:00
|
|
|
PKG_NAME:=libnet0
|
2006-10-03 17:33:08 +00:00
|
|
|
PKG_VERSION:=1.0.2a
|
2014-03-08 00:56:37 +00:00
|
|
|
PKG_RELEASE:=9
|
2006-10-03 17:33:08 +00:00
|
|
|
|
2007-12-27 11:05:45 +00:00
|
|
|
PKG_SOURCE:=libnet-$(PKG_VERSION).tar.gz
|
2006-10-03 17:33:08 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.packetfactory.net/libnet/dist/deprecated/
|
|
|
|
PKG_MD5SUM:=ddf53f0f484184390e8c2a1bd0853667
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/Libnet-$(PKG_VERSION)
|
2012-06-11 21:18:33 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
2006-10-03 17:33:08 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libnet0
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
DEPENDS:=+libpcap
|
|
|
|
TITLE:=Low-level packet creation library (v1.0.x)
|
|
|
|
URL:=http://www.packetfactory.net/libnet/
|
|
|
|
endef
|
|
|
|
|
|
|
|
ENDIANESS:=lil
|
2006-10-04 02:26:30 +00:00
|
|
|
ifeq ($(CONFIG_BIG_ENDIAN),y)
|
2006-10-03 17:33:08 +00:00
|
|
|
ENDIANESS:=big
|
|
|
|
endif
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-04-01 15:43:37 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--with-pf_packet=yes
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_libnet_endianess=$(ENDIANESS) \
|
|
|
|
ac_libnet_have_pf_packet=yes \
|
|
|
|
LL_INT_TYPE=sockpacket
|
|
|
|
|
2006-10-03 17:33:08 +00:00
|
|
|
define Build/Configure
|
2006-11-05 20:12:42 +00:00
|
|
|
(cd $(PKG_BUILD_DIR); touch \
|
|
|
|
configure.in \
|
|
|
|
include.m4 \
|
|
|
|
aclocal.m4 \
|
|
|
|
Makefile.in \
|
|
|
|
configure \
|
|
|
|
);
|
2007-04-01 15:43:37 +00:00
|
|
|
$(call Build/Configure/Default)
|
2006-10-03 17:33:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/libnet-1.0.x/bin/
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libnet-config $(1)/usr/lib/libnet-1.0.x/bin/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/libnet-1.0.x/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/libnet* $(1)/usr/lib/libnet-1.0.x/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/libnet-1.0.x/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnet.{a,so*} $(1)/usr/lib/libnet-1.0.x/lib/
|
2006-10-03 17:33:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libnet0/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-10-03 17:33:08 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnet.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libnet0))
|