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