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}
8 version = %{version_maj}
13 groups = System/Libraries
14 url = http://web.mit.edu/kerberos/www/
16 summary = The Kerberos network authentication system.
19 Kerberos V5 is a trusted-third-party network authentication system,
20 which can improve your network's security by eliminating the insecure
21 practice of sending passwords over the network in unencrypted form.
24 source_dl = http://web.mit.edu/kerberos/dist/krb5/%{version_maj}/
46 configure_options += \
49 --localstatedir=/var/kerberos \
52 --with-netlib=-lresolv \
54 --enable-dns-for-realm \
57 --with-crypto-impl=openssl \
60 # Don't use strlcpy that comes with glibc.
61 configure_options += \
70 make %{PARALLELISMFLAGS}
75 make -C src install DESTDIR=%{BUILDROOT}
77 # Sample KDC config files (bundled kdc.conf and kadm5.acl).
78 mkdir -pv %{BUILDROOT}%{localstatedir}/kerberos/krb5kdc
79 install -pm 600 %{DIR_SOURCE}/kdc.conf %{BUILDROOT}%{localstatedir}/kerberos/krb5kdc/
80 install -pm 600 %{DIR_SOURCE}/kadm5.acl %{BUILDROOT}%{localstatedir}/kerberos/krb5kdc/
82 # Default configuration file for everything.
83 mkdir -pv %{BUILDROOT}/etc
84 install -pm 644 %{DIR_SOURCE}/krb5.conf %{BUILDROOT}/etc/krb5.conf
86 # Plug-in directories.
87 install -pdm 755 %{BUILDROOT}%{libdir}/krb5/plugins/preauth
88 install -pdm 755 %{BUILDROOT}%{libdir}/krb5/plugins/kdb
89 install -pdm 755 %{BUILDROOT}%{libdir}/krb5/plugins/authdata
94 package %{name}-server
95 summary = The KDC and related programs for Kerberos 5.
97 Kerberos is a network authentication system. The krb5-server package
98 contains the programs that must be installed on a Kerberos 5 key
99 distribution center (KDC). If you are installing a Kerberos 5 KDC,
100 you need to install this package.
104 %{name}-libs = %{thisver}
108 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
112 /usr/bin/systemctl --no-reload disable kadmin.service >/dev/null 2>&1 || :
113 /usr/bin/systemctl --no-reload disable kprop.service >/dev/null 2>&1 || :
114 /usr/bin/systemctl --no-reload disable krb5kdc.service >/dev/null 2>&1 || :
115 /usr/bin/systemctl stop kadmin.service >/dev/null 2>&1 || :
116 /usr/bin/systemctl stop kprop.service >/dev/null 2>&1 || :
117 /usr/bin/systemctl stop krb5kdc.service >/dev/null 2>&1 || :
121 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
125 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
126 /usr/bin/systemctl try-restart kadmin.service >/dev/null 2>&1 || :
127 /usr/bin/systemctl try-restart kprop.service >/dev/null 2>&1 || :
128 /usr/bin/systemctl try-restart krb5kdc.service >/dev/null 2>&1 || :
132 package %{name}-workstation
133 summary = Kerberos 5 programs for use on workstations.
135 Kerberos is a network authentication system. The krb5-workstation
136 package contains the basic Kerberos programs (kinit, klist, kdestroy,
137 kpasswd). If your network uses Kerberos, this package should be
138 installed on every workstation.
142 %{name}-libs = %{thisver}
156 %{bindir}/krb5-send-pr
160 %{mandir}/man1/kdestroy.*
161 %{mandir}/man1/kinit.*
162 %{mandir}/man1/klist.*
163 %{mandir}/man1/kpassword.*
164 %{mandir}/man1/kswitch.*
165 %{mandir}/man1/kvno.*
166 %{mandir}/man1/kadmin.*
167 %{mandir}/man1/k5srvutil.*
168 %{mandir}/man1/kutil.*
177 package %{name}-devel
185 package %{name}-debuginfo