2 # SPDX-License-Identifier: LGPL-2.1+
4 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
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.
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.
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/>.
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')
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')
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')
47 # elogind must have a configurable rootlibexecdir
48 option('rootlibexecdir', type : 'string',
49 description : '''override the root libexec directory path''')
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''')
56 option('udevbindir', type : 'string',
57 description : '''directory for udev binary files''')
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.')
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')
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')
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')
85 option('debug', type : 'string',
86 description : 'enable extra debugging (elogind,hashmap,mmap-cache)')
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')
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('dns-servers', type : 'string',
252 # description : 'space-separated list of default DNS servers',
253 # value : '8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844')
254 # option('ntp-servers', type : 'string',
255 # description : 'space-separated list of default NTP servers',
256 # value : 'time1.google.com time2.google.com time3.google.com time4.google.com')
257 # option('support-url', type : 'string',
258 # description : 'the support URL to show in catalog entries included in systemd',
259 # value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
260 # option('www-target', type : 'string',
261 # description : 'the address and dir to upload docs too',
262 # value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
264 # option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
265 # description : 'SECCOMP support')
267 option('selinux', type : 'combo', choices : ['auto', 'true', 'false'],
268 description : 'SELinux support')
269 #if 0 /// UNNEEDED by elogind
270 # option('apparmor', type : 'combo', choices : ['auto', 'true', 'false'],
271 # description : 'AppArmor support')
273 option('smack', type : 'boolean',
274 description : 'SMACK support')
275 option('smack-run-label', type : 'string',
276 description : 'run systemd --system itself with a specific SMACK label')
277 option('polkit', type : 'combo', choices : ['auto', 'true', 'false'],
278 description : 'PolicyKit support')
279 option('ima', type : 'boolean',
280 description : 'IMA support')
282 option('acl', type : 'combo', choices : ['auto', 'true', 'false'],
283 description : 'libacl support')
284 option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
285 description : 'libaudit support')
286 #if 0 /// UNNEEDED by elogind
287 # option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],
288 # description : 'libblkid support')
289 # option('kmod', type : 'combo', choices : ['auto', 'true', 'false'],
290 # description : 'support for loadable modules')
292 option('pam', type : 'combo', choices : ['auto', 'true', 'false'],
293 description : 'PAM support')
294 #if 0 /// UNNEEDED by elogind
295 # option('microhttpd', type : 'combo', choices : ['auto', 'true', 'false'],
296 # description : 'libµhttpd support')
297 # option('libcryptsetup', type : 'combo', choices : ['auto', 'true', 'false'],
298 # description : 'libcryptsetup support')
299 # option('libcurl', type : 'combo', choices : ['auto', 'true', 'false'],
300 # description : 'libcurl support')
301 # option('idn', type : 'boolean',
302 # description : 'use IDN when printing host names')
303 # option('libidn2', type : 'combo', choices : ['auto', 'true', 'false'],
304 # description : 'libidn2 support')
305 # option('libidn', type : 'combo', choices : ['auto', 'true', 'false'],
306 # description : 'libidn support')
307 # option('nss-systemd', type : 'boolean',
308 # description : 'enable nss-systemd')
309 # option('libiptc', type : 'combo', choices : ['auto', 'true', 'false'],
310 # description : 'libiptc support')
311 # option('qrencode', type : 'combo', choices : ['auto', 'true', 'false'],
312 # description : 'libqrencode support')
313 # option('gcrypt', type : 'combo', choices : ['auto', 'true', 'false'],
314 # description : 'gcrypt support')
315 # option('gnutls', type : 'combo', choices : ['auto', 'true', 'false'],
316 # description : 'gnutls support')
317 # option('elfutils', type : 'combo', choices : ['auto', 'true', 'false'],
318 # description : 'elfutils support')
319 # option('zlib', type : 'combo', choices : ['auto', 'true', 'false'],
320 # description : 'zlib compression support')
321 # option('bzip2', type : 'combo', choices : ['auto', 'true', 'false'],
322 # description : 'bzip2 compression support')
323 # option('xz', type : 'combo', choices : ['auto', 'true', 'false'],
324 # description : 'xz compression support')
325 # option('lz4', type : 'combo', choices : ['auto', 'true', 'false'],
326 # description : 'lz4 compression support')
327 # option('xkbcommon', type : 'combo', choices : ['auto', 'true', 'false'],
328 # description : 'xkbcommon keymap support')
330 option('pcre2', type : 'combo', choices : ['auto', 'true', 'false'],
331 description : 'regexp matching support using pcre2')
332 option('glib', type : 'combo', choices : ['auto', 'true', 'false'],
333 description : 'libglib support (for tests only)')
334 option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
335 description : 'libdbus support (for tests only)')
337 #if 0 /// UNNEEDED BY elogind
338 # option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
339 # description : 'gnu-efi support for sd-boot')
340 # option('efi-cc', type : 'string', value : 'gcc',
341 # description : 'the compiler to use for EFI modules')
342 # option('efi-ld', type : 'string', value : 'ld',
343 # description : 'the linker to use for EFI modules')
344 # option('efi-libdir', type : 'string',
345 # description : 'path to the EFI lib directory')
346 # option('efi-ldsdir', type : 'string',
347 # description : 'path to the EFI lds directory')
348 # option('efi-includedir', type : 'string', value : '/usr/include/efi',
349 # description : 'path to the EFI header directory')
350 # option('tpm-pcrindex', type : 'string', value : '8',
351 # description : 'TPM PCR register number to use')
354 option('bashcompletiondir', type : 'string',
355 description : 'directory for bash completion scripts ["no" disables]')
356 option('zshcompletiondir', type : 'string',
357 description : 'directory for zsh completion scripts ["no" disables]')
359 option('tests', type : 'combo', choices : ['true', 'unsafe', 'false'],
360 description : 'enable extra tests with =unsafe')
361 option('slow-tests', type : 'boolean', value : 'false',
362 description : 'run the slow tests by default')
363 option('install-tests', type : 'boolean', value : 'false',
364 description : 'install test executables')
366 option('ok-color', type: 'combo',
367 choices : ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan',
368 'white', 'highlight-black', 'highlight-red', 'highlight-green',
369 'highlight-yellow', 'highlight-blue', 'highlight-magenta',
370 'highlight-cyan', 'highlight-white'],
372 description: 'color of the "OK" status message')
374 #if 0 /// fuzz regression tests are not supported by elogind
375 # option('oss-fuzz', type : 'boolean', value : 'false',
376 # description : 'build against oss-fuzz')
377 # option('llvm-fuzz', type : 'boolean', value : 'false',
378 # description : 'build against LLVM libFuzzer')