1 @node Build-instructions
3 @section Build instructions
5 Make sure that Go is installed. For example to install it from packages:
9 @verb{|pkg install go|}
11 @verb{|apt install golang|}
15 $ [fetch|wget] http://www.nncpgo.org/download/nncp-@value{VERSION}.tar.xz
16 $ [fetch|wget] http://www.nncpgo.org/download/nncp-@value{VERSION}.tar.xz.sig
17 $ gpg --verify nncp-@value{VERSION}.tar.xz.sig nncp-@value{VERSION}.tar.xz
18 $ xz --decompress --stdout nncp-@value{VERSION}.tar.xz | tar xf -
19 $ cd nncp-@value{VERSION}
24 After that you should get various @command{bin/nncp-*} binaries and
25 @command{bin/hjson-cli} command (only for your convenience, not
26 necessary installation). For example, documentation for
27 @command{@ref{nncp-bundle}} command can be get with
28 @command{info doc/nncp.info -n nncp-bundle}.
36 It uses @url{http://cr.yp.to/redo.html, redo} build system for that
37 examples. You can use one of its various implementations, or at least
38 minimalistic POSIX shell @command{contrib/do} (just replace
39 @command{redo} with @command{contrib/do} in the example above) included
40 in tarball. Following ones are tested to work with:
41 @url{http://www.goredo.cypherpunks.ru/, goredo} (NNCP's author creation),
42 @url{https://redo.readthedocs.io/, apenwarr/redo} (@code{contrib/do} is
43 from that project), @url{https://github.com/leahneukirchen/redo-c, redo-c},
44 @url{https://github.com/gotroyb127/baredo, baredo}.
59 @file{config} file contains some environment variables that are
60 respected during installation:
75 There is @command{install} target for binaries and info-documentation
79 # PREFIX=/usr/local redo install
86 NNCP depends on @code{github.com/fsnotify/fsnotify} library, that is
87 solely relies on OS-specific mechanisms. There is possibility that you
88 have either broken or unsupported ones. You can still build NNCP with
89 @code{-tags nofsnotify} build option, to skip @code{fsnotify} library
93 $ GO_CFLAGS="-tags nofsnotify" redo @dots{}
97 You can also disable Yggdrasil support with @code{-tags noyggdrasil}.