nuke $Id$ in /packages as well
[packages.git] / net / ipcad / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ipcad
11 PKG_VERSION:=3.7.3
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/ipcad
16 PKG_MD5SUM:=125605249958894148ec26d3c88189f5
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/ipcad
21   SECTION:=net
22   CATEGORY:=Network
23   DEPENDS:=+libpcap
24   TITLE:=listens for traffic on the specified interfaces
25   URL:=http://lionet.info/ipcad/
26 endef
27
28 define Package/ipcad/description
29         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 endef
33
34 define Package/ipcad/conffiles/
35 /etc/ipcad.conf
36 endef
37
38 CONFIGURE_ARGS += \
39         --enable-shared \
40         --disable-static \
41         --with-psrc=pcap \
42         --with-pcap-include="$(STAGING_DIR)/usr/include" \
43         --with-pcap-libraries="$(STAGING_DIR)/usr/lib" \
44
45 # XXX: don't detect/use netfilter QUEUE/ULOG captures
46 CONFIGURE_VARS += \
47         ac_cv_func_getifaddrs=no \
48         ac_cv_header_ifaddrs_h=no \
49         ac_cv_header_linux_netfilter_ipv4_ip_queue_h=no \
50         ac_cv_header_linux_netfilter_ipv4_ipt_ULOG_h=no \
51
52 define Build/Compile    
53         $(MAKE) -C $(PKG_BUILD_DIR) \
54                 DESTDIR="$(PKG_INSTALL_DIR)" \
55                 all install
56 endef
57
58 define Package/ipcad/install    
59         $(INSTALL_DIR) $(1)/etc
60         $(CP) $(PKG_INSTALL_DIR)/etc/ipcad.conf $(1)/etc/
61         $(INSTALL_DIR) $(1)/usr/bin
62         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipcad $(1)/usr/bin/
63 endef
64
65 $(eval $(call BuildPackage,ipcad))