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