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 : 'string',
74 # description : 'enable extra debugging (hashmap,mmap-cache)')
75 # option('memory-accounting-default', type : 'boolean',
76 # description : 'enable MemoryAccounting= by default')
78 option('debug', type : 'string',
79 description : 'enable extra debugging (elogind,hashmap,mmap-cache)')
82 option('utmp', type : 'boolean',
83 description : 'support for utmp/wtmp log handling')
84 #if 0 /// UNNEEDED by elogind
85 # option('hibernate', type : 'boolean',
86 # description : 'support for hibernation')
87 # option('ldconfig', type : 'boolean',
88 # description : 'support for dynamic linker cache creation')
89 # option('resolve', type : 'boolean',
90 # description : 'systemd-resolved stack')
91 # option('efi', type : 'boolean',
92 # description : 'enable systemd-boot and bootctl')
93 # option('tpm', type : 'boolean',
94 # description : 'TPM should be used to log events and extend the registers')
95 # option('environment-d', type : 'boolean',
96 # description : 'support for environment.d')
97 # option('binfmt', type : 'boolean',
98 # description : 'support for custom binary formats')
99 # option('coredump', type : 'boolean',
100 # description : 'install the coredump handler')
101 # option('logind', type : 'boolean',
102 # description : 'install the systemd-logind stack')
103 # option('hostnamed', type : 'boolean',
104 # description : 'install the systemd-hostnamed stack')
105 # option('localed', type : 'boolean',
106 # description : 'install the systemd-localed stack')
107 # option('machined', type : 'boolean',
108 # description : 'install the systemd-machined stack')
109 # option('networkd', type : 'boolean',
110 # description : 'install the systemd-networkd stack')
111 # option('timedated', type : 'boolean',
112 # description : 'install the systemd-timedated daemon')
113 # option('timesyncd', type : 'boolean',
114 # description : 'install the systemd-timesyncd daemon')
115 # option('remote', type : 'combo', choices : ['auto', 'true', 'false'],
116 # description : 'support for "journal over the network"')
117 # option('myhostname', type : 'boolean',
118 # description : 'nss-myhostname support')
119 # option('firstboot', type : 'boolean',
120 # description : 'support for firstboot mechanism')
121 # option('randomseed', type : 'boolean',
122 # description : 'support for restoring random seed')
123 # option('backlight', type : 'boolean',
124 # description : 'support for restoring backlight state')
125 # option('vconsole', type : 'boolean',
126 # description : 'support for vconsole configuration')
127 # option('quotacheck', type : 'boolean',
128 # description : 'support for the quotacheck tools')
129 # option('sysusers', type : 'boolean',
130 # description : 'support for the sysusers configuration')
131 # option('tmpfiles', type : 'boolean',
132 # description : 'support for tmpfiles.d')
133 # option('importd', type : 'combo', choices : ['auto', 'true', 'false'],
134 # description : 'install the systemd-importd daemon')
135 # option('hwdb', type : 'boolean',
136 # description : 'support for the hardware database')
137 # option('rfkill', type : 'boolean',
138 # description : 'support for the rfkill tools')
140 option('man', type : 'combo', choices : ['auto', 'true', 'false'],
141 description : 'build and install man pages')
142 option('html', type : 'combo', choices : ['auto', 'true', 'false'],
144 description : 'build and install html pages')
146 #if 0 /// UNNEEDED by elogind
147 # option('certificate-root', type : 'string', value : '/etc/ssl',
148 # description : 'the prefix for TLS certificates')
150 option('dbuspolicydir', type : 'string',
151 description : 'D-Bus policy directory')
152 option('dbussessionservicedir', type : 'string',
153 description : 'D-Bus session service directory')
154 option('dbussystemservicedir', type : 'string',
155 description : 'D-Bus system service directory')
156 option('pkgconfigdatadir', type : 'string', value : 'share/pkgconfig',
157 description : 'directory for ')
158 option('pkgconfiglibdir', type : 'string', value : '',
159 description : 'directory for ')
160 #if 0 /// UNNEEDED by elogind
161 # option('rpmmacrosdir', type : 'string', value : 'lib/rpm/macros.d',
162 # description : 'directory for rpm macros ["no" disables]')
164 option('pamlibdir', type : 'string',
165 description : 'directory for PAM modules')
166 option('pamconfdir', type : 'string',
167 description : 'directory for PAM configuration ["no" disables]')
168 option('docdir', type : 'string',
169 description : 'documentation directory')
171 option('fallback-hostname', type : 'string', value : 'localhost',
172 description : 'the hostname used if none configured')
173 #if 0 /// UNNEEDED by elogind
174 # option('compat-gateway-hostname', type : 'boolean', value : 'false',
175 # description : 'allow "gateway" as the symbolic name for default gateway')
177 option('default-hierarchy', type : 'combo',
178 choices : ['legacy', 'hybrid', 'unified'], value : 'hybrid',
179 #if 0 /// elogind interprets this a bit different
180 # description : 'default cgroup hierarchy')
181 # option('time-epoch', type : 'string',
182 # description : 'time epoch for time clients')
184 description : '''Wanted cgroup hierarchy if elogind has to be a cgroup controller:
185 "legacy" assumes tmpfs mounted on /sys/fs/cgroup and cgroup on its
187 "hybrid" assumes cgroups version 2 mounted on /sys/fs/cgroup/unified.
188 /sys/fs/cgroup is legacy, then.
189 "unified" assumes cgroups version 2 on /sys/fs/cgroup''')
190 option('cgroup-controller', type : 'string',
191 description : 'Name of the cgroup controller to use')
193 option('system-uid-max', type : 'string',
194 description : 'maximum system UID')
195 option('system-gid-max', type : 'string',
196 description : 'maximum system GID')
197 #if 0 /// UNNEEDED by elogind
198 # option('dynamic-uid-min', type : 'string',
199 # description : 'minimum dynamic UID',
200 # value : '61184') # That's → 0x0000EF00 in hex
201 # option('dynamic-uid-max', type : 'string',
202 # description : 'maximum dynamic UID',
203 # value : '65519') # That's → 0x0000FFEF in hex
204 # option('container-uid-base-min', type : 'string',
205 # description : 'minimum container UID base',
206 # value : '524288') # That's → 0x00080000 in hex
207 # option('container-uid-base-max', type : 'string',
208 # description : 'maximum container UID base',
209 # value : '1878982656') # That's → 0x6FFF0000 in hex
211 option('tty-gid', type : 'string',
212 description : 'the numeric GID of the "tty" group',
214 #if 0 /// UNNEEDED by elogind
215 # option('users-gid', type : 'string',
216 # description : 'the numeric GID of the "users" group')
217 # option('adm-group', type : 'boolean',
218 # description : 'the ACL for adm group should be added')
219 # option('wheel-group', type : 'boolean',
220 # description : 'the ACL for wheel group should be added')
222 option('nobody-user', type : 'string',
223 description : 'The name of the nobody user (the one with UID 65534)',
225 option('nobody-group', type : 'string',
226 description : 'The name of the nobody group (the one with GID 65534)',
228 #if 0 /// UNNEEDED by elogind
229 # option('dev-kvm-mode', type : 'string', value : '0666',
230 # description : '/dev/kvm access mode')
231 # option('group-render-mode', type : 'string', value : '0666',
232 # description : 'Access mode for devices owned by render group (e.g. /dev/dri/renderD*, /dev/kfd).')
234 option('default-kill-user-processes', type : 'boolean',
235 description : 'the default value for KillUserProcesses= setting')
236 option('gshadow', type : 'boolean',
237 description : 'support for shadow group')
239 #if 0 /// UNNEEDED by elogind
240 # option('default-dnssec', type : 'combo',
241 # description : 'default DNSSEC mode',
242 # choices : ['yes', 'allow-downgrade', 'no'],
243 # value : 'allow-downgrade')
244 # option('dns-servers', type : 'string',
245 # description : 'space-separated list of default DNS servers',
246 # value : '8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844')
247 # option('ntp-servers', type : 'string',
248 # description : 'space-separated list of default NTP servers',
249 # value : 'time1.google.com time2.google.com time3.google.com time4.google.com')
250 # option('support-url', type : 'string',
251 # description : 'the support URL to show in catalog entries included in systemd',
252 # value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
253 # option('www-target', type : 'string',
254 # description : 'the address and dir to upload docs too',
255 # value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
257 # option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
258 # description : 'SECCOMP support')
260 option('selinux', type : 'combo', choices : ['auto', 'true', 'false'],
261 description : 'SELinux support')
262 #if 0 /// UNNEEDED by elogind
263 # option('apparmor', type : 'combo', choices : ['auto', 'true', 'false'],
264 # description : 'AppArmor support')
266 option('smack', type : 'boolean',
267 description : 'SMACK support')
268 option('smack-run-label', type : 'string',
269 description : 'run systemd --system itself with a specific SMACK label')
270 option('polkit', type : 'combo', choices : ['auto', 'true', 'false'],
271 description : 'PolicyKit support')
272 option('ima', type : 'boolean',
273 description : 'IMA support')
275 option('acl', type : 'combo', choices : ['auto', 'true', 'false'],
276 description : 'libacl support')
277 option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
278 description : 'libaudit support')
279 #if 0 /// UNNEEDED by elogind
280 # option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],
281 # description : 'libblkid support')
282 # option('kmod', type : 'combo', choices : ['auto', 'true', 'false'],
283 # description : 'support for loadable modules')
285 option('pam', type : 'combo', choices : ['auto', 'true', 'false'],
286 description : 'PAM support')
287 #if 0 /// UNNEEDED by elogind
288 # option('microhttpd', type : 'combo', choices : ['auto', 'true', 'false'],
289 # description : 'libµhttpd support')
290 # option('libcryptsetup', type : 'combo', choices : ['auto', 'true', 'false'],
291 # description : 'libcryptsetup support')
292 # option('libcurl', type : 'combo', choices : ['auto', 'true', 'false'],
293 # description : 'libcurl support')
294 # option('idn', type : 'boolean',
295 # description : 'use IDN when printing host names')
296 # option('libidn2', type : 'combo', choices : ['auto', 'true', 'false'],
297 # description : 'libidn2 support')
298 # option('libidn', type : 'combo', choices : ['auto', 'true', 'false'],
299 # description : 'libidn support')
300 # option('nss-systemd', type : 'boolean',
301 # description : 'enable nss-systemd')
302 # option('libiptc', type : 'combo', choices : ['auto', 'true', 'false'],
303 # description : 'libiptc support')
304 # option('qrencode', type : 'combo', choices : ['auto', 'true', 'false'],
305 # description : 'libqrencode support')
306 # option('gcrypt', type : 'combo', choices : ['auto', 'true', 'false'],
307 # description : 'gcrypt support')
308 # option('gnutls', type : 'combo', choices : ['auto', 'true', 'false'],
309 # description : 'gnutls support')
310 # option('elfutils', type : 'combo', choices : ['auto', 'true', 'false'],
311 # description : 'elfutils support')
312 # option('zlib', type : 'combo', choices : ['auto', 'true', 'false'],
313 # description : 'zlib compression support')
314 # option('bzip2', type : 'combo', choices : ['auto', 'true', 'false'],
315 # description : 'bzip2 compression support')
316 # option('xz', type : 'combo', choices : ['auto', 'true', 'false'],
317 # description : 'xz compression support')
318 # option('lz4', type : 'combo', choices : ['auto', 'true', 'false'],
319 # description : 'lz4 compression support')
320 # option('xkbcommon', type : 'combo', choices : ['auto', 'true', 'false'],
321 # description : 'xkbcommon keymap support')
323 option('pcre2', type : 'combo', choices : ['auto', 'true', 'false'],
324 description : 'regexp matching support using pcre2')
325 option('glib', type : 'combo', choices : ['auto', 'true', 'false'],
326 description : 'libglib support (for tests only)')
327 option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
328 description : 'libdbus support (for tests only)')
330 #if 0 /// UNNEEDED BY elogind
331 # option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
332 # description : 'gnu-efi support for sd-boot')
333 # option('efi-cc', type : 'string', value : 'gcc',
334 # description : 'the compiler to use for EFI modules')
335 # option('efi-ld', type : 'string', value : 'ld',
336 # description : 'the linker to use for EFI modules')
337 # option('efi-libdir', type : 'string',
338 # description : 'path to the EFI lib directory')
339 # option('efi-ldsdir', type : 'string',
340 # description : 'path to the EFI lds directory')
341 # option('efi-includedir', type : 'string', value : '/usr/include/efi',
342 # description : 'path to the EFI header directory')
343 # option('tpm-pcrindex', type : 'string', value : '8',
344 # description : 'TPM PCR register number to use')
347 option('bashcompletiondir', type : 'string',
348 description : 'directory for bash completion scripts ["no" disables]')
349 option('zshcompletiondir', type : 'string',
350 description : 'directory for zsh completion scripts ["no" disables]')
352 option('tests', type : 'combo', choices : ['true', 'unsafe', 'false'],
353 description : 'enable extra tests with =unsafe')
354 option('slow-tests', type : 'boolean', value : 'false',
355 description : 'run the slow tests by default')
356 option('install-tests', type : 'boolean', value : 'false',
357 description : 'install test executables')
359 option('ok-color', type: 'combo',
360 choices : ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan',
361 'white', 'highlight-black', 'highlight-red', 'highlight-green',
362 'highlight-yellow', 'highlight-blue', 'highlight-magenta',
363 'highlight-cyan', 'highlight-white'],
365 description: 'color of the "OK" status message')
367 #if 0 /// fuzz regression tests are not supported by elogind
368 # option('oss-fuzz', type : 'boolean', value : 'false',
369 # description : 'build against oss-fuzz')
370 # option('llvm-fuzz', type : 'boolean', value : 'false',
371 # description : 'build against LLVM libFuzzer')