]> git.ipfire.org Git - ipfire-3.x.git/blame - krb5/krb5.nm
krb5: Update to 1.20.1
[ipfire-3.x.git] / krb5 / krb5.nm
CommitLineData
6cf77d05
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = krb5
8e2205ea
MT
7version = %{ver_maj}.%{ver_min}
8ver_maj = 1.20
9ver_min = 1
10release = 1
6cf77d05
SS
11
12groups = System/Libraries
8e2205ea 13url = https://web.mit.edu/kerberos/www/
6cf77d05
SS
14license = MIT
15summary = The Kerberos network authentication system.
16
17description
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.
21end
22
8e2205ea 23source_dl = https://web.mit.edu/kerberos/dist/krb5/%{ver_maj}/
6cf77d05
SS
24
25build
26 requires
27 autoconf
28 automake
6ea98370 29 bison >= 3.0.4-2
6cf77d05 30 dejagnu
6cf77d05
SS
31 flex
32 gettext
fe9ae676 33 libcom_err-devel
fe9ae676 34 libss-devel
6cf77d05
SS
35 ncurses-devel
36 openldap-devel
37 openssl-devel
38 pam-devel
39 perl
40 systemd-units
41 tcl-devel
42 texinfo
43 end
44
6cf77d05
SS
45 configure_options += \
46 --enable-shared \
47 --disable-rpath \
48 --localstatedir=/var/kerberos \
49 --with-system-et \
50 --with-system-ss \
51 --with-netlib=-lresolv \
52 --with-tcl \
53 --enable-dns-for-realm \
54 --with-dirsrv \
55 --enable-pkinit \
56 --with-crypto-impl=openssl \
6ea98370 57 --with-pam
6cf77d05 58
6cf77d05
SS
59 build
60 cd %{DIR_APP}/src
6ea98370 61
6cf77d05
SS
62 ./configure \
63 %{configure_options}
64
65 make %{PARALLELISMFLAGS}
66 end
67
6cf77d05 68 install
8e2205ea 69 # Install krb5
6cf77d05
SS
70 make -C src install DESTDIR=%{BUILDROOT}
71
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/
76
77 # Default configuration file for everything.
78 mkdir -pv %{BUILDROOT}/etc
79 install -pm 644 %{DIR_SOURCE}/krb5.conf %{BUILDROOT}/etc/krb5.conf
80
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
85 end
86end
87
88packages
89 package %{name}-server
90 summary = The KDC and related programs for Kerberos 5.
91 description
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.
96 end
97
98 requires
99 %{name}-libs = %{thisver}
100 end
101
102 script postin
103 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
104 end
105
106 script preun
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 || :
113 end
114
115 script postun
116 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
117 end
118
119 script postup
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 || :
124 end
125 end
126
127 package %{name}-workstation
128 summary = Kerberos 5 programs for use on workstations.
129 description
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.
134 end
135
136 requires
137 %{name}-libs = %{thisver}
138 end
139
140 files
141 %{bindir}/kdestroy
142 %{bindir}/kinit
143 %{bindir}/klist
144 %{bindir}/kpassword
145 %{bindir}/kswitch
146 %{bindir}/kvno
147 %{bindir}/kadmin
148 %{bindir}/k5srvutil
149 %{bindir}/kutil
150 %{bindir}/ksu
151 %{bindir}/krb5-send-pr
152
153 %{sysconfdir}/pam.d
154
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.*
164 %{mandir}/man1/ksu.*
165 end
166 end
167
168 package %{name}-libs
169 template LIBS
170 end
171
172 package %{name}-devel
173 template DEVEL
174
175 requires
fe9ae676 176 libcom_err-devel
6cf77d05
SS
177 end
178 end
179
180 package %{name}-debuginfo
181 template DEBUGINFO
182 end
183end