up netspeedtest1.6-43

This commit is contained in:
sirpdboy 2021-04-03 19:18:19 +08:00
parent 127154feeb
commit bfbb1bb8c3
5 changed files with 42 additions and 60 deletions

View File

@ -19,7 +19,7 @@ define Package/$(PKG_NAME)
CATEGORY:=LuCI
SUBMENU:=3. Applications
TITLE:=LuCI Support for netspeedtest
DEPENDS:=+iperf3 +speedtest
DEPENDS:=+iperf3 +netspeedtest
DESCRIPTION:=LuCI support Network speed test intranet and Extranet
PKGARCH:=all
endef

41
netspeedtest/Makefile Normal file
View File

@ -0,0 +1,41 @@
#
# Copyright (C) 2020-2021 sirpdboy <herboy2008@gmail.com>
# The LuCI Network diagnosis and speed test <https://github.com/sirpdboy/NetSpeedTest>
# Use the speed measurement program provided by ookla.
# This is free software, licensed under the GNU General Public License v3.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=netspeedtest
PKG_VERSION:=1.0.0
PKG_RELEASE:=7
PKG_LICENSE:=GPL-3.0
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=net
CATEGORY:=Network
TITLE:= A Speedtest application
DEPENDS:= +python3
MAINTAINER:= sirpdboy
PKGARCH:=all
endef
define Package/$(PKG_NAME)/description
luci for testing internet bandwidth using speedtest.net
ookla speedtest by sirpdboy
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) ./files/speedtest $(1)/usr/bin
$(CP) ./files/* $(1)/usr/bin
endef
$(eval $(call BuildPackage,$(PKG_NAME)))

View File

@ -1,59 +0,0 @@
#
# Copyright (C) 2020-2021 sirpdboy <herboy2008@gmail.com>
# The LuCI Network diagnosis and speed test <https://github.com/sirpdboy/NetSpeedTest>
# Use the speed measurement program provided by ookla.
# This is free software, licensed under the GNU General Public License v3.
#
include $(TOPDIR)/rules.mk
PKG_ARCH:=x86_64
PKG_NAME:=speedtest
PKG_VERSION:=1.0.0
PKG_RELEASE:=7
#PKG_SOURCE_URL:=https://ookla.bintray.com/download
#PKG_SOURCE:=ookla-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_ARCH)-linux.tgz
#PKG_HASH:=skip
PKG_LICENSE:=GPLv3
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=sirpdboy
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=net
CATEGORY:=Network
TITLE:=A Speedtest application
DEPENDS:=+kmod-tun +wget +curl +python3
URL:=https://github.com/sirpdboy/NetSpeedTest
endef
# define Download/speedtest
# URL:=https://ookla.bintray.com/download
# URL_FILE:=ookla-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_ARCH)-linux.tgz
# FILE:=tmpspeedtest
# HASH:=skip
# endef
define Package/$(PKG_NAME)/description
luci for testing internet bandwidth using speedtest.net
ookla speedtest by sirpdboy
endef
#define Build/Prepare
# mkdir -p $(PKG_BUILD_DIR)
# $(CP) ./$(PKG_NAME)/* $(PKG_BUILD_DIR)/
#endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) ./files/speedtest $(1)/usr/bin
endef
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature