@cryptotaxi247 / kubo / commits / 720ced12b

Fix install_unsupported for openbsd, add docs

License: MIT Signed-off-by: kpcyrd <git@rxv.cc>

kpcyrd committed Apr 27, 2017 at 01:01 UTC 720ced12b936a789d08b85c53438d95bcbbc2a9a
2 files changed +41 -3
Rules.mk
+5 -3
@@ -105,12 +105,14 @@ install: cmd/ipfs-install
105 install_unsupported:
106 @echo "note: this command has yet to be tested to build in the system you are using"
107 @echo "installing gx"
108 - go get -u github.com/whyrusleeping/gx
109 - go get -u github.com/whyrusleeping/gx-go
108 + go get -v -u github.com/whyrusleeping/gx
109 + go get -v -u github.com/whyrusleeping/gx-go
110 + @echo check gx and gx-go
111 + gx -v && gx-go -v
112 @echo downloading dependencies
113 gx install --global
114 @echo "installing go-ipfs"
113 - go install ./cmd/ipfs
115 + go install -v -tags nofuse ./cmd/ipfs
116 .PHONY: install_unsupported
117
118 uninstall:
docs/openbsd.md new
+36
@@ -0,0 +1,36 @@
1 +# Building on OpenBSD
2 +
3 +## Prepare your system
4 +
5 +Make sure you have `git`, `go` and `gmake` installed on your system.
6 +
7 +```
8 +$ doas pkg_add -v git go gmake
9 +```
10 +
11 +## Prepare go environment
12 +
13 +Make sure your gopath is set:
14 +
15 +```
16 +$ export GOPATH=~/go
17 +$ echo "$GOPATH"
18 +$ export PATH="$PATH:$GOPATH/bin"
19 +```
20 +
21 +## Build
22 +
23 +The `install_unsupported` target works nicely for openbsd. This will install `gx`, `gx-go` and run `go install -tags nofuse ./cmd/ipfs`.
24 +
25 +```
26 +$ go get -v -u -d github.com/ipfs/go-ipfs
27 +
28 +$ cd $GOPATH/src/github.com/ipfs/go-ipfs
29 +$ gmake install_unsupported
30 +```
31 +
32 +if everything went well, your ipfs binary should be ready at `$GOPATH/bin/ipfs`.
33 +
34 +```
35 +$ ipfs version
36 +```