1 # Copyright (C) 2006 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
13 PKG_MD5SUM:=34c542c99593dfe9d5b408deffcfe70e
15 PKG_SOURCE_URL:=@SF/ipcad
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22 include $(INCLUDE_DIR)/package.mk
28 TITLE:=listens for traffic on the specified interfaces
29 DESCRIPTION:=This daemon listens for traffic on the specified interfaces.\\\
30 It has the built-in RSH and NetFlow engines to allow exporting\\\
31 the accounting data the same way as Cisco routers do.\\\
32 URL:=http://lionet.info/ipcad/
35 define Package/ipcad/conffiles/
40 define Build/Configure
41 $(call Build/Configure/Default,--enable-shared \
46 --with-pcap-include="$(STAGING_DIR)/usr/include" \
47 --with-pcap-libraries="$(STAGING_DIR)/usr/lib", \
48 touch cfglex.c cslex.c; \
49 ac_cv_func_getifaddrs=no \
50 ac_cv_header_ifaddrs_h=no \
55 $(MAKE) -C $(PKG_BUILD_DIR) \
56 $(TARGET_CONFIGURE_OPTS) \
57 CFLAGS="$(TARGET_CFLAGS) -DHAVE_PCAP_H=1 -I$(STAGING_DIR)/usr/include" \
58 LIBS="-lnsl -pthread -lpcap" \
59 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
60 DESTDIR=$(PKG_INSTALL_DIR) \
64 define Package/ipcad/install
65 install -d -m0755 $(1)/etc
66 $(CP) $(PKG_INSTALL_DIR)/etc/ipcad.conf $(1)/etc/
67 install -d -m0755 $(1)/usr/bin
68 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ipcad $(1)/usr/bin/
71 $(eval $(call BuildPackage,ipcad))