blob: 378eddf064af4782b11175acc777bc2dd0d3c621 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
include $(TOPDIR)/rules.mk
PKG_NAME:=networkQuality
PKG_VERSION:=0.1
PKG_RELEASE:=0.1
PKG_MAINTAINER:=Will Hawkins ([email protected])
PKG_LICENSE:=GPL-2.0-only
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/network-quality/goresponsiveness.git
#We can configure this once we have a hash that we want to be the source
#of the first release. See
#https://openwrt.org/docs/guide-developer/packages#use_source_repository
#for information on how to use it.
PKG_MIRROR_HASH:=skip
#Note: You will want to make sure that this hash is the one you want!
#Temporarily set the package to build from the HEAD of main.
PKG_SOURCE_VERSION:=af7dd5fa1e683be9bc25dce18c339ed07eaef215
PKG_BUILD_DEPENDS=golang/host
PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
GO_PKG:=github.com/network-quality/goresponsiveness
GO_PKG_LDFLAGS_X:=main.version=$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
include ../../lang/golang/golang-package.mk
define Package/networkQuality
SECTION:=net
CATEGORY:=Network
TITLE:=Responsiveness Under Working Conditions client
DEPENDS:=$(GO_ARCH_DEPENDS)
endef
define Package/networkQuality/description
Official open-source client for the Responsiveness Under Working Conditions IETF spec.
endef
define Package/networkQuality/install
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
#Because we cannot control the `go build` invocation to get a
#executable name that we want, let's do this little workaround
#to make sure that our binary is named `networkQuality`!
$(INSTALL_DIR) $(1)/usr/bin/
$(CP) $(PKG_INSTALL_DIR)/usr/bin/goresponsiveness $(1)/usr/bin/networkQuality
endef
$(eval $(call GoBinPackage,networkQuality))
$(eval $(call BuildPackage,networkQuality))
|