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