include $(TOPDIR)/rules.mk
PKG_NAME:=vnstat
-PKG_VERSION:=1.8
+PKG_VERSION:=1.9
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://humdi.net/vnstat
-PKG_MD5SUM:=99a30716b5013e7e249e500ee6ee2985
+PKG_MD5SUM:=ebaf8352fa3674faea2fe2ce1001a38d
include $(INCLUDE_DIR)/package.mk
define Build/Compile/vnstati
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
- CFLAGS="$(TARGET_CPPFLAGS)" \
+ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
LDFLAGS="$(TARGET_LDFLAGS) -Wl,-rpath-link,$(STAGING_DIR)/usr/lib" \
all
endef
--- a/cfg/vnstat.conf
+++ b/cfg/vnstat.conf
-@@ -69,13 +69,13 @@ TrafficlessDays 1
+@@ -72,13 +72,13 @@ TrafficlessDays 1
##
# how often (in seconds) interface data is updated
-PollInterval 5
+PollInterval 30
- # how often (in minutes) interface data is saved to file
+ # how often (in minutes) data is saved to file
-SaveInterval 5
+SaveInterval 30
- # enable / disable logging (0 = disabled, 1 = logfile, 2 = syslog)
- UseLogging 2
+ # how often (in minutes) data is saved when all interface are offline
+ OfflineSaveInterval 30