# -*- mode: meson -*-
+# SPDX-License-Identifier: LGPL-2.1+
-option('split-usr', type : 'boolean', value : false,
- description : '''assume that /bin, /sbin aren't symlinks into /usr''')
+option('split-usr', type : 'combo', choices : ['auto', 'true', 'false'],
+ description : '''/bin, /sbin aren't symlinks into /usr''')
+option('split-bin', type : 'combo', choices : ['auto', 'true', 'false'],
+ description : '''sbin is not a symlink to bin''')
option('rootlibdir', type : 'string',
description : '''[/usr]/lib/x86_64-linux-gnu or such''')
option('rootprefix', type : 'string',
description : '''override the root prefix''')
#if 0 /// UNNEEDED by elogind
-# Note: See meson.build why we use precompiler masks
# option('link-udev-shared', type : 'boolean',
# description : 'link systemd-udev and its helpers to libsystemd-shared.so')
+# option('link-systemctl-shared', type: 'boolean',
+# description : 'link systemctl against libsystemd-shared.so')
+#endif // 0
+option('static-libelogind', type : 'combo',
+ choices : ['false', 'true', 'pic', 'no-pic'],
+ description : '''install a static library for libelogind''')
+#if 0 /// UNNEEDED by elogind
+# option('static-libudev', type : 'combo',
+# choices : ['false', 'true', 'pic', 'no-pic'],
+# description : '''install a static library for libudev''')
#
# option('sysvinit-path', type : 'string', value : '/etc/init.d',
# description : 'the directory where the SysV init scripts are located')
# option('sysvrcnd-path', type : 'string', value : '/etc/rc.d',
# description : 'the base directory for SysV rcN.d directories')
-# option('telinit-path', type : 'string', description : 'path to telinit')
+# option('telinit-path', type : 'string', value : '/lib/sysvinit/telinit',
+# description : 'path to telinit')
# option('rc-local', type : 'string',
# value : '/etc/rc.local')
# option('halt-local', type : 'string',
# value : '/usr/sbin/halt.local')
-#
+#
# option('quotaon-path', type : 'string', description : 'path to quotaon')
# option('quotacheck-path', type : 'string', description : 'path to quotacheck')
# option('kill-path', type : 'string', description : 'path to kill')
option('udevbindir', type : 'string',
description : '''directory for udev binary files''')
-# We have no systemd-shutdown binary, so we need 'halt' and 'reboot'
+# We are nice and make the documentation paths configurable
+option('docdir', type : 'string', description : 'path where to install the documentation.')
+option('htmldir', type : 'string', description : 'path where to install the HTML documentation.')
+
+# We have no systemd-shutdown binary, so we need 'halt', 'reboot' and 'poweroff'
option('halt-path', type : 'string', description : 'path to halt')
+option('poweroff-path', type : 'string', description : 'path to poweroff')
option('reboot-path', type : 'string', description : 'path to reboot')
#endif // 0
option('kexec-path', type : 'string', description : 'path to kexec')
# option('umount-path', type : 'string', description : 'path to umount')
# option('loadkeys-path', type : 'string', description : 'path to loadkeys')
# option('setfont-path', type : 'string', description : 'path to setfont')
-#
+#
# option('debug-shell', type : 'string', value : '/bin/sh',
# description : 'path to debug shell binary')
# option('debug-tty', type : 'string', value : '/dev/tty9',
# description : 'specify the tty device for debug shell')
-# option('debug', type : 'string',
-# description : 'enable extra debugging (hashmap,mmap-cache)')
-#else
-option('debug', type : 'string',
- description : 'enable extra debugging (elogind,hashmap,mmap-cache)')
+# option('debug-extra', type : 'array', choices : ['hashmap', 'mmap-cache'], value : [],
+# description : 'enable extra debugging')
+# option('memory-accounting-default', type : 'boolean',
+# description : 'enable MemoryAccounting= by default')
#endif // 0
+option('valgrind', type : 'boolean', value : false,
+ description : 'do extra operations to avoid valgrind warnings')
+#if 1 /// Add an extra debugging option for elogind
+option('debug-extra', type : 'array', choices : ['elogind', 'hashmap', 'mmap-cache'], value : [],
+ description : 'enable extra debugging')
+#endif // 1
option('utmp', type : 'boolean',
description : 'support for utmp/wtmp log handling')
# description : 'install the systemd-localed stack')
# option('machined', type : 'boolean',
# description : 'install the systemd-machined stack')
+# option('portabled', type : 'boolean',
+# description : 'install the systemd-portabled stack')
# option('networkd', type : 'boolean',
# description : 'install the systemd-networkd stack')
# option('timedated', type : 'boolean',
description : 'directory for PAM modules')
option('pamconfdir', type : 'string',
description : 'directory for PAM configuration ["no" disables]')
+option('docdir', type : 'string',
+ description : 'documentation directory')
option('fallback-hostname', type : 'string', value : 'localhost',
description : 'the hostname used if none configured')
+#if 0 /// UNNEEDED by elogind
+# option('compat-gateway-hostname', type : 'boolean', value : 'false',
+# description : 'allow "gateway" as the symbolic name for default gateway')
+#endif // 0
option('default-hierarchy', type : 'combo',
choices : ['legacy', 'hybrid', 'unified'], value : 'hybrid',
- description : 'default cgroup hierarchy')
-
-#if 0 /// UNNEEDED by elogind
+#if 0 /// elogind interprets this a bit different
+# description : 'default cgroup hierarchy')
# option('time-epoch', type : 'string',
# description : 'time epoch for time clients')
#else
+ description : '''Wanted cgroup hierarchy if elogind has to be a cgroup controller:
+ "legacy" assumes tmpfs mounted on /sys/fs/cgroup and cgroup on its
+ subfolders.
+ "hybrid" assumes cgroups version 2 mounted on /sys/fs/cgroup/unified.
+ /sys/fs/cgroup is legacy, then.
+ "unified" assumes cgroups version 2 on /sys/fs/cgroup''')
option('cgroup-controller', type : 'string',
description : 'Name of the cgroup controller to use')
#endif // 0
description : 'maximum system UID')
option('system-gid-max', type : 'string',
description : 'maximum system GID')
+#if 0 /// UNNEEDED by elogind
+# option('dynamic-uid-min', type : 'string',
+# description : 'minimum dynamic UID',
+# value : '61184') # That's → 0x0000EF00 in hex
+# option('dynamic-uid-max', type : 'string',
+# description : 'maximum dynamic UID',
+# value : '65519') # That's → 0x0000FFEF in hex
+# option('container-uid-base-min', type : 'string',
+# description : 'minimum container UID base',
+# value : '524288') # That's → 0x00080000 in hex
+# option('container-uid-base-max', type : 'string',
+# description : 'maximum container UID base',
+# value : '1878982656') # That's → 0x6FFF0000 in hex
+#endif // 0
option('tty-gid', type : 'string',
description : 'the numeric GID of the "tty" group',
value : '5')
#if 0 /// UNNEEDED by elogind
+# option('users-gid', type : 'string',
+# description : 'the numeric GID of the "users" group')
# option('adm-group', type : 'boolean',
# description : 'the ACL for adm group should be added')
# option('wheel-group', type : 'boolean',
# description : 'the ACL for wheel group should be added')
-# option('nobody-user', type : 'string',
-# description : 'The name of the nobody user (the one with UID 65534)',
-# value : 'nobody')
-# option('nobody-group', type : 'string',
-# description : 'The name of the nobody group (the one with GID 65534)',
-# value : 'nobody')
-# option('dev-kvm-mode', type : 'string', value : '0660',
+#endif // 0
+option('nobody-user', type : 'string',
+ description : 'The name of the nobody user (the one with UID 65534)',
+ value : 'nobody')
+option('nobody-group', type : 'string',
+ description : 'The name of the nobody group (the one with GID 65534)',
+ value : 'nobody')
+#if 0 /// UNNEEDED by elogind
+# option('dev-kvm-mode', type : 'string', value : '0666',
# description : '/dev/kvm access mode')
+# option('group-render-mode', type : 'string', value : '0666',
+# description : 'Access mode for devices owned by render group (e.g. /dev/dri/renderD*, /dev/kfd).')
#endif // 0
option('default-kill-user-processes', type : 'boolean',
description : 'the default value for KillUserProcesses= setting')
# description : 'default DNSSEC mode',
# choices : ['yes', 'allow-downgrade', 'no'],
# value : 'allow-downgrade')
+# option('default-dns-over-tls', type : 'combo',
+# description : 'default DNS-over-TLS mode',
+# choices : ['opportunistic', 'no'],
+# value : 'no')
+# option('dns-over-tls', type : 'combo', choices : ['auto', 'true', 'false'],
+# description : 'DNS-over-TLS support')
# option('dns-servers', type : 'string',
# description : 'space-separated list of default DNS servers',
# value : '8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844')
# option('www-target', type : 'string',
# description : 'the address and dir to upload docs too',
# value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
-#
+#
# option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
# description : 'SECCOMP support')
#endif // 0
# option('xkbcommon', type : 'combo', choices : ['auto', 'true', 'false'],
# description : 'xkbcommon keymap support')
#endif // 0
+option('pcre2', type : 'combo', choices : ['auto', 'true', 'false'],
+ description : 'regexp matching support using pcre2')
option('glib', type : 'combo', choices : ['auto', 'true', 'false'],
description : 'libglib support (for tests only)')
option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
option('zshcompletiondir', type : 'string',
description : 'directory for zsh completion scripts ["no" disables]')
-option('tests', type : 'combo', choices : ['true', 'unsafe'],
+option('tests', type : 'combo', choices : ['true', 'unsafe', 'false'],
description : 'enable extra tests with =unsafe')
option('slow-tests', type : 'boolean', value : 'false',
description : 'run the slow tests by default')
option('install-tests', type : 'boolean', value : 'false',
description : 'install test executables')
+
+option('ok-color', type: 'combo',
+ choices : ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan',
+ 'white', 'highlight-black', 'highlight-red', 'highlight-green',
+ 'highlight-yellow', 'highlight-blue', 'highlight-magenta',
+ 'highlight-cyan', 'highlight-white'],
+ value : 'green',
+ description: 'color of the "OK" status message')
+
+#if 0 /// fuzz regression tests are not supported by elogind
+# option('oss-fuzz', type : 'boolean', value : 'false',
+# description : 'build against oss-fuzz')
+# option('llvm-fuzz', type : 'boolean', value : 'false',
+# description : 'build against LLVM libFuzzer')
+#endif // 0