DESCRIPTION:= is obselete
[openwrt/svn-archive/archive.git] / net / ipcad / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ipcad
12 PKG_VERSION:=3.7
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/ipcad
17 PKG_MD5SUM:=34c542c99593dfe9d5b408deffcfe70e
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/ipcad
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libpcap
29 TITLE:=listens for traffic on the specified interfaces
30 URL:=http://lionet.info/ipcad/
31 endef
32
33 define Package/ipcad/description
34 This daemon listens for traffic on the specified interfaces.
35 It has the built-in RSH and NetFlow engines to allow exporting
36 the accounting data the same way as Cisco routers do.
37 endef
38
39 define Package/ipcad/conffiles/
40 /etc/ipcad.conf
41 endef
42
43 define Build/Configure
44 (cd $(PKG_BUILD_DIR); touch \
45 cfglex.c \
46 cslex.c \
47 );
48 $(call Build/Configure/Default, \
49 --enable-shared \
50 --disable-static \
51 --with-psrc=pcap \
52 --with-pcap-include="$(STAGING_DIR)/usr/include" \
53 --with-pcap-libraries="$(STAGING_DIR)/usr/lib" \
54 , \
55 ac_cv_func_getifaddrs=no \
56 ac_cv_header_ifaddrs_h=no \
57 )
58 endef
59
60 define Build/Compile
61 $(MAKE) -C $(PKG_BUILD_DIR) \
62 DESTDIR="$(PKG_INSTALL_DIR)" \
63 all install
64 endef
65
66 define Package/ipcad/install
67 $(INSTALL_DIR) $(1)/etc
68 $(CP) $(PKG_INSTALL_DIR)/etc/ipcad.conf $(1)/etc/
69 $(INSTALL_DIR) $(1)/usr/bin
70 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ipcad $(1)/usr/bin/
71 endef
72
73 $(eval $(call BuildPackage,ipcad))