summaryrefslogtreecommitdiff
path: root/pkg/openbsd/gen.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-12-02 21:14:25 -0800
committerMichael Forney <mforney@mforney.org>2019-12-04 01:11:35 -0800
commit001f7af9b5ce4bd05487be8c93dcdaaad94c876e (patch)
tree30be3923e08aeee5ba7cf3375e2ba11c3328c48f /pkg/openbsd/gen.lua
parent0d1023ae1fbdc59f41269d0d05b8766870fb6767 (diff)
Build nc from openbsd sources instead of libressl
Diffstat (limited to 'pkg/openbsd/gen.lua')
-rw-r--r--pkg/openbsd/gen.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/openbsd/gen.lua b/pkg/openbsd/gen.lua
index 7d73c025..6a29e1b5 100644
--- a/pkg/openbsd/gen.lua
+++ b/pkg/openbsd/gen.lua
@@ -45,6 +45,18 @@ man{'usr.bin/doas/doas.1', 'usr.bin/doas/doas.conf.5'}
file('bin/fmt', '755', exe('fmt', {'usr.bin/fmt/fmt.c', 'libbsd.a'}))
man{'usr.bin/fmt/fmt.1'}
+-- nc
+sub('nc.ninja', function()
+ cflags{'-I $builddir/pkg/libressl/include'}
+ exe('nc', [[
+ usr.bin/nc/(netcat.c atomicio.c socks.c)
+ $builddir/pkg/libressl/libtls.a.d
+ libbsd.a
+ ]], {'pkg/libressl/headers'})
+ file('bin/nc', '755', '$outdir/nc')
+ man{'usr.bin/nc/nc.1'}
+end)
+
-- m4
yacc('usr.bin/m4/parser', 'usr.bin/m4/parser.y')
cc('usr.bin/m4/tokenizer.c', {'$outdir/usr.bin/m4/parser.tab.h'}, {cflags='$cflags -I $outdir/usr.bin/m4'})