2006-10-30 13:51:50 +00:00
|
|
|
#
|
2009-01-10 23:18:52 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-08-03 07:45:19 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ipcad
|
2008-07-06 11:44:34 +00:00
|
|
|
PKG_VERSION:=3.7.3
|
2009-01-10 23:18:52 +00:00
|
|
|
PKG_RELEASE:=3
|
2006-08-03 07:45:19 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/ipcad
|
2008-07-06 11:44:34 +00:00
|
|
|
PKG_MD5SUM:=125605249958894148ec26d3c88189f5
|
2006-08-03 07:45:19 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-08-03 07:45:19 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/ipcad
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2012-06-11 23:30:31 +00:00
|
|
|
DEPENDS:=+libpcap $(LIBRPC_DEPENDS) +libpthread
|
2006-08-03 07:45:19 +00:00
|
|
|
TITLE:=listens for traffic on the specified interfaces
|
|
|
|
URL:=http://lionet.info/ipcad/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/ipcad/description
|
|
|
|
This daemon listens for traffic on the specified interfaces.
|
2008-07-06 11:44:34 +00:00
|
|
|
It has the built-in RSH and NetFlow engines to allow exporting
|
2007-10-14 04:32:56 +00:00
|
|
|
the accounting data the same way as Cisco routers do.
|
|
|
|
endef
|
|
|
|
|
2006-08-03 07:45:19 +00:00
|
|
|
define Package/ipcad/conffiles/
|
|
|
|
/etc/ipcad.conf
|
|
|
|
endef
|
|
|
|
|
2009-01-10 23:18:52 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
|
|
|
--with-psrc=pcap \
|
|
|
|
--with-pcap-include="$(STAGING_DIR)/usr/include" \
|
|
|
|
--with-pcap-libraries="$(STAGING_DIR)/usr/lib" \
|
|
|
|
|
|
|
|
# XXX: don't detect/use netfilter QUEUE/ULOG captures
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_func_getifaddrs=no \
|
|
|
|
ac_cv_header_ifaddrs_h=no \
|
|
|
|
ac_cv_header_linux_netfilter_ipv4_ip_queue_h=no \
|
|
|
|
ac_cv_header_linux_netfilter_ipv4_ipt_ULOG_h=no \
|
2006-08-03 07:45:19 +00:00
|
|
|
|
2011-03-06 18:23:29 +00:00
|
|
|
TARGET_LDFLAGS += $(LIBRPC)
|
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
define Package/ipcad/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2006-08-03 07:45:19 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/ipcad.conf $(1)/etc/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipcad $(1)/usr/bin/
|
2006-08-03 07:45:19 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,ipcad))
|