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.
 
 
 
 
 
 

386 lines
19 KiB

  1. # -*- mode: meson -*-
  2. # SPDX-License-Identifier: LGPL-2.1+
  3. option('split-usr', type : 'combo', choices : ['auto', 'true', 'false'],
  4. description : '''/bin, /sbin aren't symlinks into /usr''')
  5. option('split-bin', type : 'combo', choices : ['auto', 'true', 'false'],
  6. description : '''sbin is not a symlink to bin''')
  7. option('rootlibdir', type : 'string',
  8. description : '''[/usr]/lib/x86_64-linux-gnu or such''')
  9. option('rootprefix', type : 'string',
  10. description : '''override the root prefix''')
  11. #if 0 /// UNNEEDED by elogind
  12. # option('link-udev-shared', type : 'boolean',
  13. # description : 'link systemd-udev and its helpers to libsystemd-shared.so')
  14. # option('link-systemctl-shared', type: 'boolean',
  15. # description : 'link systemctl against libsystemd-shared.so')
  16. #endif // 0
  17. option('static-libelogind', type : 'combo',
  18. choices : ['false', 'true', 'pic', 'no-pic'],
  19. description : '''install a static library for libelogind''')
  20. #if 0 /// UNNEEDED by elogind
  21. # option('static-libudev', type : 'combo',
  22. # choices : ['false', 'true', 'pic', 'no-pic'],
  23. # description : '''install a static library for libudev''')
  24. #
  25. # option('sysvinit-path', type : 'string', value : '/etc/init.d',
  26. # description : 'the directory where the SysV init scripts are located')
  27. # option('sysvrcnd-path', type : 'string', value : '/etc/rc.d',
  28. # description : 'the base directory for SysV rcN.d directories')
  29. # option('telinit-path', type : 'string', value : '/lib/sysvinit/telinit',
  30. # description : 'path to telinit')
  31. # option('rc-local', type : 'string',
  32. # value : '/etc/rc.local')
  33. # option('halt-local', type : 'string',
  34. # value : '/usr/sbin/halt.local')
  35. #
  36. # option('quotaon-path', type : 'string', description : 'path to quotaon')
  37. # option('quotacheck-path', type : 'string', description : 'path to quotacheck')
  38. # option('kill-path', type : 'string', description : 'path to kill')
  39. # option('kmod-path', type : 'string', description : 'path to kmod')
  40. #else
  41. # elogind must have a configurable rootlibexecdir
  42. option('rootlibexecdir', type : 'string',
  43. 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''')
  48. option('udevbindir', type : 'string',
  49. description : '''directory for udev binary files''')
  50. # We are nice and make the documentation paths configurable
  51. option('docdir', type : 'string', description : 'path where to install the documentation.')
  52. option('htmldir', type : 'string', description : 'path where to install the HTML documentation.')
  53. # We have no systemd-shutdown binary, so we need 'halt', 'reboot' and 'poweroff'
  54. option('halt-path', type : 'string', description : 'path to halt')
  55. option('poweroff-path', type : 'string', description : 'path to poweroff')
  56. option('reboot-path', type : 'string', description : 'path to reboot')
  57. #endif // 0
  58. option('kexec-path', type : 'string', description : 'path to kexec')
  59. #if 0 /// UNNEEDED by elogind
  60. # option('sulogin-path', type : 'string', description : 'path to sulogin')
  61. # option('mount-path', type : 'string', description : 'path to mount')
  62. # option('umount-path', type : 'string', description : 'path to umount')
  63. # option('loadkeys-path', type : 'string', description : 'path to loadkeys')
  64. # option('setfont-path', type : 'string', description : 'path to setfont')
  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. # option('debug-extra', type : 'array', choices : ['hashmap', 'mmap-cache'], value : [],
  71. # description : 'enable extra debugging')
  72. # option('memory-accounting-default', type : 'boolean',
  73. # description : 'enable MemoryAccounting= by default')
  74. #endif // 0
  75. option('valgrind', type : 'boolean', value : false,
  76. description : 'do extra operations to avoid valgrind warnings')
  77. #if 1 /// Add an extra debugging option for elogind
  78. option('debug-extra', type : 'array', choices : ['elogind', 'hashmap', 'mmap-cache'], value : [],
  79. description : 'enable extra debugging')
  80. #endif // 1
  81. option('utmp', type : 'boolean',
  82. description : 'support for utmp/wtmp log handling')
  83. #if 0 /// UNNEEDED by elogind
  84. # option('hibernate', type : 'boolean',
  85. # description : 'support for hibernation')
  86. # option('ldconfig', type : 'boolean',
  87. # description : 'support for dynamic linker cache creation')
  88. # option('resolve', type : 'boolean',
  89. # description : 'systemd-resolved stack')
  90. # option('efi', type : 'boolean',
  91. # description : 'enable systemd-boot and bootctl')
  92. # option('tpm', type : 'boolean',
  93. # description : 'TPM should be used to log events and extend the registers')
  94. # option('environment-d', type : 'boolean',
  95. # description : 'support for environment.d')
  96. # option('binfmt', type : 'boolean',
  97. # description : 'support for custom binary formats')
  98. # option('coredump', type : 'boolean',
  99. # description : 'install the coredump handler')
  100. # option('logind', type : 'boolean',
  101. # description : 'install the systemd-logind stack')
  102. # option('hostnamed', type : 'boolean',
  103. # description : 'install the systemd-hostnamed stack')
  104. # option('localed', type : 'boolean',
  105. # description : 'install the systemd-localed stack')
  106. # option('machined', type : 'boolean',
  107. # description : 'install the systemd-machined stack')
  108. # option('portabled', type : 'boolean',
  109. # description : 'install the systemd-portabled stack')
  110. # option('networkd', type : 'boolean',
  111. # description : 'install the systemd-networkd stack')
  112. # option('timedated', type : 'boolean',
  113. # description : 'install the systemd-timedated daemon')
  114. # option('timesyncd', type : 'boolean',
  115. # description : 'install the systemd-timesyncd daemon')
  116. # option('remote', type : 'combo', choices : ['auto', 'true', 'false'],
  117. # description : 'support for "journal over the network"')
  118. # option('myhostname', type : 'boolean',
  119. # description : 'nss-myhostname support')
  120. # option('firstboot', type : 'boolean',
  121. # description : 'support for firstboot mechanism')
  122. # option('randomseed', type : 'boolean',
  123. # description : 'support for restoring random seed')
  124. # option('backlight', type : 'boolean',
  125. # description : 'support for restoring backlight state')
  126. # option('vconsole', type : 'boolean',
  127. # description : 'support for vconsole configuration')
  128. # option('quotacheck', type : 'boolean',
  129. # description : 'support for the quotacheck tools')
  130. # option('sysusers', type : 'boolean',
  131. # description : 'support for the sysusers configuration')
  132. # option('tmpfiles', type : 'boolean',
  133. # description : 'support for tmpfiles.d')
  134. # option('importd', type : 'combo', choices : ['auto', 'true', 'false'],
  135. # description : 'install the systemd-importd daemon')
  136. # option('hwdb', type : 'boolean',
  137. # description : 'support for the hardware database')
  138. # option('rfkill', type : 'boolean',
  139. # description : 'support for the rfkill tools')
  140. #endif // 0
  141. option('man', type : 'combo', choices : ['auto', 'true', 'false'],
  142. description : 'build and install man pages')
  143. option('html', type : 'combo', choices : ['auto', 'true', 'false'],
  144. value : 'false',
  145. 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')
  149. #endif // 0
  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]')
  163. #endif // 0
  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')
  170. option('fallback-hostname', type : 'string', value : 'localhost',
  171. description : 'the hostname used if none configured')
  172. #if 0 /// UNNEEDED by elogind
  173. # option('compat-gateway-hostname', type : 'boolean', value : 'false',
  174. # description : 'allow "gateway" as the symbolic name for default gateway')
  175. #endif // 0
  176. option('default-hierarchy', type : 'combo',
  177. choices : ['legacy', 'hybrid', 'unified'], value : 'hybrid',
  178. #if 0 /// elogind interprets this a bit different
  179. # description : 'default cgroup hierarchy')
  180. # option('time-epoch', type : 'string',
  181. # description : 'time epoch for time clients')
  182. #else
  183. description : '''Wanted cgroup hierarchy if elogind has to be a cgroup controller:
  184. "legacy" assumes tmpfs mounted on /sys/fs/cgroup and cgroup on its
  185. subfolders.
  186. "hybrid" assumes cgroups version 2 mounted on /sys/fs/cgroup/unified.
  187. /sys/fs/cgroup is legacy, then.
  188. "unified" assumes cgroups version 2 on /sys/fs/cgroup''')
  189. option('cgroup-controller', type : 'string',
  190. description : 'Name of the cgroup controller to use')
  191. #endif // 0
  192. option('system-uid-max', type : 'string',
  193. description : 'maximum system UID')
  194. option('system-gid-max', type : 'string',
  195. description : 'maximum system GID')
  196. #if 0 /// UNNEEDED by elogind
  197. # option('dynamic-uid-min', type : 'string',
  198. # description : 'minimum dynamic UID',
  199. # value : '61184') # That's → 0x0000EF00 in hex
  200. # option('dynamic-uid-max', type : 'string',
  201. # description : 'maximum dynamic UID',
  202. # value : '65519') # That's → 0x0000FFEF in hex
  203. # option('container-uid-base-min', type : 'string',
  204. # description : 'minimum container UID base',
  205. # value : '524288') # That's → 0x00080000 in hex
  206. # option('container-uid-base-max', type : 'string',
  207. # description : 'maximum container UID base',
  208. # value : '1878982656') # That's → 0x6FFF0000 in hex
  209. #endif // 0
  210. option('tty-gid', type : 'string',
  211. description : 'the numeric GID of the "tty" group',
  212. value : '5')
  213. #if 0 /// UNNEEDED by elogind
  214. # option('users-gid', type : 'string',
  215. # description : 'the numeric GID of the "users" group')
  216. # option('adm-group', type : 'boolean',
  217. # description : 'the ACL for adm group should be added')
  218. # option('wheel-group', type : 'boolean',
  219. # description : 'the ACL for wheel group should be added')
  220. #endif // 0
  221. option('nobody-user', type : 'string',
  222. description : 'The name of the nobody user (the one with UID 65534)',
  223. value : 'nobody')
  224. option('nobody-group', type : 'string',
  225. description : 'The name of the nobody group (the one with GID 65534)',
  226. value : 'nobody')
  227. #if 0 /// UNNEEDED by elogind
  228. # option('dev-kvm-mode', type : 'string', value : '0666',
  229. # description : '/dev/kvm access mode')
  230. # option('group-render-mode', type : 'string', value : '0666',
  231. # description : 'Access mode for devices owned by render group (e.g. /dev/dri/renderD*, /dev/kfd).')
  232. #endif // 0
  233. option('default-kill-user-processes', type : 'boolean',
  234. description : 'the default value for KillUserProcesses= setting')
  235. option('gshadow', type : 'boolean',
  236. description : 'support for shadow group')
  237. #if 0 /// UNNEEDED by elogind
  238. # option('default-dnssec', type : 'combo',
  239. # description : 'default DNSSEC mode',
  240. # choices : ['yes', 'allow-downgrade', 'no'],
  241. # value : 'allow-downgrade')
  242. # option('default-dns-over-tls', type : 'combo',
  243. # description : 'default DNS-over-TLS mode',
  244. # choices : ['opportunistic', 'no'],
  245. # value : 'no')
  246. # option('dns-over-tls', type : 'combo', choices : ['auto', 'true', 'false'],
  247. # description : 'DNS-over-TLS support')
  248. # option('dns-servers', type : 'string',
  249. # description : 'space-separated list of default DNS servers',
  250. # value : '8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844')
  251. # option('ntp-servers', type : 'string',
  252. # description : 'space-separated list of default NTP servers',
  253. # value : 'time1.google.com time2.google.com time3.google.com time4.google.com')
  254. # option('support-url', type : 'string',
  255. # description : 'the support URL to show in catalog entries included in systemd',
  256. # value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
  257. # option('www-target', type : 'string',
  258. # description : 'the address and dir to upload docs too',
  259. # value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
  260. #
  261. # option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
  262. # description : 'SECCOMP support')
  263. #endif // 0
  264. option('selinux', type : 'combo', choices : ['auto', 'true', 'false'],
  265. description : 'SELinux support')
  266. #if 0 /// UNNEEDED by elogind
  267. # option('apparmor', type : 'combo', choices : ['auto', 'true', 'false'],
  268. # description : 'AppArmor support')
  269. #endif // 0
  270. option('smack', type : 'boolean',
  271. description : 'SMACK support')
  272. option('smack-run-label', type : 'string',
  273. description : 'run systemd --system itself with a specific SMACK label')
  274. option('polkit', type : 'combo', choices : ['auto', 'true', 'false'],
  275. description : 'PolicyKit support')
  276. option('ima', type : 'boolean',
  277. description : 'IMA support')
  278. option('acl', type : 'combo', choices : ['auto', 'true', 'false'],
  279. description : 'libacl support')
  280. option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
  281. description : 'libaudit support')
  282. #if 0 /// UNNEEDED by elogind
  283. # option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],
  284. # description : 'libblkid support')
  285. # option('kmod', type : 'combo', choices : ['auto', 'true', 'false'],
  286. # description : 'support for loadable modules')
  287. #endif // 0
  288. option('pam', type : 'combo', choices : ['auto', 'true', 'false'],
  289. description : 'PAM support')
  290. #if 0 /// UNNEEDED by elogind
  291. # option('microhttpd', type : 'combo', choices : ['auto', 'true', 'false'],
  292. # description : 'libµhttpd support')
  293. # option('libcryptsetup', type : 'combo', choices : ['auto', 'true', 'false'],
  294. # description : 'libcryptsetup support')
  295. # option('libcurl', type : 'combo', choices : ['auto', 'true', 'false'],
  296. # description : 'libcurl support')
  297. # option('idn', type : 'boolean',
  298. # description : 'use IDN when printing host names')
  299. # option('libidn2', type : 'combo', choices : ['auto', 'true', 'false'],
  300. # description : 'libidn2 support')
  301. # option('libidn', type : 'combo', choices : ['auto', 'true', 'false'],
  302. # description : 'libidn support')
  303. # option('nss-systemd', type : 'boolean',
  304. # description : 'enable nss-systemd')
  305. # option('libiptc', type : 'combo', choices : ['auto', 'true', 'false'],
  306. # description : 'libiptc support')
  307. # option('qrencode', type : 'combo', choices : ['auto', 'true', 'false'],
  308. # description : 'libqrencode support')
  309. # option('gcrypt', type : 'combo', choices : ['auto', 'true', 'false'],
  310. # description : 'gcrypt support')
  311. # option('gnutls', type : 'combo', choices : ['auto', 'true', 'false'],
  312. # description : 'gnutls support')
  313. # option('elfutils', type : 'combo', choices : ['auto', 'true', 'false'],
  314. # description : 'elfutils support')
  315. # option('zlib', type : 'combo', choices : ['auto', 'true', 'false'],
  316. # description : 'zlib compression support')
  317. # option('bzip2', type : 'combo', choices : ['auto', 'true', 'false'],
  318. # description : 'bzip2 compression support')
  319. # option('xz', type : 'combo', choices : ['auto', 'true', 'false'],
  320. # description : 'xz compression support')
  321. # option('lz4', type : 'combo', choices : ['auto', 'true', 'false'],
  322. # description : 'lz4 compression support')
  323. # option('xkbcommon', type : 'combo', choices : ['auto', 'true', 'false'],
  324. # description : 'xkbcommon keymap support')
  325. #endif // 0
  326. option('pcre2', type : 'combo', choices : ['auto', 'true', 'false'],
  327. description : 'regexp matching support using pcre2')
  328. option('glib', type : 'combo', choices : ['auto', 'true', 'false'],
  329. description : 'libglib support (for tests only)')
  330. option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
  331. description : 'libdbus support (for tests only)')
  332. #if 0 /// UNNEEDED BY elogind
  333. # option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
  334. # description : 'gnu-efi support for sd-boot')
  335. # option('efi-cc', type : 'string', value : 'gcc',
  336. # description : 'the compiler to use for EFI modules')
  337. # option('efi-ld', type : 'string', value : 'ld',
  338. # description : 'the linker to use for EFI modules')
  339. # option('efi-libdir', type : 'string',
  340. # description : 'path to the EFI lib directory')
  341. # option('efi-ldsdir', type : 'string',
  342. # description : 'path to the EFI lds directory')
  343. # option('efi-includedir', type : 'string', value : '/usr/include/efi',
  344. # description : 'path to the EFI header directory')
  345. # option('tpm-pcrindex', type : 'string', value : '8',
  346. # description : 'TPM PCR register number to use')
  347. #endif // 0
  348. option('bashcompletiondir', type : 'string',
  349. description : 'directory for bash completion scripts ["no" disables]')
  350. option('zshcompletiondir', type : 'string',
  351. 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')
  358. option('ok-color', type: 'combo',
  359. choices : ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan',
  360. 'white', 'highlight-black', 'highlight-red', 'highlight-green',
  361. 'highlight-yellow', 'highlight-blue', 'highlight-magenta',
  362. 'highlight-cyan', 'highlight-white'],
  363. value : 'green',
  364. description: 'color of the "OK" status message')
  365. #if 0 /// fuzz regression tests are not supported by elogind
  366. # option('oss-fuzz', type : 'boolean', value : 'false',
  367. # description : 'build against oss-fuzz')
  368. # option('llvm-fuzz', type : 'boolean', value : 'false',
  369. # description : 'build against LLVM libFuzzer')
  370. #endif // 0