ooniprobe: update to version 3.7.0
authorJan Pavlinec <jan.pavlinec@nic.cz>
Mon, 8 Mar 2021 15:48:47 +0000 (16:48 +0100)
committerJames White <james@jmwhite.co.uk>
Mon, 18 Apr 2022 06:43:05 +0000 (07:43 +0100)
Changes:
-add Configure stage to prebuild resources

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
(cherry picked from commit 17b18d825cc385fc2df0fa2f6a5e7775d778ef65)
Signed-off-by: James White <james@jmwhite.co.uk>
net/ooniprobe/Makefile

index 06b2f05e8b621083af23531fdcd09bd2dc3abc65..5c058253e3bb406fe919d9a1651de015f49800f2 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ooniprobe
-PKG_VERSION:=3.5.2
+PKG_VERSION:=3.7.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=probe-cli-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/ooni/probe-cli/tar.gz/v$(PKG_VERSION)?
-PKG_HASH:=56e419033715e1b2b61a82661f724148bab8fec4a28b2566a10e0a3051b3bade
+PKG_HASH:=27f0eec380825f236f7ab3aff22dd29d7090ef47d1ce1ccb1e728e0b846b30ce
 
 PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
 PKG_LICENSE:=BSD-3-Clause
@@ -43,5 +43,10 @@ define Package/ooniprobe/description
   Probe Command Line Interface.
 endef
 
+define Build/Configure
+       $(call GoPackage/Build/Configure)
+       cd $(PKG_BUILD_DIR) && $(STAGING_DIR_HOSTPKG)/bin/go run $(PKG_BUILD_DIR)/internal/cmd/getresources/getresources.go
+endef
+
 $(eval $(call GoBinPackage,ooniprobe))
 $(eval $(call BuildPackage,ooniprobe))