]>
Commit | Line | Data |
---|---|---|
01eadb71 SS |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = sssd | |
b14bf212 AM |
7 | version = 1.14.1 |
8 | release = 1 | |
01eadb71 SS |
9 | |
10 | groups = System/Tools | |
11 | url = http://fedorahosted.org/sssd/ | |
12 | license = GPLv3+ | |
13 | summary = System Security Services Daemon. | |
14 | ||
15 | description | |
16 | Provides a set of daemons to manage access to remote directories and | |
17 | authentication mechanisms. It provides an NSS and PAM interface toward | |
18 | the system and a pluggable backend system to connect to multiple different | |
19 | account sources. | |
20 | end | |
21 | ||
22 | source_dl = https://fedorahosted.org/released/sssd/ | |
23 | ||
24 | build | |
25 | requires | |
26 | /usr/bin/nsupdate | |
27 | c-ares-devel | |
b14bf212 AM |
28 | chrpath |
29 | cifs-utils-devel >= 6.6 | |
01eadb71 SS |
30 | cyrus-sasl-devel |
31 | dbus-devel | |
b14bf212 | 32 | ding-libs-devel >= 0.6.0 |
01eadb71 SS |
33 | docbook-xsl |
34 | glib2-devel | |
35 | krb5-devel >= 1.10.3 | |
36 | libcollection-devel | |
37 | libdhash-devel | |
38 | libini_config-devel | |
39 | libldb-devel | |
40 | libnl-devel | |
b14bf212 | 41 | libnfsidmap-devel |
01eadb71 SS |
42 | libsemanage-devel |
43 | libtalloc-devel | |
44 | libtdb-devel | |
45 | libtevent-devel | |
46 | openldap-devel | |
47 | openssl-devel | |
1f5d577a | 48 | pam-devel >= 1.1.6 |
01eadb71 SS |
49 | pcre-devel |
50 | popt-devel | |
b14bf212 AM |
51 | python3-devel |
52 | samba-devel >= 4.0.5 | |
53 | systemd-devel | |
01eadb71 SS |
54 | end |
55 | ||
56 | configure_options += \ | |
57 | --with-crypto=libcrypto \ | |
58 | --with-db-path=%{localstatedir}/sss/db \ | |
59 | --with-pipe-path=%{localstatedir}/sss/pipe \ | |
60 | --with-pubconf-path=%{localstatedir}/sss/pubconf \ | |
61 | --with-mcache-path=%{localstatedir}/sss/mc \ | |
62 | --with-krb5-rcache-dir=%{localstatedir}/cache/krb5rcache \ | |
63 | --with-default-ccache-dir=/run/user/%U \ | |
64 | --with-default-ccname-template=DIR:%d/krb5cc \ | |
65 | --with-initscript=systemd \ | |
66 | --with-systemdunitdir=%{unitdir} \ | |
67 | --enable-pammoddir=%{libdir}/security \ | |
68 | --disable-static \ | |
b14bf212 AM |
69 | --disable-rpath \ |
70 | --disable-config-lib \ | |
71 | --without-secrets | |
01eadb71 SS |
72 | |
73 | install_cmds | |
1f5d577a SS |
74 | # Install default config file. |
75 | install -m 600 %{DIR_SOURCE}/sssd.conf \ | |
76 | %{BUILDROOT}%{sysconfdir}/sssd/sssd.conf | |
01eadb71 | 77 | |
b14bf212 AM |
78 | # Remove rpath. |
79 | chrpath --delete %{BUILDROOT}/usr/lib/sssd/sssd_pac | |
80 | chrpath --delete %{BUILDROOT}/usr/lib/sssd/gpo_child | |
81 | ||
01eadb71 SS |
82 | # Remove old sysVinit stuff. |
83 | rm -rvf %{BUILDROOT}%{sysconfdir}/rc.d | |
84 | end | |
85 | end | |
86 | ||
87 | packages | |
88 | package %{name} | |
1f5d577a SS |
89 | groups += Base |
90 | ||
01eadb71 SS |
91 | configfiles |
92 | %{sysconfdir}/sssd/sssd.conf | |
93 | end | |
1f5d577a SS |
94 | |
95 | prerequires += systemd-units | |
96 | ||
97 | script postin | |
98 | systemctl daemon-reload >/dev/null 2>&1 || : | |
99 | end | |
100 | ||
101 | script preun | |
102 | systemctl --no-reload disable sssd.service >/dev/null 2>&1 || : | |
103 | systemctl stop sssd.service >/dev/null 2>&1 || : | |
104 | end | |
105 | ||
106 | script postun | |
107 | systemctl daemon-reload >/dev/null 2>&1 || : | |
108 | end | |
109 | ||
110 | script postup | |
111 | systemctl daemon-reload >/dev/null 2>&1 || : | |
112 | systemctl try-restart sssd.service >/dev/null 2>&1 || : | |
113 | end | |
01eadb71 SS |
114 | end |
115 | ||
116 | package %{name}-client | |
117 | summary = SSSD Client libraries. | |
118 | description = %{summary} | |
1f5d577a SS |
119 | groups += Base |
120 | ||
121 | requires | |
122 | %{name} = %{thisver} | |
123 | end | |
124 | ||
125 | obsoletes | |
126 | nss_ldap | |
127 | pam_ldap | |
128 | end | |
01eadb71 SS |
129 | |
130 | files | |
131 | %{libdir}/libnss_sss.so.* | |
132 | %{libdir}/security/pam_sss.so | |
133 | %{libdir}/krb5/ | |
134 | %{mandir}/man8/pam_sss.8* | |
135 | %{mandir}/man8/sssd_krb5*.8* | |
136 | end | |
1f5d577a SS |
137 | |
138 | prerequires += \ | |
139 | authconfig >= 6.2.5 | |
140 | ||
141 | script postin | |
142 | authconfig --update --enableldap --enablesssd --enablesssdauth | |
143 | end | |
144 | ||
145 | script postun | |
146 | authconfig --update --disableldap --disablesssd --disablesssdauth | |
147 | end | |
01eadb71 SS |
148 | end |
149 | ||
150 | package %{name}-tools | |
151 | summary = Userspace tools for use with the SSSD. | |
152 | description | |
153 | Provides userspace tools for manipulating users, groups, and nested groups in | |
154 | SSSD when using id_provider = local in /etc/sssd/sssd.conf. | |
155 | end | |
156 | ||
157 | requires | |
158 | %{name} = %{thisver} | |
159 | end | |
160 | ||
161 | files | |
162 | %{sbindir}/sss_* | |
163 | %{mandir}/man8/sss_*.8* | |
164 | end | |
165 | end | |
166 | ||
167 | package %{name}-devel | |
168 | template DEVEL | |
169 | end | |
170 | ||
171 | package libsss_idmap | |
172 | summary = FreeIPA Idmap library. | |
173 | description | |
174 | Utility library to convert SIDs to Unix uids and gids. | |
175 | end | |
176 | ||
177 | files | |
178 | %{libdir}/libsss_idmap.so.* | |
179 | end | |
180 | end | |
181 | ||
182 | package libsss_idmap-devel | |
183 | summary = Development files for libsss_idmap. | |
184 | description = %{summary} | |
185 | ||
186 | files | |
187 | %{libdir}/libsss_idmap.so | |
188 | %{libdir}/pkgconfig/sss_idmap.pc | |
189 | %{includedir}/sss_idmap.h | |
190 | end | |
191 | end | |
192 | ||
193 | package libipa_hbac | |
194 | summary = FreeIPA HBAC Evaluator library. | |
195 | description | |
196 | Utility library to validate FreeIPA HBAC rules for authorization requests. | |
197 | end | |
198 | ||
199 | files | |
200 | %{libdir}/libipa_hbac.so.* | |
201 | end | |
202 | end | |
203 | ||
204 | package libipa_hbac-devel | |
205 | summary = Development files for libipa_hbac. | |
206 | description = %{summary} | |
207 | ||
208 | files | |
209 | %{libdir}/libipa_hbac.so | |
210 | %{libdir}/pkgconfig/ipa_hbac.pc | |
211 | %{includedir}/ipa_hbac.h | |
212 | end | |
213 | end | |
214 | ||
215 | package python-libipa_hbac | |
216 | summary = Python bindings for the FreeIPA HBAC Evaluator library. | |
217 | description | |
218 | This package contains the bindings so that libipa_hbac can be | |
219 | used by Python applications. | |
220 | end | |
221 | ||
222 | files | |
223 | %{python_sitearch}/pyhbac.so | |
224 | end | |
225 | end | |
226 | ||
227 | package libsss_sudo | |
228 | summary = A library to allow communication between SUDO and SSSD. | |
229 | description | |
230 | A utility library to allow communication between SUDO and SSSD. | |
231 | end | |
232 | ||
233 | files | |
234 | %{libdir}/libsss_sudo.so.* | |
235 | end | |
236 | end | |
237 | ||
238 | package libsss_sudo-devel | |
239 | summary = Development header for libsss_sudo. | |
240 | description = %{summary} | |
241 | ||
242 | files | |
243 | %{libdir}/libsss_sudo.so | |
244 | %{libdir}/pkgconfig/sss_sudo.pc | |
245 | %{includedir}/sss_sudo.h | |
246 | end | |
247 | end | |
248 | ||
249 | package %{name}-debuginfo | |
250 | template DEBUGINFO | |
251 | end | |
252 | end |