]> git.pld-linux.org Git - packages/heimdal.git/blob - heimdal.spec
release 5
[packages/heimdal.git] / heimdal.spec
1 #
2 # Conditional build:
3 %bcond_without  x11     # X11-based utilities
4 %bcond_without  ldap    # LDAP plugin
5 %bcond_with     expose_internals        # install internal KCM headers
6 #
7 Summary:        Heimdal implementation of Kerberos V5 system
8 Summary(pl.UTF-8):      Implementacja Heimdal systemu Kerberos V5
9 Name:           heimdal
10 Version:        1.5.2
11 Release:        5
12 License:        Free
13 Group:          Networking
14 Source0:        http://www.h5l.org/dist/src/%{name}-%{version}.tar.gz
15 # Source0-md5:  bb23d9dbdafd395d816f7abc598481a1
16 Source1:        %{name}.init
17 Source2:        %{name}-kpasswdd.init
18 Source3:        %{name}-ipropd.init
19 Source4:        %{name}-kcm.init
20 Source5:        %{name}.sysconfig
21 Source6:        %{name}-kcm.sysconfig
22 Source7:        %{name}-krb5.conf
23 Source8:        %{name}-ftpd.inetd
24 Source9:        %{name}-rshd.inetd
25 Source10:       %{name}-telnetd.inetd
26 Source11:       %{name}-kadmind.inetd
27 Patch0:         %{name}-paths.patch
28 Patch1:         %{name}-am_man_fixes.patch
29 Patch2:         %{name}-amfix.patch
30 Patch3:         %{name}-dbpaths.patch
31 Patch4:         %{name}-db4.patch
32 Patch5:         %{name}-libadd.patch
33 Patch6:         %{name}-signal.patch
34 Patch7:         %{name}-make.patch
35 Patch8:         %{name}-info.patch
36 Patch9:         %{name}-sbindir.patch
37 Patch10:        %{name}-ntlm-digest.patch
38 Patch11:        %{name}-krb5config-nosysdirs.patch
39 Patch12:        %{name}-tinfo.patch
40 Patch13:        %{name}-missing-mit_glue-exports.patch
41 URL:            http://www.h5l.org/
42 BuildRequires:  autoconf >= 2.62
43 BuildRequires:  automake >= 1:1.10.3
44 BuildRequires:  bison
45 BuildRequires:  db-devel
46 BuildRequires:  flex
47 BuildRequires:  libcap-ng-devel >= 0.4.0
48 BuildRequires:  libcom_err-devel >= 1.41.11
49 BuildRequires:  libtool >= 2:2.2
50 BuildRequires:  mawk
51 BuildRequires:  ncurses-devel >= 5.1
52 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
53 BuildRequires:  openssl-devel >= 0.9.7d
54 BuildRequires:  pkgconfig
55 BuildRequires:  readline-devel >= 5.0
56 BuildRequires:  rpmbuild(macros) >= 1.268
57 BuildRequires:  sqlite3-devel
58 BuildRequires:  texinfo
59 %{?with_x11:BuildRequires:      xorg-lib-libICE-devel}
60 %{?with_x11:BuildRequires:      xorg-lib-libSM-devel}
61 %{?with_x11:BuildRequires:      xorg-lib-libX11-devel}
62 %{?with_x11:BuildRequires:      xorg-lib-libXau-devel}
63 %{?with_x11:BuildRequires:      xorg-lib-libXt-devel}
64 Requires:       %{name}-libs-common = %{version}-%{release}
65 Provides:       kerberos5-client
66 Obsoletes:      kerberos5-client
67 Conflicts:      krb5-client
68 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
69
70 %define         _localstatedir  /var/lib/%{name}
71 %define         schemadir       /usr/share/openldap/schema
72
73 %description
74 Heimdal is a free implementation of Kerberos 5. The goals are to:
75 - have an implementation that can be freely used by anyone
76 - be protocol compatible with existing implementations and, if not in
77   conflict, with RFC 1510 (and any future updated RFC)
78 - be reasonably compatible with the M.I.T Kerberos V5 API
79 - have support for Kerberos V5 over GSS-API (RFC1964)
80 - include the most important and useful application programs (rsh,
81   telnet, popper, etc.)
82 - include enough backwards compatibility with Kerberos V4
83 - IPv6 support
84
85 %description -l pl.UTF-8
86 Heimdal jest darmową implementacją Kerberosa 5. Główne zalety to:
87 - implementacja, która może być używana przez każdego
88 - kompatybilność na poziomie protokołu z istniejącymi implementacjami
89 - racjonalna kompatybilność z M.I.T Kerberos V5 API
90 - wsparcie dla Kerberosa 5 poprzez GSS-API (RFC1964)
91 - zawiera większość istotnych i użytecznych aplikacji (rsh, telnet,
92   popper, etc.)
93 - zawiera wystarczającą kompatybilność z Kerberos V4
94 - wsparcie dla IPv6
95
96 %package common
97 Summary:        Heimdal essential config files and documentation
98 Summary(pl.UTF-8):      Niezbędne pliki konfiguracyjne i dokumentacja dla heimdala
99 Group:          Networking
100
101 %description common
102 Package contains essential configs and documentation required
103 by heimdal packages.
104
105 %description common -l pl.UTF-8
106 Pakiet zawiera niezbędne pliki konfiguracyjne i dokumentację
107 dla heimdala.
108
109 %package libs
110 Summary:        Heimdal shared libraries
111 Summary(pl.UTF-8):      Biblioteki współdzielone dla heimdala
112 Group:          Libraries
113 Requires:       libcom_err >= 1.41.11
114
115 %description libs
116 This package contains shared libraries required by several of the
117 other heimdal packages.
118
119 %description libs -l pl.UTF-8
120 Ten pakiet zawiera biblioteki współdzielone wymagane przez kilka
121 innych pakietów składowych heimdala.
122
123 %package libs-common
124 Summary:        Common libraries used by Heimdal programs
125 Summary(pl.UTF-8):      Wspólne biblioteki używane przez programy z Heimdala
126 Group:          Libraries
127 Requires:       %{name}-common = %{version}-%{release}
128 Requires:       %{name}-libs = %{version}-%{release}
129
130 %description libs-common
131 Common libraries used by Heimdal programs.
132
133 %description libs-common -l pl.UTF-8
134 Wspólne biblioteki używane przez programy z projektu Heimdal.
135
136 %package libs-server
137 Summary:        Libraries used by Heimdal KDC server
138 Summary(pl.UTF-8):      Biblioteki używane przez serwer Heimdal KDC
139 Group:          Libraries
140 Requires:       %{name}-libs-common = %{version}-%{release}
141
142 %description libs-server
143 This package contains shared libraries required to run Heimdal KDC
144 server.
145
146 %description libs-server -l pl.UTF-8
147 Ten pakiet zawiera biblioteki współdzielone używane potrzebne dla
148 serwera KDC z projektu Heimdal.
149
150 %package devel
151 Summary:        Header files for heimdal
152 Summary(pl.UTF-8):      Pliki nagłówkowe i dokumentacja do bibliotek heimdal
153 Group:          Development/Libraries
154 Requires:       %{name}-libs = %{version}-%{release}
155 Requires:       %{name}-libs-common = %{version}-%{release}
156 Requires:       %{name}-libs-server = %{version}-%{release}
157 Requires:       db-devel
158 Requires:       libcom_err-devel >= 1.41.11
159 Requires:       openssl-devel
160 Requires:       sqlite3-devel
161 Conflicts:      krb5-devel
162 Conflicts:      libgssglue-devel
163
164 %description devel
165 contains files needed to compile and link software using the kerberos
166 libraries.
167
168 %description devel -l pl.UTF-8
169 Pliki nagłówkowe i dokumentacja do bibliotek heimdal.
170
171 %package static
172 Summary:        Static heimdal libraries
173 Summary(pl.UTF-8):      Biblioteki statyczne heimdal
174 Group:          Development/Libraries
175 Requires:       %{name}-devel = %{version}-%{release}
176
177 %description static
178 Satatic heimdal libraries.
179
180 %description static -l pl.UTF-8
181 Biblioteki statyczne heimdal.
182
183 %package ldap
184 Summary:        LDAP HDB plugin
185 Summary(pl.UTF-8):      Wtyczka HDB LDAP
186 Group:          Libraries
187 Requires:       %{name}-libs-common = %{version}-%{release}
188
189 %description ldap
190 LDAP HDB plugin.
191
192 %description ldap -l pl.UTF-8
193 Wtyczka HDB LDAP.
194
195 %package -n openldap-schema-heimdal
196 Summary:        Heimdal Kerberos LDAP schema
197 Summary(pl.UTF-8):      Schemat LDAP Kerberosa Heimdal
198 Group:          Networking/Daemons
199 Requires(post,postun):  sed >= 4.0
200 Requires:       openldap-servers
201
202 %description -n openldap-schema-heimdal
203 This package contains Heimdal Kerberos LDAP schema for openldap.
204
205 %description -n openldap-schema-heimdal -l pl.UTF-8
206 Ten pakiet zawiera schemat LDAP Kerberosa Heimdal dla openldap-a.
207
208 %package server
209 Summary:        Kerberos Server
210 Summary(pl.UTF-8):      Serwer Kerberosa
211 Group:          Networking
212 Requires(post,preun):   /sbin/chkconfig
213 Requires:       %{name}-libs-server = %{version}-%{release}
214 Requires:       rc-scripts
215 Provides:       kerberos5-server
216 # probably not a good idea
217 #Obsoletes:     kerberos5-server
218 Conflicts:      krb5-server
219
220 %description server
221 Master KDC.
222
223 %description server -l pl.UTF-8
224 Główne centrum dystrybucji kluczy (KDC).
225
226 %package kcm
227 Summary:        KCM - credencial cache daemon for Kerberos tickets
228 Summary(pl.UTF-8):      KCM - demon zapamiętujący dane uwierzytelniające dla biletów Kerberosa
229 Group:          Daemons
230 Requires:       %{name}-libs-common = %{version}-%{release}
231
232 %description kcm
233 KCM is a credencial cache daemon for Kerberos tickets.
234
235 %description kcm -l pl.UTF-8
236 KCM to demon zapamiętujący dane uwierzytelniające dla biletów
237 Kerberosa.
238
239 %package login
240 Summary:        login is used when signing onto a system
241 Summary(pl.UTF-8):      Narzędzie do logowania w systemie
242 Group:          Applications/Networking
243 Requires:       %{name}-libs-common = %{version}-%{release}
244 Provides:       kerberos5-login
245 Obsoletes:      kerberos5-login
246 Conflicts:      shadow < 1:4.0.16
247
248 %description login
249 login is used when signing onto a system. It can also be used to
250 switch from one user to another at any time (most modern shells have
251 support for this feature built into them, however). This package
252 contain kerberized version login program.
253
254 %description login -l pl.UTF-8
255 login jest używany przy logowaniu do systemu. Może być także użyty do
256 przełączenia z jednego użytkownika na innego w dowolnej chwili
257 (większość współczesnych shelli ma wbudowaną obsługę tego). Ten pakiet
258 zawiera skerberyzowaną wersję programu login.
259
260 %package ftp
261 Summary:        The standard UNIX FTP (file transfer protocol) client
262 Summary(pl.UTF-8):      Klient protokołu FTP
263 Group:          Applications/Networking
264 Requires:       %{name}-libs-common = %{version}-%{release}
265 Provides:       kerberos5-ftp
266 Obsoletes:      ftp
267 Obsoletes:      kerberos5-ftp
268 Conflicts:      heimdal-clients
269 Conflicts:      krb5-ftp
270
271 %description ftp
272 The FTP package provides the standard UNIX command-line FTP client
273 with kerberos authentication support. FTP is the file transfer
274 protocol, which is a widely used Internet protocol for transferring
275 files and for archiving files.
276
277 %description ftp -l pl.UTF-8
278 Ten pakiet dostarcza standardowego klienta FTP z wbudowaną obsługą
279 kerberosa. FTP jest protokołem do przesyłania plików szeroko
280 rozpowszechnionym w Internecie.
281
282 %package rsh
283 Summary:        Clients for remote access commands (rsh, rlogin, rcp)
284 Summary(pl.UTF-8):      Klient zdalnego dostępu (rsh, rlogin, rcp)
285 Group:          Applications/Networking
286 Requires:       %{name}-libs-common = %{version}-%{release}
287 Provides:       kerberos5-rsh
288 Obsoletes:      kerberos5-rsh
289 Obsoletes:      rsh
290 Conflicts:      heimdal-clients
291 Conflicts:      krb5-rsh
292
293 %description rsh
294 The rsh package contains a set of programs which allow users to run
295 commands on remote machines, login to other machines and copy files
296 between machines (rsh, rlogin and rcp). All three of these commands
297 use rhosts style authentication. This package contains the clients
298 needed for all of these services.
299
300 %description rsh -l pl.UTF-8
301 Ten pakiet zawiera zestaw narzędzi pozwalających na wykonywanie
302 poleceń na zdalnych maszynach, logowanie na inne maszyny oraz
303 kopiowanie plików pomiędzy maszynami (rsh, rlogin, rcp).
304
305 %package telnet
306 Summary:        Client for the telnet remote login
307 Summary(pl.UTF-8):      Klient usługi telnet
308 Group:          Applications/Networking
309 Requires:       %{name}-libs-common = %{version}-%{release}
310 Provides:       kerberos5-telnet
311 Obsoletes:      kerberos5-telnet
312 Obsoletes:      telnet
313 Conflicts:      heimdal-clients
314 Conflicts:      krb5-telnet
315
316 %description telnet
317 Telnet is a popular protocol for remote logins across the Internet.
318 This package provides a command line telnet client.
319
320 %description telnet -l pl.UTF-8
321 Telnet jest popularnym protokołem zdalnego logowania. Ten pakiet
322 zawiera klienta tej usługi.
323
324 %package ftpd
325 Summary:        The standard UNIX FTP (file transfer protocol) server
326 Summary(pl.UTF-8):      Serwer FTP
327 Group:          Networking/Daemons
328 Requires:       %{name}-libs-common = %{version}-%{release}
329 Requires:       rc-inetd >= 0.8.1
330 Provides:       kerberos5-ftpd
331 Obsoletes:      ftpd
332 Obsoletes:      kerberos5-ftpd
333 Conflicts:      krb5-ftpd
334
335 %description ftpd
336 FTP is the file transfer protocol, which is a widely used Internet
337 protocol for transferring files and for archiving files.
338
339 %description ftpd -l pl.UTF-8
340 FTP jest protokołem transmisji plików szeroko rozpowszechnionym w
341 Internecie.
342
343 %package rshd
344 Summary:        Server for remote access commands (rsh, rlogin, rcp)
345 Summary(pl.UTF-8):      Serwer zdalnego dostępu (rsh, rlogin, rcp)
346 Group:          Networking/Daemons
347 Requires:       %{name}-libs-common = %{version}-%{release}
348 Requires:       rc-inetd >= 0.8.1
349 Provides:       kerberos5-rshd
350 Obsoletes:      kerberos5-rshd
351 Obsoletes:      rshd
352 Conflicts:      krb5-rshd
353
354 %description rshd
355 The rsh package contains a set of programs which allow users to run
356 commmands on remote machines, login to other machines and copy files
357 between machines (rsh, rlogin and rcp). All three of these commands
358 use rhosts style authentication. This package contains servers needed
359 for all of these services.
360
361 %description rshd -l pl.UTF-8
362 Ten pakiet zawiera zestaw serwerów pozwalających na wykonywanie
363 poleceń na zdalnych maszynach, logowanie na inne maszyny oraz
364 kopiowanie plików pomiędzy maszynami (rsh, rlogin, rcp).
365
366 %package telnetd
367 Summary:        Server for the telnet remote login
368 Summary(pl.UTF-8):      Serwer protokołu telnet
369 Group:          Networking/Daemons
370 Requires:       %{name}-libs-common = %{version}-%{release}
371 Requires:       rc-inetd >= 0.8.1
372 Provides:       kerberos5-telnetd
373 Obsoletes:      kerberos5-telnetd
374 Obsoletes:      telnetd
375 Conflicts:      krb5-telnetd
376
377 %description telnetd
378 Telnet is a popular protocol for remote logins across the Internet.
379 This package provides a telnet daemon which allows remote logins into
380 the machine it is running on.
381
382 %description telnetd -l pl.UTF-8
383 Telnet jest popularnym protokołem zdalnego logowania. Ten pakiet
384 zawiera serwer pozwalający na zdalne logowanie się klientów na maszynę
385 na której działa.
386
387 %package daemons
388 Summary:        Kerberos daemons programs for use on servers
389 Summary(pl.UTF-8):      Serwery popularnych usług, autoryzujące przy pomocy kerberosa
390 Group:          Networking
391 Requires:       %{name}-libs-common = %{version}-%{release}
392
393 %description daemons
394 Kerberos Daemons.
395
396 %description daemons -l pl.UTF-8
397 Demony korzystające z systemu Kerberos do autoryzacji dostępu.
398
399 %prep
400 %setup -q
401 %patch0 -p1
402 %patch1 -p1
403 %patch2 -p1
404 %patch3 -p1
405 %patch4 -p1
406 %patch5 -p1
407 %patch6 -p1
408 %patch7 -p1
409 %patch8 -p1
410 %patch9 -p1
411 %patch10 -p1
412 %patch11 -p1
413 %patch12 -p1
414 %patch13 -p1
415
416 %build
417 install -d our-ld
418 ln -s %{_bindir}/ld.bfd our-ld/ld
419 export PATH=$(pwd)/our-ld:$PATH
420
421 %{__rm} acinclude.m4 cf/{libtool,lt*}.m4
422 %{__libtoolize}
423 %{__aclocal} -I cf
424 %{__autoconf}
425 %{__automake}
426 cd lib/libedit
427 %{__aclocal}
428 %{__autoconf}
429 %{__automake}
430 cd ../..
431 %configure \
432 %if %{with ldap}
433         --enable-hdb-openldap-module \
434         --with-openldap=/usr \
435 %endif
436         --enable-kcm \
437         --enable-pthread-support \
438         --enable-shared \
439         --enable-static \
440         --with-hdbdir=%{_localstatedir} \
441         --with-ipv6 \
442         --with-readline=/usr \
443         --with-sqlite3=/usr \
444         --without-hesiod \
445         --with%{!?with_x11:out}-x
446
447 %{__make} -j1
448
449 %install
450 rm -rf $RPM_BUILD_ROOT
451 install -d $RPM_BUILD_ROOT{%{_localstatedir},%{_sysconfdir},%{schemadir},/sbin,/%{_lib}} \
452         $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d}
453
454 %{__make} install \
455         DESTDIR=$RPM_BUILD_ROOT
456
457 install lib/hdb/hdb.schema $RPM_BUILD_ROOT%{schemadir}
458
459 mv $RPM_BUILD_ROOT%{_sbindir}/kcm $RPM_BUILD_ROOT/sbin/kcm
460
461 mv $RPM_BUILD_ROOT%{_bindir}/su $RPM_BUILD_ROOT%{_bindir}/ksu
462 mv $RPM_BUILD_ROOT%{_mandir}/man1/su.1 $RPM_BUILD_ROOT%{_mandir}/man1/ksu.1
463
464 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
465 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/kpasswdd
466 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/ipropd
467 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/kcm
468 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
469 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/kcm
470
471 install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/krb5.conf
472
473 install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd
474 install %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rshd
475 install %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/telnetd
476 install %{SOURCE11} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/kadmind
477
478 for l in $RPM_BUILD_ROOT%{_libdir}/lib{asn1,gssapi,heimbase,heimntlm,hx509,kafs,krb5,roken,wind}.so; do
479         lib=`basename $l`
480         mv -f $RPM_BUILD_ROOT%{_libdir}/$lib.* $RPM_BUILD_ROOT/%{_lib}
481         ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/$lib.*.*) $RPM_BUILD_ROOT%{_libdir}/$lib
482 done
483
484 %if %{with expose_internals}
485 # install definitions of KCM internal data structures to get KCM support in nfs-utils
486 install -d $RPM_BUILD_ROOT%{_includedir}/kcm
487 _mutexdef=$(cat << EOF | %{__cc} -E -I./include - | sed 's/_HEIMDAL_MUTEX \(.*\)/\1/p; d'
488 #include "config.h"
489 #include "heim_threads.h"
490 _HEIMDAL_MUTEX HEIMDAL_MUTEX
491 EOF)
492 %{__sed} -e '/#include <kcm-protos.h>/d' \
493         -e '/#include "headers.h"/d' \
494         -e '/kcm_service/N; /kcm_service/d;' \
495         -e 's/<kcm\.h>/<kcm\/kcm.h>/' \
496         -e "s/HEIMDAL_MUTEX/$_mutexdef/g" kcm/kcm_locl.h >$RPM_BUILD_ROOT%{_includedir}/kcm/kcm_locl.h
497 install -p lib/krb5/kcm.h $RPM_BUILD_ROOT%{_includedir}/kcm
498 %endif
499
500 # just a test plugin
501 %{__rm} $RPM_BUILD_ROOT%{_libdir}/windc.*
502 %if %{with ldap}
503 # not needed for plugin
504 %{__rm} $RPM_BUILD_ROOT%{_libdir}/hdb_ldap.{la,a}
505 %endif
506 # resolve heimdal-libs/krb5-libs conflict
507 %{__mv} $RPM_BUILD_ROOT%{_mandir}/man5/{krb5.conf.5,krb5.conf.5h}
508
509 touch $RPM_BUILD_ROOT{%{_sysconfdir}/krb5.keytab,%{_localstatedir}/kadmind.acl}
510
511 %clean
512 rm -rf $RPM_BUILD_ROOT
513
514 %post server
515 /sbin/chkconfig --add heimdal
516 %service heimdal restart "heimdal KDC daemon"
517 /sbin/chkconfig --add kpasswdd
518 %service kpasswdd restart "heimdal password changing daemon"
519 /sbin/chkconfig --add ipropd
520 %service ipropd restart "heimdal propagation daemons"
521 %service -q rc-inetd reload
522
523 %preun server
524 if [ "$1" = "0" ]; then
525         %service ipropd stop
526         /sbin/chkconfig --del ipropd
527         %service kpasswdd stop
528         /sbin/chkconfig --del kpasswdd
529         %service heimdal stop
530         /sbin/chkconfig --del heimdal
531         %service -q rc-inetd reload
532 fi
533
534 %post kcm
535 /sbin/chkconfig --add kcm
536 if [ -f /var/lock/subsys/kcm ]; then
537         echo "Run \"/sbin/service kcm restart\" to restart kcm." >&2
538         echo "WARNING: it will clear all credentials and tickets kept in kcm!" >&2
539 else
540         echo "Run \"/sbin/service kcm start\" to start kcm." >&2
541 fi
542
543 %preun kcm
544 if [ "$1" = "0" ]; then
545         %service kcm stop
546         /sbin/chkconfig --del kcm
547 fi
548
549 %post ftpd
550 %service -q rc-inetd reload
551
552 %postun ftpd
553 if [ "$1" = "0" ]; then
554         %service -q rc-inetd reload
555 fi
556
557 %post rshd
558 %service -q rc-inetd reload
559
560 %postun rshd
561 if [ "$1" = "0" ]; then
562         %service -q rc-inetd reload
563 fi
564
565 %post telnetd
566 %service -q rc-inetd reload
567
568 %postun telnetd
569 if [ "$1" = "0" ]; then
570         %service -q rc-inetd reload
571 fi
572
573 %post common
574 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
575
576 %postun common
577 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
578
579 %post   libs -p /sbin/ldconfig
580 %postun libs -p /sbin/ldconfig
581 %post   libs-common -p /sbin/ldconfig
582 %postun libs-common -p /sbin/ldconfig
583 %post   libs-server -p /sbin/ldconfig
584 %postun libs-server -p /sbin/ldconfig
585
586 %if %{with ldap}
587 %post -n openldap-schema-heimdal
588 %openldap_schema_register %{schemadir}/hdb.schema
589 %service -q ldap restart
590
591 %postun -n openldap-schema-heimdal
592 if [ "$1" = "0" ]; then
593         %openldap_schema_unregister %{schemadir}/hdb.schema
594         %service -q ldap restart
595 fi
596 %endif
597
598 %triggerpostun libs -- heimdal-libs < 1.2.1-6
599 if [ -f /etc/heimdal/krb5.conf.rpmsave ]; then
600         mv /etc/krb5.conf{,.rpmnew}
601         mv -f /etc/heimdal/krb5.conf.rpmsave /etc/krb5.conf
602 fi
603 if [ -f /etc/heimdal/krb5.keytab.rpmsave ]; then
604         mv /etc/krb5.keytab{,.rpmnew}
605         mv -f /etc/heimdal/krb5.keytab.rpmsave /etc/krb5.keytab
606 fi
607
608 %files
609 %defattr(644,root,root,755)
610 %doc ChangeLog NEWS README TODO
611 %attr(755,root,root) %{_bindir}/afslog
612 %attr(755,root,root) %{_bindir}/gsstool
613 %attr(755,root,root) %{_bindir}/hxtool
614 %attr(755,root,root) %{_bindir}/idn-lookup
615 %attr(755,root,root) %{_bindir}/kcc
616 %attr(755,root,root) %{_bindir}/kdestroy
617 %attr(755,root,root) %{_bindir}/kf
618 %attr(755,root,root) %{_bindir}/kgetcred
619 %attr(755,root,root) %{_bindir}/kinit
620 %attr(755,root,root) %{_bindir}/klist
621 %attr(755,root,root) %{_bindir}/kpasswd
622 %attr(755,root,root) %{_bindir}/kswitch
623 %attr(755,root,root) %{_bindir}/otpprint
624 %attr(755,root,root) %{_bindir}/pagsh
625 %attr(755,root,root) %{_bindir}/pfrom
626 %attr(755,root,root) %{_bindir}/string2key
627 %attr(755,root,root) %{_bindir}/verify_krb5_conf
628 %attr(755,root,root) %{_sbindir}/kadmin
629 %attr(755,root,root) %{_sbindir}/kdigest
630 %attr(755,root,root) %{_sbindir}/kimpersonate
631 %attr(755,root,root) %{_sbindir}/ktutil
632 %attr(755,root,root) %{_sbindir}/push
633 %if %{with x11}
634 %attr(755,root,root) %{_bindir}/kx
635 %attr(755,root,root) %{_bindir}/rxtelnet
636 %attr(755,root,root) %{_bindir}/rxterm
637 %attr(755,root,root) %{_bindir}/tenletxr
638 %attr(755,root,root) %{_bindir}/xnlock
639 %endif
640 %attr(4755,root,root) %{_bindir}/otp
641 %attr(4755,root,root) %{_bindir}/ksu
642 %{_mandir}/man1/afslog.1*
643 %{_mandir}/man1/kdestroy.1*
644 %{_mandir}/man1/kf.1*
645 %{_mandir}/man1/kgetcred.1*
646 %{_mandir}/man1/kinit.1*
647 %{_mandir}/man1/klist.1*
648 %{_mandir}/man1/kpasswd.1*
649 %{_mandir}/man1/ksu.1*
650 %{_mandir}/man1/kswitch.1*
651 %{_mandir}/man1/otp.1*
652 %{_mandir}/man1/otpprint.1*
653 %{_mandir}/man1/pagsh.1*
654 %{_mandir}/man1/pfrom.1*
655 %if %{with x11}
656 %{_mandir}/man1/kx.1*
657 %{_mandir}/man1/rxtelnet.1*
658 %{_mandir}/man1/rxterm.1*
659 %{_mandir}/man1/tenletxr.1*
660 %{_mandir}/man1/xnlock.1*
661 %endif
662 %{_mandir}/man8/kadmin.8*
663 %{_mandir}/man8/kdigest.8*
664 %{_mandir}/man8/kimpersonate.8*
665 %{_mandir}/man8/ktutil.8*
666 %{_mandir}/man8/push.8*
667 %{_mandir}/man8/string2key.8*
668 %{_mandir}/man8/verify_krb5_conf.8*
669
670 %files common
671 %defattr(644,root,root,755)
672 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/krb5.conf
673 %attr(400,root,root) %ghost %{_sysconfdir}/krb5.keytab
674 %{_infodir}/heimdal.info*
675 %{_infodir}/hx509.info*
676 %{_mandir}/man5/krb5.conf.5*
677 %{_mandir}/man5/mech.5*
678 %{_mandir}/man8/kerberos.8*
679
680 %files libs
681 %defattr(644,root,root,755)
682 %attr(755,root,root) /%{_lib}/libasn1.so.*.*.*
683 %attr(755,root,root) %ghost /%{_lib}/libasn1.so.8
684 %attr(755,root,root) /%{_lib}/libgssapi.so.*.*.*
685 %attr(755,root,root) %ghost /%{_lib}/libgssapi.so.3
686 %attr(755,root,root) /%{_lib}/libheimbase.so.*.*.*
687 %attr(755,root,root) %ghost /%{_lib}/libheimbase.so.1
688 %attr(755,root,root) /%{_lib}/libheimntlm.so.*.*.*
689 %attr(755,root,root) %ghost /%{_lib}/libheimntlm.so.0
690 %attr(755,root,root) /%{_lib}/libhx509.so.*.*.*
691 %attr(755,root,root) %ghost /%{_lib}/libhx509.so.5
692 %attr(755,root,root) /%{_lib}/libkafs.so.*.*.*
693 %attr(755,root,root) %ghost /%{_lib}/libkafs.so.0
694 %attr(755,root,root) /%{_lib}/libkrb5.so.*.*.*
695 %attr(755,root,root) %ghost /%{_lib}/libkrb5.so.26
696 %attr(755,root,root) /%{_lib}/libroken.so.*.*.*
697 %attr(755,root,root) %ghost /%{_lib}/libroken.so.18
698 %attr(755,root,root) /%{_lib}/libwind.so.*.*.*
699 %attr(755,root,root) %ghost /%{_lib}/libwind.so.0
700
701 %files libs-common
702 %defattr(644,root,root,755)
703 %attr(755,root,root) %{_libdir}/libhdb.so.*.*.*
704 %attr(755,root,root) %ghost %{_libdir}/libhdb.so.9
705 %attr(755,root,root) %{_libdir}/libkadm5clnt.so.*.*.*
706 %attr(755,root,root) %ghost %{_libdir}/libkadm5clnt.so.7
707 %attr(755,root,root) %{_libdir}/libkadm5srv.so.*.*.*
708 %attr(755,root,root) %ghost %{_libdir}/libkadm5srv.so.8
709 %attr(755,root,root) %{_libdir}/libotp.so.*.*.*
710 %attr(755,root,root) %ghost %{_libdir}/libotp.so.0
711 %attr(755,root,root) %{_libdir}/libsl.so.*.*.*
712 %attr(755,root,root) %ghost %{_libdir}/libsl.so.0
713 %dir %{_libdir}/%{name}
714 %attr(755,root,root) %{_libdir}/%{name}/asn1_compile
715 %attr(755,root,root) %{_libdir}/%{name}/asn1_print
716 %attr(755,root,root) %{_libdir}/%{name}/slc
717
718 %files libs-server
719 %defattr(644,root,root,755)
720 %attr(755,root,root) %{_libdir}/libkdc.so.*.*.*
721 %attr(755,root,root) %ghost %{_libdir}/libkdc.so.2
722
723 %files devel
724 %defattr(644,root,root,755)
725 %attr(755,root,root) %{_bindir}/krb5-config
726 %attr(755,root,root) %{_libdir}/libasn1.so
727 %attr(755,root,root) %{_libdir}/libgssapi.so
728 %attr(755,root,root) %{_libdir}/libhdb.so
729 %attr(755,root,root) %{_libdir}/libheimbase.so
730 %attr(755,root,root) %{_libdir}/libheimntlm.so
731 %attr(755,root,root) %{_libdir}/libhx509.so
732 %attr(755,root,root) %{_libdir}/libkadm5clnt.so
733 %attr(755,root,root) %{_libdir}/libkadm5srv.so
734 %attr(755,root,root) %{_libdir}/libkafs.so
735 %attr(755,root,root) %{_libdir}/libkdc.so
736 %attr(755,root,root) %{_libdir}/libkrb5.so
737 %attr(755,root,root) %{_libdir}/libotp.so
738 %attr(755,root,root) %{_libdir}/libroken.so
739 %attr(755,root,root) %{_libdir}/libsl.so
740 %attr(755,root,root) %{_libdir}/libwind.so
741 %{_libdir}/libasn1.la
742 %{_libdir}/libgssapi.la
743 %{_libdir}/libhdb.la
744 %{_libdir}/libheimbase.la
745 %{_libdir}/libheimntlm.la
746 %{_libdir}/libhx509.la
747 %{_libdir}/libkadm5clnt.la
748 %{_libdir}/libkadm5srv.la
749 %{_libdir}/libkafs.la
750 %{_libdir}/libkdc.la
751 %{_libdir}/libkrb5.la
752 %{_libdir}/libotp.la
753 %{_libdir}/libroken.la
754 %{_libdir}/libsl.la
755 %{_libdir}/libwind.la
756 %{_includedir}/*.h
757 %{_includedir}/gssapi
758 %{_includedir}/kadm5
759 %{?with_expose_internals:%{_includedir}/kcm}
760 %{_includedir}/krb5
761 %{_includedir}/roken
762 %{_pkgconfigdir}/heimdal-gssapi.pc
763 %{_mandir}/man1/krb5-config.1*
764 %{_mandir}/man3/DES_*.3*
765 %{_mandir}/man3/DH_*.3*
766 %{_mandir}/man3/EVP_*.3*
767 %{_mandir}/man3/HDB.3*
768 %{_mandir}/man3/OpenSSL_add_all_algorithms*.3*
769 %{_mandir}/man3/PKCS5_PBKDF2_HMAC_SHA1.3*
770 %{_mandir}/man3/RAND_*.3*
771 %{_mandir}/man3/RSA_*.3*
772 %{_mandir}/man3/__gss_c_attr_stream_sizes_oid_desc.3*
773 %{_mandir}/man3/challenge.3*
774 %{_mandir}/man3/context.3*
775 %{_mandir}/man3/data.3*
776 %{_mandir}/man3/domain.3*
777 %{_mandir}/man3/ecalloc.3*
778 %{_mandir}/man3/flags.3*
779 %{_mandir}/man3/getarg.3*
780 %{_mandir}/man3/gss_*.3*
781 %{_mandir}/man3/gssapi*.3*
782 %{_mandir}/man3/hcrypto_*.3*
783 %{_mandir}/man3/hdb_*.3*
784 %{_mandir}/man3/heim_ntlm_*.3*
785 %{_mandir}/man3/hostname.3*
786 %{_mandir}/man3/hx509*.3*
787 %{_mandir}/man3/internalvsmechname.3*
788 %{_mandir}/man3/kadm5_pwcheck.3*
789 %{_mandir}/man3/kafs.3*
790 %{_mandir}/man3/krb5*.3*
791 %{_mandir}/man3/length.3*
792 %{_mandir}/man3/lm.3*
793 %{_mandir}/man3/ntlm*.3*
794 %{_mandir}/man3/os.3*
795 %{_mandir}/man3/page_*.3*
796 %{_mandir}/man3/parse_time.3*
797 %{_mandir}/man3/rtbl.3*
798 %{_mandir}/man3/sessionkey.3*
799 %{_mandir}/man3/targetinfo.3*
800 %{_mandir}/man3/targetname.3*
801 %{_mandir}/man3/username.3*
802 %{_mandir}/man3/wind*.3*
803 %{_mandir}/man3/ws.3*
804
805 %files static
806 %defattr(644,root,root,755)
807 %{_libdir}/libasn1.a
808 %{_libdir}/libgssapi.a
809 %{_libdir}/libhdb.a
810 %{_libdir}/libheimbase.a
811 %{_libdir}/libheimntlm.a
812 %{_libdir}/libhx509.a
813 %{_libdir}/libkadm5clnt.a
814 %{_libdir}/libkadm5srv.a
815 %{_libdir}/libkafs.a
816 %{_libdir}/libkdc.a
817 %{_libdir}/libkrb5.a
818 %{_libdir}/libotp.a
819 %{_libdir}/libroken.a
820 %{_libdir}/libsl.a
821 %{_libdir}/libwind.a
822
823 %if %{with ldap}
824 %files ldap
825 %defattr(644,root,root,755)
826 %attr(755,root,root) %{_libdir}/hdb_ldap.so
827
828 %files -n openldap-schema-heimdal
829 %defattr(644,root,root,755)
830 %{schemadir}/hdb.schema
831 %endif
832
833 %files kcm
834 %defattr(644,root,root,755)
835 %attr(754,root,root) /etc/rc.d/init.d/kcm
836 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/kcm
837 %attr(755,root,root) /sbin/kcm
838 %{_mandir}/man8/kcm.8*
839
840 %files server
841 %defattr(644,root,root,755)
842 %attr(755,root,root) %{_sbindir}/digest-service
843 %attr(755,root,root) %{_sbindir}/hprop
844 %attr(755,root,root) %{_sbindir}/hpropd
845 %attr(755,root,root) %{_sbindir}/ipropd-master
846 %attr(755,root,root) %{_sbindir}/ipropd-slave
847 %attr(755,root,root) %{_sbindir}/iprop-log
848 %attr(755,root,root) %{_sbindir}/kadmind
849 %attr(755,root,root) %{_sbindir}/kdc
850 %attr(755,root,root) %{_sbindir}/kfd
851 %attr(755,root,root) %{_sbindir}/kpasswdd
852 %attr(755,root,root) %{_sbindir}/kstash
853 %{?with_x11:%attr(755,root,root) %{_sbindir}/kxd}
854 %attr(754,root,root) /etc/rc.d/init.d/%{name}
855 %attr(754,root,root) /etc/rc.d/init.d/kpasswdd
856 %attr(754,root,root) /etc/rc.d/init.d/ipropd
857 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/heimdal
858 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/kadmind
859 %attr(700,root,root) %dir %{_localstatedir}
860 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/*
861 %{_mandir}/man8/hprop.8*
862 %{_mandir}/man8/hpropd.8*
863 %{_mandir}/man8/iprop.8*
864 %{_mandir}/man8/iprop-log.8*
865 %{_mandir}/man8/kadmind.8*
866 %{_mandir}/man8/kdc.8*
867 %{_mandir}/man8/kfd.8*
868 %{_mandir}/man8/kpasswdd.8*
869 %{_mandir}/man8/kstash.8*
870 %{?with_x11:%{_mandir}/man8/kxd.8*}
871
872 %files login
873 %defattr(644,root,root,755)
874 %attr(755,root,root) %{_bindir}/login
875 %{_mandir}/man1/login.1*
876 %{_mandir}/man5/login.access.5*
877
878 %files ftp
879 %defattr(644,root,root,755)
880 %attr(755,root,root) %{_bindir}/ftp
881 %{_mandir}/man1/ftp.1*
882
883 %files rsh
884 %defattr(644,root,root,755)
885 %attr(755,root,root) %{_bindir}/rcp
886 %attr(755,root,root) %{_bindir}/rsh
887 %{_mandir}/man1/rcp.1*
888 %{_mandir}/man1/rsh.1*
889
890 %files telnet
891 %defattr(644,root,root,755)
892 %attr(755,root,root) %{_bindir}/telnet
893 %{_mandir}/man1/telnet.1*
894
895 %files ftpd
896 %defattr(644,root,root,755)
897 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/ftpd
898 %attr(755,root,root) %{_sbindir}/ftpd
899 %{_mandir}/man5/ftpusers.5*
900 %{_mandir}/man8/ftpd.8*
901
902 %files rshd
903 %defattr(644,root,root,755)
904 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/rshd
905 %attr(755,root,root) %{_sbindir}/rshd
906 %{_mandir}/man8/rshd.8*
907
908 %files telnetd
909 %defattr(644,root,root,755)
910 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/telnetd
911 %attr(755,root,root) %{_sbindir}/telnetd
912 %{_mandir}/man8/telnetd.8*
913
914 %files daemons
915 %defattr(644,root,root,755)
916 %attr(755,root,root) %{_sbindir}/popper
917 %{_mandir}/man8/popper.8*
This page took 0.738694 seconds and 3 git commands to generate.