1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
7 version = %{version_maj}.%{version_min}
12 groups = System/Libraries
13 url = http://web.mit.edu/kerberos/www/
15 summary = The Kerberos network authentication system.
18 Kerberos V5 is a trusted-third-party network authentication system,
19 which can improve your network's security by eliminating the insecure
20 practice of sending passwords over the network in unencrypted form.
23 # Upstream only provides a "signed" tarball which contains the actual
25 #source_dl = http://we1b.mit.edu/kerberos/dist/krb5/%{version_maj}/
26 #sources = %{thisapp}-signed.tar
30 krb5-1.10.2-manpaths.patch
31 krb5-1.10.2-selinux-label.patch
33 krb5-1.3.4-send-pr-tempfile.patch
36 krb5-1.9-debuginfo.patch0
37 krb5-1.9-dirsrv-accountlock.patch
38 krb5-1.10-buildconf.patch
39 krb5-1.10-doublelog.patch
40 krb5-1.10-gcc47.patch0
41 krb5-1.10-kpasswd_tcp.patch
42 krb5-1.10-kprop-mktemp.patch
43 krb5-1.10-ksu-access.patch
44 krb5-1.10-ksu-path.patch
45 krb5-1.10.2-keytab-etype.patch
46 krb5-kvno-230379.patch
51 krb5-trunk-pkinit-anchorsign.patch
76 for file in appl/sample/sserver/sserver.M \
77 config-files/kdc.conf.M \
78 config-files/krb5.conf.M \
79 gen-manpages/kerberos.M \
83 mv -v ${file} ${file}.in
86 rm -vf lib/krb5/krb/deltat.c
88 # Regenerate configure scripts.
94 configure_options += \
97 --localstatedir=/var/kerberos \
100 --with-netlib=-lresolv \
102 --enable-dns-for-realm \
105 --with-crypto-impl=openssl \
109 # Don't use strlcpy that comes with glibc.
110 configure_options += \
111 ac_cv_func_strlcpy=no
118 make %{PARALLELISMFLAGS}
122 make -C src fake-install
125 # Disable the following tests, because the don't work in the chroot env.
126 #make -C src/lib check TMPDIR=${tmpdir}
127 #make -C src/kdc check TMPDIR=${tmpdir}
132 make -C src install DESTDIR=%{BUILDROOT}
134 # Sample KDC config files (bundled kdc.conf and kadm5.acl).
135 mkdir -pv %{BUILDROOT}%{localstatedir}/kerberos/krb5kdc
136 install -pm 600 %{DIR_SOURCE}/kdc.conf %{BUILDROOT}%{localstatedir}/kerberos/krb5kdc/
137 install -pm 600 %{DIR_SOURCE}/kadm5.acl %{BUILDROOT}%{localstatedir}/kerberos/krb5kdc/
139 # Default configuration file for everything.
140 mkdir -pv %{BUILDROOT}/etc
141 install -pm 644 %{DIR_SOURCE}/krb5.conf %{BUILDROOT}/etc/krb5.conf
143 # Plug-in directories.
144 install -pdm 755 %{BUILDROOT}%{libdir}/krb5/plugins/preauth
145 install -pdm 755 %{BUILDROOT}%{libdir}/krb5/plugins/kdb
146 install -pdm 755 %{BUILDROOT}%{libdir}/krb5/plugins/authdata
151 package %{name}-server
152 summary = The KDC and related programs for Kerberos 5.
154 Kerberos is a network authentication system. The krb5-server package
155 contains the programs that must be installed on a Kerberos 5 key
156 distribution center (KDC). If you are installing a Kerberos 5 KDC,
157 you need to install this package.
161 %{name}-libs = %{thisver}
165 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
169 /usr/bin/systemctl --no-reload disable kadmin.service >/dev/null 2>&1 || :
170 /usr/bin/systemctl --no-reload disable kprop.service >/dev/null 2>&1 || :
171 /usr/bin/systemctl --no-reload disable krb5kdc.service >/dev/null 2>&1 || :
172 /usr/bin/systemctl stop kadmin.service >/dev/null 2>&1 || :
173 /usr/bin/systemctl stop kprop.service >/dev/null 2>&1 || :
174 /usr/bin/systemctl stop krb5kdc.service >/dev/null 2>&1 || :
178 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
182 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
183 /usr/bin/systemctl try-restart kadmin.service >/dev/null 2>&1 || :
184 /usr/bin/systemctl try-restart kprop.service >/dev/null 2>&1 || :
185 /usr/bin/systemctl try-restart krb5kdc.service >/dev/null 2>&1 || :
189 package %{name}-workstation
190 summary = Kerberos 5 programs for use on workstations.
192 Kerberos is a network authentication system. The krb5-workstation
193 package contains the basic Kerberos programs (kinit, klist, kdestroy,
194 kpasswd). If your network uses Kerberos, this package should be
195 installed on every workstation.
199 %{name}-libs = %{thisver}
213 %{bindir}/krb5-send-pr
217 %{mandir}/man1/kdestroy.*
218 %{mandir}/man1/kinit.*
219 %{mandir}/man1/klist.*
220 %{mandir}/man1/kpassword.*
221 %{mandir}/man1/kswitch.*
222 %{mandir}/man1/kvno.*
223 %{mandir}/man1/kadmin.*
224 %{mandir}/man1/k5srvutil.*
225 %{mandir}/man1/kutil.*
234 package %{name}-devel
242 package %{name}-debuginfo