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.

60 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2020 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.0.6
  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:=f3e73c265886403755c17a58b1534919741043a09749e51da450f3d4816a2189
  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 measurement-kit
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_USE_MIPS16:=0
  21. GO_PKG:=github.com/ooni/probe-cli
  22. include $(INCLUDE_DIR)/package.mk
  23. include ../../lang/golang/golang-package.mk
  24. define Package/ooniprobe
  25. SECTION:=net
  26. CATEGORY:=Network
  27. TITLE:=OONI probe-cli
  28. URL:=https://ooni.org
  29. DEPENDS:=\
  30. $(GO_ARCH_DEPENDS) +libevent2-openssl \
  31. +libevent2-core +libevent2-extra +libevent2-pthreads \
  32. +libmaxminddb +libopenssl \
  33. +zlib +libcurl +libstdcpp
  34. endef
  35. TARGET_LDFLAGS:=\
  36. -lmeasurement_kit -lmaxminddb -lcurl \
  37. -levent_openssl -lssl \
  38. -lcrypto -levent_core -levent_extra \
  39. -levent_pthreads -lz
  40. define Package/ooniprobe/config
  41. select MEASUREMENT_KIT_BUILD_DEPENDS
  42. endef
  43. define Package/ooniprobe/description
  44. The next generation of OONI(Open Observatory of Network Interference)
  45. Probe Command Line Interface.
  46. endef
  47. $(eval $(call GoBinPackage,ooniprobe))
  48. $(eval $(call BuildPackage,ooniprobe))