You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2020-2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ooniprobe
  9. PKG_VERSION:=3.8.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=probe-cli-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/ooni/probe-cli/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=65bc4e592cadb99530be713798308d6950f67240bff6d90f2760fde11d750a83
  14. PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=LICENSE.md
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/probe-cli-$(PKG_VERSION)
  18. PKG_BUILD_DEPENDS:=golang/host
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_USE_MIPS16:=0
  21. GO_PKG:=github.com/ooni/probe-cli
  22. GO_PKG_TAGS:=PSIPHON_DISABLE_QUIC
  23. include $(INCLUDE_DIR)/package.mk
  24. include ../../lang/golang/golang-package.mk
  25. define Package/ooniprobe
  26. SECTION:=net
  27. CATEGORY:=Network
  28. TITLE:=OONI probe-cli
  29. URL:=https://ooni.org
  30. DEPENDS:=$(GO_ARCH_DEPENDS)
  31. endef
  32. define Package/ooniprobe/description
  33. The next generation of OONI(Open Observatory of Network Interference)
  34. Probe Command Line Interface.
  35. endef
  36. define Build/Configure
  37. $(call GoPackage/Build/Configure)
  38. cd $(PKG_BUILD_DIR) && $(STAGING_DIR_HOSTPKG)/bin/go run $(PKG_BUILD_DIR)/internal/cmd/getresources/getresources.go
  39. endef
  40. $(eval $(call GoBinPackage,ooniprobe))
  41. $(eval $(call BuildPackage,ooniprobe))