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
/ipcad
16 PKG_MD5SUM
:=125605249958894148ec26d3c88189f5
20 include $(INCLUDE_DIR
)/package.mk
25 DEPENDS
:=+libpcap
$(LIBRPC_DEPENDS
) +libpthread
26 TITLE
:=listens for traffic on the specified interfaces
27 URL
:=http
://lionet.
info/ipcad
/
30 define Package
/ipcad
/description
31 This daemon listens for traffic on the specified interfaces.
32 It has the built-in RSH and NetFlow engines to allow exporting
33 the accounting data the same way
as Cisco routers do.
36 define Package
/ipcad
/conffiles
/
44 --with-pcap-include
="$(STAGING_DIR)/usr/include" \
45 --with-pcap-libraries
="$(STAGING_DIR)/usr/lib" \
47 # XXX: don't detect/use netfilter QUEUE/ULOG captures
49 ac_cv_func_getifaddrs
=no \
50 ac_cv_header_ifaddrs_h
=no \
51 ac_cv_header_linux_netfilter_ipv4_ip_queue_h
=no \
52 ac_cv_header_linux_netfilter_ipv4_ipt_ULOG_h
=no \
54 TARGET_LDFLAGS
+= $(LIBRPC
)
56 define Package
/ipcad
/install
57 $(INSTALL_DIR
) $(1)/etc
58 $(CP
) $(PKG_INSTALL_DIR
)/etc
/ipcad.conf
$(1)/etc
/
59 $(INSTALL_DIR
) $(1)/usr
/bin
60 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ipcad
$(1)/usr
/bin
/
63 $(eval
$(call BuildPackage
,ipcad
))