1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
7 version = %{ver_maj}.%{ver_min}
12 groups = System/Libraries
13 url = https://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 source_dl = https://web.mit.edu/kerberos/dist/krb5/%{ver_maj}/
45 configure_options += \
48 --localstatedir=/var/kerberos \
51 --with-netlib=-lresolv \
53 --enable-dns-for-realm \
56 --with-crypto-impl=openssl \
65 make %{PARALLELISMFLAGS}
70 make -C src install DESTDIR=%{BUILDROOT}
72 # Sample KDC config files (bundled kdc.conf and kadm5.acl).
73 mkdir -pv %{BUILDROOT}%{localstatedir}/kerberos/krb5kdc
74 install -pm 600 %{DIR_SOURCE}/kdc.conf %{BUILDROOT}%{localstatedir}/kerberos/krb5kdc/
75 install -pm 600 %{DIR_SOURCE}/kadm5.acl %{BUILDROOT}%{localstatedir}/kerberos/krb5kdc/
77 # Default configuration file for everything.
78 mkdir -pv %{BUILDROOT}/etc
79 install -pm 644 %{DIR_SOURCE}/krb5.conf %{BUILDROOT}/etc/krb5.conf
81 # Plug-in directories.
82 install -pdm 755 %{BUILDROOT}%{libdir}/krb5/plugins/preauth
83 install -pdm 755 %{BUILDROOT}%{libdir}/krb5/plugins/kdb
84 install -pdm 755 %{BUILDROOT}%{libdir}/krb5/plugins/authdata
89 package %{name}-server
90 summary = The KDC and related programs for Kerberos 5.
92 Kerberos is a network authentication system. The krb5-server package
93 contains the programs that must be installed on a Kerberos 5 key
94 distribution center (KDC). If you are installing a Kerberos 5 KDC,
95 you need to install this package.
99 %{name}-libs = %{thisver}
103 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
107 /usr/bin/systemctl --no-reload disable kadmin.service >/dev/null 2>&1 || :
108 /usr/bin/systemctl --no-reload disable kprop.service >/dev/null 2>&1 || :
109 /usr/bin/systemctl --no-reload disable krb5kdc.service >/dev/null 2>&1 || :
110 /usr/bin/systemctl stop kadmin.service >/dev/null 2>&1 || :
111 /usr/bin/systemctl stop kprop.service >/dev/null 2>&1 || :
112 /usr/bin/systemctl stop krb5kdc.service >/dev/null 2>&1 || :
116 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
120 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
121 /usr/bin/systemctl try-restart kadmin.service >/dev/null 2>&1 || :
122 /usr/bin/systemctl try-restart kprop.service >/dev/null 2>&1 || :
123 /usr/bin/systemctl try-restart krb5kdc.service >/dev/null 2>&1 || :
127 package %{name}-workstation
128 summary = Kerberos 5 programs for use on workstations.
130 Kerberos is a network authentication system. The krb5-workstation
131 package contains the basic Kerberos programs (kinit, klist, kdestroy,
132 kpasswd). If your network uses Kerberos, this package should be
133 installed on every workstation.
137 %{name}-libs = %{thisver}
151 %{bindir}/krb5-send-pr
155 %{mandir}/man1/kdestroy.*
156 %{mandir}/man1/kinit.*
157 %{mandir}/man1/klist.*
158 %{mandir}/man1/kpassword.*
159 %{mandir}/man1/kswitch.*
160 %{mandir}/man1/kvno.*
161 %{mandir}/man1/kadmin.*
162 %{mandir}/man1/k5srvutil.*
163 %{mandir}/man1/kutil.*
172 package %{name}-devel
180 package %{name}-debuginfo