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.asc
17 $ gpg --verify nncp-@value{VERSION}.tar.xz.asc 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{nncp-bundle} command can be get with
28 @command{info doc/nncp.info -n nncp-bundle}.
43 @file{config} file contains some environment variables that are
44 respected during installation:
59 There is @command{install} script for binaries and info-documentation
63 # PREFIX=/usr/local ./install
70 NNCP depends on @code{github.com/fsnotify/fsnotify} library, that solely
71 relies on OS-specific mechanisms. There is possibility that you have
72 either broken or unsupported ones. You can still build NNCP with
73 @code{-tags nofsnotify} build option, to skip @code{fsnotify} library
77 $ GO_CFLAGS="-tags nofsnotify" bin/build
81 You can also disable Yggdrasil support with @code{-tags noyggdrasil}.