]> git.ipfire.org Git - thirdparty/systemd.git/blob - meson_options.txt
Merge pull request #9016 from yuwata/fix-policy
[thirdparty/systemd.git] / meson_options.txt
1 # -*- mode: meson -*-
2 # SPDX-License-Identifier: LGPL-2.1+
3 #
4 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
5
6 option('split-usr', type : 'combo', choices : ['auto', 'true', 'false'],
7 description : '''/bin, /sbin aren't symlinks into /usr''')
8 option('split-bin', type : 'combo', choices : ['auto', 'true', 'false'],
9 description : '''sbin is not a symlink to bin''')
10 option('rootlibdir', type : 'string',
11 description : '''[/usr]/lib/x86_64-linux-gnu or such''')
12 option('rootprefix', type : 'string',
13 description : '''override the root prefix''')
14 option('link-udev-shared', type : 'boolean',
15 description : 'link systemd-udev and its helpers to libsystemd-shared.so')
16 option('static-libsystemd', type : 'combo',
17 choices : ['false', 'true', 'pic', 'no-pic'],
18 description : '''install a static library for libsystemd''')
19 option('static-libudev', type : 'combo',
20 choices : ['false', 'true', 'pic', 'no-pic'],
21 description : '''install a static library for libudev''')
22
23 option('sysvinit-path', type : 'string', value : '/etc/init.d',
24 description : 'the directory where the SysV init scripts are located')
25 option('sysvrcnd-path', type : 'string', value : '/etc/rc.d',
26 description : 'the base directory for SysV rcN.d directories')
27 option('telinit-path', type : 'string', value : '/lib/sysvinit/telinit',
28 description : 'path to telinit')
29 option('rc-local', type : 'string',
30 value : '/etc/rc.local')
31 option('halt-local', type : 'string',
32 value : '/usr/sbin/halt.local')
33
34 option('quotaon-path', type : 'string', description : 'path to quotaon')
35 option('quotacheck-path', type : 'string', description : 'path to quotacheck')
36 option('kill-path', type : 'string', description : 'path to kill')
37 option('kmod-path', type : 'string', description : 'path to kmod')
38 option('kexec-path', type : 'string', description : 'path to kexec')
39 option('sulogin-path', type : 'string', description : 'path to sulogin')
40 option('mount-path', type : 'string', description : 'path to mount')
41 option('umount-path', type : 'string', description : 'path to umount')
42 option('loadkeys-path', type : 'string', description : 'path to loadkeys')
43 option('setfont-path', type : 'string', description : 'path to setfont')
44
45 option('debug-shell', type : 'string', value : '/bin/sh',
46 description : 'path to debug shell binary')
47 option('debug-tty', type : 'string', value : '/dev/tty9',
48 description : 'specify the tty device for debug shell')
49 option('debug', type : 'array', choices : ['hashmap', 'mmap-cache'], value : [],
50 description : 'enable extra debugging')
51 option('memory-accounting-default', type : 'boolean',
52 description : 'enable MemoryAccounting= by default')
53 option('valgrind', type : 'boolean', value : false,
54 description : 'do extra operations to avoid valgrind warnings')
55
56 option('utmp', type : 'boolean',
57 description : 'support for utmp/wtmp log handling')
58 option('hibernate', type : 'boolean',
59 description : 'support for hibernation')
60 option('ldconfig', type : 'boolean',
61 description : 'support for dynamic linker cache creation')
62 option('resolve', type : 'boolean',
63 description : 'systemd-resolved stack')
64 option('efi', type : 'boolean',
65 description : 'enable systemd-boot and bootctl')
66 option('tpm', type : 'boolean',
67 description : 'TPM should be used to log events and extend the registers')
68 option('environment-d', type : 'boolean',
69 description : 'support for environment.d')
70 option('binfmt', type : 'boolean',
71 description : 'support for custom binary formats')
72 option('coredump', type : 'boolean',
73 description : 'install the coredump handler')
74 option('logind', type : 'boolean',
75 description : 'install the systemd-logind stack')
76 option('hostnamed', type : 'boolean',
77 description : 'install the systemd-hostnamed stack')
78 option('localed', type : 'boolean',
79 description : 'install the systemd-localed stack')
80 option('machined', type : 'boolean',
81 description : 'install the systemd-machined stack')
82 option('networkd', type : 'boolean',
83 description : 'install the systemd-networkd stack')
84 option('timedated', type : 'boolean',
85 description : 'install the systemd-timedated daemon')
86 option('timesyncd', type : 'boolean',
87 description : 'install the systemd-timesyncd daemon')
88 option('remote', type : 'combo', choices : ['auto', 'true', 'false'],
89 description : 'support for "journal over the network"')
90 option('myhostname', type : 'boolean',
91 description : 'nss-myhostname support')
92 option('firstboot', type : 'boolean',
93 description : 'support for firstboot mechanism')
94 option('randomseed', type : 'boolean',
95 description : 'support for restoring random seed')
96 option('backlight', type : 'boolean',
97 description : 'support for restoring backlight state')
98 option('vconsole', type : 'boolean',
99 description : 'support for vconsole configuration')
100 option('quotacheck', type : 'boolean',
101 description : 'support for the quotacheck tools')
102 option('sysusers', type : 'boolean',
103 description : 'support for the sysusers configuration')
104 option('tmpfiles', type : 'boolean',
105 description : 'support for tmpfiles.d')
106 option('importd', type : 'combo', choices : ['auto', 'true', 'false'],
107 description : 'install the systemd-importd daemon')
108 option('hwdb', type : 'boolean',
109 description : 'support for the hardware database')
110 option('rfkill', type : 'boolean',
111 description : 'support for the rfkill tools')
112 option('man', type : 'combo', choices : ['auto', 'true', 'false'],
113 description : 'build and install man pages')
114 option('html', type : 'combo', choices : ['auto', 'true', 'false'],
115 value : 'false',
116 description : 'build and install html pages')
117
118 option('certificate-root', type : 'string', value : '/etc/ssl',
119 description : 'the prefix for TLS certificates')
120 option('dbuspolicydir', type : 'string',
121 description : 'D-Bus policy directory')
122 option('dbussessionservicedir', type : 'string',
123 description : 'D-Bus session service directory')
124 option('dbussystemservicedir', type : 'string',
125 description : 'D-Bus system service directory')
126 option('pkgconfigdatadir', type : 'string', value : 'share/pkgconfig',
127 description : 'directory for ')
128 option('pkgconfiglibdir', type : 'string', value : '',
129 description : 'directory for ')
130 option('rpmmacrosdir', type : 'string', value : 'lib/rpm/macros.d',
131 description : 'directory for rpm macros ["no" disables]')
132 option('pamlibdir', type : 'string',
133 description : 'directory for PAM modules')
134 option('pamconfdir', type : 'string',
135 description : 'directory for PAM configuration ["no" disables]')
136 option('docdir', type : 'string',
137 description : 'documentation directory')
138
139 option('fallback-hostname', type : 'string', value : 'localhost',
140 description : 'the hostname used if none configured')
141 option('compat-gateway-hostname', type : 'boolean', value : 'false',
142 description : 'allow "gateway" as the symbolic name for default gateway')
143 option('default-hierarchy', type : 'combo',
144 choices : ['legacy', 'hybrid', 'unified'], value : 'hybrid',
145 description : 'default cgroup hierarchy')
146 option('time-epoch', type : 'string',
147 description : 'time epoch for time clients')
148 option('system-uid-max', type : 'string',
149 description : 'maximum system UID')
150 option('system-gid-max', type : 'string',
151 description : 'maximum system GID')
152 option('dynamic-uid-min', type : 'string',
153 description : 'minimum dynamic UID',
154 value : '61184') # That's → 0x0000EF00 in hex
155 option('dynamic-uid-max', type : 'string',
156 description : 'maximum dynamic UID',
157 value : '65519') # That's → 0x0000FFEF in hex
158 option('container-uid-base-min', type : 'string',
159 description : 'minimum container UID base',
160 value : '524288') # That's → 0x00080000 in hex
161 option('container-uid-base-max', type : 'string',
162 description : 'maximum container UID base',
163 value : '1878982656') # That's → 0x6FFF0000 in hex
164 option('tty-gid', type : 'string',
165 description : 'the numeric GID of the "tty" group',
166 value : '5')
167 option('users-gid', type : 'string',
168 description : 'the numeric GID of the "users" group')
169 option('adm-group', type : 'boolean',
170 description : 'the ACL for adm group should be added')
171 option('wheel-group', type : 'boolean',
172 description : 'the ACL for wheel group should be added')
173 option('nobody-user', type : 'string',
174 description : 'The name of the nobody user (the one with UID 65534)',
175 value : 'nobody')
176 option('nobody-group', type : 'string',
177 description : 'The name of the nobody group (the one with GID 65534)',
178 value : 'nobody')
179 option('dev-kvm-mode', type : 'string', value : '0666',
180 description : '/dev/kvm access mode')
181 option('group-render-mode', type : 'string', value : '0666',
182 description : 'Access mode for devices owned by render group (e.g. /dev/dri/renderD*, /dev/kfd).')
183 option('default-kill-user-processes', type : 'boolean',
184 description : 'the default value for KillUserProcesses= setting')
185 option('gshadow', type : 'boolean',
186 description : 'support for shadow group')
187
188 option('default-dnssec', type : 'combo',
189 description : 'default DNSSEC mode',
190 choices : ['yes', 'allow-downgrade', 'no'],
191 value : 'allow-downgrade')
192 option('dns-servers', type : 'string',
193 description : 'space-separated list of default DNS servers',
194 value : '8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844')
195 option('ntp-servers', type : 'string',
196 description : 'space-separated list of default NTP servers',
197 value : 'time1.google.com time2.google.com time3.google.com time4.google.com')
198 option('support-url', type : 'string',
199 description : 'the support URL to show in catalog entries included in systemd',
200 value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
201 option('www-target', type : 'string',
202 description : 'the address and dir to upload docs too',
203 value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
204
205 option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
206 description : 'SECCOMP support')
207 option('selinux', type : 'combo', choices : ['auto', 'true', 'false'],
208 description : 'SELinux support')
209 option('apparmor', type : 'combo', choices : ['auto', 'true', 'false'],
210 description : 'AppArmor support')
211 option('smack', type : 'boolean',
212 description : 'SMACK support')
213 option('smack-run-label', type : 'string',
214 description : 'run systemd --system itself with a specific SMACK label')
215 option('polkit', type : 'combo', choices : ['auto', 'true', 'false'],
216 description : 'PolicyKit support')
217 option('ima', type : 'boolean',
218 description : 'IMA support')
219
220 option('acl', type : 'combo', choices : ['auto', 'true', 'false'],
221 description : 'libacl support')
222 option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
223 description : 'libaudit support')
224 option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],
225 description : 'libblkid support')
226 option('kmod', type : 'combo', choices : ['auto', 'true', 'false'],
227 description : 'support for loadable modules')
228 option('pam', type : 'combo', choices : ['auto', 'true', 'false'],
229 description : 'PAM support')
230 option('microhttpd', type : 'combo', choices : ['auto', 'true', 'false'],
231 description : 'libµhttpd support')
232 option('libcryptsetup', type : 'combo', choices : ['auto', 'true', 'false'],
233 description : 'libcryptsetup support')
234 option('libcurl', type : 'combo', choices : ['auto', 'true', 'false'],
235 description : 'libcurl support')
236 option('idn', type : 'boolean',
237 description : 'use IDN when printing host names')
238 option('libidn2', type : 'combo', choices : ['auto', 'true', 'false'],
239 description : 'libidn2 support')
240 option('libidn', type : 'combo', choices : ['auto', 'true', 'false'],
241 description : 'libidn support')
242 option('nss-systemd', type : 'boolean',
243 description : 'enable nss-systemd')
244 option('libiptc', type : 'combo', choices : ['auto', 'true', 'false'],
245 description : 'libiptc support')
246 option('qrencode', type : 'combo', choices : ['auto', 'true', 'false'],
247 description : 'libqrencode support')
248 option('gcrypt', type : 'combo', choices : ['auto', 'true', 'false'],
249 description : 'gcrypt support')
250 option('gnutls', type : 'combo', choices : ['auto', 'true', 'false'],
251 description : 'gnutls support')
252 option('elfutils', type : 'combo', choices : ['auto', 'true', 'false'],
253 description : 'elfutils support')
254 option('zlib', type : 'combo', choices : ['auto', 'true', 'false'],
255 description : 'zlib compression support')
256 option('bzip2', type : 'combo', choices : ['auto', 'true', 'false'],
257 description : 'bzip2 compression support')
258 option('xz', type : 'combo', choices : ['auto', 'true', 'false'],
259 description : 'xz compression support')
260 option('lz4', type : 'combo', choices : ['auto', 'true', 'false'],
261 description : 'lz4 compression support')
262 option('xkbcommon', type : 'combo', choices : ['auto', 'true', 'false'],
263 description : 'xkbcommon keymap support')
264 option('pcre2', type : 'combo', choices : ['auto', 'true', 'false'],
265 description : 'regexp matching support using pcre2')
266 option('glib', type : 'combo', choices : ['auto', 'true', 'false'],
267 description : 'libglib support (for tests only)')
268 option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
269 description : 'libdbus support (for tests only)')
270
271 option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
272 description : 'gnu-efi support for sd-boot')
273 option('efi-cc', type : 'string', value : 'gcc',
274 description : 'the compiler to use for EFI modules')
275 option('efi-ld', type : 'string', value : 'ld',
276 description : 'the linker to use for EFI modules')
277 option('efi-libdir', type : 'string',
278 description : 'path to the EFI lib directory')
279 option('efi-ldsdir', type : 'string',
280 description : 'path to the EFI lds directory')
281 option('efi-includedir', type : 'string', value : '/usr/include/efi',
282 description : 'path to the EFI header directory')
283 option('tpm-pcrindex', type : 'string', value : '8',
284 description : 'TPM PCR register number to use')
285
286 option('bashcompletiondir', type : 'string',
287 description : 'directory for bash completion scripts ["no" disables]')
288 option('zshcompletiondir', type : 'string',
289 description : 'directory for zsh completion scripts ["no" disables]')
290
291 option('tests', type : 'combo', choices : ['true', 'unsafe', 'false'],
292 description : 'enable extra tests with =unsafe')
293 option('slow-tests', type : 'boolean', value : 'false',
294 description : 'run the slow tests by default')
295 option('install-tests', type : 'boolean', value : 'false',
296 description : 'install test executables')
297
298 option('ok-color', type: 'combo',
299 choices : ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan',
300 'white', 'highlight-black', 'highlight-red', 'highlight-green',
301 'highlight-yellow', 'highlight-blue', 'highlight-magenta',
302 'highlight-cyan', 'highlight-white'],
303 value : 'green',
304 description: 'color of the "OK" status message')
305
306 option('oss-fuzz', type : 'boolean', value : 'false',
307 description : 'build against oss-fuzz')
308 option('llvm-fuzz', type : 'boolean', value : 'false',
309 description : 'build against LLVM libFuzzer')