diff --git a/net/vnstat/Makefile b/net/vnstat/Makefile index 8a983e7d2..5cdd0c12d 100644 --- a/net/vnstat/Makefile +++ b/net/vnstat/Makefile @@ -8,12 +8,12 @@ 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 @@ -63,7 +63,7 @@ endef 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 diff --git a/net/vnstat/patches/001-conf.patch b/net/vnstat/patches/001-conf.patch index 8419ca648..d41ef00a3 100644 --- a/net/vnstat/patches/001-conf.patch +++ b/net/vnstat/patches/001-conf.patch @@ -1,6 +1,6 @@ --- 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 @@ -11,9 +11,9 @@ -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