4 # muon (a C reimplementation of the meson build system),
5 # samurai (a C reimplementation of the ninja build tool),
6 # and then use both to build tinc.
10 git_samurai=https://github.com/michaelforney/samurai
11 git_muon=https://git.sr.ht/~lattis/muon
15 echo >&2 '################################################################################'
17 echo >&2 '################################################################################'
20 header 'Try to make sure Python is missing'
21 python --version && exit 1
22 python3 --version && exit 1
24 header 'Fetch and build samurai'
26 git clone --depth=1 $git_samurai ~/samurai
32 header 'Fetch and build muon'
34 git clone --depth=1 $git_muon ~/muon
37 ./build/muon setup build
39 ./build/muon -C build install
42 header 'Setup build directory'
43 muon setup -D prefix=$prefix -D systemd=disabled build_muon
47 muon -C build_muon install
49 header 'Run smoke tests'
50 $prefix/sbin/tinc --version
51 $prefix/sbin/tincd --version
52 $prefix/sbin/tinc -c /tmp/muon_node <<EOF