From a588b44f395b162793d8608406ebf02220ef3371 Mon Sep 17 00:00:00 2001 From: Jan Pavlinec Date: Fri, 24 Jan 2020 15:46:27 +0100 Subject: [PATCH] ooniprobe: add new package Signed-off-by: Jan Pavlinec --- net/ooniprobe/Makefile | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 net/ooniprobe/Makefile diff --git a/net/ooniprobe/Makefile b/net/ooniprobe/Makefile new file mode 100644 index 000000000..270fcb0af --- /dev/null +++ b/net/ooniprobe/Makefile @@ -0,0 +1,60 @@ +# +# Copyright (C) 2020 CZ.NIC, z. s. p. o. (https://www.nic.cz/) +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=ooniprobe +PKG_VERSION:=3.0.6 +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:=f3e73c265886403755c17a58b1534919741043a09749e51da450f3d4816a2189 + +PKG_MAINTAINER:=Jan Pavlinec +PKG_LICENSE:=BSD-3-Clause +PKG_LICENSE_FILES:=LICENSE.md + +PKG_BUILD_DIR:=$(BUILD_DIR)/probe-cli-$(PKG_VERSION) +PKG_BUILD_DEPENDS:=golang/host measurement-kit +PKG_BUILD_PARALLEL:=1 +PKG_USE_MIPS16:=0 + +GO_PKG:=github.com/ooni/probe-cli + +include $(INCLUDE_DIR)/package.mk +include ../../lang/golang/golang-package.mk + +define Package/ooniprobe + SECTION:=net + CATEGORY:=Network + TITLE:=OONI probe-cli + URL:=https://ooni.org + DEPENDS:=\ + $(GO_ARCH_DEPENDS) +libevent2-openssl \ + +libevent2-core +libevent2-extra +libevent2-pthreads \ + +libmaxminddb +libopenssl \ + +zlib +libcurl +libstdcpp +endef + +TARGET_LDFLAGS:=\ + -lmeasurement_kit -lmaxminddb -lcurl \ + -levent_openssl -lssl \ + -lcrypto -levent_core -levent_extra \ + -levent_pthreads -lz + +define Package/ooniprobe/config + select MEASUREMENT_KIT_BUILD_DEPENDS +endef + +define Package/ooniprobe/description + The next generation of OONI(Open Observatory of Network Interference) + Probe Command Line Interface. +endef + +$(eval $(call GoBinPackage,ooniprobe)) +$(eval $(call BuildPackage,ooniprobe))