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.

417 lines
21KB

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