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