X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=install.texi;h=0ef1621056b4c27a327bc9879c52b65ddfbeaa38;hb=d27ade88208cf35cce14cfad2b2d7e29b68d0761;hp=275e6ce4b91dcb487125bc2d32ec17bc8abbda9c;hpb=64de6edb651af872e417c7d882e97903fed3cdb7;p=gogost.git diff --git a/install.texi b/install.texi index 275e6ce..0ef1621 100644 --- a/install.texi +++ b/install.texi @@ -1,29 +1,35 @@ @node Download @unnumbered Download -@set VERSION 4.2.1 - Preferable way is to download tarball with the signature from website and, for example, run tests with benchmarks: @example -$ [fetch|wget] http://gogost.cypherpunks.ru/gogost-@value{VERSION}.tar.xz -$ [fetch|wget] http://gogost.cypherpunks.ru/gogost-@value{VERSION}.tar.xz.sig +$ [fetch|wget] http://www.gogost.cypherpunks.ru/gogost-@value{VERSION}.tar.xz +$ [fetch|wget] http://www.gogost.cypherpunks.ru/gogost-@value{VERSION}.tar.xz.sig $ gpg --verify gogost-@value{VERSION}.tar.xz.sig gogost-@value{VERSION}.tar.xz -$ xz -d < gogost-@value{VERSION}.tar.xz | tar xf - -$ make -C gogost-@value{VERSION} all bench -$ echo hello world | gogost-@value{VERSION}/streebog256 +$ xz --decompress --stdout gogost-@value{VERSION}.tar.xz | tar xf - +$ cd gogost-@value{VERSION} +$ redo all +$ echo hello world | ./streebog256 f72018189a5cfb803dbe1f2149cf554c40093d8e7f81c21e08ac5bcd09d9934d @end example +It uses @url{http://cr.yp.to/redo.html, redo} build system for that +examples. You can use either dozen of various implementations, or at +least minimalistic POSIX shell @command{contrib/do} (just replace +@command{redo} with @command{contrib/do} in the example above) included +in tarball. + +@include download.texi + And then you can include its source code in your project for example like this: @example -$ mkdir -p myproj/src -$ cp -r gogost-@value{VERSION}/src/go.cypherpunks.ru myproj/src -$ export GOPATH=$PWD/myproj -$ cd myproj/src +$ mkdir -p myproj/vendor/go.cypherpunks.ru/gogost +$ mv gogost-@value{VERSION} myproj/vendor/go.cypherpunks.ru/gogost/v5 +$ cd myproj $ cat > main.go < /home/stargrave/gogost-@value{VERSION}/src/go.cypherpunks.ru/gogost/v4 +require go.cypherpunks.ru/gogost/v5 v@value{VERSION} +replace go.cypherpunks.ru/gogost/v5 => /path/to/gogost-@value{VERSION} @end example You can obtain development source code with -@command{git clone git://git.cypherpunks.ru/gogost.git}. +@command{git clone git://git.cypherpunks.ru/gogost.git} +(also you can use @url{https://git.cypherpunks.ru/gogost.git}).