fix cross-compiling issue in configure, force configure args to what we need, cleanup...
[packages.git] / net / ifstat / Makefile
1
2 # Copyright (C) 2007 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 # $Id$
9
10 include $(TOPDIR)/rules.mk
11
12 PKG_NAME:=ifstat
13 PKG_VERSION:=1.1
14 PKG_RELEASE:=1
15
16 PKG_SOURCE_URL:=http://gael.roualland.free.fr/ifstat
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_MD5SUM:=b655642c33a626cfe976792fbcd9b6e1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/ifstat
23   SECTION:=net
24   CATEGORY:=Network
25   TITLE:=Network interface bandwidth usage
26   URL:=http://gael.roualland.free.fr/ifstat/
27 endef
28
29 define Package/ifstat/description
30  Network interface bandwidth usage, with support for snmp targets
31 endef
32
33 CONFIGURE_ARGS += \
34         --with-proc=yes \
35         --with-snmp=no \
36
37 define Build/Configure
38         (cd $(PKG_BUILD_DIR); touch \
39                 config.h.in \
40                 configure \
41         );
42         $(call Build/Configure/Default)
43 endef
44
45 define Build/Compile
46         $(MAKE) -C $(PKG_BUILD_DIR) all
47 endef
48
49 define Package/ifstat/install
50         $(INSTALL_DIR) $(1)/usr/bin
51         $(INSTALL_BIN) $(PKG_BUILD_DIR)/ifstat $(1)/usr/bin/
52 endef
53
54 $(eval $(call BuildPackage,ifstat))