]>
Commit | Line | Data |
---|---|---|
e3590bff | 1 | # |
7d3ffee7 | 2 | # TODO: |
0484bab0 | 3 | # - create init script for kcm |
7d3ffee7 | 4 | # |
e3590bff JB |
5 | # Conditional build: |
6 | %bcond_without x11 # without X11-based utilities | |
7 | # | |
11e40c5a | 8 | Summary: Heimdal implementation of Kerberos V5 system |
13ef1022 | 9 | Summary(pl.UTF-8): Implementacja Heimdal systemu Kerberos V5 |
11e40c5a | 10 | Name: heimdal |
14679f30 | 11 | Version: 1.2.1 |
f99e34e7 | 12 | Release: 6 |
845f767b | 13 | License: Free |
c52bba62 | 14 | Group: Networking |
6dfaff75 | 15 | Source0: http://www.h5l.org/dist/src/%{name}-%{version}.tar.gz |
14679f30 | 16 | # Source0-md5: 6e5028077e2a6b101a4a72801ba71b9e |
87a2a408 | 17 | Source1: %{name}.init |
18 | Source2: %{name}.logrotate | |
19 | Source3: %{name}.sysconfig | |
20 | Source4: %{name}-krb5.conf | |
21 | Source5: %{name}-ftpd.inetd | |
22 | Source6: %{name}-rshd.inetd | |
23 | Source7: %{name}-telnetd.inetd | |
24 | Source8: %{name}-kadmind.inetd | |
36488e42 | 25 | Source9: %{name}-kpasswdd.init |
26 | Source10: %{name}-kpasswdd.sysconfig | |
1a35405d | 27 | Patch0: %{name}-paths.patch |
7d3ffee7 JR |
28 | Patch1: %{name}-am_man_fixes.patch |
29 | Patch2: %{name}-amfix.patch | |
30 | Patch3: %{name}-dbpaths.patch | |
31 | Patch4: %{name}-no-editline.patch | |
efe41ff4 JB |
32 | Patch5: %{name}-db4.patch |
33 | Patch6: %{name}-libadd.patch | |
34 | Patch7: %{name}-signal.patch | |
35 | Patch8: %{name}-ldap.patch | |
36 | Patch9: %{name}-info.patch | |
56398966 | 37 | Patch10: %{name}-krb5_free_error_message.patch |
6dfaff75 | 38 | URL: http://www.h5l.org/ |
961c8657 | 39 | BuildRequires: autoconf >= 2.62 |
fcf46cfe | 40 | BuildRequires: automake |
ba5a356d | 41 | BuildRequires: bison |
1ead67f5 | 42 | BuildRequires: db-devel |
568e3a79 | 43 | BuildRequires: flex |
e17a9266 | 44 | BuildRequires: libcom_err-devel >= 1.34-5 |
445607db | 45 | BuildRequires: libtool >= 2:2.2 |
568e3a79 | 46 | BuildRequires: mawk |
9e40ad90 | 47 | BuildRequires: ncurses-devel >= 5.1 |
961c8657 ER |
48 | BuildRequires: openldap-devel >= 2.3.0 |
49 | BuildRequires: openssl-devel >= 0.9.7d | |
f5268247 | 50 | BuildRequires: readline-devel >= 5.0 |
f3e12399 | 51 | BuildRequires: rpmbuild(macros) >= 1.268 |
e2e4c2a7 | 52 | BuildRequires: texinfo |
e62b205e | 53 | %{?with_x11:BuildRequires: xorg-lib-libXt-devel} |
7c2ce0a1 | 54 | Requires: %{name}-libs = %{version}-%{release} |
dc28a757 | 55 | Conflicts: krb5-client |
e2e4c2a7 | 56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
11e40c5a | 57 | |
5459024d | 58 | %define _libexecdir %{_sbindir} |
c7b87187 | 59 | %define _localstatedir /var/lib/%{name} |
5459024d | 60 | |
5776cc8c JR |
61 | %define schemadir /usr/share/openldap/schema |
62 | ||
11e40c5a AM |
63 | %description |
64 | Heimdal is a free implementation of Kerberos 5. The goals are to: | |
f3e12399 ER |
65 | - have an implementation that can be freely used by anyone |
66 | - be protocol compatible with existing implementations and, if not in | |
67 | conflict, with RFC 1510 (and any future updated RFC) | |
68 | - be reasonably compatible with the M.I.T Kerberos V5 API | |
69 | - have support for Kerberos V5 over GSS-API (RFC1964) | |
70 | - include the most important and useful application programs (rsh, | |
71 | telnet, popper, etc.) | |
72 | - include enough backwards compatibility with Kerberos V4 | |
73 | - IPv6 support | |
11e40c5a | 74 | |
0fbef91b JR |
75 | %description -l pl.UTF-8 |
76 | Heimdal jest darmową implementacją Kerberosa 5. Główne zalety to: | |
77 | - implementacja, która może być używana przez każdego | |
78 | - kompatybilność na poziomie protokołu z istniejącymi implementacjami | |
79 | - racjonalna kompatybilność z M.I.T Kerberos V5 API | |
f3e12399 | 80 | - wsparcie dla Kerberosa 5 poprzez GSS-API (RFC1964) |
0fbef91b | 81 | - zawiera większość istotnych i użytecznych aplikacji (rsh, telnet, |
f3e12399 | 82 | popper, etc.) |
0fbef91b | 83 | - zawiera wystarczającą kompatybilność z Kerberos V4 |
f3e12399 | 84 | - wsparcie dla IPv6 |
11e40c5a | 85 | |
0484bab0 JB |
86 | %package libs |
87 | Summary: Heimdal shared libraries | |
88 | Summary(pl.UTF-8): Biblioteki współdzielone dla heimdal | |
89 | Group: Libraries | |
90 | Requires(post,postun): /sbin/ldconfig | |
91 | ||
92 | %description libs | |
93 | Package contains shared libraries required by several of the other | |
94 | heimdal packages. | |
95 | ||
96 | %description libs -l pl.UTF-8 | |
97 | Pakiet zawiera biblioteki współdzielone dla heimdal. | |
98 | ||
99 | %package ldap | |
100 | Summary: LDAP HDB plugin | |
101 | Summary(pl.UTF-8): Wtyczka HDB LDAP | |
102 | Group: Libraries | |
103 | Requires: %{name}-libs = %{version}-%{release} | |
104 | ||
105 | %description ldap | |
106 | LDAP HDB plugin. | |
107 | ||
108 | %description ldap -l pl.UTF-8 | |
109 | Wtyczka HDB LDAP. | |
110 | ||
5776cc8c JR |
111 | %package -n openldap-schema-heimdal |
112 | Summary: Heimdal LDAP schema | |
113 | Summary(pl.UTF-8): Schemat LDAP dla Heimdala | |
114 | Group: Networking/Daemons | |
115 | Requires(post,postun): sed >= 4.0 | |
116 | Requires: openldap-servers | |
117 | ||
118 | %description -n openldap-schema-heimdal | |
119 | This package contains Heimdal kerberos LDAP schema for openldap. | |
120 | ||
121 | %description -n openldap-schema-heimdal -l pl.UTF-8 | |
122 | en pakiet zawiera schemat Heimdal kerberosa dla openldap-a. | |
123 | ||
0484bab0 JB |
124 | %package devel |
125 | Summary: Header files for heimdal | |
126 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do bibliotek heimdal | |
127 | Group: Development/Libraries | |
128 | Requires: %{name}-libs = %{version}-%{release} | |
129 | Requires: db-devel | |
130 | Requires: libcom_err-devel >= 1.34-5 | |
131 | Requires: openssl-devel | |
dc28a757 | 132 | Conflicts: krb5-devel |
0484bab0 JB |
133 | |
134 | %description devel | |
135 | contains files needed to compile and link software using the kerberos | |
136 | libraries. | |
137 | ||
138 | %description devel -l pl.UTF-8 | |
139 | Pliki nagłówkowe i dokumentacja do bibliotek heimdal. | |
140 | ||
141 | %package static | |
142 | Summary: Static heimdal libraries | |
143 | Summary(pl.UTF-8): Biblioteki statyczne heimdal | |
144 | Group: Development/Libraries | |
145 | Requires: %{name}-devel = %{version}-%{release} | |
146 | ||
147 | %description static | |
148 | Satatic heimdal libraries. | |
149 | ||
150 | %description static -l pl.UTF-8 | |
151 | Biblioteki statyczne heimdal. | |
152 | ||
5459024d | 153 | %package server |
2d0d93d3 | 154 | Summary: Kerberos Server |
13ef1022 | 155 | Summary(pl.UTF-8): Serwer Kerberosa |
5459024d | 156 | Group: Networking |
c7b87187 | 157 | Requires(post,preun): /sbin/chkconfig |
7c2ce0a1 | 158 | Requires: %{name}-libs = %{version}-%{release} |
a39a46c8 | 159 | Requires: rc-scripts |
dc28a757 | 160 | Conflicts: krb5-server |
5459024d | 161 | |
162 | %description server | |
163 | Master KDC. | |
164 | ||
0fbef91b JR |
165 | %description server -l pl.UTF-8 |
166 | Główne centrum dystrybucji kluczy (KDC). | |
5459024d | 167 | |
0484bab0 JB |
168 | %package kcm |
169 | Summary: KCM - credencial cache daemon for Kerberos tickets | |
170 | Summary(pl.UTF-8): KCM - demon zapamiętujący dane uwierzytelniające dla biletów Kerberosa | |
171 | Group: Daemons | |
172 | Requires: %{name}-libs = %{version}-%{release} | |
5459024d | 173 | |
0484bab0 JB |
174 | %description kcm |
175 | KCM is a credencial cache daemon for Kerberos tickets. | |
5459024d | 176 | |
0484bab0 JB |
177 | %description kcm -l pl.UTF-8 |
178 | KCM to demon zapamiętujący dane uwierzytelniające dla biletów | |
179 | Kerberosa. | |
5459024d | 180 | |
568e3a79 | 181 | %package login |
182 | Summary: login is used when signing onto a system | |
13ef1022 | 183 | Summary(pl.UTF-8): Narzędzie do logowania w systemie |
568e3a79 | 184 | Group: Applications/Networking |
7c2ce0a1 | 185 | Requires: %{name}-libs = %{version}-%{release} |
05bbea69 | 186 | #Provides: login |
187 | #Obsoletes: login | |
72e056e8 | 188 | Conflicts: shadow < 1:4.0.16 |
568e3a79 | 189 | |
190 | %description login | |
c358392a | 191 | login is used when signing onto a system. It can also be used to |
192 | switch from one user to another at any time (most modern shells have | |
193 | support for this feature built into them, however). This package | |
194 | contain kerberized version login program. | |
568e3a79 | 195 | |
0fbef91b JR |
196 | %description login -l pl.UTF-8 |
197 | login jest używany przy logowaniu do systemu. Może być także użyty do | |
198 | przełączenia z jednego użytkownika na innego w dowolnej chwili | |
199 | (większość współczesnych shelli ma wbudowaną obsługę tego). Ten pakiet | |
200 | zawiera skerberyzowaną wersję programu login. | |
845f767b | 201 | |
5459024d | 202 | %package ftp |
203 | Summary: The standard UNIX FTP (file transfer protocol) client | |
13ef1022 | 204 | Summary(pl.UTF-8): Klient protokołu FTP |
5459024d | 205 | Group: Applications/Networking |
7c2ce0a1 | 206 | Requires: %{name}-libs = %{version}-%{release} |
2fad34ce | 207 | Obsoletes: ftp |
f3e12399 | 208 | Conflicts: heimdal-clients |
dc28a757 | 209 | Conflicts: krb5-ftp |
5459024d | 210 | |
211 | %description ftp | |
6ce2a862 | 212 | The FTP package provides the standard UNIX command-line FTP client |
c358392a | 213 | with kerberos authentication support. FTP is the file transfer |
214 | protocol, which is a widely used Internet protocol for transferring | |
215 | files and for archiving files. | |
5459024d | 216 | |
0fbef91b JR |
217 | %description ftp -l pl.UTF-8 |
218 | Ten pakiet dostarcza standardowego klienta FTP z wbudowaną obsługą | |
219 | kerberosa. FTP jest protokołem do przesyłania plików szeroko | |
845f767b JB |
220 | rozpowszechnionym w Internecie. |
221 | ||
5459024d | 222 | %package rsh |
568e3a79 | 223 | Summary: Clients for remote access commands (rsh, rlogin, rcp) |
13ef1022 | 224 | Summary(pl.UTF-8): Klient zdalnego dostępu (rsh, rlogin, rcp) |
5459024d | 225 | Group: Applications/Networking |
7c2ce0a1 | 226 | Requires: %{name}-libs = %{version}-%{release} |
5459024d | 227 | Obsoletes: rsh |
c7b87187 | 228 | Conflicts: heimdal-clients |
dc28a757 | 229 | Conflicts: krb5-rsh |
5459024d | 230 | |
87a2a408 | 231 | %description rsh |
232 | The rsh package contains a set of programs which allow users to run | |
845f767b | 233 | commands on remote machines, login to other machines and copy files |
c358392a | 234 | between machines (rsh, rlogin and rcp). All three of these commands |
235 | use rhosts style authentication. This package contains the clients | |
87a2a408 | 236 | needed for all of these services. |
237 | ||
0fbef91b JR |
238 | %description rsh -l pl.UTF-8 |
239 | Ten pakiet zawiera zestaw narzędzi pozwalających na wykonywanie | |
240 | poleceń na zdalnych maszynach, logowanie na inne maszyny oraz | |
241 | kopiowanie plików pomiędzy maszynami (rsh, rlogin, rcp). | |
845f767b | 242 | |
5459024d | 243 | %package telnet |
568e3a79 | 244 | Summary: Client for the telnet remote login |
13ef1022 | 245 | Summary(pl.UTF-8): Klient usługi telnet |
5459024d | 246 | Group: Applications/Networking |
7c2ce0a1 | 247 | Requires: %{name}-libs = %{version}-%{release} |
047e3d79 | 248 | Provides: telnet |
f3e12399 | 249 | Obsoletes: telnet |
c7b87187 | 250 | Conflicts: heimdal-clients |
dc28a757 | 251 | Conflicts: krb5-telnet |
5459024d | 252 | |
87a2a408 | 253 | %description telnet |
c358392a | 254 | Telnet is a popular protocol for remote logins across the Internet. |
255 | This package provides a command line telnet client. | |
87a2a408 | 256 | |
0fbef91b JR |
257 | %description telnet -l pl.UTF-8 |
258 | Telnet jest popularnym protokołem zdalnego logowania. Ten pakiet | |
259 | zawiera klienta tej usługi. | |
845f767b | 260 | |
5459024d | 261 | %package ftpd |
87a2a408 | 262 | Summary: The standard UNIX FTP (file transfer protocol) server |
13ef1022 | 263 | Summary(pl.UTF-8): Serwer FTP |
5459024d | 264 | Group: Networking/Daemons |
7c2ce0a1 | 265 | Requires: %{name}-libs = %{version}-%{release} |
a39a46c8 | 266 | Requires: rc-inetd >= 0.8.1 |
5459024d | 267 | Obsoletes: ftpd |
dc28a757 | 268 | Conflicts: krb5-ftpd |
5459024d | 269 | |
87a2a408 | 270 | %description ftpd |
c358392a | 271 | FTP is the file transfer protocol, which is a widely used Internet |
87a2a408 | 272 | protocol for transferring files and for archiving files. |
273 | ||
0fbef91b JR |
274 | %description ftpd -l pl.UTF-8 |
275 | FTP jest protokołem transmisji plików szeroko rozpowszechnionym w | |
2f6bc7c9 | 276 | Internecie. |
845f767b | 277 | |
5459024d | 278 | %package rshd |
568e3a79 | 279 | Summary: Server for remote access commands (rsh, rlogin, rcp) |
13ef1022 | 280 | Summary(pl.UTF-8): Serwer zdalnego dostępu (rsh, rlogin, rcp) |
5459024d | 281 | Group: Networking/Daemons |
7c2ce0a1 | 282 | Requires: %{name}-libs = %{version}-%{release} |
a39a46c8 | 283 | Requires: rc-inetd >= 0.8.1 |
5459024d | 284 | Obsoletes: rshd |
dc28a757 | 285 | Conflicts: krb5-rshd |
5459024d | 286 | |
87a2a408 | 287 | %description rshd |
288 | The rsh package contains a set of programs which allow users to run | |
289 | commmands on remote machines, login to other machines and copy files | |
290 | between machines (rsh, rlogin and rcp). All three of these commands | |
c358392a | 291 | use rhosts style authentication. This package contains servers needed |
87a2a408 | 292 | for all of these services. |
293 | ||
0fbef91b JR |
294 | %description rshd -l pl.UTF-8 |
295 | Ten pakiet zawiera zestaw serwerów pozwalających na wykonywanie | |
296 | poleceń na zdalnych maszynach, logowanie na inne maszyny oraz | |
297 | kopiowanie plików pomiędzy maszynami (rsh, rlogin, rcp). | |
845f767b | 298 | |
5459024d | 299 | %package telnetd |
568e3a79 | 300 | Summary: Server for the telnet remote login |
13ef1022 | 301 | Summary(pl.UTF-8): Serwer protokołu telnet |
5459024d | 302 | Group: Networking/Daemons |
7c2ce0a1 | 303 | Requires: %{name}-libs = %{version}-%{release} |
a39a46c8 | 304 | Requires: rc-inetd >= 0.8.1 |
5459024d | 305 | Obsoletes: telnetd |
dc28a757 | 306 | Conflicts: krb5-telnetd |
5459024d | 307 | |
87a2a408 | 308 | %description telnetd |
c358392a | 309 | Telnet is a popular protocol for remote logins across the Internet. |
310 | This package provides a telnet daemon which allows remote logins into | |
311 | the machine it is running on. | |
87a2a408 | 312 | |
0fbef91b JR |
313 | %description telnetd -l pl.UTF-8 |
314 | Telnet jest popularnym protokołem zdalnego logowania. Ten pakiet | |
315 | zawiera serwer pozwalający na zdalne logowanie się klientów na maszynę | |
316 | na której działa. | |
845f767b | 317 | |
c52bba62 | 318 | %package daemons |
11e40c5a | 319 | Summary: Kerberos daemons programs for use on servers |
13ef1022 | 320 | Summary(pl.UTF-8): Serwery popularnych usług, autoryzujące przy pomocy kerberosa |
11e40c5a | 321 | Group: Networking |
7c2ce0a1 | 322 | Requires: %{name}-libs = %{version}-%{release} |
11e40c5a AM |
323 | |
324 | %description daemons | |
325 | Kerberos Daemons. | |
326 | ||
0fbef91b JR |
327 | %description daemons -l pl.UTF-8 |
328 | Demony korzystające z systemu Kerberos do autoryzacji dostępu. | |
11e40c5a | 329 | |
11e40c5a | 330 | %prep |
0484bab0 | 331 | %setup -q |
11e40c5a | 332 | %patch0 -p1 |
493e3b85 | 333 | %patch1 -p1 |
3674519b | 334 | %patch2 -p1 |
c7b87187 JB |
335 | %patch3 -p1 |
336 | %patch4 -p1 | |
337 | %patch5 -p1 | |
ed59b63e | 338 | %patch6 -p1 |
38d4a713 | 339 | %patch7 -p1 |
55199c96 | 340 | %patch8 -p1 |
0484bab0 | 341 | %patch9 -p1 |
56398966 | 342 | %patch10 -p1 |
9e485d0a | 343 | |
11e40c5a | 344 | %build |
445607db | 345 | rm -f acinclude.m4 cf/{libtool,lt*}.m4 |
fcf46cfe | 346 | %{__libtoolize} |
347 | %{__aclocal} -I cf | |
348 | %{__autoconf} | |
349 | %{__automake} | |
5459024d | 350 | %configure \ |
6dfaff75 JB |
351 | --enable-hdb-openldap-module \ |
352 | --enable-kcm \ | |
353 | --enable-pthread-support \ | |
11e40c5a AM |
354 | --enable-shared \ |
355 | --enable-static \ | |
356 | --enable-new-des3-code \ | |
6dfaff75 JB |
357 | --with-hdbdir=%{_localstatedir} \ |
358 | --with-ipv6 \ | |
6c033d21 | 359 | --with-openldap=/usr \ |
4469f316 | 360 | --with-readline=/usr \ |
6dfaff75 | 361 | --with%{!?with_x11:out}-x |
11e40c5a | 362 | |
14a9b13c | 363 | %{__make} |
11e40c5a AM |
364 | |
365 | %install | |
366 | rm -rf $RPM_BUILD_ROOT | |
5776cc8c | 367 | install -d $RPM_BUILD_ROOT{%{_localstatedir},%{_sysconfdir},%{schemadir}} \ |
87a2a408 | 368 | $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,logrotate.d,rc.d/init.d} |
11e40c5a | 369 | |
a297a2ea JB |
370 | %{__make} install \ |
371 | DESTDIR=$RPM_BUILD_ROOT | |
5459024d | 372 | |
5776cc8c JR |
373 | install lib/hdb/hdb.schema $RPM_BUILD_ROOT%{schemadir} |
374 | ||
7d3ffee7 JR |
375 | mv $RPM_BUILD_ROOT%{_bindir}/su $RPM_BUILD_ROOT%{_bindir}/ksu |
376 | mv $RPM_BUILD_ROOT%{_mandir}/man1/su.1 $RPM_BUILD_ROOT%{_mandir}/man1/ksu.1 | |
9987dc73 | 377 | |
568e3a79 | 378 | install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/krb5.conf |
87a2a408 | 379 | |
568e3a79 | 380 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
381 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
382 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name} | |
11e40c5a | 383 | |
568e3a79 | 384 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd |
385 | install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rshd | |
386 | install %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/telnetd | |
387 | install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/kadmind | |
11e40c5a | 388 | |
36488e42 | 389 | install %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/kpasswdd |
390 | install %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/kpasswdd | |
391 | ||
0484bab0 JB |
392 | # just a test plugin |
393 | rm -f $RPM_BUILD_ROOT%{_libdir}/windc.* | |
394 | # not needed for plugin | |
395 | rm -f $RPM_BUILD_ROOT%{_libdir}/hdb_ldap.{la,a} | |
4469f316 | 396 | # other implementation exists in e2fsprogs (conflict with e2fsprogs-devel) |
0484bab0 | 397 | rm -rf $RPM_BUILD_ROOT{%{_libdir}/libss.{so,la,a},%{_includedir}/ss,%{_bindir}/mk_cmds} |
4469f316 JB |
398 | # this is created because glibc's <glob.h> has no GLOB_LIMIT and GLOB_QUOTE |
399 | rm -f $RPM_BUILD_ROOT%{_includedir}/glob.h | |
0f06dc21 JB |
400 | # resolve heimdal-libs/krb5-libs conflict |
401 | mv -f $RPM_BUILD_ROOT%{_mandir}/man5/{krb5.conf.5,krb5.conf.5h} | |
0484bab0 JB |
402 | # resolve conflict with gss |
403 | mv -f $RPM_BUILD_ROOT%{_bindir}/{gss,gsscmd} | |
d6db586b ER |
404 | # unpackaged |
405 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir | |
87a2a408 | 406 | |
407 | touch $RPM_BUILD_ROOT{%{_sysconfdir}/krb5.keytab,%{_localstatedir}/kadmind.acl} | |
11e40c5a | 408 | |
845f767b JB |
409 | %clean |
410 | rm -rf $RPM_BUILD_ROOT | |
411 | ||
87a2a408 | 412 | %post server |
71148af2 | 413 | /sbin/chkconfig --add heimdal |
f3e12399 | 414 | %service heimdal restart "heimdal daemon" |
71148af2 | 415 | |
36488e42 | 416 | /sbin/chkconfig --add kpasswdd |
f3e12399 | 417 | %service kpasswdd restart "heimdal password changing daemon" |
36488e42 | 418 | |
f3e12399 | 419 | %service -q rc-inetd reload |
87a2a408 | 420 | |
87a2a408 | 421 | %preun server |
71148af2 | 422 | if [ "$1" = "0" ]; then |
f3e12399 | 423 | %service heimdal stop |
71148af2 | 424 | /sbin/chkconfig --del heimdal |
71148af2 | 425 | |
f3e12399 | 426 | %service kpasswdd stop |
36488e42 | 427 | /sbin/chkconfig --del kpasswdd |
36488e42 | 428 | |
f3e12399 | 429 | %service -q rc-inetd reload |
71148af2 | 430 | fi |
2d0d93d3 | 431 | |
5459024d | 432 | %post ftpd |
f3e12399 | 433 | %service -q rc-inetd reload |
11e40c5a | 434 | |
5459024d | 435 | %postun ftpd |
f3e12399 ER |
436 | if [ "$1" = "0" ]; then |
437 | %service -q rc-inetd reload | |
71148af2 | 438 | fi |
5459024d | 439 | |
440 | %post rshd | |
f3e12399 | 441 | %service -q rc-inetd reload |
11e40c5a | 442 | |
5459024d | 443 | %postun rshd |
f3e12399 ER |
444 | if [ "$1" = "0" ]; then |
445 | %service -q rc-inetd reload | |
71148af2 | 446 | fi |
56afe882 | 447 | |
5459024d | 448 | %post telnetd |
f3e12399 | 449 | %service -q rc-inetd reload |
11e40c5a | 450 | |
5459024d | 451 | %postun telnetd |
f3e12399 ER |
452 | if [ "$1" = "0" ]; then |
453 | %service -q rc-inetd reload | |
71148af2 | 454 | fi |
11e40c5a | 455 | |
87a2a408 | 456 | %post libs |
457 | /sbin/ldconfig | |
71148af2 | 458 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
87a2a408 | 459 | |
2d0d93d3 | 460 | %postun libs |
87a2a408 | 461 | /sbin/ldconfig |
71148af2 | 462 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
87a2a408 | 463 | |
5776cc8c JR |
464 | %post -n openldap-schema-heimdal |
465 | %openldap_schema_register %{schemadir}/hdb.schema | |
466 | %service -q ldap restart | |
467 | ||
468 | %postun -n openldap-schema-heimdal | |
469 | if [ "$1" = "0" ]; then | |
470 | %openldap_schema_unregister %{schemadir}/hdb.schema | |
471 | %service -q ldap restart | |
472 | fi | |
473 | ||
c7b87187 JB |
474 | %files |
475 | %defattr(644,root,root,755) | |
0484bab0 | 476 | %doc ChangeLog NEWS README TODO |
c7b87187 | 477 | %attr(755,root,root) %{_bindir}/afslog |
0484bab0 | 478 | %attr(755,root,root) %{_bindir}/gsscmd |
7d3ffee7 | 479 | %attr(755,root,root) %{_bindir}/hxtool |
2402950c | 480 | %attr(755,root,root) %{_bindir}/idn-lookup |
c7b87187 JB |
481 | %attr(755,root,root) %{_bindir}/kauth |
482 | %attr(755,root,root) %{_bindir}/kdestroy | |
483 | %attr(755,root,root) %{_bindir}/kf | |
484 | %attr(755,root,root) %{_bindir}/kgetcred | |
485 | %attr(755,root,root) %{_bindir}/kinit | |
486 | %attr(755,root,root) %{_bindir}/klist | |
487 | %attr(755,root,root) %{_bindir}/kpasswd | |
6230cc94 | 488 | %attr(755,root,root) %{_bindir}/kswitch |
c7b87187 JB |
489 | %attr(755,root,root) %{_bindir}/pagsh |
490 | %attr(755,root,root) %{_bindir}/pfrom | |
c7b87187 | 491 | %attr(755,root,root) %{_bindir}/string2key |
c7b87187 JB |
492 | %attr(755,root,root) %{_bindir}/otpprint |
493 | %attr(755,root,root) %{_bindir}/verify_krb5_conf | |
0484bab0 | 494 | %attr(755,root,root) %{_sbindir}/kdigest |
7d3ffee7 | 495 | %attr(755,root,root) %{_sbindir}/kimpersonate |
64e90bd4 | 496 | %attr(755,root,root) %{_sbindir}/ktutil |
665da1cc AM |
497 | %if %{with x11} |
498 | %attr(755,root,root) %{_bindir}/kx | |
499 | %attr(755,root,root) %{_bindir}/tenletxr | |
c7b87187 | 500 | %attr(755,root,root) %{_bindir}/xnlock |
665da1cc AM |
501 | %attr(755,root,root) %{_bindir}/rxtelnet |
502 | %attr(755,root,root) %{_bindir}/rxterm | |
503 | %endif | |
c7b87187 | 504 | %attr(4755,root,root) %{_bindir}/otp |
c7b87187 | 505 | %attr(4755,root,root) %{_bindir}/ksu |
c7b87187 | 506 | %{_mandir}/man1/afslog.1* |
c7b87187 JB |
507 | %{_mandir}/man1/kdestroy.1* |
508 | %{_mandir}/man1/kf.1* | |
509 | %{_mandir}/man1/kgetcred.1* | |
7d3ffee7 | 510 | %{_mandir}/man1/kimpersonate.1* |
c7b87187 JB |
511 | %{_mandir}/man1/kinit.1* |
512 | %{_mandir}/man1/klist.1* | |
513 | %{_mandir}/man1/kpasswd.1* | |
9987dc73 | 514 | %{_mandir}/man1/ksu.1* |
c7b87187 JB |
515 | %{_mandir}/man1/otp.1* |
516 | %{_mandir}/man1/otpprint.1* | |
9987dc73 | 517 | %{_mandir}/man1/pagsh.1* |
c7b87187 | 518 | %{_mandir}/man1/pfrom.1* |
64e90bd4 | 519 | %{_mandir}/man8/ktutil.8* |
c7b87187 JB |
520 | %{_mandir}/man8/string2key.8* |
521 | %{_mandir}/man8/verify_krb5_conf.8* | |
665da1cc AM |
522 | %if %{with x11} |
523 | %{_mandir}/man1/kx.1* | |
524 | %{_mandir}/man1/tenletxr.1* | |
525 | %{_mandir}/man1/xnlock.1* | |
526 | %{_mandir}/man1/rxtelnet.1* | |
527 | %{_mandir}/man1/rxterm.1* | |
528 | %endif | |
529 | ||
0484bab0 | 530 | %files libs |
11e40c5a | 531 | %defattr(644,root,root,755) |
0484bab0 JB |
532 | %dir %{_sysconfdir} |
533 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/krb5.conf | |
534 | %attr(400,root,root) %ghost %{_sysconfdir}/krb5.keytab | |
535 | %attr(755,root,root) %{_libdir}/libasn1.so.*.*.* | |
72e056e8 | 536 | %attr(755,root,root) %ghost %{_libdir}/libasn1.so.8 |
0484bab0 | 537 | %attr(755,root,root) %{_libdir}/libgssapi.so.*.*.* |
72e056e8 | 538 | %attr(755,root,root) %ghost %{_libdir}/libgssapi.so.2 |
0484bab0 | 539 | %attr(755,root,root) %{_libdir}/libhdb.so.*.*.* |
72e056e8 | 540 | %attr(755,root,root) %ghost %{_libdir}/libhdb.so.9 |
0484bab0 | 541 | %attr(755,root,root) %{_libdir}/libheimntlm.so.*.*.* |
72e056e8 | 542 | %attr(755,root,root) %ghost %{_libdir}/libheimntlm.so.0 |
0484bab0 | 543 | %attr(755,root,root) %{_libdir}/libhx509.so.*.*.* |
14679f30 | 544 | %attr(755,root,root) %ghost %{_libdir}/libhx509.so.4 |
0484bab0 | 545 | %attr(755,root,root) %{_libdir}/libkadm5clnt.so.*.*.* |
72e056e8 | 546 | %attr(755,root,root) %ghost %{_libdir}/libkadm5clnt.so.7 |
0484bab0 | 547 | %attr(755,root,root) %{_libdir}/libkadm5srv.so.*.*.* |
72e056e8 | 548 | %attr(755,root,root) %ghost %{_libdir}/libkadm5srv.so.8 |
0484bab0 | 549 | %attr(755,root,root) %{_libdir}/libkafs.so.*.*.* |
72e056e8 | 550 | %attr(755,root,root) %ghost %{_libdir}/libkafs.so.0 |
0484bab0 | 551 | %attr(755,root,root) %{_libdir}/libkdc.so.*.*.* |
72e056e8 | 552 | %attr(755,root,root) %ghost %{_libdir}/libkdc.so.2 |
0484bab0 | 553 | %attr(755,root,root) %{_libdir}/libkrb5.so.*.*.* |
fdc02fd1 | 554 | %attr(755,root,root) %ghost %{_libdir}/libkrb5.so.25 |
0484bab0 | 555 | %attr(755,root,root) %{_libdir}/libotp.so.*.*.* |
72e056e8 | 556 | %attr(755,root,root) %ghost %{_libdir}/libotp.so.0 |
0484bab0 | 557 | %attr(755,root,root) %{_libdir}/libroken.so.*.*.* |
fdc02fd1 | 558 | %attr(755,root,root) %ghost %{_libdir}/libroken.so.18 |
0484bab0 | 559 | %attr(755,root,root) %{_libdir}/libsl.so.*.*.* |
72e056e8 | 560 | %attr(755,root,root) %ghost %{_libdir}/libsl.so.0 |
6230cc94 | 561 | %attr(755,root,root) %{_libdir}/libwind.so.*.*.* |
fdc02fd1 | 562 | %attr(755,root,root) %ghost %{_libdir}/libwind.so.0 |
0484bab0 JB |
563 | %{_infodir}/heimdal.info* |
564 | %{_infodir}/hx509.info* | |
565 | %{_mandir}/man5/krb5.conf.5* | |
6dfaff75 | 566 | %{_mandir}/man5/mech.5* |
0484bab0 | 567 | %{_mandir}/man8/kerberos.8* |
11e40c5a | 568 | |
0484bab0 JB |
569 | %files ldap |
570 | %defattr(644,root,root,755) | |
571 | %attr(755,root,root) %{_libdir}/hdb_ldap.so | |
11e40c5a | 572 | |
5776cc8c JR |
573 | %files -n openldap-schema-heimdal |
574 | %defattr(644,root,root,755) | |
575 | %{schemadir}/*.schema | |
576 | ||
0484bab0 JB |
577 | %files devel |
578 | %defattr(644,root,root,755) | |
579 | %attr(755,root,root) %{_bindir}/krb5-config | |
580 | %attr(755,root,root) %{_libdir}/libasn1.so | |
581 | %attr(755,root,root) %{_libdir}/libgssapi.so | |
582 | %attr(755,root,root) %{_libdir}/libhdb.so | |
583 | %attr(755,root,root) %{_libdir}/libheimntlm.so | |
584 | %attr(755,root,root) %{_libdir}/libhx509.so | |
585 | %attr(755,root,root) %{_libdir}/libkadm5clnt.so | |
586 | %attr(755,root,root) %{_libdir}/libkadm5srv.so | |
587 | %attr(755,root,root) %{_libdir}/libkafs.so | |
588 | %attr(755,root,root) %{_libdir}/libkdc.so | |
589 | %attr(755,root,root) %{_libdir}/libkrb5.so | |
590 | %attr(755,root,root) %{_libdir}/libotp.so | |
591 | %attr(755,root,root) %{_libdir}/libroken.so | |
592 | %attr(755,root,root) %{_libdir}/libsl.so | |
6230cc94 | 593 | %attr(755,root,root) %{_libdir}/libwind.so |
0484bab0 JB |
594 | %{_libdir}/libasn1.la |
595 | %{_libdir}/libgssapi.la | |
596 | %{_libdir}/libhdb.la | |
597 | %{_libdir}/libheimntlm.la | |
598 | %{_libdir}/libhx509.la | |
599 | %{_libdir}/libkadm5clnt.la | |
600 | %{_libdir}/libkadm5srv.la | |
601 | %{_libdir}/libkafs.la | |
602 | %{_libdir}/libkdc.la | |
603 | %{_libdir}/libkrb5.la | |
604 | %{_libdir}/libotp.la | |
605 | %{_libdir}/libroken.la | |
606 | %{_libdir}/libsl.la | |
6230cc94 | 607 | %{_libdir}/libwind.la |
0484bab0 JB |
608 | %{_includedir}/*.h |
609 | %{_includedir}/gssapi | |
610 | %{_includedir}/kadm5 | |
611 | %{_includedir}/krb5 | |
612 | %{_includedir}/roken | |
6dfaff75 | 613 | %{_pkgconfigdir}/heimdal-gssapi.pc |
0484bab0 JB |
614 | %{_mandir}/man1/krb5-config.1* |
615 | %{_mandir}/man3/* | |
11e40c5a | 616 | |
0484bab0 JB |
617 | %files static |
618 | %defattr(644,root,root,755) | |
619 | %{_libdir}/libasn1.a | |
620 | %{_libdir}/libgssapi.a | |
621 | %{_libdir}/libhdb.a | |
622 | %{_libdir}/libheimntlm.a | |
623 | %{_libdir}/libhx509.a | |
624 | %{_libdir}/libkadm5clnt.a | |
625 | %{_libdir}/libkadm5srv.a | |
626 | %{_libdir}/libkafs.a | |
627 | %{_libdir}/libkdc.a | |
628 | %{_libdir}/libkrb5.a | |
629 | %{_libdir}/libotp.a | |
630 | %{_libdir}/libroken.a | |
631 | %{_libdir}/libsl.a | |
6230cc94 | 632 | %{_libdir}/libwind.a |
0484bab0 JB |
633 | |
634 | %files kcm | |
635 | %defattr(644,root,root,755) | |
636 | %attr(755,root,root) %{_sbindir}/kcm | |
637 | %{_mandir}/man8/kcm.8* | |
638 | ||
639 | %files server | |
640 | %defattr(644,root,root,755) | |
11e40c5a | 641 | %attr(755,root,root) %{_sbindir}/kadmin |
c7b87187 | 642 | %attr(755,root,root) %{_sbindir}/kfd |
11e40c5a | 643 | %attr(755,root,root) %{_sbindir}/kstash |
11e40c5a AM |
644 | %attr(755,root,root) %{_sbindir}/hprop |
645 | %attr(755,root,root) %{_sbindir}/hpropd | |
7d3ffee7 | 646 | %attr(755,root,root) %{_sbindir}/iprop-log |
11e40c5a AM |
647 | %attr(755,root,root) %{_sbindir}/ipropd-master |
648 | %attr(755,root,root) %{_sbindir}/ipropd-slave | |
649 | %attr(755,root,root) %{_sbindir}/kadmind | |
650 | %attr(755,root,root) %{_sbindir}/kdc | |
11e40c5a | 651 | %attr(755,root,root) %{_sbindir}/kpasswdd |
c7b87187 | 652 | %attr(755,root,root) %{_sbindir}/push |
665da1cc | 653 | %{?with_x11:%attr(755,root,root) %{_sbindir}/kxd} |
0484bab0 JB |
654 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
655 | %attr(754,root,root) /etc/rc.d/init.d/kpasswdd | |
656 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/* | |
657 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/heimdal | |
658 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/kpasswdd | |
659 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/kadmind | |
660 | %attr(700,root,root) %dir %{_localstatedir} | |
661 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/* | |
9987dc73 | 662 | %{_mandir}/man8/iprop.8* |
7d3ffee7 | 663 | %{_mandir}/man8/iprop-log.8* |
5459024d | 664 | %{_mandir}/man8/hprop.8* |
665 | %{_mandir}/man8/hpropd.8* | |
fcf46cfe | 666 | %{_mandir}/man8/kadmin.8* |
667 | %{_mandir}/man8/kadmind.8* | |
5459024d | 668 | %{_mandir}/man8/kdc.8* |
c7b87187 | 669 | %{_mandir}/man8/kfd.8* |
5459024d | 670 | %{_mandir}/man8/kpasswdd.8* |
fcf46cfe | 671 | %{_mandir}/man8/kstash.8* |
c7b87187 | 672 | %{_mandir}/man8/push.8* |
0484bab0 | 673 | %{?with_x11:%{_mandir}/man8/kxd.8*} |
5459024d | 674 | |
568e3a79 | 675 | %files login |
c358392a | 676 | %defattr(644,root,root,755) |
568e3a79 | 677 | %attr(755,root,root) %{_bindir}/login |
c7b87187 | 678 | %{_mandir}/man1/login.1* |
72e056e8 | 679 | %{_mandir}/man5/login.access.5* |
568e3a79 | 680 | |
5459024d | 681 | %files ftp |
c358392a | 682 | %defattr(644,root,root,755) |
5459024d | 683 | %attr(755,root,root) %{_bindir}/ftp |
c358392a | 684 | %{_mandir}/man1/ftp.1* |
5459024d | 685 | |
686 | %files rsh | |
c358392a | 687 | %defattr(644,root,root,755) |
fcf46cfe | 688 | %attr(755,root,root) %{_bindir}/rcp |
6dfaff75 JB |
689 | %attr(755,root,root) %{_bindir}/rsh |
690 | %{_mandir}/man1/rcp.1* | |
fcf46cfe | 691 | %{_mandir}/man1/rsh.1* |
5459024d | 692 | |
693 | %files telnet | |
c358392a | 694 | %defattr(644,root,root,755) |
5459024d | 695 | %attr(755,root,root) %{_bindir}/telnet |
c358392a | 696 | %{_mandir}/man1/telnet.1* |
5459024d | 697 | |
698 | %files ftpd | |
c358392a | 699 | %defattr(644,root,root,755) |
a39a46c8 | 700 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/ftpd |
5459024d | 701 | %attr(755,root,root) %{_sbindir}/ftpd |
c358392a | 702 | %{_mandir}/man5/ftpusers.5* |
703 | %{_mandir}/man8/ftpd.8* | |
5459024d | 704 | |
705 | %files rshd | |
c358392a | 706 | %defattr(644,root,root,755) |
a39a46c8 | 707 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/rshd |
5459024d | 708 | %attr(755,root,root) %{_sbindir}/rshd |
fcf46cfe | 709 | %{_mandir}/man8/rshd.8* |
5459024d | 710 | |
711 | %files telnetd | |
c358392a | 712 | %defattr(644,root,root,755) |
a39a46c8 | 713 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/telnetd |
5459024d | 714 | %attr(755,root,root) %{_sbindir}/telnetd |
c358392a | 715 | %{_mandir}/man8/telnetd.8* |
5459024d | 716 | |
11e40c5a AM |
717 | %files daemons |
718 | %defattr(644,root,root,755) | |
9e485d0a | 719 | %attr(755,root,root) %{_sbindir}/popper |
c7b87187 | 720 | %{_mandir}/man8/popper.8* |