]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - sssd/sssd.nm
kernel: Update to 3.17
[people/ms/ipfire-3.x.git] / sssd / sssd.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = sssd
7 version = 1.9.4
8 release = 2
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
28 cyrus-sasl-devel
29 dbus-devel
30 docbook-xsl
31 glib2-devel
32 krb5-devel >= 1.10.3
33 libcollection-devel
34 libdhash-devel
35 libini_config-devel
36 libldb-devel
37 libnl-devel
38 libsemanage-devel
39 libtalloc-devel
40 libtdb-devel
41 libtevent-devel
42 openldap-devel
43 openssl-devel
44 pam-devel >= 1.1.6
45 pcre-devel
46 popt-devel
47 python-devel
48 end
49
50 configure_options += \
51 --with-crypto=libcrypto \
52 --with-db-path=%{localstatedir}/sss/db \
53 --with-pipe-path=%{localstatedir}/sss/pipe \
54 --with-pubconf-path=%{localstatedir}/sss/pubconf \
55 --with-mcache-path=%{localstatedir}/sss/mc \
56 --with-krb5-rcache-dir=%{localstatedir}/cache/krb5rcache \
57 --with-default-ccache-dir=/run/user/%U \
58 --with-default-ccname-template=DIR:%d/krb5cc \
59 --with-initscript=systemd \
60 --with-systemdunitdir=%{unitdir} \
61 --enable-pammoddir=%{libdir}/security \
62 --disable-static \
63 --disable-rpath
64
65 install_cmds
66 # Install default config file.
67 install -m 600 %{DIR_SOURCE}/sssd.conf \
68 %{BUILDROOT}%{sysconfdir}/sssd/sssd.conf
69
70 # Remove old sysVinit stuff.
71 rm -rvf %{BUILDROOT}%{sysconfdir}/rc.d
72 end
73 end
74
75 packages
76 package %{name}
77 groups += Base
78
79 configfiles
80 %{sysconfdir}/sssd/sssd.conf
81 end
82
83 prerequires += systemd-units
84
85 script postin
86 systemctl daemon-reload >/dev/null 2>&1 || :
87 end
88
89 script preun
90 systemctl --no-reload disable sssd.service >/dev/null 2>&1 || :
91 systemctl stop sssd.service >/dev/null 2>&1 || :
92 end
93
94 script postun
95 systemctl daemon-reload >/dev/null 2>&1 || :
96 end
97
98 script postup
99 systemctl daemon-reload >/dev/null 2>&1 || :
100 systemctl try-restart sssd.service >/dev/null 2>&1 || :
101 end
102 end
103
104 package %{name}-client
105 summary = SSSD Client libraries.
106 description = %{summary}
107 groups += Base
108
109 requires
110 %{name} = %{thisver}
111 end
112
113 obsoletes
114 nss_ldap
115 pam_ldap
116 end
117
118 files
119 %{libdir}/libnss_sss.so.*
120 %{libdir}/security/pam_sss.so
121 %{libdir}/krb5/
122 %{mandir}/man8/pam_sss.8*
123 %{mandir}/man8/sssd_krb5*.8*
124 end
125
126 prerequires += \
127 authconfig >= 6.2.5
128
129 script postin
130 authconfig --update --enableldap --enablesssd --enablesssdauth
131 end
132
133 script postun
134 authconfig --update --disableldap --disablesssd --disablesssdauth
135 end
136 end
137
138 package %{name}-tools
139 summary = Userspace tools for use with the SSSD.
140 description
141 Provides userspace tools for manipulating users, groups, and nested groups in
142 SSSD when using id_provider = local in /etc/sssd/sssd.conf.
143 end
144
145 requires
146 %{name} = %{thisver}
147 end
148
149 files
150 %{sbindir}/sss_*
151 %{mandir}/man8/sss_*.8*
152 end
153 end
154
155 package %{name}-devel
156 template DEVEL
157 end
158
159 package libsss_idmap
160 summary = FreeIPA Idmap library.
161 description
162 Utility library to convert SIDs to Unix uids and gids.
163 end
164
165 files
166 %{libdir}/libsss_idmap.so.*
167 end
168 end
169
170 package libsss_idmap-devel
171 summary = Development files for libsss_idmap.
172 description = %{summary}
173
174 files
175 %{libdir}/libsss_idmap.so
176 %{libdir}/pkgconfig/sss_idmap.pc
177 %{includedir}/sss_idmap.h
178 end
179 end
180
181 package libipa_hbac
182 summary = FreeIPA HBAC Evaluator library.
183 description
184 Utility library to validate FreeIPA HBAC rules for authorization requests.
185 end
186
187 files
188 %{libdir}/libipa_hbac.so.*
189 end
190 end
191
192 package libipa_hbac-devel
193 summary = Development files for libipa_hbac.
194 description = %{summary}
195
196 files
197 %{libdir}/libipa_hbac.so
198 %{libdir}/pkgconfig/ipa_hbac.pc
199 %{includedir}/ipa_hbac.h
200 end
201 end
202
203 package python-libipa_hbac
204 summary = Python bindings for the FreeIPA HBAC Evaluator library.
205 description
206 This package contains the bindings so that libipa_hbac can be
207 used by Python applications.
208 end
209
210 files
211 %{python_sitearch}/pyhbac.so
212 end
213 end
214
215 package libsss_sudo
216 summary = A library to allow communication between SUDO and SSSD.
217 description
218 A utility library to allow communication between SUDO and SSSD.
219 end
220
221 files
222 %{libdir}/libsss_sudo.so.*
223 end
224 end
225
226 package libsss_sudo-devel
227 summary = Development header for libsss_sudo.
228 description = %{summary}
229
230 files
231 %{libdir}/libsss_sudo.so
232 %{libdir}/pkgconfig/sss_sudo.pc
233 %{includedir}/sss_sudo.h
234 end
235 end
236
237 package %{name}-debuginfo
238 template DEBUGINFO
239 end
240 end