[package] update vnstat to 1.9 (#5845)
authorFlorian Fainelli <florian@openwrt.org>
Sat, 19 Sep 2009 18:35:51 +0000 (18:35 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 19 Sep 2009 18:35:51 +0000 (18:35 +0000)
SVN-Revision: 17614

net/vnstat/Makefile
net/vnstat/patches/001-conf.patch

index 8a983e7..5cdd0c1 100644 (file)
@@ -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
index 8419ca6..d41ef00 100644 (file)
@@ -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