From: Sergey Matveev Date: Fri, 13 Mar 2015 10:22:03 +0000 (+0300) Subject: Notes about setting GOPATH variable X-Git-Tag: 2.1^2~1 X-Git-Url: http://www.git.cypherpunks.ru/?p=govpn.git;a=commitdiff_plain;h=fa02d349c3c65e413d6112e7ff0493fe0ec4686d Notes about setting GOPATH variable Signed-off-by: Sergey Matveev --- diff --git a/INSTALL b/INSTALL index c1f1dc3..f2be0e6 100644 --- a/INSTALL +++ b/INSTALL @@ -1,5 +1,5 @@ GoVPN is a program written on Go programming language. If you have set -up $GOPATH environment, then simple "make all" should build govpn-client -and govpn-server executable binaries. +up $GOPATH environment properly, then simple "make all" should build +govpn-client and govpn-server executable binaries. -For usage documentation see either doc/govpn.info or doc/govpn.texi. +For details see either doc/govpn.info or doc/govpn.texi. diff --git a/doc/govpn.texi b/doc/govpn.texi index e454198..9c53ba5 100644 --- a/doc/govpn.texi +++ b/doc/govpn.texi @@ -129,9 +129,26 @@ are provided below, but be sure that you are reading them from the trusted source. Alternatively check this page from other sources and look for the mailing list announcements. -You have to set up @code{$GOPATH} properly first. After that you can -just type @code{make} and all necessary Go libraries will be installed -and client/server binaries are built in the current directory. +You have to set up @code{$GOPATH} properly first. For example you can +clone the repository or decompress tarball and set path like this: + +@example +% mkdir -p govpn/src +% git clone https://github.com/stargrave/govpn govpn/src/govpn +or +% tar xfC govpn-1.5.tar.xz govpn/src && mv govpn/src/govpn-1.5 govpn/src/govpn +% export GOPATH=$(pwd)/govpn:$GOPATH +@end example + +After that you can just type @code{make} and all necessary Go libraries +will be installed and client/server binaries are built in the current +directory: + +@example +% cd govpn/src/govpn +% make +[or gmake under FreeBSD] +@end example @include pubkey.texi