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