Skip to content

Commit

Permalink
Fix install_unsupported for openbsd, add docs
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
  • Loading branch information
kpcyrd committed Apr 26, 2017
1 parent 095230e commit 720ced1
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,14 @@ install: cmd/ipfs-install
install_unsupported:
@echo "note: this command has yet to be tested to build in the system you are using"
@echo "installing gx"
go get -u github.com/whyrusleeping/gx
go get -u github.com/whyrusleeping/gx-go
go get -v -u github.com/whyrusleeping/gx
go get -v -u github.com/whyrusleeping/gx-go
@echo check gx and gx-go
gx -v && gx-go -v
@echo downloading dependencies
gx install --global
@echo "installing go-ipfs"
go install ./cmd/ipfs
go install -v -tags nofuse ./cmd/ipfs
.PHONY: install_unsupported

uninstall:
Expand Down
36 changes: 36 additions & 0 deletions docs/openbsd.md
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
```

0 comments on commit 720ced1

Please sign in to comment.