]>
Commit | Line | Data |
---|---|---|
e3590bff JB |
1 | # |
2 | # Conditional build: | |
9f1d2ac7 | 3 | %bcond_without ldap # LDAP plugin |
dfcc1bb6 | 4 | %bcond_without sqlite # Sqlite3 support |
29178154 | 5 | %bcond_without openssl # OpenSSL as default hcrypto backend (for ECDSA support) |
d9842468 | 6 | %bcond_with expose_internals # install internal KCM headers |
dfcc1bb6 | 7 | |
11e40c5a | 8 | Summary: Heimdal implementation of Kerberos V5 system |
13ef1022 | 9 | Summary(pl.UTF-8): Implementacja Heimdal systemu Kerberos V5 |
11e40c5a | 10 | Name: heimdal |
685511d6 JB |
11 | Version: 7.7.0 |
12 | Release: 1 | |
845f767b | 13 | License: Free |
c52bba62 | 14 | Group: Networking |
06763221 | 15 | Source0: https://github.com/heimdal/heimdal/releases/download/heimdal-%{version}/%{name}-%{version}.tar.gz |
685511d6 | 16 | # Source0-md5: 82da0bfbe89995c2ecb6cb9c354e06a3 |
87a2a408 | 17 | Source1: %{name}.init |
0c9d84fa JR |
18 | Source2: %{name}-kpasswdd.init |
19 | Source3: %{name}-ipropd.init | |
20 | Source4: %{name}-kcm.init | |
21 | Source5: %{name}.sysconfig | |
22 | Source6: %{name}-kcm.sysconfig | |
50d8bf88 JB |
23 | Source7: %{name}-kadmind.inetd |
24 | Source8: %{name}-krb5.conf | |
3fd8cf74 | 25 | Patch0: %{name}-hdb-ldap.patch |
7d3ffee7 | 26 | Patch1: %{name}-am_man_fixes.patch |
7d3ffee7 | 27 | Patch3: %{name}-dbpaths.patch |
82c12880 JR |
28 | Patch4: %{name}-db4.patch |
29 | Patch5: %{name}-libadd.patch | |
30 | Patch6: %{name}-signal.patch | |
82c12880 | 31 | Patch8: %{name}-info.patch |
bef55632 JR |
32 | Patch9: %{name}-sbindir.patch |
33 | Patch10: %{name}-ntlm-digest.patch | |
34 | Patch11: %{name}-krb5config-nosysdirs.patch | |
1ee1a6a5 | 35 | Patch12: %{name}-tinfo.patch |
914dd40f | 36 | Patch13: %{name}-missing-exports.patch |
6dfaff75 | 37 | URL: http://www.h5l.org/ |
961c8657 | 38 | BuildRequires: autoconf >= 2.62 |
7d0139e9 | 39 | BuildRequires: automake >= 1:1.11 |
ba5a356d | 40 | BuildRequires: bison |
1ead67f5 | 41 | BuildRequires: db-devel |
568e3a79 | 42 | BuildRequires: flex |
0f372d7a | 43 | BuildRequires: libcap-ng-devel >= 0.4.0 |
adfe6fc1 | 44 | BuildRequires: libcom_err-devel >= 1.41.11 |
445607db | 45 | BuildRequires: libtool >= 2:2.2 |
568e3a79 | 46 | BuildRequires: mawk |
9e40ad90 | 47 | BuildRequires: ncurses-devel >= 5.1 |
eaf2fb51 | 48 | %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0} |
d23c9e49 | 49 | %{?with_openssl:BuildRequires: openssl-devel >= 0.9.7d} |
4211e8a0 | 50 | BuildRequires: perl-JSON |
0f372d7a | 51 | BuildRequires: pkgconfig |
f5268247 | 52 | BuildRequires: readline-devel >= 5.0 |
f3e12399 | 53 | BuildRequires: rpmbuild(macros) >= 1.268 |
7d0139e9 | 54 | %{?with_sqlite:BuildRequires: sqlite3-devel >= 3} |
e2e4c2a7 | 55 | BuildRequires: texinfo |
bf56c6b3 | 56 | Requires: %{name}-libs-common = %{version}-%{release} |
292976c1 JB |
57 | Provides: kerberos5-client |
58 | Obsoletes: kerberos5-client | |
dc28a757 | 59 | Conflicts: krb5-client |
e2e4c2a7 | 60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
11e40c5a | 61 | |
c7b87187 | 62 | %define _localstatedir /var/lib/%{name} |
5776cc8c JR |
63 | %define schemadir /usr/share/openldap/schema |
64 | ||
11e40c5a AM |
65 | %description |
66 | Heimdal is a free implementation of Kerberos 5. The goals are to: | |
f3e12399 ER |
67 | - have an implementation that can be freely used by anyone |
68 | - be protocol compatible with existing implementations and, if not in | |
69 | conflict, with RFC 1510 (and any future updated RFC) | |
70 | - be reasonably compatible with the M.I.T Kerberos V5 API | |
71 | - have support for Kerberos V5 over GSS-API (RFC1964) | |
f3e12399 ER |
72 | - include enough backwards compatibility with Kerberos V4 |
73 | - IPv6 support | |
11e40c5a | 74 | |
0fbef91b JR |
75 | %description -l pl.UTF-8 |
76 | Heimdal jest darmową implementacją Kerberosa 5. Główne zalety to: | |
77 | - implementacja, która może być używana przez każdego | |
78 | - kompatybilność na poziomie protokołu z istniejącymi implementacjami | |
79 | - racjonalna kompatybilność z M.I.T Kerberos V5 API | |
f3e12399 | 80 | - wsparcie dla Kerberosa 5 poprzez GSS-API (RFC1964) |
0fbef91b | 81 | - zawiera wystarczającą kompatybilność z Kerberos V4 |
f3e12399 | 82 | - wsparcie dla IPv6 |
11e40c5a | 83 | |
2ae17cec JR |
84 | %package common |
85 | Summary: Heimdal essential config files and documentation | |
3fd8cf74 | 86 | Summary(pl.UTF-8): Niezbędne pliki konfiguracyjne i dokumentacja dla Heimdala |
2ae17cec JR |
87 | Group: Networking |
88 | ||
89 | %description common | |
099ff888 | 90 | Package contains essential configs and documentation required by |
3fd8cf74 | 91 | Heimdal packages. |
2ae17cec JR |
92 | |
93 | %description common -l pl.UTF-8 | |
099ff888 | 94 | Pakiet zawiera niezbędne pliki konfiguracyjne i dokumentację dla |
3fd8cf74 | 95 | Heimdala. |
2ae17cec | 96 | |
0484bab0 JB |
97 | %package libs |
98 | Summary: Heimdal shared libraries | |
3fd8cf74 | 99 | Summary(pl.UTF-8): Biblioteki współdzielone dla Heimdala |
0484bab0 | 100 | Group: Libraries |
3c4e3bfd | 101 | Requires: libcom_err >= 1.41.11 |
0484bab0 JB |
102 | |
103 | %description libs | |
0360d4ed | 104 | This package contains shared libraries required by several of the |
3fd8cf74 | 105 | other Heimdal packages. |
0484bab0 JB |
106 | |
107 | %description libs -l pl.UTF-8 | |
0360d4ed | 108 | Ten pakiet zawiera biblioteki współdzielone wymagane przez kilka |
3fd8cf74 | 109 | innych pakietów składowych Heimdala. |
0484bab0 | 110 | |
bf56c6b3 JR |
111 | %package libs-common |
112 | Summary: Common libraries used by Heimdal programs | |
0360d4ed | 113 | Summary(pl.UTF-8): Wspólne biblioteki używane przez programy z Heimdala |
d9930f8a | 114 | Group: Libraries |
2ae17cec | 115 | Requires: %{name}-common = %{version}-%{release} |
bf56c6b3 | 116 | Requires: %{name}-libs = %{version}-%{release} |
d9930f8a | 117 | |
bf56c6b3 JR |
118 | %description libs-common |
119 | Common libraries used by Heimdal programs. | |
d9930f8a | 120 | |
0360d4ed JB |
121 | %description libs-common -l pl.UTF-8 |
122 | Wspólne biblioteki używane przez programy z projektu Heimdal. | |
123 | ||
e44f4b1e | 124 | %package libs-server |
bf56c6b3 | 125 | Summary: Libraries used by Heimdal KDC server |
0360d4ed | 126 | Summary(pl.UTF-8): Biblioteki używane przez serwer Heimdal KDC |
d9930f8a | 127 | Group: Libraries |
2ae17cec | 128 | Requires: %{name}-libs-common = %{version}-%{release} |
d9930f8a | 129 | |
e44f4b1e | 130 | %description libs-server |
0360d4ed JB |
131 | This package contains shared libraries required to run Heimdal KDC |
132 | server. | |
133 | ||
134 | %description libs-server -l pl.UTF-8 | |
135 | Ten pakiet zawiera biblioteki współdzielone używane potrzebne dla | |
136 | serwera KDC z projektu Heimdal. | |
d9930f8a | 137 | |
0484bab0 | 138 | %package devel |
3fd8cf74 JB |
139 | Summary: Header files for Heimdal |
140 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do bibliotek Heimdal | |
0484bab0 JB |
141 | Group: Development/Libraries |
142 | Requires: %{name}-libs = %{version}-%{release} | |
bf56c6b3 JR |
143 | Requires: %{name}-libs-common = %{version}-%{release} |
144 | Requires: %{name}-libs-server = %{version}-%{release} | |
0484bab0 | 145 | Requires: db-devel |
adfe6fc1 | 146 | Requires: libcom_err-devel >= 1.41.11 |
d23c9e49 | 147 | %{?with_openssl:Requires: openssl-devel} |
7d0139e9 | 148 | %{?with_sqlite:Requires: sqlite3-devel >= 3} |
dc28a757 | 149 | Conflicts: krb5-devel |
758d234c | 150 | Conflicts: libgssglue-devel |
0484bab0 JB |
151 | |
152 | %description devel | |
3fd8cf74 JB |
153 | This package contains files needed to compile and link software using |
154 | the Heimdal libraries. | |
0484bab0 JB |
155 | |
156 | %description devel -l pl.UTF-8 | |
3fd8cf74 JB |
157 | Pliki nagłówkowe do kompilowania programów przy użyciu bibliotek |
158 | Heimdal. | |
0484bab0 JB |
159 | |
160 | %package static | |
3fd8cf74 JB |
161 | Summary: Static Heimdal libraries |
162 | Summary(pl.UTF-8): Biblioteki statyczne Heimdal | |
0484bab0 JB |
163 | Group: Development/Libraries |
164 | Requires: %{name}-devel = %{version}-%{release} | |
165 | ||
166 | %description static | |
3fd8cf74 | 167 | Satatic Heimdal libraries. |
0484bab0 JB |
168 | |
169 | %description static -l pl.UTF-8 | |
3fd8cf74 | 170 | Biblioteki statyczne Heimdal. |
0484bab0 | 171 | |
292976c1 JB |
172 | %package ldap |
173 | Summary: LDAP HDB plugin | |
174 | Summary(pl.UTF-8): Wtyczka HDB LDAP | |
175 | Group: Libraries | |
2ae17cec | 176 | Requires: %{name}-libs-common = %{version}-%{release} |
292976c1 JB |
177 | |
178 | %description ldap | |
179 | LDAP HDB plugin. | |
180 | ||
181 | %description ldap -l pl.UTF-8 | |
182 | Wtyczka HDB LDAP. | |
183 | ||
184 | %package -n openldap-schema-heimdal | |
185 | Summary: Heimdal Kerberos LDAP schema | |
186 | Summary(pl.UTF-8): Schemat LDAP Kerberosa Heimdal | |
187 | Group: Networking/Daemons | |
188 | Requires(post,postun): sed >= 4.0 | |
189 | Requires: openldap-servers | |
099ff888 ER |
190 | %if "%{_rpmversion}" >= "5" |
191 | BuildArch: noarch | |
192 | %endif | |
292976c1 JB |
193 | |
194 | %description -n openldap-schema-heimdal | |
195 | This package contains Heimdal Kerberos LDAP schema for openldap. | |
196 | ||
197 | %description -n openldap-schema-heimdal -l pl.UTF-8 | |
198 | Ten pakiet zawiera schemat LDAP Kerberosa Heimdal dla openldap-a. | |
199 | ||
5459024d | 200 | %package server |
2d0d93d3 | 201 | Summary: Kerberos Server |
13ef1022 | 202 | Summary(pl.UTF-8): Serwer Kerberosa |
5459024d | 203 | Group: Networking |
c7b87187 | 204 | Requires(post,preun): /sbin/chkconfig |
bf56c6b3 | 205 | Requires: %{name}-libs-server = %{version}-%{release} |
a39a46c8 | 206 | Requires: rc-scripts |
292976c1 JB |
207 | Provides: kerberos5-server |
208 | # probably not a good idea | |
209 | #Obsoletes: kerberos5-server | |
dc28a757 | 210 | Conflicts: krb5-server |
5459024d | 211 | |
212 | %description server | |
213 | Master KDC. | |
214 | ||
0fbef91b JR |
215 | %description server -l pl.UTF-8 |
216 | Główne centrum dystrybucji kluczy (KDC). | |
5459024d | 217 | |
0484bab0 JB |
218 | %package kcm |
219 | Summary: KCM - credencial cache daemon for Kerberos tickets | |
220 | Summary(pl.UTF-8): KCM - demon zapamiętujący dane uwierzytelniające dla biletów Kerberosa | |
221 | Group: Daemons | |
2ae17cec | 222 | Requires: %{name}-libs-common = %{version}-%{release} |
5459024d | 223 | |
0484bab0 JB |
224 | %description kcm |
225 | KCM is a credencial cache daemon for Kerberos tickets. | |
5459024d | 226 | |
0484bab0 JB |
227 | %description kcm -l pl.UTF-8 |
228 | KCM to demon zapamiętujący dane uwierzytelniające dla biletów | |
229 | Kerberosa. | |
5459024d | 230 | |
11e40c5a | 231 | %prep |
06763221 | 232 | %setup -q |
3fd8cf74 JB |
233 | %patch0 -p1 |
234 | %patch1 -p1 | |
c7b87187 JB |
235 | %patch3 -p1 |
236 | %patch4 -p1 | |
237 | %patch5 -p1 | |
ed59b63e | 238 | %patch6 -p1 |
55199c96 | 239 | %patch8 -p1 |
3fd8cf74 | 240 | %patch9 -p1 |
56398966 | 241 | %patch10 -p1 |
3fd8cf74 | 242 | %patch11 -p1 |
944b188c | 243 | %patch12 -p1 |
2ed8db32 | 244 | %patch13 -p1 |
1d7ff72f | 245 | |
11e40c5a | 246 | %build |
ce6e3c9b AM |
247 | install -d our-ld |
248 | ln -s %{_bindir}/ld.bfd our-ld/ld | |
249 | export PATH=$(pwd)/our-ld:$PATH | |
250 | ||
fcf46cfe | 251 | %{__libtoolize} |
252 | %{__aclocal} -I cf | |
253 | %{__autoconf} | |
254 | %{__automake} | |
1ee1a6a5 JR |
255 | cd lib/libedit |
256 | %{__aclocal} | |
257 | %{__autoconf} | |
258 | %{__automake} | |
259 | cd ../.. | |
5459024d | 260 | %configure \ |
eaf2fb51 | 261 | %if %{with ldap} |
6dfaff75 | 262 | --enable-hdb-openldap-module \ |
eaf2fb51 AM |
263 | --with-openldap=/usr \ |
264 | %endif | |
6dfaff75 JB |
265 | --enable-kcm \ |
266 | --enable-pthread-support \ | |
11e40c5a | 267 | --enable-shared \ |
3fd8cf74 | 268 | --disable-silent-rules \ |
11e40c5a | 269 | --enable-static \ |
6dfaff75 JB |
270 | --with-hdbdir=%{_localstatedir} \ |
271 | --with-ipv6 \ | |
716461c4 | 272 | --with-openssl%{!?with_openssl:=no} \ |
4469f316 | 273 | --with-readline=/usr \ |
aa2daca5 | 274 | %{?with_sqlite:--with-sqlite3=/usr} |
11e40c5a | 275 | |
7209233a | 276 | %{__make} -j1 |
11e40c5a AM |
277 | |
278 | %install | |
279 | rm -rf $RPM_BUILD_ROOT | |
80f50a05 | 280 | install -d $RPM_BUILD_ROOT{%{_localstatedir},%{_sysconfdir},%{schemadir},/sbin,/%{_lib}} \ |
0c9d84fa | 281 | $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d} |
11e40c5a | 282 | |
a297a2ea JB |
283 | %{__make} install \ |
284 | DESTDIR=$RPM_BUILD_ROOT | |
5459024d | 285 | |
25d84ef3 | 286 | cp -p lib/hdb/hdb.schema $RPM_BUILD_ROOT%{schemadir} |
5776cc8c | 287 | |
3fd8cf74 | 288 | %{__mv} $RPM_BUILD_ROOT%{_sbindir}/kcm $RPM_BUILD_ROOT/sbin/kcm |
a2604258 | 289 | |
3fd8cf74 JB |
290 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/su $RPM_BUILD_ROOT%{_bindir}/ksu |
291 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/su.1 $RPM_BUILD_ROOT%{_mandir}/man1/ksu.1 | |
9987dc73 | 292 | |
25d84ef3 ER |
293 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
294 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/kpasswdd | |
295 | install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/ipropd | |
296 | install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/kcm | |
297 | cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/%{name} | |
298 | cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/kcm | |
50d8bf88 JB |
299 | cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/kadmind |
300 | cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/krb5.conf | |
11e40c5a | 301 | |
29178154 | 302 | for l in $RPM_BUILD_ROOT%{_libdir}/lib{asn1,gssapi,hcrypto,heimbase,heimntlm,hx509,kafs,krb5,roken,wind}.so ; do |
80f50a05 | 303 | lib=`basename $l` |
3fd8cf74 | 304 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/$lib.* $RPM_BUILD_ROOT/%{_lib} |
80f50a05 JR |
305 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/$lib.*.*) $RPM_BUILD_ROOT%{_libdir}/$lib |
306 | done | |
36488e42 | 307 | |
d9842468 | 308 | %if %{with expose_internals} |
529403f3 JR |
309 | # install definitions of KCM internal data structures to get KCM support in nfs-utils |
310 | install -d $RPM_BUILD_ROOT%{_includedir}/kcm | |
311 | _mutexdef=$(cat << EOF | %{__cc} -E -I./include - | sed 's/_HEIMDAL_MUTEX \(.*\)/\1/p; d' | |
312 | #include "config.h" | |
313 | #include "heim_threads.h" | |
314 | _HEIMDAL_MUTEX HEIMDAL_MUTEX | |
315 | EOF) | |
316 | %{__sed} -e '/#include <kcm-protos.h>/d' \ | |
317 | -e '/#include "headers.h"/d' \ | |
318 | -e '/kcm_service/N; /kcm_service/d;' \ | |
319 | -e 's/<kcm\.h>/<kcm\/kcm.h>/' \ | |
320 | -e "s/HEIMDAL_MUTEX/$_mutexdef/g" kcm/kcm_locl.h >$RPM_BUILD_ROOT%{_includedir}/kcm/kcm_locl.h | |
321 | install -p lib/krb5/kcm.h $RPM_BUILD_ROOT%{_includedir}/kcm | |
d9842468 | 322 | %endif |
529403f3 | 323 | |
0484bab0 | 324 | # just a test plugin |
e6e72da0 | 325 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/windc.* |
7198993c | 326 | |
1c4afd36 | 327 | %if %{with ldap} |
0484bab0 | 328 | # not needed for plugin |
e6e72da0 | 329 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/hdb_ldap.{la,a} |
1c4afd36 | 330 | %endif |
7198993c | 331 | |
0f06dc21 | 332 | # resolve heimdal-libs/krb5-libs conflict |
e6e72da0 | 333 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/man5/{krb5.conf.5,krb5.conf.5h} |
87a2a408 | 334 | |
7198993c | 335 | # resolve conflict with openssl 1.1 |
c31728a8 | 336 | for m in $RPM_BUILD_ROOT%{_mandir}/man3/{DES,DH,EVP,PKCS5,RAND,RSA}_*.3 ; do |
7198993c JR |
337 | man=$(basename "$m") |
338 | %{__mv} "$m" "$RPM_BUILD_ROOT%{_mandir}/man3/hc_$man" | |
339 | done | |
340 | ||
87a2a408 | 341 | touch $RPM_BUILD_ROOT{%{_sysconfdir}/krb5.keytab,%{_localstatedir}/kadmind.acl} |
11e40c5a | 342 | |
845f767b JB |
343 | %clean |
344 | rm -rf $RPM_BUILD_ROOT | |
345 | ||
87a2a408 | 346 | %post server |
71148af2 | 347 | /sbin/chkconfig --add heimdal |
8e4fc37f | 348 | %service heimdal restart "heimdal KDC daemon" |
36488e42 | 349 | /sbin/chkconfig --add kpasswdd |
f3e12399 | 350 | %service kpasswdd restart "heimdal password changing daemon" |
8e4fc37f JR |
351 | /sbin/chkconfig --add ipropd |
352 | %service ipropd restart "heimdal propagation daemons" | |
f3e12399 | 353 | %service -q rc-inetd reload |
87a2a408 | 354 | |
87a2a408 | 355 | %preun server |
71148af2 | 356 | if [ "$1" = "0" ]; then |
8e4fc37f JR |
357 | %service ipropd stop |
358 | /sbin/chkconfig --del ipropd | |
359 | %service kpasswdd stop | |
360 | /sbin/chkconfig --del kpasswdd | |
f3e12399 | 361 | %service heimdal stop |
71148af2 | 362 | /sbin/chkconfig --del heimdal |
8e4fc37f JR |
363 | %service -q rc-inetd reload |
364 | fi | |
71148af2 | 365 | |
8e4fc37f JR |
366 | %post kcm |
367 | /sbin/chkconfig --add kcm | |
25d84ef3 ER |
368 | %service -n kcm restart |
369 | # Add note to service -n restart | |
370 | echo "WARNING: it will clear all credentials and tickets kept in kcm!" >&2 | |
36488e42 | 371 | |
8e4fc37f JR |
372 | %preun kcm |
373 | if [ "$1" = "0" ]; then | |
374 | %service kcm stop | |
375 | /sbin/chkconfig --del kcm | |
71148af2 | 376 | fi |
2d0d93d3 | 377 | |
2ae17cec | 378 | %post common |
71148af2 | 379 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
87a2a408 | 380 | |
2ae17cec | 381 | %postun common |
71148af2 | 382 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
87a2a408 | 383 | |
2ae17cec JR |
384 | %post libs -p /sbin/ldconfig |
385 | %postun libs -p /sbin/ldconfig | |
bf56c6b3 JR |
386 | %post libs-common -p /sbin/ldconfig |
387 | %postun libs-common -p /sbin/ldconfig | |
d9930f8a TP |
388 | %post libs-server -p /sbin/ldconfig |
389 | %postun libs-server -p /sbin/ldconfig | |
2272733f | 390 | |
5776cc8c JR |
391 | %post -n openldap-schema-heimdal |
392 | %openldap_schema_register %{schemadir}/hdb.schema | |
393 | %service -q ldap restart | |
394 | ||
395 | %postun -n openldap-schema-heimdal | |
396 | if [ "$1" = "0" ]; then | |
397 | %openldap_schema_unregister %{schemadir}/hdb.schema | |
398 | %service -q ldap restart | |
399 | fi | |
400 | ||
da732ece JR |
401 | %triggerpostun libs -- heimdal-libs < 1.2.1-6 |
402 | if [ -f /etc/heimdal/krb5.conf.rpmsave ]; then | |
403 | mv /etc/krb5.conf{,.rpmnew} | |
404 | mv -f /etc/heimdal/krb5.conf.rpmsave /etc/krb5.conf | |
405 | fi | |
406 | if [ -f /etc/heimdal/krb5.keytab.rpmsave ]; then | |
407 | mv /etc/krb5.keytab{,.rpmnew} | |
408 | mv -f /etc/heimdal/krb5.keytab.rpmsave /etc/krb5.keytab | |
409 | fi | |
410 | ||
c7b87187 JB |
411 | %files |
412 | %defattr(644,root,root,755) | |
0484bab0 | 413 | %doc ChangeLog NEWS README TODO |
c7b87187 | 414 | %attr(755,root,root) %{_bindir}/afslog |
c7027388 | 415 | %attr(755,root,root) %{_bindir}/bsearch |
ae8b3b4d | 416 | %attr(755,root,root) %{_bindir}/gsstool |
c7027388 | 417 | %attr(755,root,root) %{_bindir}/heimtools |
7d3ffee7 | 418 | %attr(755,root,root) %{_bindir}/hxtool |
2402950c | 419 | %attr(755,root,root) %{_bindir}/idn-lookup |
c7027388 | 420 | %attr(755,root,root) %{_bindir}/kadmin |
c7b87187 JB |
421 | %attr(755,root,root) %{_bindir}/kdestroy |
422 | %attr(755,root,root) %{_bindir}/kf | |
423 | %attr(755,root,root) %{_bindir}/kgetcred | |
424 | %attr(755,root,root) %{_bindir}/kinit | |
425 | %attr(755,root,root) %{_bindir}/klist | |
426 | %attr(755,root,root) %{_bindir}/kpasswd | |
6230cc94 | 427 | %attr(755,root,root) %{_bindir}/kswitch |
c7027388 | 428 | %attr(755,root,root) %{_bindir}/ktutil |
e5f030f3 | 429 | %attr(755,root,root) %{_bindir}/otpprint |
c7b87187 | 430 | %attr(755,root,root) %{_bindir}/pagsh |
c7b87187 | 431 | %attr(755,root,root) %{_bindir}/string2key |
c7b87187 | 432 | %attr(755,root,root) %{_bindir}/verify_krb5_conf |
0484bab0 | 433 | %attr(755,root,root) %{_sbindir}/kdigest |
7d3ffee7 | 434 | %attr(755,root,root) %{_sbindir}/kimpersonate |
c7b87187 | 435 | %attr(4755,root,root) %{_bindir}/otp |
c7b87187 | 436 | %attr(4755,root,root) %{_bindir}/ksu |
c7b87187 | 437 | %{_mandir}/man1/afslog.1* |
c7027388 JB |
438 | %{_mandir}/man1/bsearch.1* |
439 | %{_mandir}/man1/kadmin.1* | |
c7b87187 JB |
440 | %{_mandir}/man1/kdestroy.1* |
441 | %{_mandir}/man1/kf.1* | |
442 | %{_mandir}/man1/kgetcred.1* | |
443 | %{_mandir}/man1/kinit.1* | |
444 | %{_mandir}/man1/klist.1* | |
445 | %{_mandir}/man1/kpasswd.1* | |
9987dc73 | 446 | %{_mandir}/man1/ksu.1* |
82c12880 | 447 | %{_mandir}/man1/kswitch.1* |
c7027388 | 448 | %{_mandir}/man1/ktutil.1* |
c7b87187 JB |
449 | %{_mandir}/man1/otp.1* |
450 | %{_mandir}/man1/otpprint.1* | |
9987dc73 | 451 | %{_mandir}/man1/pagsh.1* |
82c12880 JR |
452 | %{_mandir}/man8/kdigest.8* |
453 | %{_mandir}/man8/kimpersonate.8* | |
c7b87187 JB |
454 | %{_mandir}/man8/string2key.8* |
455 | %{_mandir}/man8/verify_krb5_conf.8* | |
665da1cc | 456 | |
2ae17cec | 457 | %files common |
11e40c5a | 458 | %defattr(644,root,root,755) |
0484bab0 JB |
459 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/krb5.conf |
460 | %attr(400,root,root) %ghost %{_sysconfdir}/krb5.keytab | |
d9930f8a TP |
461 | %{_infodir}/heimdal.info* |
462 | %{_infodir}/hx509.info* | |
463 | %{_mandir}/man5/krb5.conf.5* | |
464 | %{_mandir}/man5/mech.5* | |
465 | %{_mandir}/man8/kerberos.8* | |
2ae17cec JR |
466 | |
467 | %files libs | |
468 | %defattr(644,root,root,755) | |
80f50a05 JR |
469 | %attr(755,root,root) /%{_lib}/libasn1.so.*.*.* |
470 | %attr(755,root,root) %ghost /%{_lib}/libasn1.so.8 | |
471 | %attr(755,root,root) /%{_lib}/libgssapi.so.*.*.* | |
1ee1a6a5 | 472 | %attr(755,root,root) %ghost /%{_lib}/libgssapi.so.3 |
ae8b3b4d | 473 | %attr(755,root,root) /%{_lib}/libheimbase.so.*.*.* |
6f6884c0 JR |
474 | %attr(755,root,root) /%{_lib}/libhcrypto.so.*.*.* |
475 | %attr(755,root,root) %ghost /%{_lib}/libhcrypto.so.4 | |
ae8b3b4d | 476 | %attr(755,root,root) %ghost /%{_lib}/libheimbase.so.1 |
bf56c6b3 JR |
477 | %attr(755,root,root) /%{_lib}/libheimntlm.so.*.*.* |
478 | %attr(755,root,root) %ghost /%{_lib}/libheimntlm.so.0 | |
80f50a05 | 479 | %attr(755,root,root) /%{_lib}/libhx509.so.*.*.* |
82c12880 | 480 | %attr(755,root,root) %ghost /%{_lib}/libhx509.so.5 |
bf56c6b3 JR |
481 | %attr(755,root,root) /%{_lib}/libkafs.so.*.*.* |
482 | %attr(755,root,root) %ghost /%{_lib}/libkafs.so.0 | |
483 | %attr(755,root,root) /%{_lib}/libkrb5.so.*.*.* | |
484 | %attr(755,root,root) %ghost /%{_lib}/libkrb5.so.26 | |
d9930f8a TP |
485 | %attr(755,root,root) /%{_lib}/libroken.so.*.*.* |
486 | %attr(755,root,root) %ghost /%{_lib}/libroken.so.18 | |
bf56c6b3 JR |
487 | %attr(755,root,root) /%{_lib}/libwind.so.*.*.* |
488 | %attr(755,root,root) %ghost /%{_lib}/libwind.so.0 | |
11e40c5a | 489 | |
bf56c6b3 | 490 | %files libs-common |
2ae17cec | 491 | %defattr(644,root,root,755) |
2272733f TP |
492 | %attr(755,root,root) %{_libdir}/libhdb.so.*.*.* |
493 | %attr(755,root,root) %ghost %{_libdir}/libhdb.so.9 | |
494 | %attr(755,root,root) %{_libdir}/libkadm5clnt.so.*.*.* | |
495 | %attr(755,root,root) %ghost %{_libdir}/libkadm5clnt.so.7 | |
496 | %attr(755,root,root) %{_libdir}/libkadm5srv.so.*.*.* | |
497 | %attr(755,root,root) %ghost %{_libdir}/libkadm5srv.so.8 | |
d9930f8a TP |
498 | %attr(755,root,root) %{_libdir}/libotp.so.*.*.* |
499 | %attr(755,root,root) %ghost %{_libdir}/libotp.so.0 | |
500 | %attr(755,root,root) %{_libdir}/libsl.so.*.*.* | |
501 | %attr(755,root,root) %ghost %{_libdir}/libsl.so.0 | |
9918564c JB |
502 | %dir %{_libexecdir}/%{name} |
503 | %attr(755,root,root) %{_libexecdir}/%{name}/asn1_compile | |
504 | %attr(755,root,root) %{_libexecdir}/%{name}/asn1_print | |
505 | %attr(755,root,root) %{_libexecdir}/%{name}/slc | |
d9930f8a | 506 | |
bf56c6b3 | 507 | %files libs-server |
2ae17cec | 508 | %defattr(644,root,root,755) |
bf56c6b3 JR |
509 | %attr(755,root,root) %{_libdir}/libkdc.so.*.*.* |
510 | %attr(755,root,root) %ghost %{_libdir}/libkdc.so.2 | |
e44f4b1e | 511 | |
0484bab0 JB |
512 | %files devel |
513 | %defattr(644,root,root,755) | |
514 | %attr(755,root,root) %{_bindir}/krb5-config | |
515 | %attr(755,root,root) %{_libdir}/libasn1.so | |
516 | %attr(755,root,root) %{_libdir}/libgssapi.so | |
29178154 | 517 | %attr(755,root,root) %{_libdir}/libhcrypto.so |
0484bab0 | 518 | %attr(755,root,root) %{_libdir}/libhdb.so |
ae8b3b4d | 519 | %attr(755,root,root) %{_libdir}/libheimbase.so |
0484bab0 JB |
520 | %attr(755,root,root) %{_libdir}/libheimntlm.so |
521 | %attr(755,root,root) %{_libdir}/libhx509.so | |
522 | %attr(755,root,root) %{_libdir}/libkadm5clnt.so | |
523 | %attr(755,root,root) %{_libdir}/libkadm5srv.so | |
524 | %attr(755,root,root) %{_libdir}/libkafs.so | |
525 | %attr(755,root,root) %{_libdir}/libkdc.so | |
526 | %attr(755,root,root) %{_libdir}/libkrb5.so | |
527 | %attr(755,root,root) %{_libdir}/libotp.so | |
528 | %attr(755,root,root) %{_libdir}/libroken.so | |
529 | %attr(755,root,root) %{_libdir}/libsl.so | |
6230cc94 | 530 | %attr(755,root,root) %{_libdir}/libwind.so |
0484bab0 JB |
531 | %{_libdir}/libasn1.la |
532 | %{_libdir}/libgssapi.la | |
29178154 | 533 | %{_libdir}/libhcrypto.la |
0484bab0 | 534 | %{_libdir}/libhdb.la |
ae8b3b4d | 535 | %{_libdir}/libheimbase.la |
0484bab0 JB |
536 | %{_libdir}/libheimntlm.la |
537 | %{_libdir}/libhx509.la | |
538 | %{_libdir}/libkadm5clnt.la | |
539 | %{_libdir}/libkadm5srv.la | |
540 | %{_libdir}/libkafs.la | |
541 | %{_libdir}/libkdc.la | |
542 | %{_libdir}/libkrb5.la | |
543 | %{_libdir}/libotp.la | |
544 | %{_libdir}/libroken.la | |
545 | %{_libdir}/libsl.la | |
6230cc94 | 546 | %{_libdir}/libwind.la |
716461c4 JB |
547 | %{_includedir}/asn1*.h |
548 | %{_includedir}/base64.h | |
549 | %{_includedir}/cms_asn1.h | |
550 | %{_includedir}/crmf_asn1.h | |
551 | %{_includedir}/der*.h | |
552 | %{_includedir}/digest_asn1.h | |
553 | %{_includedir}/getarg.h | |
554 | %{_includedir}/gssapi.h | |
555 | %{_includedir}/hdb*.h | |
556 | %{_includedir}/heim*.h | |
557 | %{_includedir}/hex.h | |
558 | %{_includedir}/hx509*.h | |
559 | %{_includedir}/k524_err.h | |
560 | %{_includedir}/kafs.h | |
561 | %{_includedir}/kdc*.h | |
562 | %{_includedir}/krb5*.h | |
563 | %{_includedir}/kx509_asn1.h | |
564 | %{_includedir}/ntlm_err.h | |
565 | %{_includedir}/ocsp_asn1.h | |
566 | %{_includedir}/otp.h | |
567 | %{_includedir}/parse_bytes.h | |
568 | %{_includedir}/parse_time.h | |
569 | %{_includedir}/parse_units.h | |
570 | %{_includedir}/pkcs10_asn1.h | |
571 | %{_includedir}/pkcs12_asn1.h | |
572 | %{_includedir}/pkcs8_asn1.h | |
573 | %{_includedir}/pkcs9_asn1.h | |
574 | %{_includedir}/pkinit_asn1.h | |
575 | %{_includedir}/resolve.h | |
576 | %{_includedir}/rfc2459_asn1.h | |
577 | %{_includedir}/roken*.h | |
578 | %{_includedir}/rtbl.h | |
579 | %{_includedir}/sl.h | |
580 | %{_includedir}/wind.h | |
581 | %{_includedir}/wind_err.h | |
582 | %{_includedir}/xdbm.h | |
0484bab0 | 583 | %{_includedir}/gssapi |
29178154 | 584 | %{_includedir}/hcrypto |
0484bab0 | 585 | %{_includedir}/kadm5 |
d9842468 | 586 | %{?with_expose_internals:%{_includedir}/kcm} |
0484bab0 JB |
587 | %{_includedir}/krb5 |
588 | %{_includedir}/roken | |
6dfaff75 | 589 | %{_pkgconfigdir}/heimdal-gssapi.pc |
c7027388 JB |
590 | %{_pkgconfigdir}/heimdal-kadm-client.pc |
591 | %{_pkgconfigdir}/heimdal-kadm-server.pc | |
592 | %{_pkgconfigdir}/heimdal-krb5.pc | |
593 | %{_pkgconfigdir}/kadm-client.pc | |
594 | %{_pkgconfigdir}/kadm-server.pc | |
595 | %{_pkgconfigdir}/kafs.pc | |
596 | %{_pkgconfigdir}/krb5.pc | |
597 | %{_pkgconfigdir}/krb5-gssapi.pc | |
0484bab0 | 598 | %{_mandir}/man1/krb5-config.1* |
7198993c | 599 | %{_mandir}/man3/hc_DES_*.3* |
c31728a8 AO |
600 | %{_mandir}/man3/hc_DH_*.3* |
601 | %{_mandir}/man3/hc_EVP_*.3* | |
0360d4ed | 602 | %{_mandir}/man3/HDB.3* |
c7027388 | 603 | %{_mandir}/man3/OSSL_CIPHER_ALGORITHM.3* |
0360d4ed | 604 | %{_mandir}/man3/OpenSSL_add_all_algorithms*.3* |
c31728a8 AO |
605 | %{_mandir}/man3/hc_PKCS5_PBKDF2_HMAC.3* |
606 | %{_mandir}/man3/hc_PKCS5_PBKDF2_HMAC_SHA1.3* | |
607 | %{_mandir}/man3/hc_RAND_*.3* | |
608 | %{_mandir}/man3/hc_RSA_*.3* | |
c7027388 JB |
609 | %{_mandir}/man3/WINCNG_CIPHER_ALGORITHM.3* |
610 | %{_mandir}/man3/WINCNG_CIPHER_ALGORITHM_UNAVAILABLE.3* | |
0360d4ed | 611 | %{_mandir}/man3/data.3* |
0360d4ed | 612 | %{_mandir}/man3/ecalloc.3* |
0360d4ed JB |
613 | %{_mandir}/man3/getarg.3* |
614 | %{_mandir}/man3/gss_*.3* | |
615 | %{_mandir}/man3/gssapi*.3* | |
616 | %{_mandir}/man3/hcrypto_*.3* | |
617 | %{_mandir}/man3/hdb_*.3* | |
618 | %{_mandir}/man3/heim_ntlm_*.3* | |
c7027388 | 619 | %{_mandir}/man3/heimbase.3* |
0360d4ed | 620 | %{_mandir}/man3/hx509*.3* |
c7027388 | 621 | %{_mandir}/man3/internal_v_smechname.3* |
0360d4ed JB |
622 | %{_mandir}/man3/kadm5_pwcheck.3* |
623 | %{_mandir}/man3/kafs.3* | |
624 | %{_mandir}/man3/krb5*.3* | |
625 | %{_mandir}/man3/length.3* | |
0360d4ed | 626 | %{_mandir}/man3/ntlm*.3* |
0360d4ed JB |
627 | %{_mandir}/man3/page_*.3* |
628 | %{_mandir}/man3/parse_time.3* | |
629 | %{_mandir}/man3/rtbl.3* | |
0360d4ed | 630 | %{_mandir}/man3/wind*.3* |
c7027388 | 631 | %{_mandir}/man7/krb5-plugin.7* |
11e40c5a | 632 | |
0484bab0 JB |
633 | %files static |
634 | %defattr(644,root,root,755) | |
635 | %{_libdir}/libasn1.a | |
636 | %{_libdir}/libgssapi.a | |
29178154 | 637 | %{_libdir}/libhcrypto.a |
0484bab0 | 638 | %{_libdir}/libhdb.a |
ae8b3b4d | 639 | %{_libdir}/libheimbase.a |
0484bab0 JB |
640 | %{_libdir}/libheimntlm.a |
641 | %{_libdir}/libhx509.a | |
642 | %{_libdir}/libkadm5clnt.a | |
643 | %{_libdir}/libkadm5srv.a | |
644 | %{_libdir}/libkafs.a | |
645 | %{_libdir}/libkdc.a | |
646 | %{_libdir}/libkrb5.a | |
647 | %{_libdir}/libotp.a | |
648 | %{_libdir}/libroken.a | |
649 | %{_libdir}/libsl.a | |
6230cc94 | 650 | %{_libdir}/libwind.a |
0484bab0 | 651 | |
292976c1 JB |
652 | %if %{with ldap} |
653 | %files ldap | |
654 | %defattr(644,root,root,755) | |
655 | %attr(755,root,root) %{_libdir}/hdb_ldap.so | |
656 | ||
657 | %files -n openldap-schema-heimdal | |
658 | %defattr(644,root,root,755) | |
659 | %{schemadir}/hdb.schema | |
660 | %endif | |
661 | ||
0484bab0 JB |
662 | %files kcm |
663 | %defattr(644,root,root,755) | |
0c9d84fa JR |
664 | %attr(754,root,root) /etc/rc.d/init.d/kcm |
665 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/kcm | |
a2604258 | 666 | %attr(755,root,root) /sbin/kcm |
0484bab0 JB |
667 | %{_mandir}/man8/kcm.8* |
668 | ||
669 | %files server | |
670 | %defattr(644,root,root,755) | |
e5f030f3 | 671 | %attr(755,root,root) %{_sbindir}/digest-service |
11e40c5a AM |
672 | %attr(755,root,root) %{_sbindir}/hprop |
673 | %attr(755,root,root) %{_sbindir}/hpropd | |
674 | %attr(755,root,root) %{_sbindir}/ipropd-master | |
675 | %attr(755,root,root) %{_sbindir}/ipropd-slave | |
e5f030f3 | 676 | %attr(755,root,root) %{_sbindir}/iprop-log |
11e40c5a AM |
677 | %attr(755,root,root) %{_sbindir}/kadmind |
678 | %attr(755,root,root) %{_sbindir}/kdc | |
e5f030f3 | 679 | %attr(755,root,root) %{_sbindir}/kfd |
11e40c5a | 680 | %attr(755,root,root) %{_sbindir}/kpasswdd |
e5f030f3 | 681 | %attr(755,root,root) %{_sbindir}/kstash |
50d8bf88 | 682 | %attr(754,root,root) /etc/rc.d/init.d/heimdal |
0c9d84fa | 683 | %attr(754,root,root) /etc/rc.d/init.d/ipropd |
50d8bf88 | 684 | %attr(754,root,root) /etc/rc.d/init.d/kpasswdd |
0484bab0 | 685 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/heimdal |
0484bab0 JB |
686 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/kadmind |
687 | %attr(700,root,root) %dir %{_localstatedir} | |
688 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/* | |
5459024d | 689 | %{_mandir}/man8/hprop.8* |
690 | %{_mandir}/man8/hpropd.8* | |
e5f030f3 JR |
691 | %{_mandir}/man8/iprop.8* |
692 | %{_mandir}/man8/iprop-log.8* | |
fcf46cfe | 693 | %{_mandir}/man8/kadmind.8* |
5459024d | 694 | %{_mandir}/man8/kdc.8* |
c7b87187 | 695 | %{_mandir}/man8/kfd.8* |
5459024d | 696 | %{_mandir}/man8/kpasswdd.8* |
fcf46cfe | 697 | %{_mandir}/man8/kstash.8* |