aboutsummaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorJacky Guo <leickwell@hotmail.com>2022-10-20 14:39:13 +0800
committerRosen Penev <rosenp@gmail.com>2022-11-04 13:10:38 -0700
commita7ed296a80295004b79f7143d2a280b98f922b93 (patch)
treebc556412924ae56b44869f3f94844204b17c070f /admin
parent3d98f91fe2b5daa2c5a4c0b7270dc937389ed9df (diff)
nload: add new package
Signed-off-by: Jacky Guo <leickwell@hotmail.com>
Diffstat (limited to 'admin')
-rw-r--r--admin/nload/Makefile40
-rw-r--r--admin/nload/test.sh3
2 files changed, 43 insertions, 0 deletions
diff --git a/admin/nload/Makefile b/admin/nload/Makefile
new file mode 100644
index 000000000..b987507c2
--- /dev/null
+++ b/admin/nload/Makefile
@@ -0,0 +1,40 @@
+# SPDX-Identifier-License: GPL-2.0-only
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=nload
+PKG_VERSION:=0.7.4
+PKG_RELEASE:=$(AUTORELEASE)
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/rolandriegel/nload/tar.gz/v$(PKG_VERSION)?
+PKG_HASH:=a73b3a75356776860fc4c40daebce04c5022f73d39704a12fb0aeb88a751216a
+
+PKG_MAINTAINER:=Jacky Guo <leickwell@hotmail.com>
+PKG_LICENSE:=GPL-2.0-only
+PKG_LICENSE_FILES:=COPYING
+
+PKG_FIXUP:=autoreconf
+PKG_BUILD_PARALLEL:=1
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/nload
+ SECTION:=admin
+ CATEGORY:=Administration
+ TITLE:=A network traffic monitor
+ DEPENDS:=+libncurses +libstdcpp
+ URL:=https://github.com/rolandriegel/nload
+endef
+
+define Package/nload/description
+ Monitors network traffic and bandwidth usage.
+endef
+
+define Package/nload/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nload $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,nload))
diff --git a/admin/nload/test.sh b/admin/nload/test.sh
new file mode 100644
index 000000000..9fbe7902f
--- /dev/null
+++ b/admin/nload/test.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+nload -h | grep "$PKG_VERSION"