c93ad8537d45a11b5272d1a9f8e4575108e7fabf
[openwrt/svn-archive/archive.git] / net / bmon / 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:=bmon
12 PKG_VERSION:=2.1.0
13 PKG_RELEASE:=0
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://people.suug.ch/~tgr/bmon/files/
17 PKG_MD5SUM:=3111a027907016c0902d67350c619df6
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/bmon
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libncurses
28 TITLE:=bmon is a portable bandwidth monitor
29 URL:=http://people.suug.ch/~tgr/bmon/
30 endef
31
32 define Package/bmon/description
33 bmon is a portable bandwidth monitor
34 and rate estimator running on various
35 operating systems. It supports various
36 input methods for different architectures.
37 endef
38
39 define Build/Configure
40 $(call Build/Configure/Default, \
41 --disable-cnt-workaround \
42 --disable-dbi \
43 --disable-rrd \
44 --disable-asound \
45 )
46 endef
47
48 define Build/Compile
49 $(call Build/Compile/Default,all)
50 endef
51
52 define Package/bmon/install
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/bmon $(1)/usr/sbin/
55 endef
56
57 $(eval $(call BuildPackage,bmon))