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
77 for file in appl/sample/sserver/sserver.M \
78 config-files/kdc.conf.M \
79 config-files/krb5.conf.M \
80 gen-manpages/kerberos.M \
84 mv -v ${file} ${file}.in
87 rm -vf lib/krb5/krb/deltat.c
89 # Regenerate configure scripts.
95 configure_options += \
98 --localstatedir=/var/kerberos \
101 --with-netlib=-lresolv \
103 --enable-dns-for-realm \
106 --with-crypto-impl=openssl \
110 # Don't use strlcpy that comes with glibc.
111 configure_options += \
112 ac_cv_func_strlcpy=no
119 make %{PARALLELISMFLAGS}
123 make -C src fake-install
126 # Disable the following tests, because the don't work in the chroot env.
127 #make -C src/lib check TMPDIR=${tmpdir}
128 #make -C src/kdc check TMPDIR=${tmpdir}
133 make -C src install DESTDIR=%{BUILDROOT}
135 # Sample KDC config files (bundled kdc.conf and kadm5.acl).
136 mkdir -pv %{BUILDROOT}%{localstatedir}/kerberos/krb5kdc
137 install -pm 600 %{DIR_SOURCE}/kdc.conf %{BUILDROOT}%{localstatedir}/kerberos/krb5kdc/
138 install -pm 600 %{DIR_SOURCE}/kadm5.acl %{BUILDROOT}%{localstatedir}/kerberos/krb5kdc/
140 # Default configuration file for everything.
141 mkdir -pv %{BUILDROOT}/etc
142 install -pm 644 %{DIR_SOURCE}/krb5.conf %{BUILDROOT}/etc/krb5.conf
144 # Plug-in directories.
145 install -pdm 755 %{BUILDROOT}%{libdir}/krb5/plugins/preauth
146 install -pdm 755 %{BUILDROOT}%{libdir}/krb5/plugins/kdb
147 install -pdm 755 %{BUILDROOT}%{libdir}/krb5/plugins/authdata
152 package %{name}-server
153 summary = The KDC and related programs for Kerberos 5.
155 Kerberos is a network authentication system. The krb5-server package
156 contains the programs that must be installed on a Kerberos 5 key
157 distribution center (KDC). If you are installing a Kerberos 5 KDC,
158 you need to install this package.
162 %{name}-libs = %{thisver}
166 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
170 /usr/bin/systemctl --no-reload disable kadmin.service >/dev/null 2>&1 || :
171 /usr/bin/systemctl --no-reload disable kprop.service >/dev/null 2>&1 || :
172 /usr/bin/systemctl --no-reload disable krb5kdc.service >/dev/null 2>&1 || :
173 /usr/bin/systemctl stop kadmin.service >/dev/null 2>&1 || :
174 /usr/bin/systemctl stop kprop.service >/dev/null 2>&1 || :
175 /usr/bin/systemctl stop krb5kdc.service >/dev/null 2>&1 || :
179 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
183 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
184 /usr/bin/systemctl try-restart kadmin.service >/dev/null 2>&1 || :
185 /usr/bin/systemctl try-restart kprop.service >/dev/null 2>&1 || :
186 /usr/bin/systemctl try-restart krb5kdc.service >/dev/null 2>&1 || :
190 package %{name}-workstation
191 summary = Kerberos 5 programs for use on workstations.
193 Kerberos is a network authentication system. The krb5-workstation
194 package contains the basic Kerberos programs (kinit, klist, kdestroy,
195 kpasswd). If your network uses Kerberos, this package should be
196 installed on every workstation.
200 %{name}-libs = %{thisver}
214 %{bindir}/krb5-send-pr
218 %{mandir}/man1/kdestroy.*
219 %{mandir}/man1/kinit.*
220 %{mandir}/man1/klist.*
221 %{mandir}/man1/kpassword.*
222 %{mandir}/man1/kswitch.*
223 %{mandir}/man1/kvno.*
224 %{mandir}/man1/kadmin.*
225 %{mandir}/man1/k5srvutil.*
226 %{mandir}/man1/kutil.*
235 package %{name}-devel
244 package %{name}-debuginfo