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
:=@SF
/ipcad
17 PKG_MD5SUM
:=125605249958894148ec26d3c88189f5
19 include $(INCLUDE_DIR
)/package.mk
25 TITLE
:=listens for traffic on the specified interfaces
26 URL
:=http
://lionet.
info/ipcad
/
29 define Package
/ipcad
/description
30 This daemon listens for traffic on the specified interfaces.
31 It has the built-in RSH and NetFlow engines to allow exporting
32 the accounting data the same way
as Cisco routers do.
35 define Package
/ipcad
/conffiles
/
39 define Build
/Configure
40 (cd
$(PKG_BUILD_DIR
); touch \
44 $(call Build
/Configure
/Default
, \
48 --with-pcap-include
="$(STAGING_DIR)/usr/include" \
49 --with-pcap-libraries
="$(STAGING_DIR)/usr/lib" \
51 ac_cv_func_getifaddrs
=no \
52 ac_cv_header_ifaddrs_h
=no \
57 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
58 DESTDIR
="$(PKG_INSTALL_DIR)" \
62 define Package
/ipcad
/install
63 $(INSTALL_DIR
) $(1)/etc
64 $(CP
) $(PKG_INSTALL_DIR
)/etc
/ipcad.conf
$(1)/etc
/
65 $(INSTALL_DIR
) $(1)/usr
/bin
66 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ipcad
$(1)/usr
/bin
/
69 $(eval
$(call BuildPackage
,ipcad
))