diff options
Diffstat (limited to 'pkg/wireguard-tools/gen.lua')
| -rw-r--r-- | pkg/wireguard-tools/gen.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkg/wireguard-tools/gen.lua b/pkg/wireguard-tools/gen.lua new file mode 100644 index 00000000..41608291 --- /dev/null +++ b/pkg/wireguard-tools/gen.lua @@ -0,0 +1,26 @@ +cflags{ + '-std=c99', '-Wall', + '-D _GNU_SOURCE', + [[-D 'RUNSTATEDIR="/run"']], +} + +exe('wg', [[ + src/( + config.c + curve25519.c + encoding.c + genkey.c + ipc.c + pubkey.c + set.c + setconf.c + show.c + showconf.c + terminal.c + wg.c + ) +]]) +file('bin/wg', '755', '$outdir/wg') +man{'src/man/wg.8'} + +fetch 'git' |
