2006-07-22 22:56:28 +00:00
|
|
|
#
|
2009-04-29 12:56:17 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-07-22 22:56:28 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libnids
|
|
|
|
PKG_VERSION:=1.18
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.packetfactory.net/projects/libnids/dist/
|
|
|
|
PKG_MD5SUM:=9ee6dcdfac97bae6fe611aa27d2594a5
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libnids
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2006-10-03 17:33:08 +00:00
|
|
|
DEPENDS:=+libnet0
|
2006-07-22 22:56:28 +00:00
|
|
|
TITLE:=A network intrusion detection library
|
|
|
|
URL:=http://www.packetfactory.net/projects/libnids/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/libnids/description
|
|
|
|
An implementation of an E-component of Network Intrusion Detection
|
|
|
|
System.
|
|
|
|
endef
|
|
|
|
|
2006-07-22 22:56:28 +00:00
|
|
|
define Build/Configure
|
2006-10-03 17:33:08 +00:00
|
|
|
$(call Build/Configure/Default, \
|
2007-01-08 11:19:08 +00:00
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--with-libnet="$(STAGING_DIR)/usr/lib/libnet-1.0.x" \
|
|
|
|
--with-libpcap="$(STAGING_DIR)/usr" \
|
|
|
|
, \
|
|
|
|
CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
|
2006-10-03 17:33:08 +00:00
|
|
|
)
|
2006-07-22 22:56:28 +00:00
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2006-07-22 22:56:28 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-10-03 17:33:08 +00:00
|
|
|
LNETLIB="-L$(STAGING_DIR)/usr/lib/libnet-1.0.x/lib -lnet" \
|
2009-04-29 12:56:17 +00:00
|
|
|
PCAPLIB="$(TARGET_LDFLAGS) -lpcap" \
|
2006-07-22 22:56:28 +00:00
|
|
|
install_prefix="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/nids.h $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnids.{a,so*} $(1)/usr/lib/
|
2006-07-22 22:56:28 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-03 17:33:08 +00:00
|
|
|
define Package/libnids/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/libnids.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-07-22 22:56:28 +00:00
|
|
|
$(eval $(call BuildPackage,libnids))
|