massive Makefile cleanup, add missing 'svn:keywords' property
[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 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/bmon
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libncurses
29 TITLE:=bmon is a portable bandwidth monitor
30 DESCRIPTION:=\
31 bmon is a portable bandwidth monitor \\\
32 and rate estimator running on various \\\
33 operating systems. It supports various \\\
34 input methods for different architectures.
35 URL:=http://people.suug.ch/~tgr/bmon/
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
48 define Build/Compile
49 $(call Build/Compile/Default,all)
50 endef
51
52 define Package/bmon/install
53 install -d -m0755 $(1)/usr/sbin
54 install -m0755 $(PKG_BUILD_DIR)/src/bmon $(1)/usr/sbin/
55 endef
56
57 $(eval $(call BuildPackage,bmon))
58