]> git.ipfire.org Git - ipfire-3.x.git/blob - krb5/krb5.nm
krb5: Drop logrotate configuration
[ipfire-3.x.git] / krb5 / krb5.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = krb5
7 version = %{ver_maj}.%{ver_min}
8 ver_maj = 1.20
9 ver_min = 1
10 release = 2
11
12 groups = System/Libraries
13 url = https://web.mit.edu/kerberos/www/
14 license = MIT
15 summary = The Kerberos network authentication system.
16
17 description
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.
21 end
22
23 source_dl = https://web.mit.edu/kerberos/dist/krb5/%{ver_maj}/
24
25 build
26 requires
27 autoconf
28 automake
29 bison >= 3.0.4-2
30 dejagnu
31 flex
32 gettext
33 libcom_err-devel
34 libss-devel
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
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 \
57 --with-pam
58
59 build
60 cd %{DIR_APP}/src
61
62 ./configure \
63 %{configure_options}
64
65 make %{PARALLELISMFLAGS}
66 end
67
68 install
69 # Install krb5
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
86 end
87
88 packages
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
176 libcom_err-devel
177 end
178 end
179
180 package %{name}-debuginfo
181 template DEBUGINFO
182 end
183 end