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