Skip to content

Commit

Permalink
sysutils/ipfs-go: update to 0.18.1, switch to go1.19
Browse files Browse the repository at this point in the history
- go1.18 is EOL, switch to go1.19
- Update port to fetch its distfile and dependencies from the Go proxy
- Update to the latest release

PR: 269311
Submitted by: dmgk@freebsd.org
  • Loading branch information
jhixson74 committed Feb 3, 2023
1 parent 5b92e52 commit 27fb6b6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
12 changes: 4 additions & 8 deletions sysutils/ipfs-go/Makefile
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
PORTNAME= ipfs
DISTVERSIONPREFIX= v
DISTVERSION= 0.13.0
PORTREVISION= 6
DISTVERSION= 0.18.1
CATEGORIES= sysutils
MASTER_SITES= https://github.com/ipfs/go-ipfs/releases/download/v${DISTVERSION}/
PKGNAMESUFFIX= -go
DISTNAME= go-ipfs-source

MAINTAINER= jhixson@FreeBSD.org
COMMENT= IPFS implementation in Go
WWW= https://github.com/ipfs/go-ipfs
WWW= https://github.com/ipfs/kubo

LICENSE= MIT APACHE20
LICENSE_COMB= dual
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE

USES= cpe go:1.18,modules
USES= cpe go:1.19,modules

CPE_VENDOR= protocol

GO_MODULE= github.com/ipfs/kubo
GO_TARGET= ./cmd/ipfs:ipfs-go

NO_WRKSUBDIR= yes

USE_RC_SUBR= ${PORTNAME}${PKGNAMESUFFIX}

SUB_FILES= ${FULLNAME}
Expand Down
8 changes: 5 additions & 3 deletions sysutils/ipfs-go/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
TIMESTAMP = 1655490739
SHA256 (go-ipfs-source.tar.gz) = 784207b26b43def178f115451c4cf6f20915bfbbb9d2930113c67ea1a33aa4b3
SIZE (go-ipfs-source.tar.gz) = 13474994
TIMESTAMP = 1675430958
SHA256 (go/sysutils_ipfs-go/ipfs-v0.18.1/v0.18.1.mod) = 507eee7a17fab434e6a5c7f193448a08d6e3683d5adc5a3746ae4e295da279fe
SIZE (go/sysutils_ipfs-go/ipfs-v0.18.1/v0.18.1.mod) = 11884
SHA256 (go/sysutils_ipfs-go/ipfs-v0.18.1/v0.18.1.zip) = 7d8cb5b6ce18253f87f7fa678a2f0f9c0ae3a95ca125965598c2b914d4f44beb
SIZE (go/sysutils_ipfs-go/ipfs-v0.18.1/v0.18.1.zip) = 2416507
10 changes: 5 additions & 5 deletions sysutils/ipfs-go/files/patch-repo_fsrepo_migrations_fetcher.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--- repo/fsrepo/migrations/fetcher.go.orig 2022-06-17 18:33:52 UTC
--- repo/fsrepo/migrations/fetcher.go.orig 1979-11-30 05:00:00 UTC
+++ repo/fsrepo/migrations/fetcher.go
@@ -11,7 +11,7 @@ const (
@@ -11,7 +11,7 @@ import (

const (
// Current distribution to fetch migrations from
- CurrentIpfsDist = "/ipfs/QmdaCHYBDHEhXCMoynH5UcohEay6m1XayZCcxWZzKAHNVN" // fs-repo-11-to-12 v1.0.2
+ CurrentIpfsDist = "" // fs-repo-11-to-12 v1.0.2
- CurrentIpfsDist = "/ipfs/Qmf4yftD4LuMo8JMNPqqw3BtUwYd2VkXMiAThuPE6usrbQ" // fs-repo-12-to-13 v1.0.0
+ CurrentIpfsDist = "" // fs-repo-12-to-13 v1.0.0
// Latest distribution path. Default for fetchers.
LatestIpfsDist = "/ipns/dist.ipfs.io"
LatestIpfsDist = "/ipns/dist.ipfs.tech"

0 comments on commit 27fb6b6

Please sign in to comment.