]>
Commit | Line | Data |
---|---|---|
a4700f8f JK |
1 | # Conditional build: |
2 | %bcond_without ldap # without rlm_ldap extension module | |
3 | %bcond_without firebird # without rlm_sql_firebird extension module | |
4 | %bcond_without eap_ikev2 # without rlm_eap_ikev2 extension module | |
4b0dd049 | 5 | %bcond_without kerberos5 # without rlm_krb5 extension module |
1e3234c1 | 6 | %bcond_without ruby # without rlm_ruby extension module |
7d859cd4 | 7 | %bcond_with failed_calls_acc # with failed calls accounting support |
a4700f8f | 8 | # |
b3332a9e | 9 | %include /usr/lib/rpm/macros.perl |
10 | # | |
11 | Summary: High-performance and highly configurable RADIUS server | |
12 | Summary(pl.UTF-8): Szybki i wysoce konfigurowalny serwer RADIUS | |
13 | Name: freeradius-server | |
d3389635 | 14 | Version: 2.1.10 |
a7a1b209 | 15 | Release: 2 |
b3332a9e | 16 | License: GPL |
0a62ea03 | 17 | Group: Networking/Daemons/Radius |
b3332a9e | 18 | Source0: ftp://ftp.freeradius.org/pub/radius/%{name}-%{version}.tar.bz2 |
d3389635 | 19 | # Source0-md5: 8ea2bd39460a06212decf2c14fdf3fb8 |
b3332a9e | 20 | Source1: %{name}.logrotate |
21 | Source2: %{name}.init | |
22 | Source3: %{name}.pam | |
23 | Patch0: %{name}-config.patch | |
24 | Patch1: %{name}-libdir.patch | |
25 | Patch2: %{name}-makefile.patch | |
26 | Patch3: %{name}-rundir.patch | |
33988453 | 27 | Patch4: %{name}-heimdal.patch |
ab64f8e9 | 28 | Patch5: %{name}-rubyhdrs.patch |
7d859cd4 MM |
29 | # Patch taken from http://download.ag-projects.com/CDRTool/contrib/freeradius-brandinger/ |
30 | Patch6: failed_calls_accounting.patch | |
b3332a9e | 31 | URL: http://www.freeradius.org/ |
a4700f8f | 32 | %{?with_firebird:BuildRequires: Firebird-devel} |
b3332a9e | 33 | BuildRequires: autoconf |
34 | BuildRequires: automake | |
35 | BuildRequires: cyrus-sasl-devel | |
36 | BuildRequires: gdbm-devel | |
ca97ebf4 | 37 | %{?with_kerberos5:BuildRequires: heimdal-devel} |
a4700f8f | 38 | %{?with_eap_ikev2:BuildRequires: libeap-ikev2-devel} |
b3332a9e | 39 | BuildRequires: libtool |
b3332a9e | 40 | BuildRequires: mysql-devel |
49a13568 | 41 | BuildRequires: net-snmp-utils |
a4700f8f | 42 | %{?with_ldap:BuildRequires: openldap-devel} |
b3332a9e | 43 | BuildRequires: openssl-devel |
44 | BuildRequires: pam-devel | |
45 | BuildRequires: perl-devel | |
46 | BuildRequires: postgresql-devel | |
47 | BuildRequires: python-devel | |
06e59fe8 | 48 | BuildRequires: rpm-perlprov |
b3332a9e | 49 | BuildRequires: rpmbuild(macros) >= 1.268 |
1e3234c1 | 50 | %{?with_ruby:BuildRequires: ruby-devel >= 1.8} |
b3332a9e | 51 | BuildRequires: sqlite3-devel |
52 | BuildRequires: unixODBC-devel | |
53 | Requires(post,preun): /sbin/chkconfig | |
54 | Requires(postun): /usr/sbin/groupdel | |
55 | Requires(postun): /usr/sbin/userdel | |
56 | Requires(pre): /bin/id | |
57 | Requires(pre): /usr/bin/getgid | |
58 | Requires(pre): /usr/sbin/groupadd | |
59 | Requires(pre): /usr/sbin/useradd | |
60 | Requires(pre): /usr/sbin/usermod | |
1e6843ce | 61 | Requires: %{name}-libs = %{version}-%{release} |
0b66b0a3 | 62 | Requires: openssl-tools |
49a13568 | 63 | Requires: rc-scripts |
64 | Provides: freeradius = %{version}-%{release} | |
b3332a9e | 65 | Provides: group(radius) |
66 | Provides: user(radius) | |
67 | Obsoletes: cistron-radius | |
80f87d24 | 68 | Obsoletes: freeradius < 2.0 |
b3332a9e | 69 | Conflicts: logrotate < 3.7-4 |
b3332a9e | 70 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
71 | ||
6800c825 | 72 | %define mibdir %{_datadir}/mibs |
8d938523 | 73 | %define filterout_ld -Wl,--as-needed |
10649a33 | 74 | |
b3332a9e | 75 | %description |
76 | The FreeRADIUS Server Project is an attempt to create a | |
77 | high-performance and highly configurable GPL'd RADIUS server. It is | |
78 | generally similar to the Livingston 2.0 RADIUS server, but has a lot | |
79 | more features, and is much more configurable. | |
80 | ||
81 | %description -l pl.UTF-8 | |
82 | Projekt FreeRadius ma na celu stworzenie szybkiego i wysoce | |
83 | konfigurowalnego serwera RADIUS na licencji GPL. Ten jest podobny do | |
84 | Livingston 2.0 RADIUS server ale ma o wiele więcej funkcji i posiada | |
85 | większe możliwości konfigurowania. | |
86 | ||
36336d0b PG |
87 | %package module-krb5 |
88 | Summary: Kerberos module for %{name} | |
89 | Group: Networking/Daemons/Radius | |
90 | Requires: %{name} = %{version}-%{release} | |
91 | ||
92 | %description module-krb5 | |
93 | Kerberos module for %{name}. | |
94 | ||
95 | %package module-ldap | |
96 | Summary: LDAP module for %{name} | |
97 | Group: Networking/Daemons/Radius | |
98 | Requires: %{name} = %{version}-%{release} | |
99 | ||
100 | %description module-ldap | |
101 | LDAP module for %{name}. | |
102 | ||
42573dc2 PG |
103 | %package module-mysql |
104 | Summary: Mysql module for %{name} | |
105 | Group: Networking/Daemons/Radius | |
106 | Requires: %{name} = %{version}-%{release} | |
107 | ||
108 | %description module-mysql | |
109 | Mysql module for %{name}. | |
110 | ||
36336d0b PG |
111 | %package module-otp |
112 | Summary: OTP module for %{name} | |
42573dc2 PG |
113 | Group: Networking/Daemons/Radius |
114 | Requires: %{name} = %{version}-%{release} | |
115 | ||
36336d0b PG |
116 | %description module-otp |
117 | OTP module for %{name}. | |
118 | ||
119 | %package module-pam | |
120 | Summary: PAM module for %{name} | |
121 | Group: Networking/Daemons/Radius | |
122 | Requires: %{name} = %{version}-%{release} | |
123 | ||
124 | %description module-pam | |
125 | PAM module for %{name}. | |
126 | ||
127 | %package module-perl | |
128 | Summary: Perl module for %{name} | |
129 | Group: Networking/Daemons/Radius | |
130 | Requires: %{name} = %{version}-%{release} | |
131 | ||
132 | %description module-perl | |
133 | Perl module for %{name}. | |
42573dc2 PG |
134 | |
135 | %package module-postgresql | |
136 | Summary: PostgreSQL module for %{name} | |
137 | Group: Networking/Daemons/Radius | |
138 | Requires: %{name} = %{version}-%{release} | |
139 | ||
140 | %description module-postgresql | |
141 | PostgreSQL module for %{name}. | |
142 | ||
36336d0b PG |
143 | %package module-python |
144 | Summary: Python module for %{name} | |
145 | Group: Networking/Daemons/Radius | |
146 | Requires: %{name} = %{version}-%{release} | |
147 | ||
148 | %description module-python | |
149 | Python module for %{name}. | |
150 | ||
1e3234c1 MM |
151 | %package module-ruby |
152 | Summary: Ruby module for %{name} | |
153 | Group: Networking/Daemons/Radius | |
154 | Requires: %{name} = %{version}-%{release} | |
155 | ||
156 | %description module-ruby | |
157 | Ruby module for %{name}. | |
158 | ||
42573dc2 PG |
159 | %package module-sqlite |
160 | Summary: Sqlite module for %{name} | |
161 | Group: Networking/Daemons/Radius | |
162 | Requires: %{name} = %{version}-%{release} | |
163 | ||
164 | %description module-sqlite | |
165 | Sqlite module for %{name}. | |
166 | ||
7c0821ed PG |
167 | %package module-sql_firebird |
168 | Summary: SQL Firebird module for %{name} | |
169 | Group: Networking/Daemons/Radius | |
170 | Requires: %{name} = %{version}-%{release} | |
171 | ||
172 | %description module-sql_firebird | |
173 | SQL Firebird module for %{name}. | |
174 | ||
36336d0b PG |
175 | %package module-unix |
176 | Summary: Unix module for %{name} | |
177 | Group: Networking/Daemons/Radius | |
178 | Requires: %{name} = %{version}-%{release} | |
179 | ||
180 | %description module-unix | |
181 | Unix module for %{name}. | |
182 | ||
183 | %package module-unixodbc | |
184 | Summary: UnixODBC module for %{name} | |
185 | Group: Networking/Daemons/Radius | |
186 | Requires: %{name} = %{version}-%{release} | |
187 | ||
188 | %description module-unixodbc | |
189 | UnixODBC module for %{name}. | |
190 | ||
6800c825 | 191 | %package -n mibs-%{name} |
49a13568 | 192 | Summary: MIB database for %{name} |
193 | Summary(pl.UTF-8): Baza danych MIB dla %{name} | |
194 | Group: Applications/System | |
6800c825 | 195 | Requires: mibs-dirs |
1e6843ce | 196 | Suggests: libsmi |
6800c825 | 197 | Obsoletes: freeradius-server-mibs |
1e6843ce | 198 | |
6800c825 | 199 | %description -n mibs-%{name} |
1e6843ce PG |
200 | MIB database for %{name}. |
201 | ||
6800c825 | 202 | %description -n mibs-%{name} -l pl.UTF-8 |
1e6843ce PG |
203 | Baza danych MIB dla %{name}. |
204 | ||
1e6843ce PG |
205 | %package libs |
206 | Summary: Freeradius libraries | |
49a13568 | 207 | Group: Libraries |
1e6843ce PG |
208 | |
209 | %description libs | |
210 | Freeradius libraries. | |
211 | ||
212 | %package devel | |
213 | Summary: Header files and devel library | |
49a13568 | 214 | Group: Development/Libraries |
1e6843ce PG |
215 | Requires: %{name}-libs = %{version}-%{release} |
216 | ||
217 | %description devel | |
218 | Header files and libraries. | |
219 | ||
b3332a9e | 220 | %prep |
221 | %setup -q | |
222 | %patch0 -p1 | |
223 | %patch1 -p1 | |
224 | %patch2 -p1 | |
225 | %patch3 -p1 | |
33988453 | 226 | %patch4 -p1 |
ab64f8e9 | 227 | %patch5 -p1 |
7d859cd4 | 228 | %{?with_failed_calls_acc:%patch6 -p0} |
b3332a9e | 229 | |
230 | %build | |
10649a33 | 231 | # Keep it for future when ac/am regeneration will be ok |
ab64f8e9 JR |
232 | find -name 'configure.[ia][nc]' -type f | while read FILE; do |
233 | cd $(dirname "$FILE") | |
234 | %{__libtoolize} | |
235 | %{__aclocal} -I $OLDPWD | |
236 | %{__autoconf} | |
237 | [ -f config.h.in ] && %{__autoheader} | |
238 | cd - | |
239 | done | |
b3332a9e | 240 | |
b3332a9e | 241 | %configure \ |
242 | --enable-strict-dependencies \ | |
243 | --with-experimental-modules \ | |
244 | --with-logdir=%{_var}/log/freeradius \ | |
d3389635 | 245 | --with-system-libltdl \ |
b3332a9e | 246 | --with-system-libtool \ |
8acbb921 | 247 | --with-udpfromto \ |
7fd3fae8 | 248 | --without-rlm_eap_tnc \ |
b3332a9e | 249 | --without-rlm_opendirectory \ |
250 | --without-rlm_sql_db2 \ | |
251 | --without-rlm_sql_iodbc \ | |
a4700f8f JK |
252 | --without-rlm_sql_oracle \ |
253 | %{!?with_firebird:--without-rlm_sql_firebird} \ | |
254 | %{!?with_ldap:--without-rlm_ldap} \ | |
255 | %{!?with_eap_ikev2:--without-rlm_eap_ikev2} \ | |
41a159c9 | 256 | %{?with_kerberos5:--enable-heimdal-krb5} \ |
1e3234c1 MM |
257 | %{!?with_kerberos5:--without-rlm_krb5} \ |
258 | %{!?with_ruby:--without-rlm_ruby} | |
b3332a9e | 259 | |
260 | %{make} -j1 | |
261 | ||
262 | %install | |
263 | rm -rf $RPM_BUILD_ROOT | |
10649a33 | 264 | install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d} \ |
1e6843ce PG |
265 | $RPM_BUILD_ROOT%{_var}/log/{,archive}/freeradius/radacct \ |
266 | $RPM_BUILD_ROOT%{mibdir} | |
b3332a9e | 267 | |
268 | %{__make} -j1 install \ | |
269 | R=$RPM_BUILD_ROOT | |
270 | ||
b3332a9e | 271 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} |
b3332a9e | 272 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
b3332a9e | 273 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/radius |
274 | ||
1e6843ce PG |
275 | # Install mibs: |
276 | install mibs/FREERADIUS-*.txt $RPM_BUILD_ROOT%{mibdir} | |
277 | ||
10649a33 PG |
278 | # Cleanups: |
279 | rm -rf $RPM_BUILD_ROOT%{_docdir}/freeradius \ | |
280 | $RPM_BUILD_ROOT%{_libdir}/*.{a,la} \ | |
281 | $RPM_BUILD_ROOT%{_libdir}/freeradius/*.a \ | |
282 | $RPM_BUILD_ROOT%{_sbindir}/rc.* \ | |
42573dc2 PG |
283 | $RPM_BUILD_ROOT%{_sysconfdir}/*.pl \ |
284 | $RPM_BUILD_ROOT%{_sysconfdir}/raddb/sql/oracle | |
b3332a9e | 285 | |
286 | %clean | |
287 | rm -rf $RPM_BUILD_ROOT | |
288 | ||
289 | %pre | |
290 | %groupadd -g 29 -r -f radius | |
291 | %useradd -u 29 -d %{_localstatedir} -s /bin/false -M -r -c "%{name}" -g radius radius | |
292 | ||
293 | # TODO: should be in trigger instead. | |
294 | # upgrade from previous versions of the package, where radius' gid was "nobody" | |
295 | if [ "`id -g radius`" = "99" ]; then | |
296 | usermod -g 29 radius | |
297 | chown radius:radius /var/log/%{name}/*.log >/dev/null 2>&1 || : | |
298 | chown radius:radius /var/log/%{name}/radacct/* >/dev/null 2>&1 || : | |
299 | fi | |
300 | ||
301 | %post | |
302 | /sbin/chkconfig --add %{name} | |
303 | %service %{name} restart "%{name} daemon" | |
304 | ||
305 | %preun | |
306 | if [ "$1" = "0" ]; then | |
307 | %service %{name} stop | |
308 | /sbin/chkconfig --del %{name} | |
309 | fi | |
310 | ||
311 | %postun | |
312 | if [ "$1" = "0" ]; then | |
313 | %userremove radius | |
314 | %groupremove radius | |
315 | fi | |
316 | ||
1cadd3e8 PG |
317 | %post libs -p /sbin/ldconfig |
318 | %postun libs -p /sbin/ldconfig | |
319 | ||
e88e0fb4 PG |
320 | %define module_scripts() \ |
321 | %post %1 \ | |
322 | %service %{name} restart \ | |
323 | \ | |
324 | %postun %1 \ | |
325 | %service %{name} restart | |
326 | ||
327 | %module_scripts module-krb5 | |
328 | %module_scripts module-ldap | |
329 | %module_scripts module-mysql | |
330 | %module_scripts module-otp | |
331 | %module_scripts module-pam | |
332 | %module_scripts module-perl | |
333 | %module_scripts module-postgresql | |
334 | %module_scripts module-python | |
1e3234c1 | 335 | %module_scripts module-ruby |
e88e0fb4 PG |
336 | %module_scripts module-sqlite |
337 | %module_scripts module-sql_firebird | |
338 | %module_scripts module-unix | |
339 | %module_scripts module-unixodbc | |
340 | ||
b3332a9e | 341 | %files |
8d938523 | 342 | %defattr(640,root,radius,750) |
b3332a9e | 343 | %dir %{_sysconfdir}/raddb |
36336d0b PG |
344 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/acct_users |
345 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/attrs* | |
346 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/clients.conf | |
347 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/dictionary | |
348 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/eap.conf | |
349 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/experimental.conf | |
350 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/hints | |
351 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/huntgroups | |
352 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/policy.conf | |
353 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/policy.txt | |
354 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/preproxy_users | |
355 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/proxy.conf | |
356 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/radiusd.conf | |
357 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/sql.conf | |
358 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/sqlippool.conf | |
359 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/templates.conf | |
360 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/users | |
361 | %dir %{_sysconfdir}/raddb/certs | |
362 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/certs/*.cnf | |
363 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/certs/xpextensions | |
a4700f8f JK |
364 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/certs/Makefile |
365 | %doc %{_sysconfdir}/raddb/certs/README | |
366 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/certs/bootstrap | |
36336d0b PG |
367 | %dir %{_sysconfdir}/raddb/modules |
368 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/acct_unique | |
369 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/always | |
370 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/attr_filter | |
371 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/attr_rewrite | |
372 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/chap | |
373 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/checkval | |
374 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/counter | |
49a13568 | 375 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/cui |
36336d0b PG |
376 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/detail |
377 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/detail.example.com | |
378 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/detail.log | |
379 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/digest | |
380 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/echo | |
381 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/etc_group | |
382 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/exec | |
383 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/expiration | |
384 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/expr | |
385 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/files | |
386 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/inner-eap | |
387 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/ippool | |
388 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/linelog | |
389 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/logintime | |
390 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/mac2ip | |
391 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/mac2vlan | |
392 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/mschap | |
393 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/pap | |
394 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/passwd | |
395 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/policy | |
396 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/preprocess | |
397 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/radutmp | |
398 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/realm | |
399 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/smbpasswd | |
a4700f8f | 400 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/smsotp |
36336d0b | 401 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/sql_log |
a4700f8f | 402 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/sqlcounter_expire_on_login |
36336d0b PG |
403 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/sradutmp |
404 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/wimax | |
405 | %dir %{_sysconfdir}/raddb/sites-available | |
406 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/sites-available/* | |
407 | %dir %{_sysconfdir}/raddb/sites-enabled | |
408 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/sites-enabled/* | |
409 | %dir %{_sysconfdir}/raddb/sql | |
410 | %dir %{_sysconfdir}/raddb/sql/mssql | |
411 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/sql/mssql/* | |
49a13568 | 412 | %dir %{_sysconfdir}/raddb/sql/ndb |
413 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/sql/ndb/* | |
8d938523 TP |
414 | %defattr(644,root,root,755) |
415 | %doc doc/* scripts raddb | |
b3332a9e | 416 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/* |
417 | %attr(754,root,root) /etc/rc.d/init.d/%{name} | |
418 | %attr(755,root,root) %{_bindir}/* | |
419 | %attr(755,root,root) %{_sbindir}/* | |
42573dc2 PG |
420 | %dir %{_libdir}/freeradius |
421 | %attr(755,root,root) %{_libdir}/freeradius/rlm_acctlog*.so | |
422 | %attr(755,root,root) %{_libdir}/freeradius/rlm_acctlog*.la | |
423 | %attr(755,root,root) %{_libdir}/freeradius/rlm_acct_unique*.so | |
424 | %attr(755,root,root) %{_libdir}/freeradius/rlm_acct_unique*.la | |
425 | %attr(755,root,root) %{_libdir}/freeradius/rlm_always*.so | |
426 | %attr(755,root,root) %{_libdir}/freeradius/rlm_always*.la | |
427 | %attr(755,root,root) %{_libdir}/freeradius/rlm_attr_filter*.so | |
428 | %attr(755,root,root) %{_libdir}/freeradius/rlm_attr_filter*.la | |
429 | %attr(755,root,root) %{_libdir}/freeradius/rlm_attr_rewrite*.so | |
430 | %attr(755,root,root) %{_libdir}/freeradius/rlm_attr_rewrite*.la | |
431 | %attr(755,root,root) %{_libdir}/freeradius/rlm_chap*.so | |
432 | %attr(755,root,root) %{_libdir}/freeradius/rlm_chap*.la | |
433 | %attr(755,root,root) %{_libdir}/freeradius/rlm_checkval*.so | |
434 | %attr(755,root,root) %{_libdir}/freeradius/rlm_checkval*.la | |
435 | %attr(755,root,root) %{_libdir}/freeradius/rlm_copy_packet*.so | |
436 | %attr(755,root,root) %{_libdir}/freeradius/rlm_copy_packet*.la | |
437 | %attr(755,root,root) %{_libdir}/freeradius/rlm_counter*.so | |
438 | %attr(755,root,root) %{_libdir}/freeradius/rlm_counter*.la | |
439 | %attr(755,root,root) %{_libdir}/freeradius/rlm_cram*.so | |
440 | %attr(755,root,root) %{_libdir}/freeradius/rlm_cram*.la | |
441 | %attr(755,root,root) %{_libdir}/freeradius/rlm_dbm*.so | |
442 | %attr(755,root,root) %{_libdir}/freeradius/rlm_dbm*.la | |
443 | %attr(755,root,root) %{_libdir}/freeradius/rlm_detail*.so | |
444 | %attr(755,root,root) %{_libdir}/freeradius/rlm_detail*.la | |
445 | %attr(755,root,root) %{_libdir}/freeradius/rlm_digest*.so | |
446 | %attr(755,root,root) %{_libdir}/freeradius/rlm_digest*.la | |
447 | %attr(755,root,root) %{_libdir}/freeradius/rlm_dynamic_clients*.so | |
448 | %attr(755,root,root) %{_libdir}/freeradius/rlm_dynamic_clients*.la | |
449 | %attr(755,root,root) %{_libdir}/freeradius/rlm_eap*.so | |
450 | %attr(755,root,root) %{_libdir}/freeradius/rlm_eap*.la | |
451 | %attr(755,root,root) %{_libdir}/freeradius/rlm_example*.so | |
452 | %attr(755,root,root) %{_libdir}/freeradius/rlm_example*.la | |
453 | %attr(755,root,root) %{_libdir}/freeradius/rlm_exec*.so | |
454 | %attr(755,root,root) %{_libdir}/freeradius/rlm_exec*.la | |
455 | %attr(755,root,root) %{_libdir}/freeradius/rlm_expiration*.so | |
456 | %attr(755,root,root) %{_libdir}/freeradius/rlm_expiration*.la | |
457 | %attr(755,root,root) %{_libdir}/freeradius/rlm_expr*.so | |
458 | %attr(755,root,root) %{_libdir}/freeradius/rlm_expr*.la | |
459 | %attr(755,root,root) %{_libdir}/freeradius/rlm_fastusers*.so | |
460 | %attr(755,root,root) %{_libdir}/freeradius/rlm_fastusers*.la | |
461 | %attr(755,root,root) %{_libdir}/freeradius/rlm_files*.so | |
462 | %attr(755,root,root) %{_libdir}/freeradius/rlm_files*.la | |
463 | %attr(755,root,root) %{_libdir}/freeradius/rlm_ippool*.so | |
464 | %attr(755,root,root) %{_libdir}/freeradius/rlm_ippool*.la | |
465 | %attr(755,root,root) %{_libdir}/freeradius/rlm_jradius*.so | |
466 | %attr(755,root,root) %{_libdir}/freeradius/rlm_jradius*.la | |
42573dc2 PG |
467 | %attr(755,root,root) %{_libdir}/freeradius/rlm_linelog*.so |
468 | %attr(755,root,root) %{_libdir}/freeradius/rlm_linelog*.la | |
469 | %attr(755,root,root) %{_libdir}/freeradius/rlm_logintime*.so | |
470 | %attr(755,root,root) %{_libdir}/freeradius/rlm_logintime*.la | |
471 | %attr(755,root,root) %{_libdir}/freeradius/rlm_mschap*.so | |
472 | %attr(755,root,root) %{_libdir}/freeradius/rlm_mschap*.la | |
42573dc2 PG |
473 | %attr(755,root,root) %{_libdir}/freeradius/rlm_pap*.so |
474 | %attr(755,root,root) %{_libdir}/freeradius/rlm_pap*.la | |
475 | %attr(755,root,root) %{_libdir}/freeradius/rlm_passwd*.so | |
476 | %attr(755,root,root) %{_libdir}/freeradius/rlm_passwd*.la | |
42573dc2 PG |
477 | %attr(755,root,root) %{_libdir}/freeradius/rlm_policy*.so |
478 | %attr(755,root,root) %{_libdir}/freeradius/rlm_policy*.la | |
479 | %attr(755,root,root) %{_libdir}/freeradius/rlm_preprocess*.so | |
480 | %attr(755,root,root) %{_libdir}/freeradius/rlm_preprocess*.la | |
481 | %attr(755,root,root) %{_libdir}/freeradius/rlm_protocol_filter*.so | |
482 | %attr(755,root,root) %{_libdir}/freeradius/rlm_protocol_filter*.la | |
42573dc2 PG |
483 | %attr(755,root,root) %{_libdir}/freeradius/rlm_radutmp*.so |
484 | %attr(755,root,root) %{_libdir}/freeradius/rlm_radutmp*.la | |
485 | %attr(755,root,root) %{_libdir}/freeradius/rlm_realm*.so | |
486 | %attr(755,root,root) %{_libdir}/freeradius/rlm_realm*.la | |
487 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sim_files*.so | |
488 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sim_files*.la | |
a4700f8f JK |
489 | %attr(755,root,root) %{_libdir}/freeradius/rlm_smsotp*.so |
490 | %attr(755,root,root) %{_libdir}/freeradius/rlm_smsotp*.la | |
42573dc2 PG |
491 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql-*.so |
492 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql.so | |
493 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql-*.la | |
494 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql.la | |
495 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sqlcounter*.so | |
496 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sqlcounter*.la | |
42573dc2 PG |
497 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sqlhpwippool*.so |
498 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sqlhpwippool*.la | |
499 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sqlippool*.so | |
500 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sqlippool*.la | |
501 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_log*.so | |
502 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_log*.la | |
42573dc2 PG |
503 | %attr(755,root,root) %{_libdir}/freeradius/rlm_wimax*.so |
504 | %attr(755,root,root) %{_libdir}/freeradius/rlm_wimax*.la | |
b3332a9e | 505 | %{_datadir}/freeradius |
b3332a9e | 506 | %{_mandir}/man?/* |
42573dc2 PG |
507 | %attr(771,root,radius) %dir %{_var}/log/freeradius |
508 | %attr(771,root,radius) %dir %{_var}/log/freeradius/radacct | |
509 | %attr(771,root,radius) %dir %{_var}/log/archive/freeradius | |
510 | %attr(771,root,radius) %dir %{_var}/log/archive/freeradius/radacct | |
511 | %attr(775,root,radius) %dir /var/run/freeradius | |
512 | ||
4b0dd049 | 513 | %if %{with kerberos5} |
36336d0b PG |
514 | %files module-krb5 |
515 | %defattr(644,root,root,755) | |
516 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/krb5 | |
517 | %attr(755,root,root) %{_libdir}/freeradius/rlm_krb5*.so | |
518 | %attr(755,root,root) %{_libdir}/freeradius/rlm_krb5*.la | |
4b0dd049 | 519 | %endif |
36336d0b | 520 | |
a4700f8f | 521 | %if %{with ldap} |
36336d0b PG |
522 | %files module-ldap |
523 | %defattr(644,root,root,755) | |
524 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/ldap.attrmap | |
525 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/ldap | |
526 | %attr(755,root,root) %{_libdir}/freeradius/rlm_ldap*.so | |
527 | %attr(755,root,root) %{_libdir}/freeradius/rlm_ldap*.la | |
a4700f8f | 528 | %endif |
36336d0b | 529 | |
42573dc2 PG |
530 | %files module-mysql |
531 | %defattr(644,root,root,755) | |
532 | %dir %{_sysconfdir}/raddb/sql/mysql | |
533 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/sql/mysql/* | |
534 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_mysql*.la | |
535 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_mysql*.so | |
536 | ||
36336d0b | 537 | %files module-otp |
42573dc2 | 538 | %defattr(644,root,root,755) |
a4700f8f | 539 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/otp |
36336d0b PG |
540 | %attr(755,root,root) %{_libdir}/freeradius/rlm_otp*.so |
541 | %attr(755,root,root) %{_libdir}/freeradius/rlm_otp*.la | |
542 | ||
543 | %files module-pam | |
544 | %defattr(644,root,root,755) | |
545 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/pam | |
546 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/* | |
547 | %attr(755,root,root) %{_libdir}/freeradius/rlm_pam*.so | |
548 | %attr(755,root,root) %{_libdir}/freeradius/rlm_pam*.la | |
549 | ||
550 | %files module-perl | |
551 | %defattr(644,root,root,755) | |
552 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/example.pl | |
a4700f8f | 553 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/perl |
36336d0b PG |
554 | %attr(755,root,root) %{_libdir}/freeradius/rlm_perl*.so |
555 | %attr(755,root,root) %{_libdir}/freeradius/rlm_perl*.la | |
42573dc2 PG |
556 | |
557 | %files module-postgresql | |
558 | %defattr(644,root,root,755) | |
559 | %dir %{_sysconfdir}/raddb/sql/postgresql | |
560 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/sql/postgresql/* | |
561 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_postgresql*.so | |
562 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_postgresql*.la | |
563 | ||
36336d0b PG |
564 | %files module-python |
565 | %defattr(644,root,root,755) | |
566 | %attr(755,root,root) %{_libdir}/freeradius/rlm_python*.so | |
567 | %attr(755,root,root) %{_libdir}/freeradius/rlm_python*.la | |
568 | ||
1e3234c1 MM |
569 | %if %{with ruby} |
570 | %files module-ruby | |
571 | %defattr(644,root,root,755) | |
572 | %attr(755,root,root) %{_libdir}/freeradius/rlm_ruby*.so | |
573 | %attr(755,root,root) %{_libdir}/freeradius/rlm_ruby*.la | |
574 | %endif | |
575 | ||
36336d0b PG |
576 | %files module-sqlite |
577 | %defattr(644,root,root,755) | |
578 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_sqlite*.so | |
579 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_sqlite*.la | |
580 | ||
a4700f8f | 581 | %if %{with firebird} |
7c0821ed PG |
582 | %files module-sql_firebird |
583 | %defattr(644,root,root,755) | |
584 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_firebird*.so | |
585 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_firebird*.la | |
a4700f8f | 586 | %endif |
7c0821ed | 587 | |
36336d0b PG |
588 | %files module-unix |
589 | %defattr(644,root,root,755) | |
590 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/unix | |
591 | %attr(755,root,root) %{_libdir}/freeradius/rlm_unix*.so | |
592 | %attr(755,root,root) %{_libdir}/freeradius/rlm_unix*.la | |
593 | ||
42573dc2 PG |
594 | %files module-unixodbc |
595 | %defattr(644,root,root,755) | |
596 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_unixodbc*.so | |
597 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_unixodbc*.la | |
1e6843ce PG |
598 | |
599 | %files libs | |
600 | %defattr(644,root,root,755) | |
d3389635 | 601 | %attr(755,root,root) %{_libdir}/libfreeradius-eap-?.?.??.so |
602 | %attr(755,root,root) %{_libdir}/libfreeradius-radius-?.?.??.so | |
1e6843ce PG |
603 | %dir %{_libdir}/freeradius |
604 | ||
605 | %files devel | |
606 | %defattr(644,root,root,755) | |
607 | %{_includedir}/freeradius | |
608 | %{_libdir}/libfreeradius-eap.so | |
609 | %{_libdir}/libfreeradius-radius.so | |
610 | ||
6800c825 | 611 | %files -n mibs-%{name} |
1e6843ce PG |
612 | %defattr(644,root,root,755) |
613 | %doc mibs/*.chart | |
614 | %{mibdir}/*.* |