1e0d75dec6721587c0592c9208cf2c57c3fceb15
[openwrt/svn-archive/archive.git] / net / bmon / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id: Makefile 4603 2006-08-18 21:21:06Z mbm $
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=bmon
11 PKG_VERSION:=2.1.0
12 PKG_RELEASE:=0
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://people.suug.ch/~tgr/bmon/files/
16 PKG_MD5SUM:=3111a027907016c0902d67350c619df6
17 PKG_CAT:=zcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
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 DESCRIPTION:=\
30 bmon is a portable bandwidth monitor\\\
31 and rate estimator running on various\\\
32 operating systems. It supports various\\\
33 input methods for different architectures.
34 URL:=http://people.suug.ch/~tgr/bmon/
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --disable-cnt-workaroun \
40 --disable-rrd \
41 --disable-asoun \
42 )
43 endef
44
45
46 define Build/Compile
47 $(call Build/Compile/Default,all)
48 endef
49
50 define Package/bmon/install
51 install -d -m0755 $(1)/usr/sbin
52 $(CP) $(PKG_BUILD_DIR)/src/bmon $(1)/usr/sbin
53 endef
54
55 $(eval $(call BuildPackage,bmon))