2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/libnids
16 PKG_MD5SUM:=72d37c79c85615ffe158aa524d649610
18 include $(INCLUDE_DIR)/package.mk
20 define Package/libnids
24 TITLE:=A network intrusion detection library
25 URL:=http://libnids.sourceforge.net/
28 define Package/libnids/description
29 An implementation of an E-component of Network Intrusion Detection
33 define Build/Configure
34 $(call Build/Configure/Default, \
37 --with-libnet="$(STAGING_DIR)/usr/lib/libnet-1.0.x" \
38 --with-libpcap="$(STAGING_DIR)/usr" \
41 CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
45 TARGET_CFLAGS += $(FPIC)
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 LNETLIB="-L$(STAGING_DIR)/usr/lib/libnet-1.0.x/lib -lnet" \
50 PCAPLIB="$(TARGET_LDFLAGS) -lpcap" \
51 install_prefix="$(PKG_INSTALL_DIR)" \
55 define Build/InstallDev
56 $(INSTALL_DIR) $(1)/usr/include
57 $(CP) $(PKG_INSTALL_DIR)/usr/include/nids.h $(1)/usr/include/
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnids.{a,so*} $(1)/usr/lib/
62 define Package/libnids/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnids.so.* $(1)/usr/lib/
67 $(eval $(call BuildPackage,libnids))