]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/meson.build
Merge pull request #29721 from poettering/systemd-project
[thirdparty/systemd.git] / units / meson.build
CommitLineData
db9ecf05 1# SPDX-License-Identifier: LGPL-2.1-or-later
3a726fcd 2
6589a569
NL
3with_runlevels = conf.get('HAVE_SYSV_COMPAT') == 1
4
5c23128d 5units = [
742aebc5
YW
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 },
e3d4148d 58 {
95dafd30 59 'file' : 'systemd-battery-check.service.in',
e3d4148d 60 'conditions' : ['ENABLE_INITRD'],
95dafd30 61 'symlinks' : ['initrd.target.wants/'],
e3d4148d 62 },
77d0917e
OJ
63 {
64 'file' : 'systemd-bsod.service.in',
c3c885a7 65 'conditions' : ['HAVE_QRENCODE', 'ENABLE_INITRD'],
77d0917e
OJ
66 'symlinks' : ['initrd.target.wants/'],
67 },
742aebc5
YW
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 {
fc5c6ecc
TB
164 'file' : 'quotaon@.service.in',
165 'conditions' : ['ENABLE_QUOTACHECK'],
166 },
167 {
168 'file' : 'quotaon-root.service.in',
742aebc5
YW
169 'conditions' : ['ENABLE_QUOTACHECK'],
170 },
171 {
172 'file' : 'rc-local.service.in',
173 'conditions' : ['HAVE_SYSV_COMPAT'],
174 },
175 {
176 'file' : 'reboot.target',
177 'symlinks' : ['ctrl-alt-del.target'] + (with_runlevels ? ['runlevel6.target'] : []),
178 },
179 {
180 'file' : 'remote-cryptsetup.target',
181 'conditions' : ['HAVE_LIBCRYPTSETUP'],
182 'symlinks' : ['initrd-root-device.target.wants/'],
183 },
184 { 'file' : 'remote-fs-pre.target' },
185 { 'file' : 'remote-fs.target' },
186 {
187 'file' : 'remote-veritysetup.target',
188 'conditions' : ['HAVE_LIBCRYPTSETUP'],
189 'symlinks' : ['initrd-root-device.target.wants/'],
190 },
191 { 'file' : 'rescue.service.in' },
192 {
193 'file' : 'rescue.target',
194 'symlinks' : with_runlevels ? ['runlevel1.target'] : [],
195 },
196 { 'file' : 'rpcbind.target' },
197 { 'file' : 'serial-getty@.service.in' },
198 { 'file' : 'shutdown.target' },
199 { 'file' : 'sigpwr.target' },
200 { 'file' : 'sleep.target' },
201 { 'file' : 'slices.target' },
202 { 'file' : 'smartcard.target' },
203 { 'file' : 'sockets.target' },
204 { 'file' : 'soft-reboot.target' },
205 { 'file' : 'sound.target' },
95be59f9 206 { 'file' : 'ssh-access.target' },
742aebc5
YW
207 {
208 'file' : 'suspend-then-hibernate.target',
209 'conditions' : ['ENABLE_HIBERNATE'],
210 },
211 { 'file' : 'suspend.target' },
212 { 'file' : 'swap.target' },
213 {
214 'file' : 'sys-fs-fuse-connections.mount',
215 'symlinks' : ['sysinit.target.wants/'],
216 },
217 {
218 'file' : 'sys-kernel-config.mount',
219 'symlinks' : ['sysinit.target.wants/'],
220 },
221 {
222 'file' : 'sys-kernel-debug.mount',
223 'symlinks' : ['sysinit.target.wants/'],
224 },
225 {
226 'file' : 'sys-kernel-tracing.mount',
227 'symlinks' : ['sysinit.target.wants/'],
228 },
229 { 'file' : 'sysinit.target' },
230 { 'file' : 'syslog.socket' },
231 {
232 'file' : 'system-systemd\\x2dcryptsetup.slice',
233 'conditions' : ['HAVE_LIBCRYPTSETUP'],
234 },
235 {
236 'file' : 'system-systemd\\x2dveritysetup.slice',
237 'conditions' : ['HAVE_LIBCRYPTSETUP'],
238 },
239 { 'file' : 'system-update-cleanup.service' },
240 { 'file' : 'system-update-pre.target' },
241 { 'file' : 'system-update.target' },
242 {
243 'file' : 'systemd-ask-password-console.path',
244 'symlinks' : ['sysinit.target.wants/'],
245 },
246 { 'file' : 'systemd-ask-password-console.service' },
247 {
248 'file' : 'systemd-ask-password-wall.path',
249 'symlinks' : ['multi-user.target.wants/'],
250 },
251 { 'file' : 'systemd-ask-password-wall.service' },
252 {
253 'file' : 'systemd-backlight@.service.in',
254 'conditions' : ['ENABLE_BACKLIGHT'],
255 },
256 {
257 'file' : 'systemd-binfmt.service.in',
258 'conditions' : ['ENABLE_BINFMT'],
259 'symlinks' : ['sysinit.target.wants/'],
260 },
261 {
262 'file' : 'systemd-bless-boot.service.in',
263 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_BLKID'],
264 },
265 { 'file' : 'systemd-boot-check-no-failures.service.in' },
266 {
267 'file' : 'systemd-boot-random-seed.service',
268 'conditions' : ['ENABLE_BOOTLOADER'],
269 'symlinks' : ['sysinit.target.wants/'],
270 },
271 {
272 'file' : 'systemd-boot-update.service',
273 'conditions' : ['ENABLE_BOOTLOADER'],
274 },
79ec3995 275 {
7b799b87 276 'file' : 'systemd-bootctl@.service',
79ec3995
LP
277 'conditions' : ['ENABLE_BOOTLOADER'],
278 },
279 {
280 'file' : 'systemd-bootctl.socket',
281 'conditions' : ['ENABLE_BOOTLOADER'],
282 'symlinks' : ['sockets.target.wants/'],
283 },
742aebc5
YW
284 {
285 'file' : 'systemd-confext.service',
286 'conditions' : ['ENABLE_SYSEXT'],
287 },
288 {
289 'file' : 'systemd-coredump.socket',
290 'conditions' : ['ENABLE_COREDUMP'],
291 'symlinks' : ['sockets.target.wants/'],
292 },
293 {
294 'file' : 'systemd-coredump@.service.in',
295 'conditions' : ['ENABLE_COREDUMP'],
296 },
644f19c7
LP
297 {
298 'file' : 'systemd-creds.socket',
299 'symlinks' : ['sockets.target.wants/'],
300 },
301 { 'file' : 'systemd-creds@.service' },
742aebc5
YW
302 { 'file' : 'systemd-exit.service' },
303 {
304 'file' : 'systemd-firstboot.service',
305 'conditions' : ['ENABLE_FIRSTBOOT'],
306 'symlinks' : ['sysinit.target.wants/'],
307 },
308 { 'file' : 'systemd-fsck-root.service.in' },
309 { 'file' : 'systemd-fsck@.service.in' },
310 { 'file' : 'systemd-growfs-root.service.in' },
311 { 'file' : 'systemd-growfs@.service.in' },
312 { 'file' : 'systemd-halt.service' },
a628d933
MY
313 {
314 'file' : 'systemd-hibernate-resume.service.in',
315 'conditions' : ['ENABLE_HIBERNATE'],
316 },
742aebc5
YW
317 {
318 'file' : 'systemd-hibernate.service.in',
319 'conditions' : ['ENABLE_HIBERNATE'],
320 },
321 {
322 'file' : 'systemd-homed-activate.service',
323 'conditions' : ['ENABLE_HOMED'],
324 },
3ccadbce
LP
325 {
326 'file' : 'systemd-homed-firstboot.service',
327 'conditions' : ['ENABLE_HOMED'],
328 },
742aebc5
YW
329 {
330 'file' : 'systemd-homed.service.in',
331 'conditions' : ['ENABLE_HOMED'],
332 },
333 {
334 'file' : 'systemd-hostnamed.service.in',
335 'conditions' : ['ENABLE_HOSTNAMED'],
336 'symlinks' : ['dbus-org.freedesktop.hostname1.service'],
337 },
0a6598bb
LP
338 {
339 'file' : 'systemd-hostnamed.socket',
340 'conditions' : ['ENABLE_HOSTNAMED'],
341 'symlinks' : ['sockets.target.wants/'],
342 },
742aebc5
YW
343 {
344 'file' : 'systemd-hwdb-update.service.in',
345 'conditions' : ['ENABLE_HWDB'],
346 'symlinks' : ['sysinit.target.wants/'],
347 },
348 {
349 'file' : 'systemd-hybrid-sleep.service.in',
350 'conditions' : ['ENABLE_HIBERNATE'],
351 },
352 {
353 'file' : 'systemd-importd.service.in',
354 'conditions' : ['ENABLE_IMPORTD'],
355 'symlinks' : ['dbus-org.freedesktop.import1.service'],
356 },
357 {
358 'file' : 'systemd-initctl.service.in',
359 'conditions' : ['HAVE_SYSV_COMPAT'],
360 },
361 {
362 'file' : 'systemd-initctl.socket',
363 'conditions' : ['HAVE_SYSV_COMPAT'],
364 'symlinks' : ['sockets.target.wants/'],
365 },
366 {
367 'file' : 'systemd-journal-catalog-update.service',
368 'symlinks' : ['sysinit.target.wants/'],
369 },
370 {
371 'file' : 'systemd-journal-flush.service',
372 'symlinks' : ['sysinit.target.wants/'],
373 },
374 {
375 'file' : 'systemd-journal-gatewayd.service.in',
376 'conditions' : ['ENABLE_REMOTE', 'HAVE_MICROHTTPD'],
377 },
378 {
379 'file' : 'systemd-journal-gatewayd.socket',
380 'conditions' : ['ENABLE_REMOTE', 'HAVE_MICROHTTPD'],
381 },
382 {
383 'file' : 'systemd-journal-remote.service.in',
384 'conditions' : ['ENABLE_REMOTE', 'HAVE_MICROHTTPD'],
385 },
386 {
387 'file' : 'systemd-journal-remote.socket',
388 'conditions' : ['ENABLE_REMOTE', 'HAVE_MICROHTTPD'],
389 },
390 {
391 'file' : 'systemd-journal-upload.service.in',
392 'conditions' : ['ENABLE_REMOTE', 'HAVE_LIBCURL'],
393 },
394 { 'file' : 'systemd-journald-audit.socket' },
395 {
396 'file' : 'systemd-journald-dev-log.socket',
397 'symlinks' : ['sockets.target.wants/'],
398 },
399 { 'file' : 'systemd-journald-varlink@.socket' },
400 {
401 'file' : 'systemd-journald.service.in',
402 'symlinks' : ['sysinit.target.wants/'],
403 },
404 {
405 'file' : 'systemd-journald.socket',
406 'symlinks' : ['sockets.target.wants/'],
407 },
408 { 'file' : 'systemd-journald@.service.in' },
409 { 'file' : 'systemd-journald@.socket' },
410 { 'file' : 'systemd-kexec.service' },
411 {
412 'file' : 'systemd-localed.service.in',
413 'conditions' : ['ENABLE_LOCALED'],
414 'symlinks' : ['dbus-org.freedesktop.locale1.service'],
415 },
416 {
417 'file' : 'systemd-logind.service.in',
418 'conditions' : ['ENABLE_LOGIND'],
419 'symlinks' : ['multi-user.target.wants/', 'dbus-org.freedesktop.login1.service'],
420 },
421 {
422 'file' : 'systemd-machine-id-commit.service',
423 'symlinks' : ['sysinit.target.wants/'],
424 },
425 {
426 'file' : 'systemd-machined.service.in',
427 'conditions' : ['ENABLE_MACHINED'],
428 'symlinks' : ['dbus-org.freedesktop.machine1.service'],
429 },
430 {
431 'file' : 'systemd-modules-load.service.in',
432 'conditions' : ['HAVE_KMOD'],
433 'symlinks' : ['sysinit.target.wants/'],
434 },
435 { 'file' : 'systemd-network-generator.service.in' },
91676b64
YW
436 {
437 'file' : 'systemd-networkd-persistent-storage.service',
438 'conditions' : ['ENABLE_NETWORKD'],
439 },
742aebc5
YW
440 {
441 'file' : 'systemd-networkd-wait-online.service.in',
442 'conditions' : ['ENABLE_NETWORKD'],
443 },
444 {
445 'file' : 'systemd-networkd-wait-online@.service.in',
446 'conditions' : ['ENABLE_NETWORKD'],
447 },
448 {
449 'file' : 'systemd-networkd.service.in',
450 'conditions' : ['ENABLE_NETWORKD'],
451 },
452 {
453 'file' : 'systemd-networkd.socket',
454 'conditions' : ['ENABLE_NETWORKD'],
455 },
456 { 'file' : 'systemd-nspawn@.service.in' },
38624568
SL
457 {
458 'file' : 'systemd-vmspawn@.service.in',
459 'conditions' : ['ENABLE_VMSPAWN'],
460 },
742aebc5
YW
461 {
462 'file' : 'systemd-oomd.service.in',
463 'conditions' : ['ENABLE_OOMD'],
464 },
465 {
466 'file' : 'systemd-oomd.socket',
467 'conditions' : ['ENABLE_OOMD'],
468 },
4e16d5c6
LP
469 {
470 'file' : 'systemd-pcrextend@.service.in',
471 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
472 },
473 {
474 'file' : 'systemd-pcrextend.socket',
475 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
476 'symlinks' : ['sockets.target.wants/'],
477 },
742aebc5
YW
478 {
479 'file' : 'systemd-pcrfs-root.service.in',
480 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
481 },
482 {
483 'file' : 'systemd-pcrfs@.service.in',
484 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
485 },
486 {
487 'file' : 'systemd-pcrmachine.service.in',
488 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
489 'symlinks' : ['sysinit.target.wants/'],
490 },
491 {
492 'file' : 'systemd-pcrphase-initrd.service.in',
493 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2', 'ENABLE_INITRD'],
494 'symlinks' : ['initrd.target.wants/'],
495 },
496 {
497 'file' : 'systemd-pcrphase-sysinit.service.in',
498 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
499 'symlinks' : ['sysinit.target.wants/'],
500 },
501 {
502 'file' : 'systemd-pcrphase.service.in',
503 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
504 'symlinks' : ['sysinit.target.wants/'],
505 },
2e64cb71
LP
506 {
507 'file' : 'systemd-tpm2-setup.service.in',
508 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
509 'symlinks' : ['sysinit.target.wants/'],
510 },
511 {
512 'file' : 'systemd-tpm2-setup-early.service.in',
513 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
514 'symlinks' : ['sysinit.target.wants/'],
515 },
809def19
LP
516 {
517 'file' : 'systemd-pcrlock-make-policy.service.in',
518 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
519 },
520 {
521 'file' : 'systemd-pcrlock-secureboot-policy.service.in',
522 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
523 },
524 {
525 'file' : 'systemd-pcrlock-secureboot-authority.service.in',
526 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
527 },
528 {
529 'file' : 'systemd-pcrlock-file-system.service.in',
530 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
531 },
532 {
533 'file' : 'systemd-pcrlock-machine-id.service.in',
534 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
535 },
536 {
537 'file' : 'systemd-pcrlock-firmware-code.service.in',
538 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
539 },
540 {
541 'file' : 'systemd-pcrlock-firmware-config.service.in',
542 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
543 },
15138e79
LP
544 {
545 'file' : 'systemd-pcrlock@.service.in',
546 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
547 },
548 {
549 'file' : 'systemd-pcrlock.socket',
550 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
551 'symlinks' : ['sockets.target.wants/'],
552 },
742aebc5
YW
553 {
554 'file' : 'systemd-portabled.service.in',
555 'conditions' : ['ENABLE_PORTABLED'],
556 'symlinks' : ['dbus-org.freedesktop.portable1.service'],
557 },
558 { 'file' : 'systemd-poweroff.service' },
559 {
560 'file' : 'systemd-pstore.service.in',
561 'conditions' : ['ENABLE_PSTORE'],
562 },
563 {
fc5c6ecc
TB
564 'file' : 'systemd-quotacheck@.service.in',
565 'conditions' : ['ENABLE_QUOTACHECK'],
566 },
567 {
568 'file' : 'systemd-quotacheck-root.service.in',
742aebc5
YW
569 'conditions' : ['ENABLE_QUOTACHECK'],
570 },
571 {
572 'file' : 'systemd-random-seed.service.in',
573 'conditions' : ['ENABLE_RANDOMSEED'],
574 'symlinks' : ['sysinit.target.wants/'],
575 },
576 { 'file' : 'systemd-reboot.service' },
577 { 'file' : 'systemd-remount-fs.service.in' },
578 {
7b799b87 579 'file' : 'systemd-repart.service',
742aebc5
YW
580 'conditions' : ['ENABLE_REPART'],
581 'symlinks' : ['sysinit.target.wants/', 'initrd-root-fs.target.wants/'],
582 },
583 {
584 'file' : 'systemd-resolved.service.in',
585 'conditions' : ['ENABLE_RESOLVE'],
586 },
587 {
588 'file' : 'systemd-rfkill.service.in',
589 'conditions' : ['ENABLE_RFKILL'],
590 },
591 {
592 'file' : 'systemd-rfkill.socket',
593 'conditions' : ['ENABLE_RFKILL'],
594 },
595 { 'file' : 'systemd-soft-reboot.service' },
596 {
597 'file' : 'systemd-suspend-then-hibernate.service.in',
598 'conditions' : ['ENABLE_HIBERNATE'],
599 },
600 { 'file' : 'systemd-suspend.service.in' },
601 {
602 'file' : 'systemd-sysctl.service.in',
603 'symlinks' : ['sysinit.target.wants/'],
604 },
605 {
606 'file' : 'systemd-sysext.service',
607 'conditions' : ['ENABLE_SYSEXT'],
608 },
f5151fb4
LP
609 {
610 'file' : 'systemd-sysext.socket',
611 'conditions' : ['ENABLE_SYSEXT'],
612 'symlinks' : ['sockets.target.wants/'],
613 },
614 {
615 'file' : 'systemd-sysext@.service',
616 'conditions' : ['ENABLE_SYSEXT'],
617 },
742aebc5
YW
618 {
619 'file' : 'systemd-sysupdate-reboot.service.in',
620 'conditions' : ['ENABLE_SYSUPDATE'],
621 },
622 {
623 'file' : 'systemd-sysupdate-reboot.timer',
624 'conditions' : ['ENABLE_SYSUPDATE'],
625 },
626 {
627 'file' : 'systemd-sysupdate.service.in',
628 'conditions' : ['ENABLE_SYSUPDATE'],
629 },
630 {
631 'file' : 'systemd-sysupdate.timer',
632 'conditions' : ['ENABLE_SYSUPDATE'],
633 },
634 {
635 'file' : 'systemd-sysusers.service',
636 'conditions' : ['ENABLE_SYSUSERS'],
637 'symlinks' : ['sysinit.target.wants/'],
638 },
1761066b
LP
639 {
640 'file' : 'systemd-storagetm.service.in',
641 'conditions' : ['ENABLE_STORAGETM'],
642 },
643 {
644 'file' : 'storage-target-mode.target',
645 'conditions' : ['ENABLE_STORAGETM'],
646 },
742aebc5
YW
647 {
648 'file' : 'systemd-time-wait-sync.service.in',
649 'conditions' : ['ENABLE_TIMESYNCD'],
650 },
651 {
652 'file' : 'systemd-timedated.service.in',
653 'conditions' : ['ENABLE_TIMEDATED'],
654 'symlinks' : ['dbus-org.freedesktop.timedate1.service'],
655 },
656 {
657 'file' : 'systemd-timesyncd.service.in',
658 'conditions' : ['ENABLE_TIMESYNCD'],
659 },
660 {
661 'file' : 'systemd-tmpfiles-clean.service',
662 'conditions' : ['ENABLE_TMPFILES'],
663 },
664 {
665 'file' : 'systemd-tmpfiles-clean.timer',
666 'conditions' : ['ENABLE_TMPFILES'],
667 'symlinks' : ['timers.target.wants/'],
668 },
bb7f485f
YW
669 {
670 'file' : 'systemd-tmpfiles-setup-dev-early.service',
671 'conditions' : ['ENABLE_TMPFILES'],
672 'symlinks' : ['sysinit.target.wants/'],
673 },
742aebc5
YW
674 {
675 'file' : 'systemd-tmpfiles-setup-dev.service',
676 'conditions' : ['ENABLE_TMPFILES'],
677 'symlinks' : ['sysinit.target.wants/'],
678 },
679 {
680 'file' : 'systemd-tmpfiles-setup.service',
681 'conditions' : ['ENABLE_TMPFILES'],
682 'symlinks' : ['sysinit.target.wants/'],
683 },
684 { 'file' : 'systemd-udev-settle.service' },
685 {
686 'file' : 'systemd-udev-trigger.service',
687 'symlinks' : ['sysinit.target.wants/'],
688 },
689 {
690 'file' : 'systemd-udevd-control.socket',
691 'symlinks' : ['sockets.target.wants/'],
692 },
693 {
694 'file' : 'systemd-udevd-kernel.socket',
695 'symlinks' : ['sockets.target.wants/'],
696 },
697 {
698 'file' : 'systemd-udevd.service.in',
699 'symlinks' : ['sysinit.target.wants/'],
700 },
701 {
702 'file' : 'systemd-update-done.service.in',
703 'symlinks' : ['sysinit.target.wants/'],
704 },
705 {
706 'file' : 'systemd-update-utmp-runlevel.service.in',
707 'conditions' : ['ENABLE_UTMP', 'HAVE_SYSV_COMPAT'],
708 'symlinks' : ['multi-user.target.wants/', 'graphical.target.wants/', 'rescue.target.wants/'],
709 },
710 {
711 'file' : 'systemd-update-utmp.service.in',
712 'conditions' : ['ENABLE_UTMP'],
713 'symlinks' : ['sysinit.target.wants/'],
714 },
715 {
716 'file' : 'systemd-user-sessions.service.in',
717 'conditions' : ['HAVE_PAM'],
718 'symlinks' : ['multi-user.target.wants/'],
719 },
720 {
721 'file' : 'systemd-userdbd.service.in',
722 'conditions' : ['ENABLE_USERDB'],
723 },
724 {
725 'file' : 'systemd-userdbd.socket',
726 'conditions' : ['ENABLE_USERDB'],
727 },
728 {
729 'file' : 'systemd-vconsole-setup.service.in',
730 'conditions' : ['ENABLE_VCONSOLE'],
731 },
732 {
733 'file' : 'systemd-volatile-root.service.in',
734 'conditions' : ['ENABLE_INITRD'],
735 },
736 { 'file' : 'time-set.target' },
737 { 'file' : 'time-sync.target' },
738 { 'file' : 'timers.target' },
739 {
740 'file' : 'tmp.mount',
741 'symlinks' : ['local-fs.target.wants/'],
742 },
4e1f0037 743 { 'file' : 'tpm2.target' },
742aebc5
YW
744 { 'file' : 'umount.target' },
745 { 'file' : 'usb-gadget.target' },
746 { 'file' : 'user-runtime-dir@.service.in' },
747 { 'file' : 'user.slice' },
748 { 'file' : 'user@.service.in' },
9b94ae83
LP
749 { 'file' : 'capsule@.service.in' },
750 { 'file' : 'capsule.slice' },
742aebc5
YW
751 {
752 'file' : 'var-lib-machines.mount',
753 'conditions' : ['ENABLE_MACHINED'],
754 'symlinks' : ['remote-fs.target.wants/', 'machines.target.wants/'],
755 },
756 {
757 'file' : 'veritysetup-pre.target',
758 'conditions' : ['HAVE_LIBCRYPTSETUP'],
759 },
760 {
761 'file' : 'veritysetup.target',
762 'conditions' : ['HAVE_LIBCRYPTSETUP'],
763 'symlinks' : ['sysinit.target.wants/'],
764 },
082ef2ad
ZJS
765]
766
742aebc5
YW
767foreach unit : units
768 source = unit.get('file')
2d9f0c68 769
742aebc5
YW
770 if source.endswith('.in')
771 needs_jinja = true
772 name = source.substring(0, -3)
773 assert(name + '.in' == source)
774 else
775 needs_jinja = false
776 name = source
37efbbd8 777 endif
742aebc5 778 source = files(source)
5c23128d 779
742aebc5
YW
780 install = true
781 foreach cond : unit.get('conditions', [])
782 if conf.get(cond) != 1
783 install = false
784 break
785 endif
786 endforeach
5c23128d 787
742aebc5
YW
788 if needs_jinja
789 custom_target(
790 name,
791 input : source,
792 output : name,
793 command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
794 install : install,
795 install_dir : systemunitdir)
796 elif install
797 install_data(source,
37efbbd8 798 install_dir : systemunitdir)
742aebc5 799 endif
2d9f0c68 800
742aebc5
YW
801 if install
802 foreach target : unit.get('symlinks', [])
9289e093
YW
803 if target.endswith('/')
804 install_emptydir(systemunitdir / target)
805 meson.add_install_script(sh, '-c',
806 ln_s.format(systemunitdir / name,
807 systemunitdir / target / name))
808 else
809 meson.add_install_script(sh, '-c',
810 ln_s.format(systemunitdir / name,
811 systemunitdir / target))
812 endif
742aebc5 813 endforeach
37efbbd8 814 endif
5c23128d
ZJS
815endforeach
816
28414939
ZJS
817install_data('user-.slice.d/10-defaults.conf',
818 install_dir : systemunitdir + '/user-.slice.d')
819
278e815b
FB
820install_data('user@.service.d/10-login-barrier.conf',
821 install_dir : systemunitdir + '/user@.service.d')
822install_data('user@0.service.d/10-login-barrier.conf',
823 install_dir : systemunitdir + '/user@0.service.d')
824
082ef2ad
ZJS
825############################################################
826
9289e093
YW
827install_emptydir(dbussessionservicedir)
828meson.add_install_script(sh, '-c',
829 ln_s.format(dbussystemservicedir / 'org.freedesktop.systemd1.service',
830 dbussessionservicedir / 'org.freedesktop.systemd1.service'))
831
349cc4a5 832if conf.get('HAVE_SYSV_COMPAT') == 1
37efbbd8 833 foreach i : [1, 2, 3, 4, 5]
9289e093 834 install_emptydir(systemunitdir / 'runlevel@0@.target.wants'.format(i))
37efbbd8 835 endforeach
94e75a54
ZJS
836endif
837
5c23128d 838subdir('user')