Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/dns/bind9-devel/files/patch-meson.build
28229 views
1
Use bind-tools option to ease the server/tools package split
2
3
--- meson.build.orig 2026-02-04 14:54:40 UTC
4
+++ meson.build
5
@@ -72,6 +72,8 @@ zlib_opt = get_option('zlib').enable_auto_if(developer
6
tracing_opt = get_option('tracing')
7
zlib_opt = get_option('zlib').enable_auto_if(developer_mode)
8
9
+bind_tools = get_option('bind-tools').enabled()
10
+
11
build_options = meson.build_options()
12
if build_options == ''
13
build_options = 'default'
14
@@ -1306,6 +1308,7 @@ libisccfg_dep = declare_dependency(
15
include_directories: isccfg_inc,
16
)
17
18
+if bind_tools
19
executable(
20
'arpaname',
21
arpaname_src,
22
@@ -1518,7 +1521,9 @@ executable(
23
libisc_dep,
24
],
25
)
26
+endif
27
28
+if not bind_tools
29
executable(
30
'named-checkconf',
31
named_checkconf_src,
32
@@ -1593,7 +1598,9 @@ endif
33
],
34
)
35
endif
36
+endif
37
38
+if bind_tools
39
executable(
40
'named-rrchecker',
41
named_rrchecker_src,
42
@@ -1606,6 +1613,7 @@ executable(
43
],
44
45
)
46
+endif
47
48
named_deps = []
49
50
@@ -1643,6 +1651,7 @@ named_srcconf = named_srcset.apply(config, strict: fal
51
52
named_srcconf = named_srcset.apply(config, strict: false)
53
54
+if not bind_tools
55
executable(
56
'named',
57
named_srcconf.sources(),
58
@@ -1670,7 +1679,9 @@ executable(
59
named_srcconf.dependencies(),
60
],
61
)
62
+endif
63
64
+if bind_tools
65
executable(
66
'nsec3hash',
67
nsec3hash_src,
68
@@ -1715,7 +1726,9 @@ executable(
69
edit_dep,
70
],
71
)
72
+endif
73
74
+if not bind_tools
75
executable(
76
'rndc-confgen',
77
rndc_confgen_src,
78
@@ -1810,6 +1823,7 @@ shared_library(
79
libns_dep,
80
],
81
)
82
+endif
83
84
subdir('doc')
85
subdir('tests')
86
@@ -1886,7 +1900,6 @@ print(release_date, end="")
87
print(release_date, end="")
88
'''
89
90
-if doc_opt.allowed()
91
release_date = ''
92
if python.found()
93
release_date = run_command(python, ['-c', get_release_date], check: true).stdout()
94
@@ -1907,6 +1920,7 @@ if doc_opt.allowed()
95
96
install_man(man_pages)
97
98
+if doc_opt.allowed()
99
if sphinx_build.found()
100
alias_target('doc-misc', doc_misc_targets)
101
102
103