summaryrefslogtreecommitdiff
path: root/pkg/openntpd/gen.lua
blob: fd7d196d302e1d0c0080d0b5cb83bcd14eb99358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
cflags{
	'-D _GNU_SOURCE',
	'-include $dir/config.h',
	'-I $srcdir/src',
	'-I $srcdir/include',
	'-I pkg/openbsd/include',
	'-I $builddir/pkg/libtls-bearssl/include',
}

pkg.deps = {
	'pkg/libtls-bearssl/headers',
}

yacc('parse', '$srcdir/src/parse.y')
exe('ntpd', [[
	src/(
		client.c
		config.c
		constraint.c
		control.c
		fake-sensors.c
		log.c
		ntp.c
		ntp_dns.c
		ntp_msg.c
		ntpd.c
		server.c
		util.c
	)
	compat/(
		adjfreq_linux.c
		closefrom.c
		freezero.c
		imsg.c
		imsg-buffer.c
		md5.c
		progname.c
		setproctitle.c
	)
	$outdir/parse.tab.c
	$builddir/pkg/libtls-bearssl/libtls.a.d
	$builddir/pkg/openbsd/libbsd.a
]])
file('bin/ntpd', '755', '$outdir/ntpd')
sym('bin/ntpctl', 'ntpd')
man{'src/ntpd.conf.5', 'src/ntpd.8', 'src/ntpctl.8'}

fetch 'curl'