2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.packetfactory.net
/projects
/libnids
/dist/
17 PKG_MD5SUM
:=9ee6dcdfac97bae6fe611aa27d2594a5
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/libnids
25 TITLE
:=A network intrusion detection library
26 URL
:=http
://www.packetfactory.net
/projects
/libnids
/
29 define Package
/libnids
/description
30 An implementation of an E-component of Network Intrusion Detection
34 define Build
/Configure
35 $(call Build
/Configure
/Default
, \
38 --with-libnet
="$(STAGING_DIR)/usr/lib/libnet-1.0.x" \
39 --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
="-L$(STAGING_DIR)/usr/lib -lpcap" \
51 install_prefix
="$(PKG_INSTALL_DIR)" \
55 define Build
/InstallDev
56 mkdir
-p
$(1)/usr
/include
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/nids.h
$(1)/usr
/include/
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
))