Port vnstat to -ng
[openwrt/svn-archive/archive.git] / net / vnstat / 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:=vnstat
12 PKG_VERSION:=1.4
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=9184f79b5e60499bc059f670032291e5
15
16 PKG_SOURCE_URL:=http://humdi.net/vnstat
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
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/vnstat
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=Console-based network traffic monitor
29 DESCRIPTION:=vnStat is a network traffic monitor for Linux that keeps a log of daily\\\
30 network traffic for the selected interface(s). vnStat isn't a packet\\\
31 sniffer. The traffic information is analyzed from the /proc -filesystem,\\\
32 so vnStat can be used without root permissions.\\\
33 URL:=http://humdi.net/vnstat/
34 endef
35
36 define Build/Compile
37 $(call Build/Compile/Default)
38 endef
39
40 define Package/vnstat/install
41 install -d -m0755 $(1)/usr/bin
42 $(CP) $(PKG_BUILD_DIR)/src/vnstat $(1)/usr/bin/
43 endef
44
45 $(eval $(call BuildPackage,vnstat))