]> git.pld-linux.org Git - SPECS.git/blob - krb5.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / krb5.spec
1 #
2 # WARNING!! Please do NOT rebuild it for Th! Its place is in th-obsolete!
3 # These packages on ftp only confuse people uneducated in Kerberos.
4 # We use Heimdal implementation in Th. If someone really wants MIT,
5 # (s)he is on hers/his own.
6 #                               - baggins/at/pld-linux.org
7 #
8 # Conditional build:
9 %bcond_without  doc             # documentation [requires TeX]
10 %bcond_without  audit           # audit plugin
11 %bcond_with     hesiod          # Hesiod support
12 %bcond_without  ldap            # OpenLDAP database backend module
13 %bcond_with     selinux         # SELinux support
14 %bcond_without  system_db       # system Berkeley DB (via DB 1.85 API)
15 %bcond_without  tcl             # build without tcl (tcl is needed for tests)
16 %bcond_without  tests           # don't perform make check
17 #
18 Summary:        Kerberos V5 System
19 Summary(pl.UTF-8):      System Kerberos V5
20 Name:           krb5
21 Version:        1.18
22 Release:        0.1
23 License:        MIT
24 Group:          Networking
25 Source0:        http://web.mit.edu/kerberos/dist/krb5/1.18/%{name}-%{version}.tar.gz
26 # Source0-md5:  69a5b165dac5754a5094627ee6df0def
27 Source2:        %{name}kdc.init
28 Source4:        kadm5.acl
29 Source5:        kerberos.logrotate
30 Source6:        %{name}.conf
31 Source7:        kdc.conf
32 Source8:        kerberos.sysconfig
33 Source9:        kerberos.sh
34 Source10:       kerberos.csh
35 Source15:       propagation
36 Source16:       kpropd.init
37 Source17:       kadmind.init
38 Source18:       kpropd.acl
39 Patch0:         %{name}-manpages.patch
40 Patch1:         %{name}-audit.patch
41 Patch2:         %{name}-db185.patch
42 Patch3:         %{name}-as-needed.patch
43 # http://lite.mit.edu/
44 Patch6:         %{name}-ktany.patch
45 Patch11:        %{name}-brokenrev.patch
46 Patch12:        %{name}-dns.patch
47 Patch13:        %{name}-enospc.patch
48 Patch23:        %{name}-tests.patch
49 Patch24:        %{name}-config.patch
50 Patch29:        %{name}-selinux-label.patch
51 URL:            http://web.mit.edu/kerberos/www/
52 BuildRequires:  /bin/csh
53 %{?with_audit:BuildRequires:    audit-libs-devel}
54 BuildRequires:  autoconf >= 2.50
55 BuildRequires:  bison
56 %{?with_ldap:BuildRequires:     cyrus-sasl-devel >= 2}
57 %{?with_system_db:BuildRequires:        db-devel}
58 BuildRequires:  flex
59 BuildRequires:  gettext-tools
60 BuildRequires:  ghostscript
61 %{?with_hesiod:BuildRequires:   hesiod-devel}
62 BuildRequires:  keyutils-devel
63 BuildRequires:  libcom_err-devel
64 # only for internal ss
65 #BuildRequires: libedit-devel
66 %{?with_selinux:BuildRequires:  libselinux-devel}
67 # for bindir/mk_cmds
68 BuildRequires:  libss-devel >= 1.35
69 BuildRequires:  libverto-devel
70 BuildRequires:  lmdb-devel
71 BuildRequires:  ncurses-devel
72 %{?with_ldap:BuildRequires:     openldap-devel >= 2.4.6}
73 BuildRequires:  openssl-devel >= 1.0.0
74 BuildRequires:  perl-base
75 BuildRequires:  pkgconfig
76 BuildRequires:  rpmbuild(macros) >= 1.268
77 %{?with_tcl:BuildRequires:      tcl-devel}
78 BuildRequires:  words
79 %if %{with doc}
80 BuildRequires:  doxygen
81 BuildRequires:  sphinx-pdg
82 %endif
83 %if %{with tests}
84 BuildRequires:  cmocka-devel
85 BuildRequires:  libverto-libev
86 BuildRequires:  python >= 1:2.5
87 # we have "online" tests disabled, so probably not needed
88 #BuildRequires: resolv_wrapper >= 1.1.5
89 BuildRequires:  tcl-devel
90 %endif
91 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
92
93 %define         _localstatedir  /var/lib/kerberos
94 # doesn't handle %{__cc} with spaces properly
95 %undefine       with_ccache
96 # mungles cflags
97 %undefine       configure_cache
98
99 %define         schemadir       /usr/share/openldap/schema
100
101 %description
102 Kerberos V5 is based on the Kerberos authentication system developed
103 at MIT. Under Kerberos, a client (generally either a user or a
104 service) sends a request for a ticket to the Key Distribution Center
105 (KDC). The KDC creates a "ticket-granting ticket" (TGT) for the
106 client, encrypts it using the client's password as the key, and sends
107 the encrypted TGT back to the client. The client then attempts to
108 decrypt the TGT, using its password. If the client successfully
109 decrypts the TGT (i.e., if the client gave the correct password), it
110 keeps the decrypted TGT, which indicates proof of the client's
111 identity.
112
113 %description -l pl.UTF-8
114 Kerberos V5 jest systemem uwierzytelniania rozwijanym w MIT. W tym
115 systemie klient (użytkownik lub usługa) wysyła żądanie biletu do
116 Centrum Dystrybucji Kluczy (KDC). KDC tworzy zakodowany kredyt (TGT),
117 używając hasła klienta do jego zaszyfrowania i wysyła go z powrotem do
118 klienta. Klient następnie przystępuje do rozkodowywania kredytu przy
119 pomocy swojego hasła. Jeżeli zrobi to prawidłowo (tzn. poda poprawne
120 hasło), jego bilet uaktywnia się i będzie ważny na daną usługę.
121
122 %package common
123 Summary:        Common files required by Kerberos V5 servers and workstations
124 Summary(pl.UTF-8):      Wspólne pliki dla serwerów i klientów kerberosa
125 Group:          Networking
126 Requires:       %{name}-libs = %{version}-%{release}
127 Requires:       rc-scripts
128 Requires:       setup >= 2.4.6-2
129
130 %description common
131 Common configuration files, directories and programs required
132 for Kerberos V5 servers and clients.
133
134 Kerberos V5 is based on the Kerberos authentication system developed
135 at MIT. Under Kerberos, a client (generally either a user or a
136 service) sends a request for a ticket to the Key Distribution Center
137 (KDC). The KDC creates a "ticket-granting ticket" (TGT) for the
138 client, encrypts it using the client's password as the key, and sends
139 the encrypted TGT back to the client. The client then attempts to
140 decrypt the TGT, using its password. If the client successfully
141 decrypts the TGT (i.e., if the client gave the correct password), it
142 keeps the decrypted TGT, which indicates proof of the client's
143 identity.
144
145 %description common -l pl.UTF-8
146 Wspólne pliki konfiguracyjne, katalogi i programy niezbędne do
147 działania serwerów i klientów systemu Kerberos V5.
148
149 Kerberos V5 jest systemem uwierzytelniania rozwijanym w MIT. W tym
150 systemie klient (użytkownik lub usługa) wysyła żądanie biletu do
151 Centrum Dystrybucji Kluczy (KDC). KDC tworzy zakodowany kredyt (TGT),
152 używając hasła klienta do jego zaszyfrowania i wysyła go z powrotem do
153 klienta. Klient następnie przystępuje do rozkodowywania kredytu przy
154 pomocy swojego hasła. Jeżeli zrobi to prawidłowo (tzn. poda poprawne
155 hasło), jego bilet uaktywnia się i będzie ważny na daną usługę.
156
157 %package client
158 Summary:        Kerberos V5 programs for use on workstations
159 Summary(pl.UTF-8):      Oprogramowanie klienckie dla stacji roboczej kerberosa
160 Group:          Networking
161 Requires:       %{name}-libs = %{version}-%{release}
162 Requires:       %{name}-common = %{version}-%{release}
163 Conflicts:      heimdal
164
165 %description client
166 Kerberos V5 Clients.
167
168 Kerberos V5 is based on the Kerberos authentication system developed
169 at MIT. Under Kerberos, a client (generally either a user or a
170 service) sends a request for a ticket to the Key Distribution Center
171 (KDC). The KDC creates a "ticket-granting ticket" (TGT) for the
172 client, encrypts it using the client's password as the key, and sends
173 the encrypted TGT back to the client. The client then attempts to
174 decrypt the TGT, using its password. If the client successfully
175 decrypts the TGT (i.e., if the client gave the correct password), it
176 keeps the decrypted TGT, which indicates proof of the client's
177 identity.
178
179 %description client -l pl.UTF-8
180 Oprogramowanie klienckie do korzystania z usług systemu Kerberos V5.
181
182 Kerberos V5 jest systemem uwierzytelniania rozwijanym w MIT. W tym
183 systemie klient (użytkownik lub usługa) wysyła żądanie biletu do
184 Centrum Dystrybucji Kluczy (KDC). KDC tworzy zakodowany kredyt (TGT),
185 używając hasła klienta do jego zaszyfrowania i wysyła go z powrotem do
186 klienta. Klient następnie przystępuje do rozkodowywania kredytu przy
187 pomocy swojego hasła. Jeżeli zrobi to prawidłowo (tzn. poda poprawne
188 hasło), jego bilet uaktywnia się i będzie ważny na daną usługę.
189
190 %package server
191 Summary:        Kerberos V5 Server
192 Summary(pl.UTF-8):      Serwer Kerberos V5
193 Group:          Networking
194 Requires(post,postun):  sed >= 4.0
195 Requires:       %{name}-libs = %{version}-%{release}
196 Requires:       %{name}-common = %{version}-%{release}
197 Requires:       words
198 Conflicts:      heimdal-server
199
200 %description server
201 Common files required by Kerberos 5 servers.
202
203 Kerberos V5 is based on the Kerberos authentication system developed
204 at MIT. Under Kerberos, a client (generally either a user or a
205 service) sends a request for a ticket to the Key Distribution Center
206 (KDC). The KDC creates a "ticket-granting ticket" (TGT) for the
207 client, encrypts it using the client's password as the key, and sends
208 the encrypted TGT back to the client. The client then attempts to
209 decrypt the TGT, using its password. If the client successfully
210 decrypts the TGT (i.e., if the client gave the correct password), it
211 keeps the decrypted TGT, which indicates proof of the client's
212 identity.
213
214 %description server -l pl.UTF-8
215 Wspólne pliki wymagane przez usługi serwerowe Kerberos 5.
216
217 Kerberos V5 jest systemem uwierzytelniania rozwijanym w MIT. W tym
218 systemie klient (użytkownik lub usługa) wysyła żądanie biletu do
219 Centrum Dystrybucji Kluczy (KDC). KDC tworzy zakodowany kredyt (TGT),
220 używając hasła klienta do jego zaszyfrowania i wysyła go z powrotem do
221 klienta. Klient następnie przystępuje do rozkodowywania kredytu przy
222 pomocy swojego hasła. Jeżeli zrobi to prawidłowo (tzn. poda poprawne
223 hasło), jego bilet uaktywnia się i będzie ważny na daną usługę.
224
225 %package server-kdc
226 Summary:        Kerberos V5 AS/KDC Server
227 Summary(pl.UTF-8):      Serwer AS/KDC Kerberos V5
228 Group:          Networking
229 Requires:       %{name}-server = %{version}-%{release}
230 Requires:       libverto-libev
231
232 %description server-kdc
233 This package constains the Kerberos version 5 Authentication Service
234 and Key Distribution Center (AS/KDC).
235
236 %description server-kdc -l pl.UTF-8
237 Ten pakiet zawiera usługę uwierzytelniającą Kerberosa 5 i centrum
238 dystrybucji kluczy (AS/KDC).
239
240 %package server-kadmind
241 Summary:        Kerberos V5 administration server
242 Summary(pl.UTF-8):      Serwer administracyjny Kerberos V5
243 Group:          Networking
244 Requires:       %{name}-server = %{version}-%{release}
245
246 %description server-kadmind
247 This package contains the KADM5 administration server.
248
249 If the database is db2, the administration server runs on the master
250 Kerberos server, which stores the KDC principal database and the KADM5
251 policy database.
252
253 If the database is LDAP, the administration server and the KDC server
254 need not run on the same machine.
255
256 Kadmind accepts remote requests to administer the information in these
257 databases. Remote requests are sent, for example, by kadmin(8) and the
258 kpasswd(1) command, both of which are clients of kadmind.
259
260 %description server-kadmind -l pl.UTF-8
261 Ten pakiet zawiera serwer administracyjny KADM5.
262
263 Jeżeli baza Kerberosa jest w formacie db2, serwer administracyjny jest
264 uruchamiany na głównym serwerze kerberosa, który utrzymuje bazę kluczy
265 KDC i KADM5.
266
267 Jeżeli baza Kerberosa jest w formacie LDAP, serwer administracyjny
268 może być uruchomiony na innej maszynie niż KDC.
269
270 Kadmind przyjmuje zdalne zlecenia administracyjne dla wyżej
271 wymienionych baz. Zdalne zlecenia są wysyłane na przykład przez
272 programy kadmin i kpasswd, które są klientami kadmind.
273
274 %package server-kpropd
275 Summary:        Kerberos V5 slave KDC update server
276 Summary(pl.UTF-8):      Podporządkowany serwer KDC Kerberos V5
277 Group:          Networking
278 Requires:       %{name}-server-kdc = %{version}-%{release}
279
280 %description server-kpropd
281 kpropd is a slave KDC update server which accepts connections from the
282 kprop program from the master KDC and updates the KDC database running
283 on the slave server.
284
285 Thus, the master Kerberos server can use kprop(8) to propagate its
286 database to the slave slavers. Upon a successful download of the KDC
287 database file, the slave Kerberos server will have an up-to-date KDC
288 database.
289                                           
290 %description server-kpropd -l pl.UTF-8
291 kpropd jest podporządkowanym serwerem odświerzającym KDC przyjmującym
292 połączenia od programu prop z nadrzędnego KDC i uaktualniającego bazę
293 danych KDC działającą na serwerze podporządkowanym.
294
295 W ten sposób nadrzędny serwer Kerberosa może używać kprop(8) do
296 propagowania swojej bazy danych na serwery podporządkowane. Po
297 pomyślnym ściągnięciu pliku bazy KDC podrzędny serwer Kerberosa będzie
298 zawierał aktualną bazę KDC.
299
300 %package server-ldap
301 Summary:        The LDAP storage plugin for the Kerberos 5 KDC
302 Summary(pl.UTF-8):      Wtyczka przechowywania danych w LDAP dla KDC Kerberosa 5
303 Group:          Networking
304 Requires:       %{name}-server-kdc = %{version}-%{release}
305
306 %description server-ldap
307 Kerberos is a network authentication system. The krb5-server package
308 contains the programs that must be installed on a Kerberos 5 key
309 distribution center (KDC). If you are installing a Kerberos 5 KDC,
310 and you wish to use a directory server to store the data for your
311 realm, you need to install this package.
312
313 %description server-ldap -l pl.UTF-8
314 Kerberos to system uwierzytelniania sieciowego. Pakiet krb5-server
315 zawiera programy, które muszą być zainstalowane w centrum dystrybucji
316 kluczy Kerberosa 5 (KDC). W przypadku instalacji KDC Kerberosa 5 z
317 użyciem serwera usług katalogowych do przechowywania danych należy
318 zainstalować ten pakiet.
319
320 %package -n openldap-schema-krb5
321 Summary:        Kerberos LDAP schema
322 Summary(pl.UTF-8):      Schemat LDAP dla kerberosa
323 Group:          Networking/Daemons
324 Requires(post,postun):  sed >= 4.0
325 Requires:       openldap-servers
326
327 %description -n openldap-schema-krb5
328 This package contains kerberos LDAP schema for openldap.
329
330 %description -n openldap-schema-krb5 -l pl.UTF-8
331 Ten pakiet zawiera schemat kerberosa dla openldap-a.
332
333 %package libs
334 Summary:        Kerberos V5 shared libraries
335 Summary(pl.UTF-8):      Biblioteki dzielone dla Kerberosa V5
336 Group:          Libraries
337 Requires(post): /sbin/ldconfig
338 Requires(post,preun):   grep
339 Requires(preun):        coreutils
340 Obsoletes:      krb5-configs
341 Obsoletes:      krb5-lib
342 Conflicts:      heimdal-libs < 0.8-0.rc7.2
343
344 %description libs
345 Libraries for Kerberos V5 Server and Client
346
347 %description libs -l pl.UTF-8
348 Biblioteki dynamiczne dla systemu Kerberos V5.
349
350 %package devel
351 Summary:        Header files for Kerberos V5 libraries and documentation
352 Summary(pl.UTF-8):      Pliki nagłówkowe i dokumentacja do bibliotek Kerberosa V5
353 Group:          Development/Libraries
354 Requires:       %{name}-libs = %{version}-%{release}
355 Requires:       keyutils-devel
356 Requires:       libcom_err-devel
357 Requires:       libverto-devel
358 Conflicts:      heimdal-devel
359 Obsoletes:      krb5-static
360
361 %description devel
362 Header files for Kerberos V5 libraries and development documentation.
363
364 %description devel -l pl.UTF-8
365 Pliki nagłówkowe i dokumentacja do bibliotek Kerberosa V5.
366
367 %package static
368 Summary:        Static Kerberos V5 libraries
369 Summary(pl.UTF-8):      Biblioteki statyczne Kerberosa V5
370 Group:          Development/Libraries
371 Requires:       %{name}-devel = %{version}-%{release}
372
373 %description static
374 Static Kerberos V5 libraries.
375
376 %description static -l pl.UTF-8
377 Biblioteki statyczne Kerberosa V5.
378
379 %package doc
380 Summary:        MIT Kerberos V5 documentation in HTML format
381 Summary(pl.UTF-8):      Dokumentacja systemu MIT Kerberos V5 w formacie HTML
382 Group:          Documentation
383
384 %description doc
385 MIT Kerberos V5 documentation in HTML format.
386
387 %description doc -l pl.UTF-8
388 Dokumentacja systemu MIT Kerberos V5 w formacie HTML.
389
390 %prep
391 %setup -q
392 %patch0 -p1
393 %patch1 -p1
394 %{?with_system_db:%patch2 -p1}
395 %patch3 -p1
396 %patch6 -p1
397 %patch11 -p1
398 %patch12 -p1
399 %patch13 -p1
400 %patch23 -p1
401 %patch24 -p1
402 %{?with_selinux:%patch29 -p1}
403
404 %build
405 cd src
406 # Get LFS support on systems that need additional flags.
407 LFS_CFLAGS="$(getconf LFS_CFLAGS)"
408 CFLAGS="%{rpmcflags} $LFS_CFLAGS -fPIC -I%{_includedir}/et -I%{_includedir}/ncurses"
409 CPPFLAGS="$LFS_CFLAGS -I%{_includedir}/et -I%{_includedir}/ncurses"
410 %{__autoconf}
411 %{__autoheader}
412 %configure \
413         --libexecdir=%{_libdir} \
414         --disable-rpath \
415         %{?with_audit:--enable-audit-plugin=simple} \
416         --enable-dns-for-realm \
417         --with-crypto-impl=openssl \
418         %{?with_hesiod:--with-hesiod} \
419         %{?with_ldap:--with-ldap} \
420         --with-netlib=-lresolv \
421         %{?with_selinux:--with-selinux} \
422         %{?with_system_db:--with-system-db} \
423         --with-system-et \
424         --with-system-ss \
425         --with-system-verto \
426         --with-tcl=%{?with_tcl:%{_prefix}}%{!?with_tcl:no}
427
428 %{__make} \
429         TCL_LIBPATH="-L%{_libdir}"
430
431 %if %{with doc}
432 %{__make} -C doc
433 %endif
434
435 %if %{with tests}
436 %{__make} check \
437         OFFLINE=yes \
438         TCL_LIBPATH="-L%{_libdir}" \
439         PYTESTFLAGS="-v"
440 %endif
441
442 %install
443 rm -rf $RPM_BUILD_ROOT
444 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_localstatedir},/var/log/kerberos} \
445         $RPM_BUILD_ROOT{%{schemadir},%{_infodir},%{_mandir}} \
446         $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig/rc-inetd,shrc.d,logrotate.d}
447
448 %{__make} -C src install \
449         TCL_LIBPATH="-L%{_libdir}" \
450         DESTDIR=$RPM_BUILD_ROOT
451
452 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}
453 install %{SOURCE7} $RPM_BUILD_ROOT%{_localstatedir}/krb5kdc
454 install %{SOURCE4} $RPM_BUILD_ROOT%{_localstatedir}/krb5kdc
455 install %{SOURCE18} $RPM_BUILD_ROOT%{_localstatedir}/krb5kdc
456 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/kerberos
457 install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/kerberos
458 install %{SOURCE15} $RPM_BUILD_ROOT%{_sbindir}/propagation
459 install %{SOURCE9} %{SOURCE10} $RPM_BUILD_ROOT/etc/shrc.d
460
461 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/krb5kdc
462 install %{SOURCE16} $RPM_BUILD_ROOT/etc/rc.d/init.d/kpropd
463 install %{SOURCE17} $RPM_BUILD_ROOT/etc/rc.d/init.d/kadmind
464
465 %if %{with ldap}
466 install src/plugins/kdb/ldap/libkdb_ldap/kerberos.{schema,ldif} $RPM_BUILD_ROOT%{schemadir}
467 %endif
468
469 ln -sf %{_datadir}/dict/words $RPM_BUILD_ROOT%{_localstatedir}/krb5kdc/kadm5.dict
470 touch $RPM_BUILD_ROOT/etc/krb5.keytab
471
472 echo '.so man1/kadmin.1' > $RPM_BUILD_ROOT%{_mandir}/man8/kadmin.local.8
473
474 # fix permissions for deps generation
475 find $RPM_BUILD_ROOT -type f -name '*.so*' | xargs chmod +x
476
477 %{__rm} $RPM_BUILD_ROOT%{_libdir}/krb5/plugins/preauth/test.so
478
479 %find_lang mit-krb5
480
481 %clean
482 rm -rf $RPM_BUILD_ROOT
483
484 %post   server-ldap -p /sbin/ldconfig
485 %postun server-ldap -p /sbin/ldconfig
486
487 %post -n openldap-schema-krb5
488 %openldap_schema_register %{schemadir}/kerberos.schema
489 %service -q ldap restart
490
491 %postun -n openldap-schema-krb5
492 if [ "$1" = "0" ]; then
493         %openldap_schema_unregister %{schemadir}/kerberos.schema
494         %service -q ldap restart
495 fi
496
497 %post server-kdc
498 /sbin/chkconfig --add krb5kdc
499 %service krb5kdc restart "krb5kdc daemon"
500
501 %post server-kadmind
502 /sbin/chkconfig --add kadmind
503 %service kadmind restart "kadmind daemon"
504
505 %post server-kpropd
506 /sbin/chkconfig --add kpropd
507 %service kpropd restart "kpropd daemon"
508
509 %postun server-kdc
510 if [ "$1" = 0 ]; then
511         %service krb5kdc stop
512         /sbin/chkconfig --del krb5kdc
513 fi
514
515 %postun server-kadmind
516 if [ "$1" = 0 ]; then
517         %service kadmind stop
518         /sbin/chkconfig --del kadmind
519 fi
520
521 %postun server-kpropd
522 if [ "$1" = 0 ]; then
523         %service kpropd stop
524         /sbin/chkconfig --del kpropd
525 fi
526
527 %post   libs -p /sbin/ldconfig
528 %postun libs -p /sbin/ldconfig
529
530 %triggerpostun server -- krb5-server < 1.7
531 for f in principal .k5.* krb5_adm.acl kadm_old.acl kadm5.keytab; do
532         if [ -f %{_localstatedir}/$f.rpmsave ]; then
533                 if [ -f %{_localstatedir}/krb5kdc/$f ]; then
534                         mv %{_localstatedir}/krb5kdc/$f{,.rpmnew}
535                 fi
536                 mv -f %{_localstatedir}/$f.rpmsave %{_localstatedir}/krb5kdc/$f
537         fi
538 done
539 cp -f /etc/sysconfig/kerberos{,.rpmorig}
540 %{__sed} -i -e "s,/var/lib/kerberos/principal,/var/lib/kerberos/krb5kdc/principal," \
541         -e "s,/var/lib/kerberos/kpropd.acl,/var/lib/kerberos/krb5kdc/kpropd.acl," \
542         -e "s,/var/lib/kerberos/kadm5.keytab,/var/lib/kerberos/krb5kdc/kadm5.keytab," \
543         /etc/sysconfig/kerberos
544
545 %triggerpostun server-kdc -- krb5-server-kdc < 1.7
546 if [ -f %{_localstatedir}/kdc.conf.rpmsave ]; then
547         mv %{_localstatedir}/krb5kdc/kdc.conf{,.rpmnew}
548         mv -f %{_localstatedir}/kdc.conf.rpmsave %{_localstatedir}/krb5kdc/kdc.conf
549 fi
550
551 %triggerpostun server-kadmind -- krb5-server-kadmind < 1.7
552 if [ -f %{_localstatedir}/kadm5.acl.rpmsave ]; then
553         mv %{_localstatedir}/krb5kdc/kadm5.acl{,.rpmnew}
554         mv -f %{_localstatedir}/kadm5.acl.rpmsave %{_localstatedir}/krb5kdc/kadm5.acl
555 fi
556
557 %triggerpostun server-kpropd -- krb5-server-kpropd < 1.7
558 for f in slave_datatrans from_master kpropd.acl; do
559         if [ -f %{_localstatedir}/$f.rpmsave ]; then
560                 if [ -f %{_localstatedir}/krb5kdc/$f ]; then
561                         mv %{_localstatedir}/krb5kdc/$f{,.rpmnew}
562                 fi
563                 mv -f %{_localstatedir}/$f.rpmsave %{_localstatedir}/krb5kdc/$f
564         fi
565 done
566
567 %triggerpostun common -- krb5-common < 1.7
568 if [ -f %{_localstatedir}/krb5.keytab.rpmsave ]; then
569         mv /etc/krb5.keytab{,.rpmnew}
570         mv -f %{_localstatedir}/krb5.keytab.rpmsave /etc/krb5.keytab
571 fi
572
573 %files server
574 %defattr(644,root,root,755)
575
576 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/kerberos
577 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/kerberos
578
579 %attr(750,root,root) %dir /var/log/kerberos
580
581 %attr(700,root,root) %dir %{_localstatedir}
582 %attr(700,root,root) %dir %{_localstatedir}/krb5kdc
583
584 %attr(755,root,root) %{_bindir}/kadmin
585 %attr(755,root,root) %{_bindir}/ktutil
586 %attr(755,root,root) %{_bindir}/k5srvutil
587 %attr(755,root,root) %{_sbindir}/kadmin.local
588 %attr(755,root,root) %{_sbindir}/propagation
589 %attr(755,root,root) %{_sbindir}/kdb5_util
590 %attr(755,root,root) %{_sbindir}/kprop
591 %attr(755,root,root) %{_sbindir}/kproplog
592 %attr(755,root,root) %{_sbindir}/krb5-send-pr
593 %attr(755,root,root) %{_sbindir}/gss-server
594 %attr(755,root,root) %{_sbindir}/sim_server
595 %attr(755,root,root) %{_sbindir}/sserver
596 %attr(755,root,root) %{_sbindir}/uuserver
597
598 %{_mandir}/man1/k5srvutil.1*
599 %{_mandir}/man1/kadmin.1*
600 %{_mandir}/man1/ktutil.1*
601 %{_mandir}/man8/kadmin.local.8*
602 %{_mandir}/man8/kdb5_util.8*
603 %{_mandir}/man8/kprop.8*
604 %{_mandir}/man8/kproplog.8*
605 %{_mandir}/man8/sserver.8*
606
607 %if %{with ldap}
608 %files server-ldap
609 %defattr(644,root,root,755)
610 %attr(755,root,root) %{_libdir}/krb5/plugins/kdb/kldap.so
611 %attr(755,root,root) %{_libdir}/libkdb_ldap.so.*.*
612 %attr(755,root,root) %ghost %{_libdir}/libkdb_ldap.so.1
613 %attr(755,root,root) %{_libdir}/libkdb_ldap.so
614 %attr(755,root,root) %{_sbindir}/kdb5_ldap_util
615 %{_mandir}/man8/kdb5_ldap_util.8*
616
617 %files -n openldap-schema-krb5
618 %defattr(644,root,root,755)
619 %{schemadir}/kerberos.ldif
620 %{schemadir}/kerberos.schema
621 %endif
622
623 %files server-kdc
624 %defattr(644,root,root,755)
625 %attr(754,root,root) /etc/rc.d/init.d/krb5kdc
626 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/krb5kdc/kdc.conf
627 %attr(755,root,root) %{_sbindir}/krb5kdc
628 %dir %{_libdir}/krb5
629 %dir %{_libdir}/krb5/plugins
630 %if %{with audit}
631 %dir %{_libdir}/krb5/plugins/audit
632 %attr(755,root,root) %{_libdir}/krb5/plugins/audit/k5audit.so
633 %endif
634 %dir %{_libdir}/krb5/plugins/kdb
635 %attr(755,root,root) %{_libdir}/krb5/plugins/kdb/db2.so
636 %attr(755,root,root) %{_libdir}/krb5/plugins/kdb/klmdb.so
637 %dir %{_libdir}/krb5/plugins/preauth
638 %attr(755,root,root) %{_libdir}/krb5/plugins/preauth/otp.so
639 %attr(755,root,root) %{_libdir}/krb5/plugins/preauth/pkinit.so
640 %attr(755,root,root) %{_libdir}/krb5/plugins/preauth/spake.so
641 %dir %{_libdir}/krb5/plugins/tls
642 %attr(755,root,root) %{_libdir}/krb5/plugins/tls/k5tls.so
643 %{_mandir}/man5/kdc.conf.5*
644 %{_mandir}/man8/krb5kdc.8*
645
646 %files server-kadmind
647 %defattr(644,root,root,755)
648 %attr(754,root,root) /etc/rc.d/init.d/kadmind
649 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/krb5kdc/kadm5.acl
650 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/krb5kdc/kadm5.dict
651 %attr(755,root,root) %{_sbindir}/kadmind
652 %{_mandir}/man5/kadm5.acl.5*
653 %{_mandir}/man8/kadmind.8*
654
655 %files server-kpropd
656 %defattr(644,root,root,755)
657 %attr(754,root,root) /etc/rc.d/init.d/kpropd
658 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/krb5kdc/kpropd.acl
659 %attr(755,root,root) %{_sbindir}/kpropd
660 %{_mandir}/man8/kpropd.8*
661
662 %files client
663 %defattr(644,root,root,755)
664 %attr(755,root,root) /etc/shrc.d/kerberos.*
665
666 %attr(755,root,root) %{_bindir}/gss-client
667 %attr(755,root,root) %{_bindir}/kdestroy
668 %attr(755,root,root) %{_bindir}/kinit
669 %attr(755,root,root) %{_bindir}/klist
670 %attr(755,root,root) %{_bindir}/kpasswd
671 %attr(4755,root,root) %{_bindir}/ksu
672 %attr(755,root,root) %{_bindir}/kswitch
673 %attr(755,root,root) %{_bindir}/kvno
674 %attr(755,root,root) %{_bindir}/sclient
675 %attr(755,root,root) %{_bindir}/sim_client
676 %attr(755,root,root) %{_bindir}/uuclient
677
678 %{_mandir}/man1/kdestroy.1*
679 %{_mandir}/man1/kinit.1*
680 %{_mandir}/man1/klist.1*
681 %{_mandir}/man1/kpasswd.1*
682 %{_mandir}/man1/ksu.1*
683 %{_mandir}/man1/kswitch.1*
684 %{_mandir}/man1/kvno.1*
685 %{_mandir}/man1/sclient.1*
686 %{_mandir}/man5/.k5identity.5*
687 %{_mandir}/man5/.k5login.5*
688 %{_mandir}/man5/k5identity.5*
689 %{_mandir}/man5/k5login.5*
690
691 %files common
692 %defattr(644,root,root,755)
693 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/krb5.conf
694 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/krb5.keytab
695 %{_mandir}/man5/krb5.conf.5*
696 %{_mandir}/man7/kerberos.7*
697
698 %files libs -f mit-krb5.lang
699 %defattr(644,root,root,755)
700 %doc NOTICE README
701 %attr(755,root,root) %{_libdir}/libgssapi_krb5.so.*.*
702 %attr(755,root,root) %ghost %{_libdir}/libgssapi_krb5.so.2
703 %attr(755,root,root) %{_libdir}/libgssrpc.so.*.*
704 %attr(755,root,root) %ghost %{_libdir}/libgssrpc.so.4
705 %attr(755,root,root) %{_libdir}/libk5crypto.so.*.*
706 %attr(755,root,root) %ghost %{_libdir}/libk5crypto.so.3
707 %attr(755,root,root) %{_libdir}/libkadm5clnt_mit.so.*.*
708 %attr(755,root,root) %ghost %{_libdir}/libkadm5clnt_mit.so.12
709 %attr(755,root,root) %{_libdir}/libkadm5srv_mit.so.*.*
710 %attr(755,root,root) %ghost %{_libdir}/libkadm5srv_mit.so.12
711 %attr(755,root,root) %{_libdir}/libkdb5.so.*.*
712 %attr(755,root,root) %ghost %{_libdir}/libkdb5.so.10
713 %attr(755,root,root) %{_libdir}/libkrad.so.*.*
714 %attr(755,root,root) %ghost %{_libdir}/libkrad.so.0
715 %attr(755,root,root) %{_libdir}/libkrb5.so.*.*
716 %attr(755,root,root) %ghost %{_libdir}/libkrb5.so.3
717 %attr(755,root,root) %{_libdir}/libkrb5support.so.*.*
718 %attr(755,root,root) %ghost %{_libdir}/libkrb5support.so.0
719
720 %files devel
721 %defattr(644,root,root,755)
722 %attr(755,root,root) %{_bindir}/krb5-config
723 %attr(755,root,root) %{_libdir}/libgssapi_krb5.so
724 %attr(755,root,root) %{_libdir}/libgssrpc.so
725 %attr(755,root,root) %{_libdir}/libk5crypto.so
726 %attr(755,root,root) %{_libdir}/libkadm5clnt_mit.so
727 %attr(755,root,root) %{_libdir}/libkadm5clnt.so
728 %attr(755,root,root) %{_libdir}/libkadm5srv_mit.so
729 %attr(755,root,root) %{_libdir}/libkadm5srv.so
730 %attr(755,root,root) %{_libdir}/libkdb5.so
731 %attr(755,root,root) %{_libdir}/libkrad.so
732 %attr(755,root,root) %{_libdir}/libkrb5.so
733 %attr(755,root,root) %{_libdir}/libkrb5support.so
734 %{_includedir}/gssapi
735 %{_includedir}/gssrpc
736 %{_includedir}/kadm5
737 %{_includedir}/krb5
738 %{_includedir}/gssapi.h
739 %{_includedir}/kdb.h
740 %{_includedir}/krad.h
741 %{_includedir}/krb5.h
742 %{_includedir}/profile.h
743 %{_pkgconfigdir}/gssrpc.pc
744 %{_pkgconfigdir}/kadm-client.pc
745 %{_pkgconfigdir}/kadm-server.pc
746 %{_pkgconfigdir}/kdb.pc
747 %{_pkgconfigdir}/krb5.pc
748 %{_pkgconfigdir}/krb5-gssapi.pc
749 %{_pkgconfigdir}/mit-krb5.pc
750 %{_pkgconfigdir}/mit-krb5-gssapi.pc
751 %{_mandir}/man1/krb5-config.1*
752
753 %files doc
754 %defattr(644,root,root,755)
755 %doc doc/html/*
This page took 1.054036 seconds and 3 git commands to generate.