From 39f14559265e507ced44b864db98eaeab69d8afe Mon Sep 17 00:00:00 2001 From: Jan Hoffmann Date: Tue, 21 Jan 2020 14:03:00 +0100 Subject: [PATCH] vnstat2: update to version 2.6 This also cleans up the Makefile and removes an unneeded patch. Signed-off-by: Jan Hoffmann --- net/vnstat2/Makefile | 27 +++---------------- .../990-remove-default-interface.patch | 11 -------- 2 files changed, 4 insertions(+), 34 deletions(-) delete mode 100644 net/vnstat2/patches/990-remove-default-interface.patch diff --git a/net/vnstat2/Makefile b/net/vnstat2/Makefile index abf0d52cf..15e764d09 100644 --- a/net/vnstat2/Makefile +++ b/net/vnstat2/Makefile @@ -6,12 +6,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=vnstat2 -PKG_VERSION:=2.4 +PKG_VERSION:=2.6 PKG_RELEASE:=1 PKG_SOURCE:=vnstat-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://humdi.net/vnstat -PKG_HASH:=a0955999abd56d5463d257ffdccc9b1e9ad9ea504de81e64ba4c197f1245abaa +PKG_HASH:=89276e0a7281943edb554b874078278ad947dc312938a2451e03eb80679f7ff7 PKG_LICENSE:=GPL-2.0-only PKG_LICENSE_FILES:=COPYING @@ -19,9 +19,8 @@ PKG_MAINTAINER:=Jan Hoffmann PKG_BUILD_DIR:=$(BUILD_DIR)/vnstat-${PKG_VERSION} +PKG_FIXUP:=autoreconf PKG_INSTALL:=1 - -PKG_BUILD_DEPENDS:=libgd PKG_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk @@ -65,25 +64,7 @@ define Package/vnstat2/conffiles /etc/config/vnstat endef -define Build/Compile/vnstat2 - +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ - $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS)" \ - LDFLAGS="$(TARGET_LDFLAGS)" -endef - -define Build/Compile/vnstati2 - +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ - $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \ - LDFLAGS="$(TARGET_LDFLAGS) -Wl,-rpath-link,$(STAGING_DIR)/usr/lib" \ - all -endef - -define Build/Compile -$(call Build/Compile/vnstat2) -$(call Build/Compile/vnstati2) -endef +CONFIGURE_ARGS += --disable-extra-paths define Package/vnstat2/install $(INSTALL_DIR) $(1)/usr/bin diff --git a/net/vnstat2/patches/990-remove-default-interface.patch b/net/vnstat2/patches/990-remove-default-interface.patch deleted file mode 100644 index 1ae1faad7..000000000 --- a/net/vnstat2/patches/990-remove-default-interface.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/cfg/vnstat.conf -+++ b/cfg/vnstat.conf -@@ -2,7 +2,7 @@ - ## - - # default interface (leave empty for automatic selection) --Interface "" -+#Interface "" - - # location of the database directory - DatabaseDir "/var/lib/vnstat"