2014-12-18 12:03:25 +00:00
|
|
|
#
|
2015-06-18 16:45:04 +00:00
|
|
|
# Copyright (C) 2014-2015 OpenWrt.org
|
2014-12-18 12:03:25 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=bwm-ng
|
2021-12-16 01:46:02 +00:00
|
|
|
PKG_VERSION:=0.6.3
|
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 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2014-12-18 12:03:25 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.gropp.org/bwm-ng
|
2021-12-16 01:46:02 +00:00
|
|
|
PKG_HASH:=c1a552b6ff48ea3e4e10110a7c188861abc4750befc67c6caaba8eb3ecf67f46
|
|
|
|
|
2014-12-18 12:03:25 +00:00
|
|
|
PKG_MAINTAINER:=Julen Landa Alustiza <julen@zokormazo.info>
|
|
|
|
PKG_LICENSE:=GPL2-2.0
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
|
2021-12-16 01:46:02 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2014-12-18 12:03:25 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/bwm-ng
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+BWMNG_LIBNCURSES:libncurses
|
|
|
|
TITLE:=bwm-ng
|
|
|
|
URL:=http://www.gropp.org/?id=projects&sub=bwm-ng
|
|
|
|
MENU:=1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bwm-ng/description
|
|
|
|
Bandwidth Monitor NG is a small and simple console-based live
|
|
|
|
network and disk io bandwidth monitor.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bwm-ng/config
|
|
|
|
source "$(SOURCE)/Config.in"
|
|
|
|
endef
|
|
|
|
|
2021-12-16 01:46:02 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2014-12-18 12:03:25 +00:00
|
|
|
$(if $(CONFIG_BWMNG_CONFIGFILE),--enable,--disable)-configfile \
|
|
|
|
$(if $(CONFIG_BWMNG_HTML),--enable,--disable)-html \
|
|
|
|
$(if $(CONFIG_BWMNG_CSV),--enable,--disable)-csv \
|
|
|
|
$(if $(CONFIG_BWMNG_EXTENDEDSTATS),--enable,--disable)-extendedstats \
|
|
|
|
$(if $(CONFIG_BWMNG_LIBNCURSES),--with,--without)-ncurses \
|
|
|
|
$(if $(CONFIG_BWMNG_TIME),--with,--without)-time \
|
|
|
|
$(if $(CONFIG_BWMNG_GETOPT_LONG),--with,--without)-getopt_long \
|
|
|
|
--with-strip \
|
|
|
|
--with-procnetdev \
|
2021-12-16 01:46:02 +00:00
|
|
|
--with-diskstats
|
2014-12-18 12:03:25 +00:00
|
|
|
|
|
|
|
define Package/bwm-ng/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/bwm-ng $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,bwm-ng))
|