]> git.pld-linux.org Git - packages/heimdal.git/blame - heimdal.spec
- updated to 1.5.3
[packages/heimdal.git] / heimdal.spec
CommitLineData
e3590bff
JB
1#
2# Conditional build:
9f1d2ac7
JB
3%bcond_without x11 # X11-based utilities
4%bcond_without ldap # LDAP plugin
d9842468 5%bcond_with expose_internals # install internal KCM headers
e3590bff 6#
11e40c5a 7Summary: Heimdal implementation of Kerberos V5 system
13ef1022 8Summary(pl.UTF-8): Implementacja Heimdal systemu Kerberos V5
11e40c5a 9Name: heimdal
9f1d2ac7
JB
10Version: 1.5.3
11Release: 1
845f767b 12License: Free
c52bba62 13Group: Networking
6dfaff75 14Source0: http://www.h5l.org/dist/src/%{name}-%{version}.tar.gz
9f1d2ac7 15# Source0-md5: 30b379e3de12f332fbd201131f02ffca
87a2a408 16Source1: %{name}.init
0c9d84fa
JR
17Source2: %{name}-kpasswdd.init
18Source3: %{name}-ipropd.init
19Source4: %{name}-kcm.init
20Source5: %{name}.sysconfig
21Source6: %{name}-kcm.sysconfig
22Source7: %{name}-krb5.conf
23Source8: %{name}-ftpd.inetd
24Source9: %{name}-rshd.inetd
25Source10: %{name}-telnetd.inetd
26Source11: %{name}-kadmind.inetd
1a35405d 27Patch0: %{name}-paths.patch
7d3ffee7
JR
28Patch1: %{name}-am_man_fixes.patch
29Patch2: %{name}-amfix.patch
30Patch3: %{name}-dbpaths.patch
82c12880
JR
31Patch4: %{name}-db4.patch
32Patch5: %{name}-libadd.patch
33Patch6: %{name}-signal.patch
1cc729ed 34Patch7: %{name}-make.patch
82c12880 35Patch8: %{name}-info.patch
bef55632
JR
36Patch9: %{name}-sbindir.patch
37Patch10: %{name}-ntlm-digest.patch
38Patch11: %{name}-krb5config-nosysdirs.patch
1ee1a6a5 39Patch12: %{name}-tinfo.patch
2ed8db32 40Patch13: %{name}-missing-mit_glue-exports.patch
6dfaff75 41URL: http://www.h5l.org/
961c8657 42BuildRequires: autoconf >= 2.62
0f372d7a 43BuildRequires: automake >= 1:1.10.3
ba5a356d 44BuildRequires: bison
1ead67f5 45BuildRequires: db-devel
568e3a79 46BuildRequires: flex
0f372d7a 47BuildRequires: libcap-ng-devel >= 0.4.0
adfe6fc1 48BuildRequires: libcom_err-devel >= 1.41.11
445607db 49BuildRequires: libtool >= 2:2.2
568e3a79 50BuildRequires: mawk
9e40ad90 51BuildRequires: ncurses-devel >= 5.1
eaf2fb51 52%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
961c8657 53BuildRequires: openssl-devel >= 0.9.7d
0f372d7a 54BuildRequires: pkgconfig
f5268247 55BuildRequires: readline-devel >= 5.0
f3e12399 56BuildRequires: rpmbuild(macros) >= 1.268
82c12880 57BuildRequires: sqlite3-devel
e2e4c2a7 58BuildRequires: texinfo
82c12880
JR
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}
e62b205e 63%{?with_x11:BuildRequires: xorg-lib-libXt-devel}
bf56c6b3 64Requires: %{name}-libs-common = %{version}-%{release}
292976c1
JB
65Provides: kerberos5-client
66Obsoletes: kerberos5-client
dc28a757 67Conflicts: krb5-client
e2e4c2a7 68BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11e40c5a 69
c7b87187 70%define _localstatedir /var/lib/%{name}
5776cc8c
JR
71%define schemadir /usr/share/openldap/schema
72
11e40c5a
AM
73%description
74Heimdal is a free implementation of Kerberos 5. The goals are to:
f3e12399
ER
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
11e40c5a 84
0fbef91b
JR
85%description -l pl.UTF-8
86Heimdal 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
f3e12399 90- wsparcie dla Kerberosa 5 poprzez GSS-API (RFC1964)
0fbef91b 91- zawiera większość istotnych i użytecznych aplikacji (rsh, telnet,
f3e12399 92 popper, etc.)
0fbef91b 93- zawiera wystarczającą kompatybilność z Kerberos V4
f3e12399 94- wsparcie dla IPv6
11e40c5a 95
2ae17cec
JR
96%package common
97Summary: Heimdal essential config files and documentation
0360d4ed 98Summary(pl.UTF-8): Niezbędne pliki konfiguracyjne i dokumentacja dla heimdala
2ae17cec
JR
99Group: Networking
100
101%description common
102Package contains essential configs and documentation required
103by heimdal packages.
104
105%description common -l pl.UTF-8
106Pakiet zawiera niezbędne pliki konfiguracyjne i dokumentację
107dla heimdala.
108
0484bab0
JB
109%package libs
110Summary: Heimdal shared libraries
0360d4ed 111Summary(pl.UTF-8): Biblioteki współdzielone dla heimdala
0484bab0 112Group: Libraries
3c4e3bfd 113Requires: libcom_err >= 1.41.11
0484bab0
JB
114
115%description libs
0360d4ed
JB
116This package contains shared libraries required by several of the
117other heimdal packages.
0484bab0
JB
118
119%description libs -l pl.UTF-8
0360d4ed
JB
120Ten pakiet zawiera biblioteki współdzielone wymagane przez kilka
121innych pakietów składowych heimdala.
0484bab0 122
bf56c6b3
JR
123%package libs-common
124Summary: Common libraries used by Heimdal programs
0360d4ed 125Summary(pl.UTF-8): Wspólne biblioteki używane przez programy z Heimdala
d9930f8a 126Group: Libraries
2ae17cec 127Requires: %{name}-common = %{version}-%{release}
bf56c6b3 128Requires: %{name}-libs = %{version}-%{release}
d9930f8a 129
bf56c6b3
JR
130%description libs-common
131Common libraries used by Heimdal programs.
d9930f8a 132
0360d4ed
JB
133%description libs-common -l pl.UTF-8
134Wspólne biblioteki używane przez programy z projektu Heimdal.
135
e44f4b1e 136%package libs-server
bf56c6b3 137Summary: Libraries used by Heimdal KDC server
0360d4ed 138Summary(pl.UTF-8): Biblioteki używane przez serwer Heimdal KDC
d9930f8a 139Group: Libraries
2ae17cec 140Requires: %{name}-libs-common = %{version}-%{release}
d9930f8a 141
e44f4b1e 142%description libs-server
0360d4ed
JB
143This package contains shared libraries required to run Heimdal KDC
144server.
145
146%description libs-server -l pl.UTF-8
147Ten pakiet zawiera biblioteki współdzielone używane potrzebne dla
148serwera KDC z projektu Heimdal.
d9930f8a 149
0484bab0
JB
150%package devel
151Summary: Header files for heimdal
152Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do bibliotek heimdal
153Group: Development/Libraries
154Requires: %{name}-libs = %{version}-%{release}
bf56c6b3
JR
155Requires: %{name}-libs-common = %{version}-%{release}
156Requires: %{name}-libs-server = %{version}-%{release}
0484bab0 157Requires: db-devel
adfe6fc1 158Requires: libcom_err-devel >= 1.41.11
0484bab0 159Requires: openssl-devel
22f8190e 160Requires: sqlite3-devel
dc28a757 161Conflicts: krb5-devel
758d234c 162Conflicts: libgssglue-devel
0484bab0
JB
163
164%description devel
165contains files needed to compile and link software using the kerberos
166libraries.
167
168%description devel -l pl.UTF-8
169Pliki nagłówkowe i dokumentacja do bibliotek heimdal.
170
171%package static
172Summary: Static heimdal libraries
173Summary(pl.UTF-8): Biblioteki statyczne heimdal
174Group: Development/Libraries
175Requires: %{name}-devel = %{version}-%{release}
176
177%description static
178Satatic heimdal libraries.
179
180%description static -l pl.UTF-8
181Biblioteki statyczne heimdal.
182
292976c1
JB
183%package ldap
184Summary: LDAP HDB plugin
185Summary(pl.UTF-8): Wtyczka HDB LDAP
186Group: Libraries
2ae17cec 187Requires: %{name}-libs-common = %{version}-%{release}
292976c1
JB
188
189%description ldap
190LDAP HDB plugin.
191
192%description ldap -l pl.UTF-8
193Wtyczka HDB LDAP.
194
195%package -n openldap-schema-heimdal
196Summary: Heimdal Kerberos LDAP schema
197Summary(pl.UTF-8): Schemat LDAP Kerberosa Heimdal
198Group: Networking/Daemons
199Requires(post,postun): sed >= 4.0
200Requires: openldap-servers
201
202%description -n openldap-schema-heimdal
203This package contains Heimdal Kerberos LDAP schema for openldap.
204
205%description -n openldap-schema-heimdal -l pl.UTF-8
206Ten pakiet zawiera schemat LDAP Kerberosa Heimdal dla openldap-a.
207
5459024d 208%package server
2d0d93d3 209Summary: Kerberos Server
13ef1022 210Summary(pl.UTF-8): Serwer Kerberosa
5459024d 211Group: Networking
c7b87187 212Requires(post,preun): /sbin/chkconfig
bf56c6b3 213Requires: %{name}-libs-server = %{version}-%{release}
a39a46c8 214Requires: rc-scripts
292976c1
JB
215Provides: kerberos5-server
216# probably not a good idea
217#Obsoletes: kerberos5-server
dc28a757 218Conflicts: krb5-server
5459024d 219
220%description server
221Master KDC.
222
0fbef91b
JR
223%description server -l pl.UTF-8
224Główne centrum dystrybucji kluczy (KDC).
5459024d 225
0484bab0
JB
226%package kcm
227Summary: KCM - credencial cache daemon for Kerberos tickets
228Summary(pl.UTF-8): KCM - demon zapamiętujący dane uwierzytelniające dla biletów Kerberosa
229Group: Daemons
2ae17cec 230Requires: %{name}-libs-common = %{version}-%{release}
5459024d 231
0484bab0
JB
232%description kcm
233KCM is a credencial cache daemon for Kerberos tickets.
5459024d 234
0484bab0
JB
235%description kcm -l pl.UTF-8
236KCM to demon zapamiętujący dane uwierzytelniające dla biletów
237Kerberosa.
5459024d 238
568e3a79 239%package login
240Summary: login is used when signing onto a system
13ef1022 241Summary(pl.UTF-8): Narzędzie do logowania w systemie
568e3a79 242Group: Applications/Networking
2ae17cec 243Requires: %{name}-libs-common = %{version}-%{release}
292976c1
JB
244Provides: kerberos5-login
245Obsoletes: kerberos5-login
72e056e8 246Conflicts: shadow < 1:4.0.16
568e3a79 247
248%description login
c358392a 249login is used when signing onto a system. It can also be used to
250switch from one user to another at any time (most modern shells have
251support for this feature built into them, however). This package
252contain kerberized version login program.
568e3a79 253
0fbef91b
JR
254%description login -l pl.UTF-8
255login jest używany przy logowaniu do systemu. Może być także użyty do
256przełączenia z jednego użytkownika na innego w dowolnej chwili
257(większość współczesnych shelli ma wbudowaną obsługę tego). Ten pakiet
258zawiera skerberyzowaną wersję programu login.
845f767b 259
5459024d 260%package ftp
261Summary: The standard UNIX FTP (file transfer protocol) client
13ef1022 262Summary(pl.UTF-8): Klient protokołu FTP
5459024d 263Group: Applications/Networking
2ae17cec 264Requires: %{name}-libs-common = %{version}-%{release}
292976c1 265Provides: kerberos5-ftp
2fad34ce 266Obsoletes: ftp
292976c1 267Obsoletes: kerberos5-ftp
f3e12399 268Conflicts: heimdal-clients
dc28a757 269Conflicts: krb5-ftp
5459024d 270
271%description ftp
6ce2a862 272The FTP package provides the standard UNIX command-line FTP client
c358392a 273with kerberos authentication support. FTP is the file transfer
274protocol, which is a widely used Internet protocol for transferring
275files and for archiving files.
5459024d 276
0fbef91b
JR
277%description ftp -l pl.UTF-8
278Ten pakiet dostarcza standardowego klienta FTP z wbudowaną obsługą
279kerberosa. FTP jest protokołem do przesyłania plików szeroko
845f767b
JB
280rozpowszechnionym w Internecie.
281
5459024d 282%package rsh
568e3a79 283Summary: Clients for remote access commands (rsh, rlogin, rcp)
13ef1022 284Summary(pl.UTF-8): Klient zdalnego dostępu (rsh, rlogin, rcp)
5459024d 285Group: Applications/Networking
2ae17cec 286Requires: %{name}-libs-common = %{version}-%{release}
292976c1
JB
287Provides: kerberos5-rsh
288Obsoletes: kerberos5-rsh
5459024d 289Obsoletes: rsh
c7b87187 290Conflicts: heimdal-clients
dc28a757 291Conflicts: krb5-rsh
5459024d 292
87a2a408 293%description rsh
294The rsh package contains a set of programs which allow users to run
845f767b 295commands on remote machines, login to other machines and copy files
c358392a 296between machines (rsh, rlogin and rcp). All three of these commands
297use rhosts style authentication. This package contains the clients
87a2a408 298needed for all of these services.
299
0fbef91b
JR
300%description rsh -l pl.UTF-8
301Ten pakiet zawiera zestaw narzędzi pozwalających na wykonywanie
302poleceń na zdalnych maszynach, logowanie na inne maszyny oraz
303kopiowanie plików pomiędzy maszynami (rsh, rlogin, rcp).
845f767b 304
5459024d 305%package telnet
568e3a79 306Summary: Client for the telnet remote login
13ef1022 307Summary(pl.UTF-8): Klient usługi telnet
5459024d 308Group: Applications/Networking
2ae17cec 309Requires: %{name}-libs-common = %{version}-%{release}
292976c1
JB
310Provides: kerberos5-telnet
311Obsoletes: kerberos5-telnet
f3e12399 312Obsoletes: telnet
c7b87187 313Conflicts: heimdal-clients
dc28a757 314Conflicts: krb5-telnet
5459024d 315
87a2a408 316%description telnet
c358392a 317Telnet is a popular protocol for remote logins across the Internet.
318This package provides a command line telnet client.
87a2a408 319
0fbef91b
JR
320%description telnet -l pl.UTF-8
321Telnet jest popularnym protokołem zdalnego logowania. Ten pakiet
322zawiera klienta tej usługi.
845f767b 323
5459024d 324%package ftpd
87a2a408 325Summary: The standard UNIX FTP (file transfer protocol) server
13ef1022 326Summary(pl.UTF-8): Serwer FTP
5459024d 327Group: Networking/Daemons
2ae17cec 328Requires: %{name}-libs-common = %{version}-%{release}
a39a46c8 329Requires: rc-inetd >= 0.8.1
292976c1 330Provides: kerberos5-ftpd
5459024d 331Obsoletes: ftpd
292976c1 332Obsoletes: kerberos5-ftpd
dc28a757 333Conflicts: krb5-ftpd
5459024d 334
87a2a408 335%description ftpd
c358392a 336FTP is the file transfer protocol, which is a widely used Internet
87a2a408 337protocol for transferring files and for archiving files.
338
0fbef91b
JR
339%description ftpd -l pl.UTF-8
340FTP jest protokołem transmisji plików szeroko rozpowszechnionym w
2f6bc7c9 341Internecie.
845f767b 342
5459024d 343%package rshd
568e3a79 344Summary: Server for remote access commands (rsh, rlogin, rcp)
13ef1022 345Summary(pl.UTF-8): Serwer zdalnego dostępu (rsh, rlogin, rcp)
5459024d 346Group: Networking/Daemons
2ae17cec 347Requires: %{name}-libs-common = %{version}-%{release}
a39a46c8 348Requires: rc-inetd >= 0.8.1
292976c1
JB
349Provides: kerberos5-rshd
350Obsoletes: kerberos5-rshd
5459024d 351Obsoletes: rshd
dc28a757 352Conflicts: krb5-rshd
5459024d 353
87a2a408 354%description rshd
355The rsh package contains a set of programs which allow users to run
356commmands on remote machines, login to other machines and copy files
357between machines (rsh, rlogin and rcp). All three of these commands
c358392a 358use rhosts style authentication. This package contains servers needed
87a2a408 359for all of these services.
360
0fbef91b
JR
361%description rshd -l pl.UTF-8
362Ten pakiet zawiera zestaw serwerów pozwalających na wykonywanie
363poleceń na zdalnych maszynach, logowanie na inne maszyny oraz
364kopiowanie plików pomiędzy maszynami (rsh, rlogin, rcp).
845f767b 365
5459024d 366%package telnetd
568e3a79 367Summary: Server for the telnet remote login
13ef1022 368Summary(pl.UTF-8): Serwer protokołu telnet
5459024d 369Group: Networking/Daemons
2ae17cec 370Requires: %{name}-libs-common = %{version}-%{release}
a39a46c8 371Requires: rc-inetd >= 0.8.1
292976c1
JB
372Provides: kerberos5-telnetd
373Obsoletes: kerberos5-telnetd
5459024d 374Obsoletes: telnetd
dc28a757 375Conflicts: krb5-telnetd
5459024d 376
87a2a408 377%description telnetd
c358392a 378Telnet is a popular protocol for remote logins across the Internet.
379This package provides a telnet daemon which allows remote logins into
380the machine it is running on.
87a2a408 381
0fbef91b
JR
382%description telnetd -l pl.UTF-8
383Telnet jest popularnym protokołem zdalnego logowania. Ten pakiet
384zawiera serwer pozwalający na zdalne logowanie się klientów na maszynę
385na której działa.
845f767b 386
c52bba62 387%package daemons
11e40c5a 388Summary: Kerberos daemons programs for use on servers
13ef1022 389Summary(pl.UTF-8): Serwery popularnych usług, autoryzujące przy pomocy kerberosa
11e40c5a 390Group: Networking
2ae17cec 391Requires: %{name}-libs-common = %{version}-%{release}
11e40c5a
AM
392
393%description daemons
394Kerberos Daemons.
395
0fbef91b
JR
396%description daemons -l pl.UTF-8
397Demony korzystające z systemu Kerberos do autoryzacji dostępu.
11e40c5a 398
11e40c5a 399%prep
0484bab0 400%setup -q
11e40c5a 401%patch0 -p1
493e3b85 402%patch1 -p1
3674519b 403%patch2 -p1
c7b87187
JB
404%patch3 -p1
405%patch4 -p1
406%patch5 -p1
ed59b63e 407%patch6 -p1
1cc729ed 408%patch7 -p1
55199c96 409%patch8 -p1
bef55632 410%patch9 -p1
56398966 411%patch10 -p1
2342d882 412%patch11 -p1
944b188c 413%patch12 -p1
2ed8db32 414%patch13 -p1
9e485d0a 415
11e40c5a 416%build
ce6e3c9b
AM
417install -d our-ld
418ln -s %{_bindir}/ld.bfd our-ld/ld
419export PATH=$(pwd)/our-ld:$PATH
420
944b188c 421%{__rm} acinclude.m4 cf/{libtool,lt*}.m4
fcf46cfe 422%{__libtoolize}
423%{__aclocal} -I cf
424%{__autoconf}
425%{__automake}
1ee1a6a5
JR
426cd lib/libedit
427%{__aclocal}
428%{__autoconf}
429%{__automake}
430cd ../..
5459024d 431%configure \
eaf2fb51 432%if %{with ldap}
6dfaff75 433 --enable-hdb-openldap-module \
eaf2fb51
AM
434 --with-openldap=/usr \
435%endif
6dfaff75
JB
436 --enable-kcm \
437 --enable-pthread-support \
11e40c5a
AM
438 --enable-shared \
439 --enable-static \
6dfaff75
JB
440 --with-hdbdir=%{_localstatedir} \
441 --with-ipv6 \
4469f316 442 --with-readline=/usr \
82c12880 443 --with-sqlite3=/usr \
d2e047af 444 --without-hesiod \
6dfaff75 445 --with%{!?with_x11:out}-x
11e40c5a 446
7209233a 447%{__make} -j1
11e40c5a
AM
448
449%install
450rm -rf $RPM_BUILD_ROOT
80f50a05 451install -d $RPM_BUILD_ROOT{%{_localstatedir},%{_sysconfdir},%{schemadir},/sbin,/%{_lib}} \
0c9d84fa 452 $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d}
11e40c5a 453
a297a2ea
JB
454%{__make} install \
455 DESTDIR=$RPM_BUILD_ROOT
5459024d 456
5776cc8c
JR
457install lib/hdb/hdb.schema $RPM_BUILD_ROOT%{schemadir}
458
a2604258
JR
459mv $RPM_BUILD_ROOT%{_sbindir}/kcm $RPM_BUILD_ROOT/sbin/kcm
460
7d3ffee7 461mv $RPM_BUILD_ROOT%{_bindir}/su $RPM_BUILD_ROOT%{_bindir}/ksu
2272733f 462mv $RPM_BUILD_ROOT%{_mandir}/man1/su.1 $RPM_BUILD_ROOT%{_mandir}/man1/ksu.1
9987dc73 463
568e3a79 464install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
0c9d84fa
JR
465install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/kpasswdd
466install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/ipropd
467install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/kcm
468install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
469install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/kcm
470
471install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/krb5.conf
11e40c5a 472
0c9d84fa
JR
473install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd
474install %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rshd
475install %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/telnetd
476install %{SOURCE11} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/kadmind
11e40c5a 477
ae8b3b4d 478for l in $RPM_BUILD_ROOT%{_libdir}/lib{asn1,gssapi,heimbase,heimntlm,hx509,kafs,krb5,roken,wind}.so; do
80f50a05
JR
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
482done
36488e42 483
d9842468 484%if %{with expose_internals}
529403f3
JR
485# install definitions of KCM internal data structures to get KCM support in nfs-utils
486install -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
491EOF)
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
497install -p lib/krb5/kcm.h $RPM_BUILD_ROOT%{_includedir}/kcm
d9842468 498%endif
529403f3 499
0484bab0 500# just a test plugin
e6e72da0 501%{__rm} $RPM_BUILD_ROOT%{_libdir}/windc.*
1c4afd36 502%if %{with ldap}
0484bab0 503# not needed for plugin
e6e72da0 504%{__rm} $RPM_BUILD_ROOT%{_libdir}/hdb_ldap.{la,a}
1c4afd36 505%endif
0f06dc21 506# resolve heimdal-libs/krb5-libs conflict
e6e72da0 507%{__mv} $RPM_BUILD_ROOT%{_mandir}/man5/{krb5.conf.5,krb5.conf.5h}
87a2a408 508
509touch $RPM_BUILD_ROOT{%{_sysconfdir}/krb5.keytab,%{_localstatedir}/kadmind.acl}
11e40c5a 510
845f767b
JB
511%clean
512rm -rf $RPM_BUILD_ROOT
513
87a2a408 514%post server
71148af2 515/sbin/chkconfig --add heimdal
8e4fc37f 516%service heimdal restart "heimdal KDC daemon"
36488e42 517/sbin/chkconfig --add kpasswdd
f3e12399 518%service kpasswdd restart "heimdal password changing daemon"
8e4fc37f
JR
519/sbin/chkconfig --add ipropd
520%service ipropd restart "heimdal propagation daemons"
f3e12399 521%service -q rc-inetd reload
87a2a408 522
87a2a408 523%preun server
71148af2 524if [ "$1" = "0" ]; then
8e4fc37f
JR
525 %service ipropd stop
526 /sbin/chkconfig --del ipropd
527 %service kpasswdd stop
528 /sbin/chkconfig --del kpasswdd
f3e12399 529 %service heimdal stop
71148af2 530 /sbin/chkconfig --del heimdal
8e4fc37f
JR
531 %service -q rc-inetd reload
532fi
71148af2 533
8e4fc37f
JR
534%post kcm
535/sbin/chkconfig --add kcm
536if [ -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
539else
540 echo "Run \"/sbin/service kcm start\" to start kcm." >&2
541fi
36488e42 542
8e4fc37f
JR
543%preun kcm
544if [ "$1" = "0" ]; then
545 %service kcm stop
546 /sbin/chkconfig --del kcm
71148af2 547fi
2d0d93d3 548
5459024d 549%post ftpd
f3e12399 550%service -q rc-inetd reload
11e40c5a 551
5459024d 552%postun ftpd
f3e12399
ER
553if [ "$1" = "0" ]; then
554 %service -q rc-inetd reload
71148af2 555fi
5459024d 556
557%post rshd
f3e12399 558%service -q rc-inetd reload
11e40c5a 559
5459024d 560%postun rshd
f3e12399
ER
561if [ "$1" = "0" ]; then
562 %service -q rc-inetd reload
71148af2 563fi
56afe882 564
5459024d 565%post telnetd
f3e12399 566%service -q rc-inetd reload
11e40c5a 567
5459024d 568%postun telnetd
f3e12399
ER
569if [ "$1" = "0" ]; then
570 %service -q rc-inetd reload
71148af2 571fi
11e40c5a 572
2ae17cec 573%post common
71148af2 574[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
87a2a408 575
2ae17cec 576%postun common
71148af2 577[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
87a2a408 578
2ae17cec
JR
579%post libs -p /sbin/ldconfig
580%postun libs -p /sbin/ldconfig
bf56c6b3
JR
581%post libs-common -p /sbin/ldconfig
582%postun libs-common -p /sbin/ldconfig
d9930f8a
TP
583%post libs-server -p /sbin/ldconfig
584%postun libs-server -p /sbin/ldconfig
2272733f 585
eaf2fb51 586%if %{with ldap}
5776cc8c
JR
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
592if [ "$1" = "0" ]; then
593 %openldap_schema_unregister %{schemadir}/hdb.schema
594 %service -q ldap restart
595fi
eaf2fb51 596%endif
5776cc8c 597
da732ece
JR
598%triggerpostun libs -- heimdal-libs < 1.2.1-6
599if [ -f /etc/heimdal/krb5.conf.rpmsave ]; then
600 mv /etc/krb5.conf{,.rpmnew}
601 mv -f /etc/heimdal/krb5.conf.rpmsave /etc/krb5.conf
602fi
603if [ -f /etc/heimdal/krb5.keytab.rpmsave ]; then
604 mv /etc/krb5.keytab{,.rpmnew}
605 mv -f /etc/heimdal/krb5.keytab.rpmsave /etc/krb5.keytab
606fi
607
c7b87187
JB
608%files
609%defattr(644,root,root,755)
0484bab0 610%doc ChangeLog NEWS README TODO
c7b87187 611%attr(755,root,root) %{_bindir}/afslog
ae8b3b4d 612%attr(755,root,root) %{_bindir}/gsstool
7d3ffee7 613%attr(755,root,root) %{_bindir}/hxtool
2402950c 614%attr(755,root,root) %{_bindir}/idn-lookup
ae8b3b4d 615%attr(755,root,root) %{_bindir}/kcc
c7b87187
JB
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
6230cc94 622%attr(755,root,root) %{_bindir}/kswitch
e5f030f3 623%attr(755,root,root) %{_bindir}/otpprint
c7b87187
JB
624%attr(755,root,root) %{_bindir}/pagsh
625%attr(755,root,root) %{_bindir}/pfrom
c7b87187 626%attr(755,root,root) %{_bindir}/string2key
c7b87187 627%attr(755,root,root) %{_bindir}/verify_krb5_conf
eb49dc88 628%attr(755,root,root) %{_sbindir}/kadmin
0484bab0 629%attr(755,root,root) %{_sbindir}/kdigest
7d3ffee7 630%attr(755,root,root) %{_sbindir}/kimpersonate
64e90bd4 631%attr(755,root,root) %{_sbindir}/ktutil
eb49dc88 632%attr(755,root,root) %{_sbindir}/push
665da1cc
AM
633%if %{with x11}
634%attr(755,root,root) %{_bindir}/kx
665da1cc
AM
635%attr(755,root,root) %{_bindir}/rxtelnet
636%attr(755,root,root) %{_bindir}/rxterm
e5f030f3
JR
637%attr(755,root,root) %{_bindir}/tenletxr
638%attr(755,root,root) %{_bindir}/xnlock
665da1cc 639%endif
c7b87187 640%attr(4755,root,root) %{_bindir}/otp
c7b87187 641%attr(4755,root,root) %{_bindir}/ksu
c7b87187 642%{_mandir}/man1/afslog.1*
c7b87187
JB
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*
9987dc73 649%{_mandir}/man1/ksu.1*
82c12880 650%{_mandir}/man1/kswitch.1*
c7b87187
JB
651%{_mandir}/man1/otp.1*
652%{_mandir}/man1/otpprint.1*
9987dc73 653%{_mandir}/man1/pagsh.1*
c7b87187 654%{_mandir}/man1/pfrom.1*
e5f030f3
JR
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
eb49dc88 662%{_mandir}/man8/kadmin.8*
82c12880
JR
663%{_mandir}/man8/kdigest.8*
664%{_mandir}/man8/kimpersonate.8*
64e90bd4 665%{_mandir}/man8/ktutil.8*
eb49dc88 666%{_mandir}/man8/push.8*
c7b87187
JB
667%{_mandir}/man8/string2key.8*
668%{_mandir}/man8/verify_krb5_conf.8*
665da1cc 669
2ae17cec 670%files common
11e40c5a 671%defattr(644,root,root,755)
0484bab0
JB
672%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/krb5.conf
673%attr(400,root,root) %ghost %{_sysconfdir}/krb5.keytab
d9930f8a
TP
674%{_infodir}/heimdal.info*
675%{_infodir}/hx509.info*
676%{_mandir}/man5/krb5.conf.5*
677%{_mandir}/man5/mech.5*
678%{_mandir}/man8/kerberos.8*
2ae17cec
JR
679
680%files libs
681%defattr(644,root,root,755)
80f50a05
JR
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.*.*.*
1ee1a6a5 685%attr(755,root,root) %ghost /%{_lib}/libgssapi.so.3
ae8b3b4d
JR
686%attr(755,root,root) /%{_lib}/libheimbase.so.*.*.*
687%attr(755,root,root) %ghost /%{_lib}/libheimbase.so.1
bf56c6b3
JR
688%attr(755,root,root) /%{_lib}/libheimntlm.so.*.*.*
689%attr(755,root,root) %ghost /%{_lib}/libheimntlm.so.0
80f50a05 690%attr(755,root,root) /%{_lib}/libhx509.so.*.*.*
82c12880 691%attr(755,root,root) %ghost /%{_lib}/libhx509.so.5
bf56c6b3
JR
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
d9930f8a
TP
696%attr(755,root,root) /%{_lib}/libroken.so.*.*.*
697%attr(755,root,root) %ghost /%{_lib}/libroken.so.18
bf56c6b3
JR
698%attr(755,root,root) /%{_lib}/libwind.so.*.*.*
699%attr(755,root,root) %ghost /%{_lib}/libwind.so.0
11e40c5a 700
bf56c6b3 701%files libs-common
2ae17cec 702%defattr(644,root,root,755)
2272733f
TP
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
d9930f8a
TP
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
0360d4ed
JB
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
d9930f8a 717
bf56c6b3 718%files libs-server
2ae17cec 719%defattr(644,root,root,755)
bf56c6b3
JR
720%attr(755,root,root) %{_libdir}/libkdc.so.*.*.*
721%attr(755,root,root) %ghost %{_libdir}/libkdc.so.2
e44f4b1e 722
0484bab0
JB
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
ae8b3b4d 729%attr(755,root,root) %{_libdir}/libheimbase.so
0484bab0
JB
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
6230cc94 740%attr(755,root,root) %{_libdir}/libwind.so
0484bab0
JB
741%{_libdir}/libasn1.la
742%{_libdir}/libgssapi.la
743%{_libdir}/libhdb.la
ae8b3b4d 744%{_libdir}/libheimbase.la
0484bab0
JB
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
6230cc94 755%{_libdir}/libwind.la
0484bab0
JB
756%{_includedir}/*.h
757%{_includedir}/gssapi
758%{_includedir}/kadm5
d9842468 759%{?with_expose_internals:%{_includedir}/kcm}
0484bab0
JB
760%{_includedir}/krb5
761%{_includedir}/roken
6dfaff75 762%{_pkgconfigdir}/heimdal-gssapi.pc
0484bab0 763%{_mandir}/man1/krb5-config.1*
0360d4ed
JB
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*
11e40c5a 804
0484bab0
JB
805%files static
806%defattr(644,root,root,755)
807%{_libdir}/libasn1.a
808%{_libdir}/libgssapi.a
809%{_libdir}/libhdb.a
ae8b3b4d 810%{_libdir}/libheimbase.a
0484bab0
JB
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
6230cc94 821%{_libdir}/libwind.a
0484bab0 822
292976c1
JB
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
0484bab0
JB
833%files kcm
834%defattr(644,root,root,755)
0c9d84fa
JR
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
a2604258 837%attr(755,root,root) /sbin/kcm
0484bab0
JB
838%{_mandir}/man8/kcm.8*
839
840%files server
841%defattr(644,root,root,755)
e5f030f3 842%attr(755,root,root) %{_sbindir}/digest-service
11e40c5a
AM
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
e5f030f3 847%attr(755,root,root) %{_sbindir}/iprop-log
11e40c5a
AM
848%attr(755,root,root) %{_sbindir}/kadmind
849%attr(755,root,root) %{_sbindir}/kdc
e5f030f3 850%attr(755,root,root) %{_sbindir}/kfd
11e40c5a 851%attr(755,root,root) %{_sbindir}/kpasswdd
e5f030f3 852%attr(755,root,root) %{_sbindir}/kstash
665da1cc 853%{?with_x11:%attr(755,root,root) %{_sbindir}/kxd}
0484bab0
JB
854%attr(754,root,root) /etc/rc.d/init.d/%{name}
855%attr(754,root,root) /etc/rc.d/init.d/kpasswdd
0c9d84fa 856%attr(754,root,root) /etc/rc.d/init.d/ipropd
0484bab0 857%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/heimdal
0484bab0
JB
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}/*
5459024d 861%{_mandir}/man8/hprop.8*
862%{_mandir}/man8/hpropd.8*
e5f030f3
JR
863%{_mandir}/man8/iprop.8*
864%{_mandir}/man8/iprop-log.8*
fcf46cfe 865%{_mandir}/man8/kadmind.8*
5459024d 866%{_mandir}/man8/kdc.8*
c7b87187 867%{_mandir}/man8/kfd.8*
5459024d 868%{_mandir}/man8/kpasswdd.8*
fcf46cfe 869%{_mandir}/man8/kstash.8*
0484bab0 870%{?with_x11:%{_mandir}/man8/kxd.8*}
5459024d 871
568e3a79 872%files login
c358392a 873%defattr(644,root,root,755)
568e3a79 874%attr(755,root,root) %{_bindir}/login
c7b87187 875%{_mandir}/man1/login.1*
72e056e8 876%{_mandir}/man5/login.access.5*
568e3a79 877
5459024d 878%files ftp
c358392a 879%defattr(644,root,root,755)
5459024d 880%attr(755,root,root) %{_bindir}/ftp
c358392a 881%{_mandir}/man1/ftp.1*
5459024d 882
883%files rsh
c358392a 884%defattr(644,root,root,755)
fcf46cfe 885%attr(755,root,root) %{_bindir}/rcp
6dfaff75
JB
886%attr(755,root,root) %{_bindir}/rsh
887%{_mandir}/man1/rcp.1*
fcf46cfe 888%{_mandir}/man1/rsh.1*
5459024d 889
890%files telnet
c358392a 891%defattr(644,root,root,755)
5459024d 892%attr(755,root,root) %{_bindir}/telnet
c358392a 893%{_mandir}/man1/telnet.1*
5459024d 894
895%files ftpd
c358392a 896%defattr(644,root,root,755)
a39a46c8 897%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/ftpd
5459024d 898%attr(755,root,root) %{_sbindir}/ftpd
c358392a 899%{_mandir}/man5/ftpusers.5*
900%{_mandir}/man8/ftpd.8*
5459024d 901
902%files rshd
c358392a 903%defattr(644,root,root,755)
a39a46c8 904%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/rshd
5459024d 905%attr(755,root,root) %{_sbindir}/rshd
fcf46cfe 906%{_mandir}/man8/rshd.8*
5459024d 907
908%files telnetd
c358392a 909%defattr(644,root,root,755)
a39a46c8 910%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/telnetd
5459024d 911%attr(755,root,root) %{_sbindir}/telnetd
c358392a 912%{_mandir}/man8/telnetd.8*
5459024d 913
11e40c5a
AM
914%files daemons
915%defattr(644,root,root,755)
9e485d0a 916%attr(755,root,root) %{_sbindir}/popper
c7b87187 917%{_mandir}/man8/popper.8*
This page took 0.882293 seconds and 4 git commands to generate.