forked from openwrt/packages
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This version includes support for Go 1.20 (specifically 1.20.5). This also: * Adds a workaround for musl 1.2.4 compatibility in mattn/go-sqlite3[1] * Sets GO_PKG_BUILD_PKG to build the main binary (ooniprobe) only * Updates the package license; the project was relicensed in 3.13.0[2] [1]: mattn/go-sqlite3#1164 [2]: ooni/probe-cli#446 Signed-off-by: Jeffery To <[email protected]>
- Loading branch information
Showing
1 changed file
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,23 +8,24 @@ | |
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=ooniprobe | ||
PKG_VERSION:=3.16.5 | ||
PKG_VERSION:=3.18.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:=198f7a3507482bfbf0fb24c24f34e17c9f5adbfdf5d8c63774ecd816708a4438 | ||
PKG_HASH:=d28c050226c9282d7155da6cabf5547ddd43dc11eecacc485b6c05161c2d1d88 | ||
|
||
PKG_MAINTAINER:=Jan Pavlinec <[email protected]> | ||
PKG_LICENSE:=BSD-3-Clause | ||
PKG_LICENSE_FILES:=LICENSE.md | ||
PKG_LICENSE:=GPL-3.0-or-later | ||
PKG_LICENSE_FILES:=LICENSE | ||
|
||
PKG_BUILD_DIR:=$(BUILD_DIR)/probe-cli-$(PKG_VERSION) | ||
PKG_BUILD_DEPENDS:=golang/host | ||
PKG_BUILD_PARALLEL:=1 | ||
PKG_BUILD_FLAGS:=no-mips16 | ||
|
||
GO_PKG:=github.com/ooni/probe-cli | ||
GO_PKG_BUILD_PKG:=github.com/ooni/probe-cli/v3/cmd/ooniprobe | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
include ../../lang/golang/golang-package.mk | ||
|
@@ -38,9 +39,15 @@ define Package/ooniprobe | |
endef | ||
|
||
define Package/ooniprobe/description | ||
The next generation of OONI(Open Observatory of Network Interference) | ||
The next generation of Open Observatory of Network Interference (OONI) | ||
Probe Command Line Interface. | ||
endef | ||
|
||
# Workaround for musl 1.2.4 compability in mattn/go-sqlite3 | ||
# https://github.com/mattn/go-sqlite3/issues/1164 | ||
ifneq ($(CONFIG_USE_MUSL),) | ||
TARGET_CFLAGS += -D_LARGEFILE64_SOURCE | ||
endif | ||
|
||
$(eval $(call GoBinPackage,ooniprobe)) | ||
$(eval $(call BuildPackage,ooniprobe)) |