-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix install_unsupported for openbsd, add docs
License: MIT Signed-off-by: kpcyrd <git@rxv.cc>
- Loading branch information
Showing
2 changed files
with
41 additions
and
3 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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Building on OpenBSD | ||
|
||
## Prepare your system | ||
|
||
Make sure you have `git`, `go` and `gmake` installed on your system. | ||
|
||
``` | ||
$ doas pkg_add -v git go gmake | ||
``` | ||
|
||
## Prepare go environment | ||
|
||
Make sure your gopath is set: | ||
|
||
``` | ||
$ export GOPATH=~/go | ||
$ echo "$GOPATH" | ||
$ export PATH="$PATH:$GOPATH/bin" | ||
``` | ||
|
||
## Build | ||
|
||
The `install_unsupported` target works nicely for openbsd. This will install `gx`, `gx-go` and run `go install -tags nofuse ./cmd/ipfs`. | ||
|
||
``` | ||
$ go get -v -u -d github.com/ipfs/go-ipfs | ||
$ cd $GOPATH/src/github.com/ipfs/go-ipfs | ||
$ gmake install_unsupported | ||
``` | ||
|
||
if everything went well, your ipfs binary should be ready at `$GOPATH/bin/ipfs`. | ||
|
||
``` | ||
$ ipfs version | ||
``` |