]> Cypherpunks.ru repositories - nncp.git/blob - doc/building.texi
Merge branch 'develop'
[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 # look for bin/nncp-* binaries (and possibly hjson-cli one)
21 @end example
22
23 It uses @url{http://cr.yp.to/redo.html, redo} build system for that
24 examples. You can use either dozen of various implementations, or at
25 least minimalistic POSIX shell @command{contrib/do} (just replace
26 @command{redo} with @command{contrib/do} in the example above) included
27 in tarball. Following ones are tested to work with:
28 @url{http://www.goredo.cypherpunks.ru/, goredo} (NNCP's author creation),
29 @url{https://redo.readthedocs.io/, apenwarr/redo} (@code{contrib/do} is
30 from that project), @url{https://github.com/leahneukirchen/redo-c, redo-c}.
31
32 There is @command{install} target respecting @env{DESTDIR}. It will
33 install binaries and info-documentation:
34
35 @example
36 # PREFIX=/usr/local redo install
37 @end example