2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
14 PKG_MD5SUM:=9184f79b5e60499bc059f670032291e5
16 PKG_SOURCE_URL:=http://humdi.net/vnstat
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
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/
36 define Package/vnstat/install
37 install -d -m0755 $(1)/usr/bin
38 $(CP) $(PKG_BUILD_DIR)/src/vnstat $(1)/usr/bin/
41 $(eval $(call BuildPackage,vnstat))