2006-10-30 13:51:50 +00:00
|
|
|
#
|
2008-08-04 14:42:37 +00:00
|
|
|
# Copyright (C) 2006-2008 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.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ipcad
|
2008-07-06 11:44:34 +00:00
|
|
|
PKG_VERSION:=3.7.3
|
2008-08-04 14:42:37 +00:00
|
|
|
PKG_RELEASE:=2
|
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
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/ipcad
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+libpcap
|
|
|
|
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
|
|
|
|
|
2008-08-04 14:42:37 +00:00
|
|
|
# XXX: don't detect/use netfilter ipq capture
|
2006-08-03 07:45:19 +00:00
|
|
|
define Build/Configure
|
2006-10-30 13:51:50 +00:00
|
|
|
(cd $(PKG_BUILD_DIR); touch \
|
|
|
|
cfglex.c \
|
|
|
|
cslex.c \
|
|
|
|
);
|
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-shared \
|
2006-08-04 20:30:53 +00:00
|
|
|
--disable-static \
|
|
|
|
--with-psrc=pcap \
|
|
|
|
--with-pcap-include="$(STAGING_DIR)/usr/include" \
|
2006-10-30 13:51:50 +00:00
|
|
|
--with-pcap-libraries="$(STAGING_DIR)/usr/lib" \
|
|
|
|
, \
|
2006-08-04 20:30:53 +00:00
|
|
|
ac_cv_func_getifaddrs=no \
|
|
|
|
ac_cv_header_ifaddrs_h=no \
|
2008-08-04 14:42:37 +00:00
|
|
|
ac_cv_header_linux_netfilter_ipv4_ip_queue_h=no \
|
2006-10-30 13:51:50 +00:00
|
|
|
)
|
2006-08-03 07:45:19 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-10-30 13:51:50 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2006-08-03 07:45:19 +00:00
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
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))
|