2 # SPDX-License-Identifier: LGPL-2.1+
4 option('split-usr', type : 'combo', choices : ['auto', 'true', 'false'],
5 description : '''/bin, /sbin aren't symlinks into /usr''')
6 option('split-bin', type : 'combo', choices : ['auto', 'true', 'false'],
7 description : '''sbin is not a symlink to bin''')
8 option('rootlibdir', type : 'string',
9 description : '''[/usr]/lib/x86_64-linux-gnu or such''')
10 option('rootprefix', type : 'string',
11 description : '''override the root prefix''')
12 #if 0 /// UNNEEDED by elogind
13 # option('link-udev-shared', type : 'boolean',
14 # description : 'link systemd-udev and its helpers to libsystemd-shared.so')
15 # option('link-systemctl-shared', type: 'boolean',
16 # description : 'link systemctl against libsystemd-shared.so')
18 option('static-libelogind', type : 'combo',
19 choices : ['false', 'true', 'pic', 'no-pic'],
20 description : '''install a static library for libelogind''')
21 #if 0 /// UNNEEDED by elogind
22 # option('static-libudev', type : 'combo',
23 # choices : ['false', 'true', 'pic', 'no-pic'],
24 # description : '''install a static library for libudev''')
26 # option('sysvinit-path', type : 'string', value : '/etc/init.d',
27 # description : 'the directory where the SysV init scripts are located')
28 # option('sysvrcnd-path', type : 'string', value : '/etc/rc.d',
29 # description : 'the base directory for SysV rcN.d directories')
30 # option('telinit-path', type : 'string', value : '/lib/sysvinit/telinit',
31 # description : 'path to telinit')
32 # option('rc-local', type : 'string',
33 # value : '/etc/rc.local')
34 # option('halt-local', type : 'string',
35 # value : '/usr/sbin/halt.local')
37 # option('quotaon-path', type : 'string', description : 'path to quotaon')
38 # option('quotacheck-path', type : 'string', description : 'path to quotacheck')
39 # option('kill-path', type : 'string', description : 'path to kill')
40 # option('kmod-path', type : 'string', description : 'path to kmod')
42 # elogind must have a configurable rootlibexecdir
43 option('rootlibexecdir', type : 'string',
44 description : '''override the root libexec directory path''')
46 # And because elogind depends on external udev, it must be
47 # configurable as well.
48 option('udevrulesdir', type : 'string',
49 description : '''directory for udev rules files''')
51 option('udevbindir', type : 'string',
52 description : '''directory for udev binary files''')
54 # We are nice and make the documentation paths configurable
55 option('docdir', type : 'string', description : 'path where to install the documentation.')
56 option('htmldir', type : 'string', description : 'path where to install the HTML documentation.')
58 # We have no systemd-shutdown binary, so we need 'halt', 'reboot' and 'poweroff'
59 option('halt-path', type : 'string', description : 'path to halt')
60 option('poweroff-path', type : 'string', description : 'path to poweroff')
61 option('reboot-path', type : 'string', description : 'path to reboot')
63 option('kexec-path', type : 'string', description : 'path to kexec')
64 #if 0 /// UNNEEDED by elogind
65 # option('sulogin-path', type : 'string', description : 'path to sulogin')
66 # option('mount-path', type : 'string', description : 'path to mount')
67 # option('umount-path', type : 'string', description : 'path to umount')
68 # option('loadkeys-path', type : 'string', description : 'path to loadkeys')
69 # option('setfont-path', type : 'string', description : 'path to setfont')
71 # option('debug-shell', type : 'string', value : '/bin/sh',
72 # description : 'path to debug shell binary')
73 # option('debug-tty', type : 'string', value : '/dev/tty9',
74 # description : 'specify the tty device for debug shell')
75 # option('debug', type : 'array', choices : ['hashmap', 'mmap-cache'], value : [],
76 # description : 'enable extra debugging')
77 # option('memory-accounting-default', type : 'boolean',
78 # description : 'enable MemoryAccounting= by default')
80 option('valgrind', type : 'boolean', value : false,
81 description : 'do extra operations to avoid valgrind warnings')
82 #if 1 /// Add an extra debugging option for elogind
83 option('debug', type : 'array', choices : ['elogind', 'hashmap', 'mmap-cache'], value : [],
84 description : 'enable extra debugging')
87 option('utmp', type : 'boolean',
88 description : 'support for utmp/wtmp log handling')
89 #if 0 /// UNNEEDED by elogind
90 # option('hibernate', type : 'boolean',
91 # description : 'support for hibernation')
92 # option('ldconfig', type : 'boolean',
93 # description : 'support for dynamic linker cache creation')
94 # option('resolve', type : 'boolean',
95 # description : 'systemd-resolved stack')
96 # option('efi', type : 'boolean',
97 # description : 'enable systemd-boot and bootctl')
98 # option('tpm', type : 'boolean',
99 # description : 'TPM should be used to log events and extend the registers')
100 # option('environment-d', type : 'boolean',
101 # description : 'support for environment.d')
102 # option('binfmt', type : 'boolean',
103 # description : 'support for custom binary formats')
104 # option('coredump', type : 'boolean',
105 # description : 'install the coredump handler')
106 # option('logind', type : 'boolean',
107 # description : 'install the systemd-logind stack')
108 # option('hostnamed', type : 'boolean',
109 # description : 'install the systemd-hostnamed stack')
110 # option('localed', type : 'boolean',
111 # description : 'install the systemd-localed stack')
112 # option('machined', type : 'boolean',
113 # description : 'install the systemd-machined stack')
114 # option('portabled', type : 'boolean',
115 # description : 'install the systemd-portabled 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')
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'],
151 description : 'build and install html pages')
153 #if 0 /// UNNEEDED by elogind
154 # option('certificate-root', type : 'string', value : '/etc/ssl',
155 # description : 'the prefix for TLS certificates')
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]')
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')
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')
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')
191 description : '''Wanted cgroup hierarchy if elogind has to be a cgroup controller:
192 "legacy" assumes tmpfs mounted on /sys/fs/cgroup and cgroup on its
194 "hybrid" assumes cgroups version 2 mounted on /sys/fs/cgroup/unified.
195 /sys/fs/cgroup is legacy, then.
196 "unified" assumes cgroups version 2 on /sys/fs/cgroup''')
197 option('cgroup-controller', type : 'string',
198 description : 'Name of the cgroup controller to use')
200 option('system-uid-max', type : 'string',
201 description : 'maximum system UID')
202 option('system-gid-max', type : 'string',
203 description : 'maximum system GID')
204 #if 0 /// UNNEEDED by elogind
205 # option('dynamic-uid-min', type : 'string',
206 # description : 'minimum dynamic UID',
207 # value : '61184') # That's → 0x0000EF00 in hex
208 # option('dynamic-uid-max', type : 'string',
209 # description : 'maximum dynamic UID',
210 # value : '65519') # That's → 0x0000FFEF in hex
211 # option('container-uid-base-min', type : 'string',
212 # description : 'minimum container UID base',
213 # value : '524288') # That's → 0x00080000 in hex
214 # option('container-uid-base-max', type : 'string',
215 # description : 'maximum container UID base',
216 # value : '1878982656') # That's → 0x6FFF0000 in hex
218 option('tty-gid', type : 'string',
219 description : 'the numeric GID of the "tty" group',
221 #if 0 /// UNNEEDED by elogind
222 # option('users-gid', type : 'string',
223 # description : 'the numeric GID of the "users" group')
224 # option('adm-group', type : 'boolean',
225 # description : 'the ACL for adm group should be added')
226 # option('wheel-group', type : 'boolean',
227 # description : 'the ACL for wheel group should be added')
229 option('nobody-user', type : 'string',
230 description : 'The name of the nobody user (the one with UID 65534)',
232 option('nobody-group', type : 'string',
233 description : 'The name of the nobody group (the one with GID 65534)',
235 #if 0 /// UNNEEDED by elogind
236 # option('dev-kvm-mode', type : 'string', value : '0666',
237 # description : '/dev/kvm access mode')
238 # option('group-render-mode', type : 'string', value : '0666',
239 # description : 'Access mode for devices owned by render group (e.g. /dev/dri/renderD*, /dev/kfd).')
241 option('default-kill-user-processes', type : 'boolean',
242 description : 'the default value for KillUserProcesses= setting')
243 option('gshadow', type : 'boolean',
244 description : 'support for shadow group')
246 #if 0 /// UNNEEDED by elogind
247 # option('default-dnssec', type : 'combo',
248 # description : 'default DNSSEC mode',
249 # choices : ['yes', 'allow-downgrade', 'no'],
250 # value : 'allow-downgrade')
251 # option('default-dns-over-tls', type : 'combo',
252 # description : 'default DNS-over-TLS mode',
253 # choices : ['opportunistic', 'no'],
255 # option('dns-over-tls', type : 'combo', choices : ['auto', 'true', 'false'],
256 # description : 'DNS-over-TLS support')
257 # option('dns-servers', type : 'string',
258 # description : 'space-separated list of default DNS servers',
259 # value : '8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844')
260 # option('ntp-servers', type : 'string',
261 # description : 'space-separated list of default NTP servers',
262 # value : 'time1.google.com time2.google.com time3.google.com time4.google.com')
263 # option('support-url', type : 'string',
264 # description : 'the support URL to show in catalog entries included in systemd',
265 # value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
266 # option('www-target', type : 'string',
267 # description : 'the address and dir to upload docs too',
268 # value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
270 # option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
271 # description : 'SECCOMP support')
273 option('selinux', type : 'combo', choices : ['auto', 'true', 'false'],
274 description : 'SELinux support')
275 #if 0 /// UNNEEDED by elogind
276 # option('apparmor', type : 'combo', choices : ['auto', 'true', 'false'],
277 # description : 'AppArmor support')
279 option('smack', type : 'boolean',
280 description : 'SMACK support')
281 option('smack-run-label', type : 'string',
282 description : 'run systemd --system itself with a specific SMACK label')
283 option('polkit', type : 'combo', choices : ['auto', 'true', 'false'],
284 description : 'PolicyKit support')
285 option('ima', type : 'boolean',
286 description : 'IMA support')
288 option('acl', type : 'combo', choices : ['auto', 'true', 'false'],
289 description : 'libacl support')
290 option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
291 description : 'libaudit support')
292 #if 0 /// UNNEEDED by elogind
293 # option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],
294 # description : 'libblkid support')
295 # option('kmod', type : 'combo', choices : ['auto', 'true', 'false'],
296 # description : 'support for loadable modules')
298 option('pam', type : 'combo', choices : ['auto', 'true', 'false'],
299 description : 'PAM support')
300 #if 0 /// UNNEEDED by elogind
301 # option('microhttpd', type : 'combo', choices : ['auto', 'true', 'false'],
302 # description : 'libµhttpd support')
303 # option('libcryptsetup', type : 'combo', choices : ['auto', 'true', 'false'],
304 # description : 'libcryptsetup support')
305 # option('libcurl', type : 'combo', choices : ['auto', 'true', 'false'],
306 # description : 'libcurl support')
307 # option('idn', type : 'boolean',
308 # description : 'use IDN when printing host names')
309 # option('libidn2', type : 'combo', choices : ['auto', 'true', 'false'],
310 # description : 'libidn2 support')
311 # option('libidn', type : 'combo', choices : ['auto', 'true', 'false'],
312 # description : 'libidn support')
313 # option('nss-systemd', type : 'boolean',
314 # description : 'enable nss-systemd')
315 # option('libiptc', type : 'combo', choices : ['auto', 'true', 'false'],
316 # description : 'libiptc support')
317 # option('qrencode', type : 'combo', choices : ['auto', 'true', 'false'],
318 # description : 'libqrencode support')
319 # option('gcrypt', type : 'combo', choices : ['auto', 'true', 'false'],
320 # description : 'gcrypt support')
321 # option('gnutls', type : 'combo', choices : ['auto', 'true', 'false'],
322 # description : 'gnutls support')
323 # option('elfutils', type : 'combo', choices : ['auto', 'true', 'false'],
324 # description : 'elfutils support')
325 # option('zlib', type : 'combo', choices : ['auto', 'true', 'false'],
326 # description : 'zlib compression support')
327 # option('bzip2', type : 'combo', choices : ['auto', 'true', 'false'],
328 # description : 'bzip2 compression support')
329 # option('xz', type : 'combo', choices : ['auto', 'true', 'false'],
330 # description : 'xz compression support')
331 # option('lz4', type : 'combo', choices : ['auto', 'true', 'false'],
332 # description : 'lz4 compression support')
333 # option('xkbcommon', type : 'combo', choices : ['auto', 'true', 'false'],
334 # description : 'xkbcommon keymap support')
336 option('pcre2', type : 'combo', choices : ['auto', 'true', 'false'],
337 description : 'regexp matching support using pcre2')
338 option('glib', type : 'combo', choices : ['auto', 'true', 'false'],
339 description : 'libglib support (for tests only)')
340 option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
341 description : 'libdbus support (for tests only)')
343 #if 0 /// UNNEEDED BY elogind
344 # option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
345 # description : 'gnu-efi support for sd-boot')
346 # option('efi-cc', type : 'string', value : 'gcc',
347 # description : 'the compiler to use for EFI modules')
348 # option('efi-ld', type : 'string', value : 'ld',
349 # description : 'the linker to use for EFI modules')
350 # option('efi-libdir', type : 'string',
351 # description : 'path to the EFI lib directory')
352 # option('efi-ldsdir', type : 'string',
353 # description : 'path to the EFI lds directory')
354 # option('efi-includedir', type : 'string', value : '/usr/include/efi',
355 # description : 'path to the EFI header directory')
356 # option('tpm-pcrindex', type : 'string', value : '8',
357 # description : 'TPM PCR register number to use')
360 option('bashcompletiondir', type : 'string',
361 description : 'directory for bash completion scripts ["no" disables]')
362 option('zshcompletiondir', type : 'string',
363 description : 'directory for zsh completion scripts ["no" disables]')
365 option('tests', type : 'combo', choices : ['true', 'unsafe', 'false'],
366 description : 'enable extra tests with =unsafe')
367 option('slow-tests', type : 'boolean', value : 'false',
368 description : 'run the slow tests by default')
369 option('install-tests', type : 'boolean', value : 'false',
370 description : 'install test executables')
372 option('ok-color', type: 'combo',
373 choices : ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan',
374 'white', 'highlight-black', 'highlight-red', 'highlight-green',
375 'highlight-yellow', 'highlight-blue', 'highlight-magenta',
376 'highlight-cyan', 'highlight-white'],
378 description: 'color of the "OK" status message')
380 #if 0 /// fuzz regression tests are not supported by elogind
381 # option('oss-fuzz', type : 'boolean', value : 'false',
382 # description : 'build against oss-fuzz')
383 # option('llvm-fuzz', type : 'boolean', value : 'false',
384 # description : 'build against LLVM libFuzzer')