Skip to content

Commit

Permalink
sysutils/ipfs-go: Add patch file and pkg-message
Browse files Browse the repository at this point in the history
PR:	253590
Reported by: <swills@FreeBSD.org>
  • Loading branch information
jhixson74 committed Apr 10, 2021
1 parent e11b1bc commit 713c353
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions sysutils/ipfs-go/Makefile
@@ -1,6 +1,7 @@
PORTNAME= ipfs
DISTVERSIONPREFIX= v
DISTVERSION= 0.8.0
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= https://github.com/ipfs/go-ipfs/releases/download/v${DISTVERSION}/
PKGNAMESUFFIX= -go
Expand Down
11 changes: 11 additions & 0 deletions sysutils/ipfs-go/files/patch-repo_fsrepo_migrations_migrations.go
@@ -0,0 +1,11 @@
--- repo/fsrepo/migrations/migrations.go.orig 2021-03-02 03:58:49 UTC
+++ repo/fsrepo/migrations/migrations.go
@@ -15,7 +15,7 @@ import (
"strings"
)

-var DistPath = "https://ipfs.io/ipfs/QmYRLRDKobvg1AXTGeK5Xk6ntWTsjGiHbyNKhWfz7koGpa"
+var DistPath = ""

func init() {
if dist := os.Getenv("IPFS_DIST_PATH"); dist != "" {
9 changes: 9 additions & 0 deletions sysutils/ipfs-go/pkg-message
@@ -0,0 +1,9 @@
[
{ type: upgrade
message: <<EOM
You may wish to install ipfs-go-fs-repo-migrations
(sysutils/ipfs-go-fs-repo-migrations) in order to do db
migration with the "ipfs daemon --migrate" command.
EOM
}
]

0 comments on commit 713c353

Please sign in to comment.