chiark / gitweb /
Prep v238: Make a real distinction between 'halt' and 'poweroff'.
[elogind.git] / meson_options.txt
1 # -*- mode: meson -*-
2 # SPDX-License-Identifier: LGPL-2.1+
3 #
4 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
5 #
6 # elogind is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU Lesser General Public License as published by
8 # the Free Software Foundation; either version 2.1 of the License, or
9 # (at your option) any later version.
10 #
11 # elogind is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
15 #
16 # You should have received a copy of the GNU Lesser General Public License
17 # along with elogind; If not, see <http://www.gnu.org/licenses/>.
18
19 option('split-usr', type : 'combo', choices : ['auto', 'true', 'false'],
20        description : '''/bin, /sbin aren't symlinks into /usr''')
21 option('split-bin', type : 'combo', choices : ['auto', 'true', 'false'],
22        description : '''sbin is not a symlink to bin''')
23 option('rootlibdir', type : 'string',
24        description : '''[/usr]/lib/x86_64-linux-gnu or such''')
25 option('rootprefix', type : 'string',
26        description : '''override the root prefix''')
27 #if 0 /// UNNEEDED by elogind
28 # option('link-udev-shared', type : 'boolean',
29 #        description : 'link systemd-udev and its helpers to libsystemd-shared.so')
30 #
31 # option('sysvinit-path', type : 'string', value : '/etc/init.d',
32 #        description : 'the directory where the SysV init scripts are located')
33 # option('sysvrcnd-path', type : 'string', value : '/etc/rc.d',
34 #        description : 'the base directory for SysV rcN.d directories')
35 # option('telinit-path', type : 'string', value : '/lib/sysvinit/telinit',
36 #        description : 'path to telinit')
37 # option('rc-local', type : 'string',
38 #        value : '/etc/rc.local')
39 # option('halt-local', type : 'string',
40 #        value : '/usr/sbin/halt.local')
41 #
42 # option('quotaon-path', type : 'string', description : 'path to quotaon')
43 # option('quotacheck-path', type : 'string', description : 'path to quotacheck')
44 # option('kill-path', type : 'string', description : 'path to kill')
45 # option('kmod-path', type : 'string', description : 'path to kmod')
46 #else
47 # elogind must have a configurable rootlibexecdir
48 option('rootlibexecdir', type : 'string',
49        description : '''override the root libexec directory path''')
50
51 # And because elogind depends on external udev, it must be
52 # configurable as well.
53 option('udevrulesdir', type : 'string',
54        description : '''directory for udev rules files''')
55
56 option('udevbindir', type : 'string',
57        description : '''directory for udev binary files''')
58
59 # We are nice and make the documentation paths configurable
60 option('docdir', type : 'string', description : 'path where to install the documentation.')
61 option('htmldir', type : 'string', description : 'path where to install the HTML documentation.')
62
63 # We have no systemd-shutdown binary, so we need 'halt', 'reboot' and 'poweroff'
64 option('halt-path', type : 'string', description : 'path to halt')
65 option('poweroff-path', type : 'string', description : 'path to poweroff')
66 option('reboot-path', type : 'string', description : 'path to reboot')
67 #endif // 0
68 option('kexec-path', type : 'string', description : 'path to kexec')
69 #if 0 /// UNNEEDED by elogind
70 # option('sulogin-path', type : 'string', description : 'path to sulogin')
71 # option('mount-path', type : 'string', description : 'path to mount')
72 # option('umount-path', type : 'string', description : 'path to umount')
73 # option('loadkeys-path', type : 'string', description : 'path to loadkeys')
74 # option('setfont-path', type : 'string', description : 'path to setfont')
75 #
76 # option('debug-shell', type : 'string', value : '/bin/sh',
77 #        description : 'path to debug shell binary')
78 # option('debug-tty', type : 'string', value : '/dev/tty9',
79 #        description : 'specify the tty device for debug shell')
80 # option('debug', type : 'string',
81 #        description : 'enable extra debugging (hashmap,mmap-cache)')
82 # option('memory-accounting-default', type : 'boolean',
83 #        description : 'enable MemoryAccounting= by default')
84 #else
85 option('debug', type : 'string',
86        description : 'enable extra debugging (elogind,hashmap,mmap-cache)')
87 #endif // 0
88
89 option('utmp', type : 'boolean',
90        description : 'support for utmp/wtmp log handling')
91 #if 0 /// UNNEEDED by elogind
92 # option('hibernate', type : 'boolean',
93 #        description : 'support for hibernation')
94 # option('ldconfig', type : 'boolean',
95 #        description : 'support for dynamic linker cache creation')
96 # option('resolve', type : 'boolean',
97 #        description : 'systemd-resolved stack')
98 # option('efi', type : 'boolean',
99 #        description : 'enable systemd-boot and bootctl')
100 # option('tpm', type : 'boolean',
101 #        description : 'TPM should be used to log events and extend the registers')
102 # option('environment-d', type : 'boolean',
103 #        description : 'support for environment.d')
104 # option('binfmt', type : 'boolean',
105 #        description : 'support for custom binary formats')
106 # option('coredump', type : 'boolean',
107 #        description : 'install the coredump handler')
108 # option('logind', type : 'boolean',
109 #        description : 'install the systemd-logind stack')
110 # option('hostnamed', type : 'boolean',
111 #        description : 'install the systemd-hostnamed stack')
112 # option('localed', type : 'boolean',
113 #        description : 'install the systemd-localed stack')
114 # option('machined', type : 'boolean',
115 #        description : 'install the systemd-machined stack')
116 # option('networkd', type : 'boolean',
117 #        description : 'install the systemd-networkd stack')
118 # option('timedated', type : 'boolean',
119 #        description : 'install the systemd-timedated daemon')
120 # option('timesyncd', type : 'boolean',
121 #        description : 'install the systemd-timesyncd daemon')
122 # option('remote', type : 'combo', choices : ['auto', 'true', 'false'],
123 #        description : 'support for "journal over the network"')
124 # option('myhostname', type : 'boolean',
125 #        description : 'nss-myhostname support')
126 # option('firstboot', type : 'boolean',
127 #        description : 'support for firstboot mechanism')
128 # option('randomseed', type : 'boolean',
129 #        description : 'support for restoring random seed')
130 # option('backlight', type : 'boolean',
131 #        description : 'support for restoring backlight state')
132 # option('vconsole', type : 'boolean',
133 #        description : 'support for vconsole configuration')
134 # option('quotacheck', type : 'boolean',
135 #        description : 'support for the quotacheck tools')
136 # option('sysusers', type : 'boolean',
137 #        description : 'support for the sysusers configuration')
138 # option('tmpfiles', type : 'boolean',
139 #        description : 'support for tmpfiles.d')
140 # option('importd', type : 'combo', choices : ['auto', 'true', 'false'],
141 #        description : 'install the systemd-importd daemon')
142 # option('hwdb', type : 'boolean',
143 #        description : 'support for the hardware database')
144 # option('rfkill', type : 'boolean',
145 #        description : 'support for the rfkill tools')
146 #endif // 0
147 option('man', type : 'combo', choices : ['auto', 'true', 'false'],
148        description : 'build and install man pages')
149 option('html', type : 'combo', choices : ['auto', 'true', 'false'],
150        value : 'false',
151        description : 'build and install html pages')
152
153 #if 0 /// UNNEEDED by elogind
154 # option('certificate-root', type : 'string', value : '/etc/ssl',
155 #        description : 'the prefix for TLS certificates')
156 #endif // 0
157 option('dbuspolicydir', type : 'string',
158        description : 'D-Bus policy directory')
159 option('dbussessionservicedir', type : 'string',
160        description : 'D-Bus session service directory')
161 option('dbussystemservicedir', type : 'string',
162        description : 'D-Bus system service directory')
163 option('pkgconfigdatadir', type : 'string', value : 'share/pkgconfig',
164        description : 'directory for ')
165 option('pkgconfiglibdir', type : 'string', value : '',
166        description : 'directory for ')
167 #if 0 /// UNNEEDED by elogind
168 # option('rpmmacrosdir', type : 'string', value : 'lib/rpm/macros.d',
169 #        description : 'directory for rpm macros ["no" disables]')
170 #endif // 0
171 option('pamlibdir', type : 'string',
172        description : 'directory for PAM modules')
173 option('pamconfdir', type : 'string',
174        description : 'directory for PAM configuration ["no" disables]')
175 option('docdir', type : 'string',
176        description : 'documentation directory')
177
178 option('fallback-hostname', type : 'string', value : 'localhost',
179        description : 'the hostname used if none configured')
180 #if 0 /// UNNEEDED by elogind
181 # option('compat-gateway-hostname', type : 'boolean', value : 'false',
182 #        description : 'allow "gateway" as the symbolic name for default gateway')
183 #endif // 0
184 option('default-hierarchy', type : 'combo',
185        choices : ['legacy', 'hybrid', 'unified'], value : 'hybrid',
186 #if 0 /// elogind interprets this a bit different
187 #        description : 'default cgroup hierarchy')
188 # option('time-epoch', type : 'string',
189 #        description : 'time epoch for time clients')
190 #else
191        description : '''Wanted cgroup hierarchy if elogind has to be a cgroup controller:
192                 "legacy"  assumes cgroups version 1 mounted on /sys/fs/cgroup
193                 "hybrid"  assumes cgroups version 2 mounted on /sys/fs/cgroup/unified and
194                                   cgroups version 1 mounted on /sys/fs/cgroup.
195                 "unified" assumes cgroups version 2 on /sys/fs/cgroup''')
196 option('cgroup-controller', type : 'string',
197        description : 'Name of the cgroup controller to use')
198 #endif // 0
199 option('system-uid-max', type : 'string',
200        description : 'maximum system UID')
201 option('system-gid-max', type : 'string',
202        description : 'maximum system GID')
203 #if 0 /// UNNEEDED by elogind
204 # option('dynamic-uid-min', type : 'string',
205 #        description : 'minimum dynamic UID',
206 #        value : '61184') # That's → 0x0000EF00 in hex
207 # option('dynamic-uid-max', type : 'string',
208 #        description : 'maximum dynamic UID',
209 #        value : '65519') # That's → 0x0000FFEF in hex
210 # option('container-uid-base-min', type : 'string',
211 #        description : 'minimum container UID base',
212 #        value : '524288') # That's → 0x00080000 in hex
213 # option('container-uid-base-max', type : 'string',
214 #        description : 'maximum container UID base',
215 #        value : '1878982656') # That's → 0x6FFF0000 in hex
216 #endif // 0
217 option('tty-gid', type : 'string',
218        description : 'the numeric GID of the "tty" group',
219        value : '5')
220 #if 0 /// UNNEEDED by elogind
221 # option('users-gid', type : 'string',
222 #        description : 'the numeric GID of the "users" group')
223 # option('adm-group', type : 'boolean',
224 #        description : 'the ACL for adm group should be added')
225 # option('wheel-group', type : 'boolean',
226 #        description : 'the ACL for wheel group should be added')
227 #endif // 0
228 option('nobody-user', type : 'string',
229        description : 'The name of the nobody user (the one with UID 65534)',
230        value : 'nobody')
231 option('nobody-group', type : 'string',
232        description : 'The name of the nobody group (the one with GID 65534)',
233        value : 'nobody')
234 #if 0 /// UNNEEDED by elogind
235 # option('dev-kvm-mode', type : 'string', value : '0666',
236 #        description : '/dev/kvm access mode')
237 # option('group-render-mode', type : 'string', value : '0666',
238 #        description : 'Access mode for devices owned by render group (e.g. /dev/dri/renderD*, /dev/kfd).')
239 #endif // 0
240 option('default-kill-user-processes', type : 'boolean',
241        description : 'the default value for KillUserProcesses= setting')
242 option('gshadow', type : 'boolean',
243        description : 'support for shadow group')
244
245 #if 0 /// UNNEEDED by elogind
246 # option('default-dnssec', type : 'combo',
247 #        description : 'default DNSSEC mode',
248 #        choices : ['yes', 'allow-downgrade', 'no'],
249 #        value : 'allow-downgrade')
250 # option('dns-servers', type : 'string',
251 #        description : 'space-separated list of default DNS servers',
252 #        value : '8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844')
253 # option('ntp-servers', type : 'string',
254 #        description : 'space-separated list of default NTP servers',
255 #        value : 'time1.google.com time2.google.com time3.google.com time4.google.com')
256 # option('support-url', type : 'string',
257 #        description : 'the support URL to show in catalog entries included in systemd',
258 #        value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
259 # option('www-target', type : 'string',
260 #        description : 'the address and dir to upload docs too',
261 #        value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
262 #
263 # option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
264 #        description : 'SECCOMP support')
265 #endif // 0
266 option('selinux', type : 'combo', choices : ['auto', 'true', 'false'],
267        description : 'SELinux support')
268 #if 0 /// UNNEEDED by elogind
269 # option('apparmor', type : 'combo', choices : ['auto', 'true', 'false'],
270 #        description : 'AppArmor support')
271 #endif // 0
272 option('smack', type : 'boolean',
273        description : 'SMACK support')
274 option('smack-run-label', type : 'string',
275        description : 'run systemd --system itself with a specific SMACK label')
276 option('polkit', type : 'combo', choices : ['auto', 'true', 'false'],
277        description : 'PolicyKit support')
278 option('ima', type : 'boolean',
279        description : 'IMA support')
280
281 option('acl', type : 'combo', choices : ['auto', 'true', 'false'],
282        description : 'libacl support')
283 option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
284        description : 'libaudit support')
285 #if 0 /// UNNEEDED by elogind
286 # option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],
287 #        description : 'libblkid support')
288 # option('kmod', type : 'combo', choices : ['auto', 'true', 'false'],
289 #        description : 'support for loadable modules')
290 #endif // 0
291 option('pam', type : 'combo', choices : ['auto', 'true', 'false'],
292        description : 'PAM support')
293 #if 0 /// UNNEEDED by elogind
294 # option('microhttpd', type : 'combo', choices : ['auto', 'true', 'false'],
295 #        description : 'libµhttpd support')
296 # option('libcryptsetup', type : 'combo', choices : ['auto', 'true', 'false'],
297 #        description : 'libcryptsetup support')
298 # option('libcurl', type : 'combo', choices : ['auto', 'true', 'false'],
299 #        description : 'libcurl support')
300 # option('idn', type : 'boolean',
301 #        description : 'use IDN when printing host names')
302 # option('libidn2', type : 'combo', choices : ['auto', 'true', 'false'],
303 #        description : 'libidn2 support')
304 # option('libidn', type : 'combo', choices : ['auto', 'true', 'false'],
305 #        description : 'libidn support')
306 # option('nss-systemd', type : 'boolean',
307 #        description : 'enable nss-systemd')
308 # option('libiptc', type : 'combo', choices : ['auto', 'true', 'false'],
309 #        description : 'libiptc support')
310 # option('qrencode', type : 'combo', choices : ['auto', 'true', 'false'],
311 #        description : 'libqrencode support')
312 # option('gcrypt', type : 'combo', choices : ['auto', 'true', 'false'],
313 #        description : 'gcrypt support')
314 # option('gnutls', type : 'combo', choices : ['auto', 'true', 'false'],
315 #        description : 'gnutls support')
316 # option('elfutils', type : 'combo', choices : ['auto', 'true', 'false'],
317 #        description : 'elfutils support')
318 # option('zlib', type : 'combo', choices : ['auto', 'true', 'false'],
319 #        description : 'zlib compression support')
320 # option('bzip2', type : 'combo', choices : ['auto', 'true', 'false'],
321 #        description : 'bzip2 compression support')
322 # option('xz', type : 'combo', choices : ['auto', 'true', 'false'],
323 #        description : 'xz compression support')
324 # option('lz4', type : 'combo', choices : ['auto', 'true', 'false'],
325 #        description : 'lz4 compression support')
326 # option('xkbcommon', type : 'combo', choices : ['auto', 'true', 'false'],
327 #        description : 'xkbcommon keymap support')
328 #endif // 0
329 option('pcre2', type : 'combo', choices : ['auto', 'true', 'false'],
330        description : 'regexp matching support using pcre2')
331 option('glib', type : 'combo', choices : ['auto', 'true', 'false'],
332        description : 'libglib support (for tests only)')
333 option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
334        description : 'libdbus support (for tests only)')
335
336 #if 0 /// UNNEEDED BY elogind
337 # option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
338 #        description : 'gnu-efi support for sd-boot')
339 # option('efi-cc', type : 'string', value : 'gcc',
340 #        description : 'the compiler to use for EFI modules')
341 # option('efi-ld', type : 'string', value : 'ld',
342 #        description : 'the linker to use for EFI modules')
343 # option('efi-libdir', type : 'string',
344 #        description : 'path to the EFI lib directory')
345 # option('efi-ldsdir', type : 'string',
346 #        description : 'path to the EFI lds directory')
347 # option('efi-includedir', type : 'string', value : '/usr/include/efi',
348 #        description : 'path to the EFI header directory')
349 # option('tpm-pcrindex', type : 'string', value : '8',
350 #        description : 'TPM PCR register number to use')
351 #endif // 0
352
353 option('bashcompletiondir', type : 'string',
354        description : 'directory for bash completion scripts ["no" disables]')
355 option('zshcompletiondir', type : 'string',
356        description : 'directory for zsh completion scripts ["no" disables]')
357
358 option('tests', type : 'combo', choices : ['true', 'unsafe', 'false'],
359        description : 'enable extra tests with =unsafe')
360 option('slow-tests', type : 'boolean', value : 'false',
361        description : 'run the slow tests by default')
362 option('install-tests', type : 'boolean', value : 'false',
363        description : 'install test executables')
364
365 option('ok-color', type: 'combo',
366        choices : ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan',
367                   'white', 'highlight-black', 'highlight-red', 'highlight-green',
368                   'highlight-yellow', 'highlight-blue', 'highlight-magenta',
369                   'highlight-cyan', 'highlight-white'],
370        value : 'green',
371        description: 'color of the "OK" status message')
372
373 #if 0 /// fuzz regression tests are not supported by elogind
374 # option('oss-fuzz', type : 'boolean', value : 'false',
375 #        description : 'build against oss-fuzz')
376 # option('llvm-fuzz', type : 'boolean', value : 'false',
377 #        description : 'build against LLVM libFuzzer')
378 #endif // 0