]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/meson.build
test-network: add test for advertised hop limit
[thirdparty/systemd.git] / units / meson.build
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 with_runlevels = conf.get('HAVE_SYSV_COMPAT') == 1
4
5 units = [
6 { 'file' : 'basic.target' },
7 { 'file' : 'blockdev@.target' },
8 { 'file' : 'bluetooth.target' },
9 { 'file' : 'boot-complete.target' },
10 { 'file' : 'console-getty.service.in' },
11 { 'file' : 'container-getty@.service.in' },
12 {
13 'file' : 'cryptsetup-pre.target',
14 'conditions' : ['HAVE_LIBCRYPTSETUP'],
15 },
16 {
17 'file' : 'cryptsetup.target',
18 'conditions' : ['HAVE_LIBCRYPTSETUP'],
19 'symlinks' : ['sysinit.target.wants/'],
20 },
21 { 'file' : 'debug-shell.service.in' },
22 {
23 'file' : 'dev-hugepages.mount',
24 'symlinks' : ['sysinit.target.wants/'],
25 },
26 {
27 'file' : 'dev-mqueue.mount',
28 'symlinks' : ['sysinit.target.wants/'],
29 },
30 { 'file' : 'emergency.service.in' },
31 { 'file' : 'emergency.target' },
32 { 'file' : 'exit.target' },
33 { 'file' : 'factory-reset.target' },
34 { 'file' : 'final.target' },
35 { 'file' : 'first-boot-complete.target' },
36 { 'file' : 'getty-pre.target' },
37 {
38 'file' : 'getty.target',
39 'symlinks' : ['multi-user.target.wants/'],
40 },
41 {
42 'file' : 'getty@.service.in',
43 'symlinks' : ['autovt@.service'],
44 },
45 {
46 'file' : 'graphical.target',
47 'symlinks' : ['default.target'] + (with_runlevels ? ['runlevel5.target'] : []),
48 },
49 { 'file' : 'halt.target' },
50 {
51 'file' : 'hibernate.target',
52 'conditions' : ['ENABLE_HIBERNATE'],
53 },
54 {
55 'file' : 'hybrid-sleep.target',
56 'conditions' : ['ENABLE_HIBERNATE'],
57 },
58 {
59 'file' : 'systemd-battery-check.service.in',
60 'conditions' : ['ENABLE_INITRD'],
61 'symlinks' : ['initrd.target.wants/'],
62 },
63 {
64 'file' : 'systemd-bsod.service.in',
65 'conditions' : ['HAVE_QRENCODE', 'ENABLE_INITRD'],
66 'symlinks' : ['initrd.target.wants/'],
67 },
68 {
69 'file' : 'initrd-cleanup.service',
70 'conditions' : ['ENABLE_INITRD'],
71 },
72 {
73 'file' : 'initrd-fs.target',
74 'conditions' : ['ENABLE_INITRD'],
75 },
76 {
77 'file' : 'initrd-parse-etc.service.in',
78 'conditions' : ['ENABLE_INITRD'],
79 },
80 {
81 'file' : 'initrd-root-device.target',
82 'conditions' : ['ENABLE_INITRD'],
83 },
84 {
85 'file' : 'initrd-root-fs.target',
86 'conditions' : ['ENABLE_INITRD'],
87 },
88 {
89 'file' : 'initrd-switch-root.service',
90 'conditions' : ['ENABLE_INITRD'],
91 },
92 {
93 'file' : 'initrd-switch-root.target',
94 'conditions' : ['ENABLE_INITRD'],
95 },
96 {
97 'file' : 'initrd-udevadm-cleanup-db.service',
98 'conditions' : ['ENABLE_INITRD'],
99 },
100 {
101 'file' : 'initrd-usr-fs.target',
102 'conditions' : ['ENABLE_INITRD'],
103 },
104 {
105 'file' : 'initrd.target',
106 'conditions' : ['ENABLE_INITRD'],
107 },
108 {
109 'file' : 'integritysetup-pre.target',
110 'conditions' : ['HAVE_LIBCRYPTSETUP'],
111 },
112 {
113 'file' : 'integritysetup.target',
114 'conditions' : ['HAVE_LIBCRYPTSETUP'],
115 'symlinks' : ['sysinit.target.wants/'],
116 },
117 { 'file' : 'kexec.target' },
118 {
119 'file' : 'kmod-static-nodes.service.in',
120 'conditions' : ['HAVE_KMOD', 'ENABLE_TMPFILES'],
121 'symlinks' : ['sysinit.target.wants/'],
122 },
123 {
124 'file' : 'ldconfig.service',
125 'conditions' : ['ENABLE_LDCONFIG'],
126 'symlinks' : ['sysinit.target.wants/'],
127 },
128 { 'file' : 'local-fs-pre.target' },
129 { 'file' : 'local-fs.target' },
130 {
131 'file' : 'machine.slice',
132 'conditions' : ['ENABLE_MACHINED'],
133 },
134 {
135 'file' : 'machines.target',
136 'conditions' : ['ENABLE_MACHINED'],
137 },
138 { 'file' : 'modprobe@.service' },
139 {
140 'file' : 'multi-user.target',
141 'symlinks' : with_runlevels ? ['runlevel2.target', 'runlevel3.target', 'runlevel4.target'] : [],
142 },
143 { 'file' : 'network-online.target' },
144 { 'file' : 'network-pre.target' },
145 { 'file' : 'network.target' },
146 { 'file' : 'nss-lookup.target' },
147 { 'file' : 'nss-user-lookup.target' },
148 { 'file' : 'paths.target' },
149 {
150 'file' : 'poweroff.target',
151 'symlinks' : with_runlevels ? ['runlevel0.target'] : [],
152 },
153 { 'file' : 'printer.target' },
154 {
155 'file' : 'proc-sys-fs-binfmt_misc.automount',
156 'conditions' : ['ENABLE_BINFMT'],
157 'symlinks' : ['sysinit.target.wants/'],
158 },
159 {
160 'file' : 'proc-sys-fs-binfmt_misc.mount',
161 'conditions' : ['ENABLE_BINFMT'],
162 },
163 {
164 'file' : 'quotaon.service.in',
165 'conditions' : ['ENABLE_QUOTACHECK'],
166 },
167 {
168 'file' : 'rc-local.service.in',
169 'conditions' : ['HAVE_SYSV_COMPAT'],
170 },
171 {
172 'file' : 'reboot.target',
173 'symlinks' : ['ctrl-alt-del.target'] + (with_runlevels ? ['runlevel6.target'] : []),
174 },
175 {
176 'file' : 'remote-cryptsetup.target',
177 'conditions' : ['HAVE_LIBCRYPTSETUP'],
178 'symlinks' : ['initrd-root-device.target.wants/'],
179 },
180 { 'file' : 'remote-fs-pre.target' },
181 { 'file' : 'remote-fs.target' },
182 {
183 'file' : 'remote-veritysetup.target',
184 'conditions' : ['HAVE_LIBCRYPTSETUP'],
185 'symlinks' : ['initrd-root-device.target.wants/'],
186 },
187 { 'file' : 'rescue.service.in' },
188 {
189 'file' : 'rescue.target',
190 'symlinks' : with_runlevels ? ['runlevel1.target'] : [],
191 },
192 { 'file' : 'rpcbind.target' },
193 { 'file' : 'serial-getty@.service.in' },
194 { 'file' : 'shutdown.target' },
195 { 'file' : 'sigpwr.target' },
196 { 'file' : 'sleep.target' },
197 { 'file' : 'slices.target' },
198 { 'file' : 'smartcard.target' },
199 { 'file' : 'sockets.target' },
200 { 'file' : 'soft-reboot.target' },
201 { 'file' : 'sound.target' },
202 {
203 'file' : 'suspend-then-hibernate.target',
204 'conditions' : ['ENABLE_HIBERNATE'],
205 },
206 { 'file' : 'suspend.target' },
207 { 'file' : 'swap.target' },
208 {
209 'file' : 'sys-fs-fuse-connections.mount',
210 'symlinks' : ['sysinit.target.wants/'],
211 },
212 {
213 'file' : 'sys-kernel-config.mount',
214 'symlinks' : ['sysinit.target.wants/'],
215 },
216 {
217 'file' : 'sys-kernel-debug.mount',
218 'symlinks' : ['sysinit.target.wants/'],
219 },
220 {
221 'file' : 'sys-kernel-tracing.mount',
222 'symlinks' : ['sysinit.target.wants/'],
223 },
224 { 'file' : 'sysinit.target' },
225 { 'file' : 'syslog.socket' },
226 {
227 'file' : 'system-systemd\\x2dcryptsetup.slice',
228 'conditions' : ['HAVE_LIBCRYPTSETUP'],
229 },
230 {
231 'file' : 'system-systemd\\x2dveritysetup.slice',
232 'conditions' : ['HAVE_LIBCRYPTSETUP'],
233 },
234 { 'file' : 'system-update-cleanup.service' },
235 { 'file' : 'system-update-pre.target' },
236 { 'file' : 'system-update.target' },
237 {
238 'file' : 'systemd-ask-password-console.path',
239 'symlinks' : ['sysinit.target.wants/'],
240 },
241 { 'file' : 'systemd-ask-password-console.service' },
242 {
243 'file' : 'systemd-ask-password-wall.path',
244 'symlinks' : ['multi-user.target.wants/'],
245 },
246 { 'file' : 'systemd-ask-password-wall.service' },
247 {
248 'file' : 'systemd-backlight@.service.in',
249 'conditions' : ['ENABLE_BACKLIGHT'],
250 },
251 {
252 'file' : 'systemd-binfmt.service.in',
253 'conditions' : ['ENABLE_BINFMT'],
254 'symlinks' : ['sysinit.target.wants/'],
255 },
256 {
257 'file' : 'systemd-bless-boot.service.in',
258 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_BLKID'],
259 },
260 { 'file' : 'systemd-boot-check-no-failures.service.in' },
261 {
262 'file' : 'systemd-boot-random-seed.service',
263 'conditions' : ['ENABLE_BOOTLOADER'],
264 'symlinks' : ['sysinit.target.wants/'],
265 },
266 {
267 'file' : 'systemd-boot-update.service',
268 'conditions' : ['ENABLE_BOOTLOADER'],
269 },
270 {
271 'file' : 'systemd-confext.service',
272 'conditions' : ['ENABLE_SYSEXT'],
273 },
274 {
275 'file' : 'systemd-coredump.socket',
276 'conditions' : ['ENABLE_COREDUMP'],
277 'symlinks' : ['sockets.target.wants/'],
278 },
279 {
280 'file' : 'systemd-coredump@.service.in',
281 'conditions' : ['ENABLE_COREDUMP'],
282 },
283 {
284 'file' : 'systemd-creds.socket',
285 'symlinks' : ['sockets.target.wants/'],
286 },
287 { 'file' : 'systemd-creds@.service' },
288 { 'file' : 'systemd-exit.service' },
289 {
290 'file' : 'systemd-firstboot.service',
291 'conditions' : ['ENABLE_FIRSTBOOT'],
292 'symlinks' : ['sysinit.target.wants/'],
293 },
294 { 'file' : 'systemd-fsck-root.service.in' },
295 { 'file' : 'systemd-fsck@.service.in' },
296 { 'file' : 'systemd-growfs-root.service.in' },
297 { 'file' : 'systemd-growfs@.service.in' },
298 { 'file' : 'systemd-halt.service' },
299 {
300 'file' : 'systemd-hibernate-resume.service.in',
301 'conditions' : ['ENABLE_HIBERNATE'],
302 },
303 {
304 'file' : 'systemd-hibernate.service.in',
305 'conditions' : ['ENABLE_HIBERNATE'],
306 },
307 {
308 'file' : 'systemd-homed-activate.service',
309 'conditions' : ['ENABLE_HOMED'],
310 },
311 {
312 'file' : 'systemd-homed-firstboot.service',
313 'conditions' : ['ENABLE_HOMED'],
314 },
315 {
316 'file' : 'systemd-homed.service.in',
317 'conditions' : ['ENABLE_HOMED'],
318 },
319 {
320 'file' : 'systemd-hostnamed.service.in',
321 'conditions' : ['ENABLE_HOSTNAMED'],
322 'symlinks' : ['dbus-org.freedesktop.hostname1.service'],
323 },
324 {
325 'file' : 'systemd-hostnamed.socket',
326 'conditions' : ['ENABLE_HOSTNAMED'],
327 'symlinks' : ['sockets.target.wants/'],
328 },
329 {
330 'file' : 'systemd-hwdb-update.service.in',
331 'conditions' : ['ENABLE_HWDB'],
332 'symlinks' : ['sysinit.target.wants/'],
333 },
334 {
335 'file' : 'systemd-hybrid-sleep.service.in',
336 'conditions' : ['ENABLE_HIBERNATE'],
337 },
338 {
339 'file' : 'systemd-importd.service.in',
340 'conditions' : ['ENABLE_IMPORTD'],
341 'symlinks' : ['dbus-org.freedesktop.import1.service'],
342 },
343 {
344 'file' : 'systemd-initctl.service.in',
345 'conditions' : ['HAVE_SYSV_COMPAT'],
346 },
347 {
348 'file' : 'systemd-initctl.socket',
349 'conditions' : ['HAVE_SYSV_COMPAT'],
350 'symlinks' : ['sockets.target.wants/'],
351 },
352 {
353 'file' : 'systemd-journal-catalog-update.service',
354 'symlinks' : ['sysinit.target.wants/'],
355 },
356 {
357 'file' : 'systemd-journal-flush.service',
358 'symlinks' : ['sysinit.target.wants/'],
359 },
360 {
361 'file' : 'systemd-journal-gatewayd.service.in',
362 'conditions' : ['ENABLE_REMOTE', 'HAVE_MICROHTTPD'],
363 },
364 {
365 'file' : 'systemd-journal-gatewayd.socket',
366 'conditions' : ['ENABLE_REMOTE', 'HAVE_MICROHTTPD'],
367 },
368 {
369 'file' : 'systemd-journal-remote.service.in',
370 'conditions' : ['ENABLE_REMOTE', 'HAVE_MICROHTTPD'],
371 },
372 {
373 'file' : 'systemd-journal-remote.socket',
374 'conditions' : ['ENABLE_REMOTE', 'HAVE_MICROHTTPD'],
375 },
376 {
377 'file' : 'systemd-journal-upload.service.in',
378 'conditions' : ['ENABLE_REMOTE', 'HAVE_LIBCURL'],
379 },
380 { 'file' : 'systemd-journald-audit.socket' },
381 {
382 'file' : 'systemd-journald-dev-log.socket',
383 'symlinks' : ['sockets.target.wants/'],
384 },
385 { 'file' : 'systemd-journald-varlink@.socket' },
386 {
387 'file' : 'systemd-journald.service.in',
388 'symlinks' : ['sysinit.target.wants/'],
389 },
390 {
391 'file' : 'systemd-journald.socket',
392 'symlinks' : ['sockets.target.wants/'],
393 },
394 { 'file' : 'systemd-journald@.service.in' },
395 { 'file' : 'systemd-journald@.socket' },
396 { 'file' : 'systemd-kexec.service' },
397 {
398 'file' : 'systemd-localed.service.in',
399 'conditions' : ['ENABLE_LOCALED'],
400 'symlinks' : ['dbus-org.freedesktop.locale1.service'],
401 },
402 {
403 'file' : 'systemd-logind.service.in',
404 'conditions' : ['ENABLE_LOGIND'],
405 'symlinks' : ['multi-user.target.wants/', 'dbus-org.freedesktop.login1.service'],
406 },
407 {
408 'file' : 'systemd-machine-id-commit.service',
409 'symlinks' : ['sysinit.target.wants/'],
410 },
411 {
412 'file' : 'systemd-machined.service.in',
413 'conditions' : ['ENABLE_MACHINED'],
414 'symlinks' : ['dbus-org.freedesktop.machine1.service'],
415 },
416 {
417 'file' : 'systemd-modules-load.service.in',
418 'conditions' : ['HAVE_KMOD'],
419 'symlinks' : ['sysinit.target.wants/'],
420 },
421 { 'file' : 'systemd-network-generator.service.in' },
422 {
423 'file' : 'systemd-networkd-wait-online.service.in',
424 'conditions' : ['ENABLE_NETWORKD'],
425 },
426 {
427 'file' : 'systemd-networkd-wait-online@.service.in',
428 'conditions' : ['ENABLE_NETWORKD'],
429 },
430 {
431 'file' : 'systemd-networkd.service.in',
432 'conditions' : ['ENABLE_NETWORKD'],
433 },
434 {
435 'file' : 'systemd-networkd.socket',
436 'conditions' : ['ENABLE_NETWORKD'],
437 },
438 { 'file' : 'systemd-nspawn@.service.in' },
439 {
440 'file' : 'systemd-vmspawn@.service.in',
441 'conditions' : ['ENABLE_VMSPAWN'],
442 },
443 {
444 'file' : 'systemd-oomd.service.in',
445 'conditions' : ['ENABLE_OOMD'],
446 },
447 {
448 'file' : 'systemd-oomd.socket',
449 'conditions' : ['ENABLE_OOMD'],
450 },
451 {
452 'file' : 'systemd-pcrextend@.service.in',
453 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
454 },
455 {
456 'file' : 'systemd-pcrextend.socket',
457 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
458 'symlinks' : ['sockets.target.wants/'],
459 },
460 {
461 'file' : 'systemd-pcrfs-root.service.in',
462 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
463 },
464 {
465 'file' : 'systemd-pcrfs@.service.in',
466 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
467 },
468 {
469 'file' : 'systemd-pcrmachine.service.in',
470 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
471 'symlinks' : ['sysinit.target.wants/'],
472 },
473 {
474 'file' : 'systemd-pcrphase-initrd.service.in',
475 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2', 'ENABLE_INITRD'],
476 'symlinks' : ['initrd.target.wants/'],
477 },
478 {
479 'file' : 'systemd-pcrphase-sysinit.service.in',
480 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
481 'symlinks' : ['sysinit.target.wants/'],
482 },
483 {
484 'file' : 'systemd-pcrphase.service.in',
485 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
486 'symlinks' : ['sysinit.target.wants/'],
487 },
488 {
489 'file' : 'systemd-tpm2-setup.service.in',
490 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
491 'symlinks' : ['sysinit.target.wants/'],
492 },
493 {
494 'file' : 'systemd-tpm2-setup-early.service.in',
495 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
496 'symlinks' : ['sysinit.target.wants/'],
497 },
498 {
499 'file' : 'systemd-pcrlock-make-policy.service.in',
500 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
501 },
502 {
503 'file' : 'systemd-pcrlock-secureboot-policy.service.in',
504 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
505 },
506 {
507 'file' : 'systemd-pcrlock-secureboot-authority.service.in',
508 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
509 },
510 {
511 'file' : 'systemd-pcrlock-file-system.service.in',
512 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
513 },
514 {
515 'file' : 'systemd-pcrlock-machine-id.service.in',
516 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
517 },
518 {
519 'file' : 'systemd-pcrlock-firmware-code.service.in',
520 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
521 },
522 {
523 'file' : 'systemd-pcrlock-firmware-config.service.in',
524 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
525 },
526 {
527 'file' : 'systemd-pcrlock@.service.in',
528 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
529 },
530 {
531 'file' : 'systemd-pcrlock.socket',
532 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
533 'symlinks' : ['sockets.target.wants/'],
534 },
535 {
536 'file' : 'systemd-portabled.service.in',
537 'conditions' : ['ENABLE_PORTABLED'],
538 'symlinks' : ['dbus-org.freedesktop.portable1.service'],
539 },
540 { 'file' : 'systemd-poweroff.service' },
541 {
542 'file' : 'systemd-pstore.service.in',
543 'conditions' : ['ENABLE_PSTORE'],
544 },
545 {
546 'file' : 'systemd-quotacheck.service.in',
547 'conditions' : ['ENABLE_QUOTACHECK'],
548 },
549 {
550 'file' : 'systemd-random-seed.service.in',
551 'conditions' : ['ENABLE_RANDOMSEED'],
552 'symlinks' : ['sysinit.target.wants/'],
553 },
554 { 'file' : 'systemd-reboot.service' },
555 { 'file' : 'systemd-remount-fs.service.in' },
556 {
557 'file' : 'systemd-repart.service.in',
558 'conditions' : ['ENABLE_REPART'],
559 'symlinks' : ['sysinit.target.wants/', 'initrd-root-fs.target.wants/'],
560 },
561 {
562 'file' : 'systemd-resolved.service.in',
563 'conditions' : ['ENABLE_RESOLVE'],
564 },
565 {
566 'file' : 'systemd-rfkill.service.in',
567 'conditions' : ['ENABLE_RFKILL'],
568 },
569 {
570 'file' : 'systemd-rfkill.socket',
571 'conditions' : ['ENABLE_RFKILL'],
572 },
573 { 'file' : 'systemd-soft-reboot.service' },
574 {
575 'file' : 'systemd-suspend-then-hibernate.service.in',
576 'conditions' : ['ENABLE_HIBERNATE'],
577 },
578 { 'file' : 'systemd-suspend.service.in' },
579 {
580 'file' : 'systemd-sysctl.service.in',
581 'symlinks' : ['sysinit.target.wants/'],
582 },
583 {
584 'file' : 'systemd-sysext.service',
585 'conditions' : ['ENABLE_SYSEXT'],
586 },
587 {
588 'file' : 'systemd-sysext.socket',
589 'conditions' : ['ENABLE_SYSEXT'],
590 'symlinks' : ['sockets.target.wants/'],
591 },
592 {
593 'file' : 'systemd-sysext@.service',
594 'conditions' : ['ENABLE_SYSEXT'],
595 },
596 {
597 'file' : 'systemd-sysupdate-reboot.service.in',
598 'conditions' : ['ENABLE_SYSUPDATE'],
599 },
600 {
601 'file' : 'systemd-sysupdate-reboot.timer',
602 'conditions' : ['ENABLE_SYSUPDATE'],
603 },
604 {
605 'file' : 'systemd-sysupdate.service.in',
606 'conditions' : ['ENABLE_SYSUPDATE'],
607 },
608 {
609 'file' : 'systemd-sysupdate.timer',
610 'conditions' : ['ENABLE_SYSUPDATE'],
611 },
612 {
613 'file' : 'systemd-sysusers.service',
614 'conditions' : ['ENABLE_SYSUSERS'],
615 'symlinks' : ['sysinit.target.wants/'],
616 },
617 {
618 'file' : 'systemd-storagetm.service.in',
619 'conditions' : ['ENABLE_STORAGETM'],
620 },
621 {
622 'file' : 'storage-target-mode.target',
623 'conditions' : ['ENABLE_STORAGETM'],
624 },
625 {
626 'file' : 'systemd-time-wait-sync.service.in',
627 'conditions' : ['ENABLE_TIMESYNCD'],
628 },
629 {
630 'file' : 'systemd-timedated.service.in',
631 'conditions' : ['ENABLE_TIMEDATED'],
632 'symlinks' : ['dbus-org.freedesktop.timedate1.service'],
633 },
634 {
635 'file' : 'systemd-timesyncd.service.in',
636 'conditions' : ['ENABLE_TIMESYNCD'],
637 },
638 {
639 'file' : 'systemd-tmpfiles-clean.service',
640 'conditions' : ['ENABLE_TMPFILES'],
641 },
642 {
643 'file' : 'systemd-tmpfiles-clean.timer',
644 'conditions' : ['ENABLE_TMPFILES'],
645 'symlinks' : ['timers.target.wants/'],
646 },
647 {
648 'file' : 'systemd-tmpfiles-setup-dev-early.service',
649 'conditions' : ['ENABLE_TMPFILES'],
650 'symlinks' : ['sysinit.target.wants/'],
651 },
652 {
653 'file' : 'systemd-tmpfiles-setup-dev.service',
654 'conditions' : ['ENABLE_TMPFILES'],
655 'symlinks' : ['sysinit.target.wants/'],
656 },
657 {
658 'file' : 'systemd-tmpfiles-setup.service',
659 'conditions' : ['ENABLE_TMPFILES'],
660 'symlinks' : ['sysinit.target.wants/'],
661 },
662 { 'file' : 'systemd-udev-settle.service' },
663 {
664 'file' : 'systemd-udev-trigger.service',
665 'symlinks' : ['sysinit.target.wants/'],
666 },
667 {
668 'file' : 'systemd-udevd-control.socket',
669 'symlinks' : ['sockets.target.wants/'],
670 },
671 {
672 'file' : 'systemd-udevd-kernel.socket',
673 'symlinks' : ['sockets.target.wants/'],
674 },
675 {
676 'file' : 'systemd-udevd.service.in',
677 'symlinks' : ['sysinit.target.wants/'],
678 },
679 {
680 'file' : 'systemd-update-done.service.in',
681 'symlinks' : ['sysinit.target.wants/'],
682 },
683 {
684 'file' : 'systemd-update-utmp-runlevel.service.in',
685 'conditions' : ['ENABLE_UTMP', 'HAVE_SYSV_COMPAT'],
686 'symlinks' : ['multi-user.target.wants/', 'graphical.target.wants/', 'rescue.target.wants/'],
687 },
688 {
689 'file' : 'systemd-update-utmp.service.in',
690 'conditions' : ['ENABLE_UTMP'],
691 'symlinks' : ['sysinit.target.wants/'],
692 },
693 {
694 'file' : 'systemd-user-sessions.service.in',
695 'conditions' : ['HAVE_PAM'],
696 'symlinks' : ['multi-user.target.wants/'],
697 },
698 {
699 'file' : 'systemd-userdbd.service.in',
700 'conditions' : ['ENABLE_USERDB'],
701 },
702 {
703 'file' : 'systemd-userdbd.socket',
704 'conditions' : ['ENABLE_USERDB'],
705 },
706 {
707 'file' : 'systemd-vconsole-setup.service.in',
708 'conditions' : ['ENABLE_VCONSOLE'],
709 },
710 {
711 'file' : 'systemd-volatile-root.service.in',
712 'conditions' : ['ENABLE_INITRD'],
713 },
714 { 'file' : 'time-set.target' },
715 { 'file' : 'time-sync.target' },
716 { 'file' : 'timers.target' },
717 {
718 'file' : 'tmp.mount',
719 'symlinks' : ['local-fs.target.wants/'],
720 },
721 { 'file' : 'tpm2.target' },
722 { 'file' : 'umount.target' },
723 { 'file' : 'usb-gadget.target' },
724 { 'file' : 'user-runtime-dir@.service.in' },
725 { 'file' : 'user.slice' },
726 { 'file' : 'user@.service.in' },
727 {
728 'file' : 'var-lib-machines.mount',
729 'conditions' : ['ENABLE_MACHINED'],
730 'symlinks' : ['remote-fs.target.wants/', 'machines.target.wants/'],
731 },
732 {
733 'file' : 'veritysetup-pre.target',
734 'conditions' : ['HAVE_LIBCRYPTSETUP'],
735 },
736 {
737 'file' : 'veritysetup.target',
738 'conditions' : ['HAVE_LIBCRYPTSETUP'],
739 'symlinks' : ['sysinit.target.wants/'],
740 },
741 ]
742
743 foreach unit : units
744 source = unit.get('file')
745
746 if source.endswith('.in')
747 needs_jinja = true
748 name = source.substring(0, -3)
749 assert(name + '.in' == source)
750 else
751 needs_jinja = false
752 name = source
753 endif
754 source = files(source)
755
756 install = true
757 foreach cond : unit.get('conditions', [])
758 if conf.get(cond) != 1
759 install = false
760 break
761 endif
762 endforeach
763
764 if needs_jinja
765 custom_target(
766 name,
767 input : source,
768 output : name,
769 command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
770 install : install,
771 install_dir : systemunitdir)
772 elif install
773 install_data(source,
774 install_dir : systemunitdir)
775 endif
776
777 if install
778 foreach target : unit.get('symlinks', [])
779 if target.endswith('/')
780 install_emptydir(systemunitdir / target)
781 meson.add_install_script(sh, '-c',
782 ln_s.format(systemunitdir / name,
783 systemunitdir / target / name))
784 else
785 meson.add_install_script(sh, '-c',
786 ln_s.format(systemunitdir / name,
787 systemunitdir / target))
788 endif
789 endforeach
790 endif
791 endforeach
792
793 install_data('user-.slice.d/10-defaults.conf',
794 install_dir : systemunitdir + '/user-.slice.d')
795
796 install_data('user@.service.d/10-login-barrier.conf',
797 install_dir : systemunitdir + '/user@.service.d')
798 install_data('user@0.service.d/10-login-barrier.conf',
799 install_dir : systemunitdir + '/user@0.service.d')
800
801 ############################################################
802
803 install_emptydir(dbussessionservicedir)
804 meson.add_install_script(sh, '-c',
805 ln_s.format(dbussystemservicedir / 'org.freedesktop.systemd1.service',
806 dbussessionservicedir / 'org.freedesktop.systemd1.service'))
807
808 if conf.get('HAVE_SYSV_COMPAT') == 1
809 foreach i : [1, 2, 3, 4, 5]
810 install_emptydir(systemunitdir / 'runlevel@0@.target.wants'.format(i))
811 endforeach
812 endif
813
814 subdir('user')