You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

439 lines
22KB

  1. # -*- mode: meson -*-
  2. # SPDX-License-Identifier: LGPL-2.1+
  3. option('version-tag', type : 'string',
  4. description : 'override the git version string')
  5. option('split-usr', type : 'combo', choices : ['auto', 'true', 'false'],
  6. description : '''/bin, /sbin aren't symlinks into /usr''')
  7. option('split-bin', type : 'combo', choices : ['auto', 'true', 'false'],
  8. description : '''sbin is not a symlink to bin''')
  9. option('rootlibdir', type : 'string',
  10. description : '''[/usr]/lib/x86_64-linux-gnu or such''')
  11. option('rootprefix', type : 'string',
  12. description : '''override the root prefix [default '/' if split-usr and '/usr' otherwise]''')
  13. #if 0 /// UNNEEDED by elogind
  14. # option('link-udev-shared', type : 'boolean',
  15. # description : 'link systemd-udev and its helpers to libsystemd-shared.so')
  16. # option('link-systemctl-shared', type: 'boolean',
  17. # description : 'link systemctl against libsystemd-shared.so')
  18. #endif // 0
  19. option('link-networkd-shared', type: 'boolean',
  20. description : 'link elogind-networkd and its helpers to libelogind-shared.so')
  21. option('static-libelogind', type : 'combo',
  22. choices : ['false', 'true', 'pic', 'no-pic'],
  23. #if 0 /// UNNEEDED by elogind
  24. # description : '''install a static library for libsystemd''')
  25. # option('static-libudev', type : 'combo',
  26. # choices : ['false', 'true', 'pic', 'no-pic'],
  27. # description : '''install a static library for libudev''')
  28. #
  29. # option('sysvinit-path', type : 'string', value : '/etc/init.d',
  30. # description : 'the directory where the SysV init scripts are located')
  31. # option('sysvrcnd-path', type : 'string', value : '/etc/rc.d',
  32. # description : 'the base directory for SysV rcN.d directories')
  33. # option('telinit-path', type : 'string', value : '/lib/sysvinit/telinit',
  34. # description : 'path to telinit')
  35. # option('rc-local', type : 'string',
  36. # value : '/etc/rc.local')
  37. #
  38. # option('quotaon-path', type : 'string', description : 'path to quotaon')
  39. # option('quotacheck-path', type : 'string', description : 'path to quotacheck')
  40. # option('kmod-path', type : 'string', description : 'path to kmod')
  41. #else // 0
  42. description : '''install a static library for libelogind''')
  43. # elogind must have a configurable rootlibexecdir
  44. option('rootlibexecdir', type : 'string',
  45. 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''')
  50. option('udevbindir', type : 'string',
  51. 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.')
  55. # We have no systemd-shutdown binary, so we need 'halt', 'reboot' and 'poweroff'
  56. option('halt-path', type : 'string', description : 'path to halt')
  57. option('poweroff-path', type : 'string', description : 'path to poweroff')
  58. option('reboot-path', type : 'string', description : 'path to reboot')
  59. #endif // 0
  60. option('kexec-path', type : 'string', description : 'path to kexec')
  61. #if 0 /// UNNEEDED by elogind
  62. # option('sulogin-path', type : 'string', description : 'path to sulogin')
  63. # option('mount-path', type : 'string', description : 'path to mount')
  64. # option('umount-path', type : 'string', description : 'path to umount')
  65. # option('loadkeys-path', type : 'string', description : 'path to loadkeys')
  66. # option('setfont-path', type : 'string', description : 'path to setfont')
  67. #endif // 0
  68. option('nologin-path', type : 'string', description : 'path to nologin')
  69. #if 0 /// UNNEEDED by elogind
  70. # option('debug-shell', type : 'string', value : '/bin/sh',
  71. # description : 'path to debug shell binary')
  72. # option('debug-tty', type : 'string', value : '/dev/tty9',
  73. # description : 'specify the tty device for debug shell')
  74. # option('debug-extra', type : 'array', choices : ['hashmap', 'mmap-cache', 'siphash'], value : [],
  75. # description : 'enable extra debugging')
  76. #else // 0
  77. option('debug-extra', type : 'array', choices : ['elogind', 'hashmap', 'mmap-cache', 'siphash'], value : [],
  78. description : 'enable extra debugging')
  79. #endif // 0
  80. #if 0 /// UNNEEDED by elogind
  81. # option('memory-accounting-default', type : 'boolean',
  82. # description : 'enable MemoryAccounting= by default')
  83. # option('bump-proc-sys-fs-file-max', type : 'boolean',
  84. # description : 'bump /proc/sys/fs/file-max to ULONG_MAX')
  85. # option('bump-proc-sys-fs-nr-open', type : 'boolean',
  86. # description : 'bump /proc/sys/fs/nr_open to INT_MAX')
  87. #endif // 0
  88. option('valgrind', type : 'boolean', value : false,
  89. description : 'do extra operations to avoid valgrind warnings')
  90. option('log-trace', type : 'boolean', value : false,
  91. description : 'enable low level debug logging')
  92. option('user-path', type : 'string',
  93. description : '$PATH to use for user sessions')
  94. option('utmp', type : 'boolean',
  95. description : 'support for utmp/wtmp log handling')
  96. #if 0 /// UNNEEDED by elogind
  97. # option('hibernate', type : 'boolean',
  98. # description : 'support for hibernation')
  99. # option('ldconfig', type : 'boolean',
  100. # description : 'support for dynamic linker cache creation')
  101. # option('resolve', type : 'boolean',
  102. # description : 'systemd-resolved stack')
  103. # option('efi', type : 'boolean',
  104. # description : 'enable systemd-boot and bootctl')
  105. # option('tpm', type : 'boolean',
  106. # description : 'TPM should be used to log events and extend the registers')
  107. # option('environment-d', type : 'boolean',
  108. # description : 'support for environment.d')
  109. # option('binfmt', type : 'boolean',
  110. # description : 'support for custom binary formats')
  111. # option('repart', type : 'combo', choices : ['auto', 'true', 'false'],
  112. # description : 'install the systemd-repart tool')
  113. # option('coredump', type : 'boolean',
  114. # description : 'install the coredump handler')
  115. # option('pstore', type : 'boolean',
  116. # description : 'install the pstore archival tool')
  117. # option('logind', type : 'boolean',
  118. # description : 'install the systemd-logind stack')
  119. # option('hostnamed', type : 'boolean',
  120. # description : 'install the systemd-hostnamed stack')
  121. # option('localed', type : 'boolean',
  122. # description : 'install the systemd-localed stack')
  123. # option('machined', type : 'boolean',
  124. # description : 'install the systemd-machined stack')
  125. # option('portabled', type : 'boolean',
  126. # description : 'install the systemd-portabled stack')
  127. # option('userdb', type : 'boolean',
  128. # description : 'install the systemd-userdbd stack')
  129. # option('homed', type : 'combo', choices : ['auto', 'true', 'false'],
  130. # description : 'install the systemd-homed stack')
  131. # option('networkd', type : 'boolean',
  132. # description : 'install the systemd-networkd stack')
  133. # option('timedated', type : 'boolean',
  134. # description : 'install the systemd-timedated daemon')
  135. # option('timesyncd', type : 'boolean',
  136. # description : 'install the systemd-timesyncd daemon')
  137. # option('remote', type : 'combo', choices : ['auto', 'true', 'false'],
  138. # description : 'support for "journal over the network"')
  139. # option('create-log-dirs', type : 'boolean',
  140. # description : 'create /var/log/journal{,/remote}')
  141. # option('nss-myhostname', type : 'boolean',
  142. # description : 'install nss-myhostname module')
  143. # option('nss-mymachines', type : 'combo', choices : ['auto', 'true', 'false'],
  144. # description : 'install nss-mymachines module')
  145. # option('nss-resolve', type : 'combo', choices : ['auto', 'true', 'false'],
  146. # description : 'install nss-resolve module')
  147. # option('nss-systemd', type : 'boolean',
  148. # description : 'install nss-systemd module')
  149. # option('firstboot', type : 'boolean',
  150. # description : 'support for firstboot mechanism')
  151. # option('randomseed', type : 'boolean',
  152. # description : 'support for restoring random seed')
  153. # option('backlight', type : 'boolean',
  154. # description : 'support for restoring backlight state')
  155. # option('vconsole', type : 'boolean',
  156. # description : 'support for vconsole configuration')
  157. # option('quotacheck', type : 'boolean',
  158. # description : 'support for the quotacheck tools')
  159. # option('sysusers', type : 'boolean',
  160. # description : 'support for the sysusers configuration')
  161. # option('tmpfiles', type : 'boolean',
  162. # description : 'support for tmpfiles.d')
  163. # option('importd', type : 'combo', choices : ['auto', 'true', 'false'],
  164. # description : 'install the systemd-importd daemon')
  165. # option('hwdb', type : 'boolean',
  166. # description : 'support for the hardware database')
  167. # option('rfkill', type : 'boolean',
  168. # description : 'support for the rfkill tools')
  169. #else // 0
  170. option('efi', type : 'boolean',
  171. description : 'enable EFI support')
  172. #endif // 0
  173. option('man', type : 'combo', choices : ['auto', 'true', 'false'],
  174. value : 'false',
  175. description : 'build and install man pages')
  176. option('html', type : 'combo', choices : ['auto', 'true', 'false'],
  177. value : 'false',
  178. description : 'build and install html pages')
  179. #if 0 /// UNNEEDED by elogind
  180. # option('certificate-root', type : 'string', value : '/etc/ssl',
  181. # description : 'the prefix for TLS certificates')
  182. #endif // 0
  183. option('dbuspolicydir', type : 'string',
  184. description : 'D-Bus policy directory')
  185. option('dbussessionservicedir', type : 'string',
  186. description : 'D-Bus session service directory')
  187. option('dbussystemservicedir', type : 'string',
  188. description : 'D-Bus system service directory')
  189. option('pkgconfigdatadir', type : 'string', value : '',
  190. description : 'directory for arch-independent pkg-config files')
  191. option('pkgconfiglibdir', type : 'string', value : '',
  192. description : 'directory for standard pkg-config files')
  193. #if 0 /// UNNEEDED by elogind
  194. # option('rpmmacrosdir', type : 'string', value : 'lib/rpm/macros.d',
  195. # description : 'directory for rpm macros ["no" disables]')
  196. #endif // 0
  197. option('pamlibdir', type : 'string',
  198. description : 'directory for PAM modules')
  199. option('pamconfdir', type : 'string',
  200. description : 'directory for PAM configuration ["no" disables]')
  201. option('docdir', type : 'string',
  202. description : 'documentation directory')
  203. option('fallback-hostname', type : 'string', value : 'localhost',
  204. description : 'the hostname used if none configured')
  205. #if 0 /// UNNEEDED by elogind
  206. # option('compat-gateway-hostname', type : 'boolean', value : 'false',
  207. # description : 'allow "gateway" as the symbolic name for default gateway')
  208. #endif // 0
  209. option('default-hierarchy', type : 'combo',
  210. choices : ['legacy', 'hybrid', 'unified'], value : 'unified',
  211. #if 0 /// elogind interprets this a bit different
  212. # description : 'default cgroup hierarchy')
  213. #else // 0
  214. description : '''Wanted cgroup hierarchy if elogind has to be a cgroup controller:
  215. "legacy" assumes tmpfs mounted on /sys/fs/cgroup and cgroup on its
  216. subfolders.
  217. "hybrid" assumes cgroups version 2 mounted on /sys/fs/cgroup/unified.
  218. /sys/fs/cgroup is legacy, then.
  219. "unified" assumes cgroups version 2 on /sys/fs/cgroup''')
  220. option('cgroup-controller', type : 'string',
  221. description : 'Name of the cgroup controller to use')
  222. #endif // 0
  223. option('default-net-naming-scheme', type : 'combo',
  224. choices : ['latest', 'v238', 'v239', 'v240'],
  225. description : 'default net.naming-scheme= value')
  226. option('status-unit-format-default', type : 'combo',
  227. choices : ['description', 'name'],
  228. description : 'use unit name or description in messages by default')
  229. #if 0 /// UNNEEDED by elogind
  230. # option('time-epoch', type : 'integer', value : '-1',
  231. # description : 'time epoch for time clients')
  232. #endif // 0
  233. option('system-uid-max', type : 'integer', value : '-1',
  234. description : 'maximum system UID')
  235. option('system-gid-max', type : 'integer', value : '-1',
  236. description : 'maximum system GID')
  237. #if 0 /// UNNEEDED by elogind
  238. # option('dynamic-uid-min', type : 'integer', value : 0x0000EF00,
  239. # description : 'minimum dynamic UID')
  240. # option('dynamic-uid-max', type : 'integer', value : 0x0000FFEF,
  241. # description : 'maximum dynamic UID')
  242. # option('container-uid-base-min', type : 'integer', value : 0x00080000,
  243. # description : 'minimum container UID base')
  244. # option('container-uid-base-max', type : 'integer', value : 0x6FFF0000,
  245. # description : 'maximum container UID base')
  246. #endif // 0
  247. option('tty-gid', type : 'integer', value : 5,
  248. description : 'the numeric GID of the "tty" group')
  249. #if 0 /// UNNEEDED by elogind
  250. # option('users-gid', type : 'integer', value : '-1',
  251. # description : 'the numeric GID of the "users" group')
  252. # option('adm-group', type : 'boolean',
  253. # description : 'the ACL for adm group should be added')
  254. # option('wheel-group', type : 'boolean',
  255. # description : 'the ACL for wheel group should be added')
  256. #endif // 0
  257. option('nobody-user', type : 'string',
  258. description : 'The name of the nobody user (the one with UID 65534)',
  259. value : 'nobody')
  260. option('nobody-group', type : 'string',
  261. description : 'The name of the nobody group (the one with GID 65534)',
  262. value : 'nobody')
  263. #if 0 /// UNNEEDED by elogind
  264. # option('dev-kvm-mode', type : 'string', value : '0666',
  265. # description : '/dev/kvm access mode')
  266. # option('group-render-mode', type : 'string', value : '0666',
  267. # description : 'Access mode for devices owned by render group (e.g. /dev/dri/renderD*, /dev/kfd).')
  268. #endif // 0
  269. option('default-kill-user-processes', type : 'boolean',
  270. description : 'the default value for KillUserProcesses= setting')
  271. #if 0 /// UNNEEDED by elogind
  272. # option('gshadow', type : 'boolean',
  273. # description : 'support for shadow group')
  274. # option('default-locale', type : 'string', value : '',
  275. # description : 'default locale used when /etc/locale.conf does not exist')
  276. # option('service-watchdog', type : 'string', value : '3min',
  277. # description : 'default watchdog setting for systemd services')
  278. #
  279. # option('default-dnssec', type : 'combo',
  280. # description : 'default DNSSEC mode',
  281. # choices : ['yes', 'allow-downgrade', 'no'],
  282. # value : 'allow-downgrade')
  283. # option('default-dns-over-tls', type : 'combo',
  284. # description : 'default DNS-over-TLS mode',
  285. # choices : ['yes', 'opportunistic', 'no'],
  286. # value : 'no')
  287. # option('dns-over-tls', type : 'combo', choices : ['auto', 'gnutls', 'openssl', 'true', 'false'],
  288. # description : 'DNS-over-TLS support')
  289. # option('dns-servers', type : 'string',
  290. # description : 'space-separated list of default DNS servers',
  291. # value : '1.1.1.1 8.8.8.8 1.0.0.1 8.8.4.4 2606:4700:4700::1111 2001:4860:4860::8888 2606:4700:4700::1001 2001:4860:4860::8844')
  292. # option('ntp-servers', type : 'string',
  293. # description : 'space-separated list of default NTP servers',
  294. # value : 'time1.google.com time2.google.com time3.google.com time4.google.com')
  295. # option('support-url', type : 'string',
  296. # description : 'the support URL to show in catalog entries included in systemd',
  297. # value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
  298. # option('www-target', type : 'string',
  299. # description : 'the address and dir to upload docs too',
  300. # value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
  301. #
  302. # option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
  303. # description : 'SECCOMP support')
  304. #endif // 0
  305. option('selinux', type : 'combo', choices : ['auto', 'true', 'false'],
  306. description : 'SELinux support')
  307. #if 0 /// UNNEEDED by elogind
  308. # option('apparmor', type : 'combo', choices : ['auto', 'true', 'false'],
  309. # description : 'AppArmor support')
  310. #endif // 0
  311. option('smack', type : 'boolean',
  312. description : 'SMACK support')
  313. option('smack-run-label', type : 'string',
  314. description : 'run systemd --system itself with a specific SMACK label')
  315. option('polkit', type : 'combo', choices : ['auto', 'true', 'false'],
  316. description : 'polkit support')
  317. option('ima', type : 'boolean',
  318. description : 'IMA support')
  319. option('acl', type : 'combo', choices : ['auto', 'true', 'false'],
  320. description : 'libacl support')
  321. option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
  322. description : 'libaudit support')
  323. #if 0 /// UNNEEDED by elogind
  324. # option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],
  325. # description : 'libblkid support')
  326. # option('fdisk', type : 'combo', choices : ['auto', 'true', 'false'],
  327. # description : 'libfdisk support')
  328. # option('kmod', type : 'combo', choices : ['auto', 'true', 'false'],
  329. # description : 'support for loadable modules')
  330. #endif // 0
  331. option('pam', type : 'combo', choices : ['auto', 'true', 'false'],
  332. description : 'PAM support')
  333. #if 0 /// UNNEEDED by elogind
  334. # option('pwquality', type : 'combo', choices : ['auto', 'true', 'false'],
  335. # description : 'libpwquality support')
  336. # option('microhttpd', type : 'combo', choices : ['auto', 'true', 'false'],
  337. # description : 'libµhttpd support')
  338. # option('libcryptsetup', type : 'combo', choices : ['auto', 'true', 'false'],
  339. # description : 'libcryptsetup support')
  340. # option('libcurl', type : 'combo', choices : ['auto', 'true', 'false'],
  341. # description : 'libcurl support')
  342. # option('idn', type : 'boolean',
  343. # description : 'use IDN when printing host names')
  344. # option('libidn2', type : 'combo', choices : ['auto', 'true', 'false'],
  345. # description : 'libidn2 support')
  346. # option('libidn', type : 'combo', choices : ['auto', 'true', 'false'],
  347. # description : 'libidn support')
  348. # option('libiptc', type : 'combo', choices : ['auto', 'true', 'false'],
  349. # description : 'libiptc support')
  350. # option('qrencode', type : 'combo', choices : ['auto', 'true', 'false'],
  351. # description : 'libqrencode support')
  352. # option('gcrypt', type : 'combo', choices : ['auto', 'true', 'false'],
  353. # description : 'gcrypt support')
  354. # option('gnutls', type : 'combo', choices : ['auto', 'true', 'false'],
  355. # description : 'gnutls support')
  356. # option('openssl', type : 'combo', choices : ['auto', 'true', 'false'],
  357. # description : 'openssl support')
  358. # option('p11kit', type : 'combo', choices : ['auto', 'true', 'false'],
  359. # description : 'p11kit support')
  360. # option('elfutils', type : 'combo', choices : ['auto', 'true', 'false'],
  361. # description : 'elfutils support')
  362. # option('zlib', type : 'combo', choices : ['auto', 'true', 'false'],
  363. # description : 'zlib compression support')
  364. # option('bzip2', type : 'combo', choices : ['auto', 'true', 'false'],
  365. # description : 'bzip2 compression support')
  366. # option('xz', type : 'combo', choices : ['auto', 'true', 'false'],
  367. # description : 'xz compression support')
  368. # option('lz4', type : 'combo', choices : ['auto', 'true', 'false'],
  369. # description : 'lz4 compression support')
  370. # option('xkbcommon', type : 'combo', choices : ['auto', 'true', 'false'],
  371. # description : 'xkbcommon keymap support')
  372. #endif // 0
  373. option('pcre2', type : 'combo', choices : ['auto', 'true', 'false'],
  374. description : 'regexp matching support using pcre2')
  375. option('glib', type : 'combo', choices : ['auto', 'true', 'false'],
  376. description : 'libglib support (for tests only)')
  377. option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
  378. description : 'libdbus support (for tests only)')
  379. #if 0 /// UNNEEDED BY elogind
  380. # option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
  381. # description : 'gnu-efi support for sd-boot')
  382. # option('efi-cc', type : 'array',
  383. # description : 'the compiler to use for EFI modules')
  384. # option('efi-ld', type : 'string',
  385. # description : 'the linker to use for EFI modules')
  386. # option('efi-libdir', type : 'string',
  387. # description : 'path to the EFI lib directory')
  388. # option('efi-includedir', type : 'string', value : '/usr/include/efi',
  389. # description : 'path to the EFI header directory')
  390. # option('tpm-pcrindex', type : 'integer', value : 8,
  391. # description : 'TPM PCR register number to use')
  392. #endif // 0
  393. option('bashcompletiondir', type : 'string',
  394. description : 'directory for bash completion scripts ["no" disables]')
  395. option('zshcompletiondir', type : 'string',
  396. description : 'directory for zsh completion scripts ["no" disables]')
  397. option('tests', type : 'combo', choices : ['true', 'unsafe', 'false'],
  398. description : 'enable extra tests with =unsafe')
  399. option('slow-tests', type : 'boolean', value : 'false',
  400. description : 'run the slow tests by default')
  401. option('install-tests', type : 'boolean', value : 'false',
  402. description : 'install test executables')
  403. option('ok-color', type: 'combo',
  404. choices : ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan',
  405. 'white', 'highlight-black', 'highlight-red', 'highlight-green',
  406. 'highlight-yellow', 'highlight-blue', 'highlight-magenta',
  407. 'highlight-cyan', 'highlight-white'],
  408. value : 'green',
  409. description: 'color of the "OK" status message')
  410. #if 0 /// fuzz regression tests are not supported by elogind
  411. # option('oss-fuzz', type : 'boolean', value : 'false',
  412. # description : 'build against oss-fuzz')
  413. # option('llvm-fuzz', type : 'boolean', value : 'false',
  414. # description : 'build against LLVM libFuzzer')
  415. # option('fuzzbuzz', type : 'boolean', value : 'false',
  416. # description : 'build against FuzzBuzz')
  417. # option('fuzzbuzz-engine', type : 'string',
  418. # description : 'the name of the FuzzBuzz fuzzing engine')
  419. # option('fuzzbuzz-engine-dir', type : 'string',
  420. # description : 'the directory where the FuzzBuzz fuzzing engine is')
  421. #endif // 0