2020-01-02 17:22:13 +01:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=vnstat2
|
2024-02-01 21:12:05 +01:00
|
|
|
PKG_VERSION:=2.12
|
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 18:32:27 +02:00
|
|
|
PKG_RELEASE:=1
|
2020-01-02 17:22:13 +01:00
|
|
|
|
|
|
|
PKG_SOURCE:=vnstat-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://humdi.net/vnstat
|
2024-02-01 21:12:05 +01:00
|
|
|
PKG_HASH:=b7386b12fc1fc6f47fab31f208b12eda61862e63e229e84e95a6fa80406d2852
|
2020-01-02 17:22:13 +01:00
|
|
|
|
|
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
PKG_MAINTAINER:=Jan Hoffmann <jan@3e8.eu>
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/vnstat-${PKG_VERSION}
|
|
|
|
|
2020-01-21 14:03:00 +01:00
|
|
|
PKG_FIXUP:=autoreconf
|
2020-01-02 17:22:13 +01:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/vnstat2/Default
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
URL:=https://humdi.net/vnstat/
|
|
|
|
DEPENDS:=+libsqlite3
|
|
|
|
CONFLICTS:=vnstat
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/vnstat2
|
|
|
|
$(call Package/vnstat2/Default)
|
|
|
|
TITLE:=Console-based network traffic monitor
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/vnstat2/description
|
|
|
|
vnStat is a network traffic monitor for Linux that keeps a log of daily
|
|
|
|
network traffic for the selected interface(s). vnStat isn't a packet
|
|
|
|
sniffer. The traffic information is analyzed from the /proc -filesystem,
|
|
|
|
so vnStat can be used without root permissions.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/vnstati2
|
|
|
|
$(call Package/vnstat2/Default)
|
|
|
|
DEPENDS+=vnstat2 +libgd
|
|
|
|
TITLE:=PNG image output support for vnStat
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/vnstati2/description
|
|
|
|
The purpose of vnstati is to provide image output support for statistics
|
|
|
|
collected using vnstat. However, the image file format is limited to
|
|
|
|
png. All basic outputs of vnStat are supported excluding live traffic
|
|
|
|
features. The image can be outputted either to a file or to standard
|
|
|
|
output.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/vnstat2/conffiles
|
|
|
|
/etc/vnstat.conf
|
|
|
|
/etc/config/vnstat
|
|
|
|
endef
|
|
|
|
|
2020-01-21 14:03:00 +01:00
|
|
|
CONFIGURE_ARGS += --disable-extra-paths
|
2020-01-02 17:22:13 +01:00
|
|
|
|
|
|
|
define Package/vnstat2/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/vnstat $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/vnstatd $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/cfg/vnstat.conf $(1)/etc/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_CONF) ./files/vnstat.config $(1)/etc/config/vnstat
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/vnstat.init $(1)/etc/init.d/vnstat
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/vnstati2/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/vnstati $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,vnstat2))
|
|
|
|
$(eval $(call BuildPackage,vnstati2))
|