Commit Graph

11 Commits

Author SHA1 Message Date
Jan Hoffmann 94d74d3566 vnstat2: update to version 2.12
This version includes several new features that allow to simplify the
package significantly: The noexit patch and hotplug script are no longer
needed, and the init script doesn't have to check for legacy databases
anymore.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2024-02-04 16:07:08 -08:00
Jan Hoffmann 9871979707 vnstat2: update to version 2.11
This release breaks the noexit patch, because the code for removing old
now returns an error when no interfaces are configured. As it is run on
startup, the daemon exits in this case. To avoid this, add an additional
check so an error is only returned in an actual error case.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2023-08-24 11:14:05 +08:00
Paul Fertser 0c10c224be treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.

The following temporary change was made to the core:

diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
 abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))

 COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))

 all:
 FORCE: ;

And this command used to fix affected packages:

for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
                              sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
  make package/$i/download
done

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 22:46:58 +02:00
Jan Hoffmann 4edbd1afe7 vnstat2: update to version 2.10
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2022-10-23 18:36:45 +02:00
Jan Hoffmann 948f0d29cc vnstat2: update to version 2.9
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2022-01-25 21:54:48 +01:00
Jan Hoffmann f9ea814260 vnstat2: add hotplug script for adding interfaces
If an interface doesn't exist yet when vnStat is started, it won't be
monitored, as only existing interfaces can be added to the database via
the vnstat command.

This adds a hotplug script which adds any configured interfaces to the
vnStat database when it goes up.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2021-10-28 01:31:18 -07:00
Jan Hoffmann ecae7dedde vnstat2: fix all interfaces being monitored when none are configured
By default, vnstatd adds all available interfaces on startup when its
database is empty. The --noadd option prevents this, but it breaks
import of legacy databases, and causes vnstatd to exit immediately
after startup, which breaks reloading.

This changes the init script to add the --noadd option when no legacy
databases need to be imported, and patches vnstatd to keep running
even when no interfaces are configured.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2021-10-28 01:31:18 -07:00
Jan Hoffmann 73fff7a4ed vnstat2: update to version 2.8
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2021-10-03 23:40:41 +02:00
Jan Hoffmann 80e6e0bcbe vnstat2: update to version 2.7
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2021-05-18 21:50:53 +03:00
Jan Hoffmann 39f1455926 vnstat2: update to version 2.6
This also cleans up the Makefile and removes an unneeded patch.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2020-01-21 14:05:22 +01:00
Jan Hoffmann 26878ae8de vnstat2: add package
This introduces an additional package for version 2 of vnStat.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
2020-01-04 00:43:57 +01:00