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