]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
70a5db58 | 2 | |
8d40961c YW |
3 | home_includes = [includes, include_directories('.')] |
4 | ||
f1b98127 ZJS |
5 | systemd_homework_sources = files( |
6 | 'home-util.c', | |
f1b98127 | 7 | 'homework-cifs.c', |
f1b98127 | 8 | 'homework-directory.c', |
f1b98127 | 9 | 'homework-fscrypt.c', |
f1b98127 | 10 | 'homework-luks.c', |
f1b98127 | 11 | 'homework-mount.c', |
f1b98127 | 12 | 'homework-password-cache.c', |
f1b98127 | 13 | 'homework-quota.c', |
f1b98127 | 14 | 'homework.c', |
f1b98127 | 15 | 'user-record-util.c', |
2f492a73 | 16 | ) |
70a5db58 LP |
17 | |
18 | if conf.get('HAVE_P11KIT') == 1 | |
19 | systemd_homework_sources += files('homework-pkcs11.c') | |
20 | endif | |
7b78db28 LP |
21 | if conf.get('HAVE_LIBFIDO2') == 1 |
22 | systemd_homework_sources += files('homework-fido2.c') | |
23 | endif | |
70a5db58 | 24 | |
f1b98127 ZJS |
25 | systemd_homed_sources = files( |
26 | 'home-util.c', | |
f1b98127 | 27 | 'homed-bus.c', |
f1b98127 | 28 | 'homed-conf.c', |
f1b98127 | 29 | 'homed-home-bus.c', |
f1b98127 | 30 | 'homed-home.c', |
f1b98127 | 31 | 'homed-manager-bus.c', |
f1b98127 | 32 | 'homed-manager.c', |
f1b98127 | 33 | 'homed-operation.c', |
f1b98127 | 34 | 'homed-varlink.c', |
f1b98127 | 35 | 'homed.c', |
d34b1823 | 36 | 'user-record-password-quality.c', |
f1b98127 | 37 | 'user-record-sign.c', |
f1b98127 | 38 | 'user-record-util.c', |
2f492a73 | 39 | ) |
70a5db58 | 40 | |
c76dd733 LP |
41 | homed_gperf_c = custom_target( |
42 | 'homed_gperf.c', | |
43 | input : 'homed-gperf.gperf', | |
44 | output : 'homed-gperf.c', | |
45 | command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@']) | |
46 | ||
47 | systemd_homed_sources += [homed_gperf_c] | |
48 | ||
f1b98127 ZJS |
49 | homectl_sources = files( |
50 | 'home-util.c', | |
f1b98127 | 51 | 'homectl-fido2.c', |
f1b98127 | 52 | 'homectl-pkcs11.c', |
f1b98127 | 53 | 'homectl-recovery-key.c', |
f1b98127 | 54 | 'homectl.c', |
d34b1823 | 55 | 'user-record-password-quality.c', |
f1b98127 | 56 | 'user-record-util.c', |
2f492a73 | 57 | ) |
4aa0a8ac | 58 | |
bab54d1f | 59 | pam_systemd_home_sources = files( |
f1b98127 | 60 | 'home-util.c', |
f1b98127 ZJS |
61 | 'pam_systemd_home.c', |
62 | 'user-record-util.c', | |
2f492a73 | 63 | ) |
26cf9fb7 | 64 | |
bab54d1f YW |
65 | executables += [ |
66 | libexec_template + { | |
67 | 'name' : 'systemd-homework', | |
68 | 'conditions' : ['ENABLE_HOMED'], | |
69 | 'sources' : systemd_homework_sources, | |
70 | 'link_with' : [ | |
71 | libshared, | |
72 | libshared_fdisk | |
73 | ], | |
74 | 'dependencies' : [ | |
75 | libblkid, | |
76 | libcrypt, | |
77 | libfdisk, | |
78 | libopenssl, | |
79 | libp11kit, | |
80 | threads, | |
81 | ], | |
82 | }, | |
83 | libexec_template + { | |
84 | 'name' : 'systemd-homed', | |
85 | 'dbus' : true, | |
86 | 'conditions' : ['ENABLE_HOMED'], | |
87 | 'sources' : systemd_homed_sources, | |
88 | 'include_directories' : includes + | |
89 | include_directories('.'), | |
90 | 'dependencies' : [ | |
91 | libcrypt, | |
92 | libm, | |
93 | libopenssl, | |
94 | threads, | |
95 | ], | |
96 | }, | |
97 | executable_template + { | |
98 | 'name' : 'homectl', | |
99 | 'public' : true, | |
100 | 'conditions' : ['ENABLE_HOMED'], | |
101 | 'sources' : homectl_sources, | |
102 | 'dependencies' : [ | |
103 | libcrypt, | |
104 | libdl, | |
105 | libopenssl, | |
106 | libp11kit, | |
107 | threads, | |
108 | ], | |
109 | }, | |
110 | ] | |
111 | ||
112 | modules += [ | |
113 | pam_template + { | |
114 | 'name' : 'pam_systemd_home', | |
115 | 'conditions' : [ | |
116 | 'ENABLE_HOMED', | |
117 | 'HAVE_PAM', | |
118 | ], | |
119 | 'sources' : pam_systemd_home_sources, | |
120 | 'dependencies' : [ | |
121 | libcrypt, | |
122 | libpam_misc, | |
123 | libpam, | |
124 | threads, | |
125 | ], | |
126 | 'link_depends' : files('pam_systemd_home.sym'), | |
127 | }, | |
128 | ] | |
129 | ||
70a5db58 LP |
130 | if conf.get('ENABLE_HOMED') == 1 |
131 | install_data('org.freedesktop.home1.conf', | |
132 | install_dir : dbuspolicydir) | |
133 | install_data('org.freedesktop.home1.service', | |
134 | install_dir : dbussystemservicedir) | |
135 | install_data('org.freedesktop.home1.policy', | |
136 | install_dir : polkitpolicydir) | |
c76dd733 | 137 | |
225d08b8 | 138 | if install_sysconfdir_samples |
d7aa78c3 | 139 | install_data('homed.conf', |
72a4466e | 140 | install_dir : pkgsysconfdir) |
d7aa78c3 | 141 | endif |
70a5db58 | 142 | endif |