]> Cypherpunks.ru repositories - nncp.git/blob - doc/building.texi
Merge branch 'develop' into master
[nncp.git] / doc / building.texi
1 @node Build-instructions
2 @section Build instructions
3
4 Make sure that Go is installed. For example to install it from packages:
5
6 @table @asis
7 @item FreeBSD
8     @verb{|pkg install go|}
9 @item Debian, Ubuntu
10     @verb{|apt install golang|}
11 @end table
12
13 @example
14 $ [fetch|wget] http://www.nncpgo.org/download/nncp-@value{VERSION}.tar.xz
15 $ [fetch|wget] http://www.nncpgo.org/download/nncp-@value{VERSION}.tar.xz.sig
16 $ gpg --verify nncp-@value{VERSION}.tar.xz.sig nncp-@value{VERSION}.tar.xz
17 $ xz --decompress --stdout nncp-@value{VERSION}.tar.xz | tar xf -
18 $ cd nncp-@value{VERSION}
19 $ redo all
20 @end example
21
22 It uses @url{http://cr.yp.to/redo.html, redo} build system for that
23 examples. You can use either dozen of various implementations, or at
24 least minimalistic POSIX shell @command{contrib/do} (just replace
25 @command{redo} with @command{contrib/do} in the example above) included
26 in tarball.
27
28 There is @command{install} make-target respecting @env{DESTDIR}. It will
29 install binaries and info-documentation:
30
31 @example
32 # PREFIX=/usr/local redo install
33 @end example