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