]>
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 |
36336d0b | 19 | Release: 0.12 |
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 | ||
36336d0b PG |
157 | %package module-unix |
158 | Summary: Unix module for %{name} | |
159 | Group: Networking/Daemons/Radius | |
160 | Requires: %{name} = %{version}-%{release} | |
161 | ||
162 | %description module-unix | |
163 | Unix module for %{name}. | |
164 | ||
165 | %package module-unixodbc | |
166 | Summary: UnixODBC module for %{name} | |
167 | Group: Networking/Daemons/Radius | |
168 | Requires: %{name} = %{version}-%{release} | |
169 | ||
170 | %description module-unixodbc | |
171 | UnixODBC module for %{name}. | |
172 | ||
1e6843ce PG |
173 | %package mibs |
174 | Summary: MIB database for %{name} | |
175 | Summary(pl.UTF-8): Baza danych MIB dla %{name} | |
176 | Group: Applications/System | |
177 | Suggests: libsmi | |
178 | ||
179 | %description mibs | |
180 | MIB database for %{name}. | |
181 | ||
182 | %description mibs -l pl.UTF-8 | |
183 | Baza danych MIB dla %{name}. | |
184 | ||
1e6843ce PG |
185 | %package libs |
186 | Summary: Freeradius libraries | |
187 | Group: Libraries | |
188 | ||
189 | %description libs | |
190 | Freeradius libraries. | |
191 | ||
192 | %package devel | |
193 | Summary: Header files and devel library | |
194 | Group: Development/Libraries | |
195 | Requires: %{name}-libs = %{version}-%{release} | |
196 | ||
197 | %description devel | |
198 | Header files and libraries. | |
199 | ||
b3332a9e | 200 | %prep |
201 | %setup -q | |
202 | %patch0 -p1 | |
203 | %patch1 -p1 | |
204 | %patch2 -p1 | |
205 | %patch3 -p1 | |
206 | ||
207 | %build | |
10649a33 PG |
208 | # Keep it for future when ac/am regeneration will be ok |
209 | #find -name 'configure.[ia][nc]' -type f | while read FILE; do | |
210 | # cd $(dirname "$FILE") | |
211 | # %{__libtoolize} | |
212 | # %{__aclocal} -I $OLDPWD | |
213 | # %{__autoconf} | |
214 | # [ -f config.h.in ] && %{__autoheader} | |
215 | # cd - | |
216 | #done | |
b3332a9e | 217 | |
218 | LIBS="-lgdbm" \ | |
219 | %configure \ | |
220 | --enable-strict-dependencies \ | |
221 | --with-experimental-modules \ | |
222 | --with-logdir=%{_var}/log/freeradius \ | |
223 | --with-system-libtool \ | |
7fd3fae8 | 224 | --without-rlm_eap_tnc \ |
b3332a9e | 225 | --without-rlm_opendirectory \ |
226 | --without-rlm_sql_db2 \ | |
227 | --without-rlm_sql_iodbc \ | |
228 | --without-rlm_sql_oracle | |
229 | ||
230 | %{make} -j1 | |
231 | ||
232 | %install | |
233 | rm -rf $RPM_BUILD_ROOT | |
10649a33 | 234 | install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d} \ |
1e6843ce PG |
235 | $RPM_BUILD_ROOT%{_var}/log/{,archive}/freeradius/radacct \ |
236 | $RPM_BUILD_ROOT%{mibdir} | |
b3332a9e | 237 | |
238 | %{__make} -j1 install \ | |
239 | R=$RPM_BUILD_ROOT | |
240 | ||
b3332a9e | 241 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} |
b3332a9e | 242 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
b3332a9e | 243 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/radius |
244 | ||
1e6843ce PG |
245 | # Install mibs: |
246 | install mibs/FREERADIUS-*.txt $RPM_BUILD_ROOT%{mibdir} | |
247 | ||
10649a33 PG |
248 | # Cleanups: |
249 | rm -rf $RPM_BUILD_ROOT%{_docdir}/freeradius \ | |
250 | $RPM_BUILD_ROOT%{_libdir}/*.{a,la} \ | |
251 | $RPM_BUILD_ROOT%{_libdir}/freeradius/*.a \ | |
252 | $RPM_BUILD_ROOT%{_sbindir}/rc.* \ | |
42573dc2 PG |
253 | $RPM_BUILD_ROOT%{_sysconfdir}/*.pl \ |
254 | $RPM_BUILD_ROOT%{_sysconfdir}/raddb/sql/oracle | |
b3332a9e | 255 | |
256 | %clean | |
257 | rm -rf $RPM_BUILD_ROOT | |
258 | ||
259 | %pre | |
260 | %groupadd -g 29 -r -f radius | |
261 | %useradd -u 29 -d %{_localstatedir} -s /bin/false -M -r -c "%{name}" -g radius radius | |
262 | ||
263 | # TODO: should be in trigger instead. | |
264 | # upgrade from previous versions of the package, where radius' gid was "nobody" | |
265 | if [ "`id -g radius`" = "99" ]; then | |
266 | usermod -g 29 radius | |
267 | chown radius:radius /var/log/%{name}/*.log >/dev/null 2>&1 || : | |
268 | chown radius:radius /var/log/%{name}/radacct/* >/dev/null 2>&1 || : | |
269 | fi | |
270 | ||
271 | %post | |
272 | /sbin/chkconfig --add %{name} | |
273 | %service %{name} restart "%{name} daemon" | |
274 | ||
275 | %preun | |
276 | if [ "$1" = "0" ]; then | |
277 | %service %{name} stop | |
278 | /sbin/chkconfig --del %{name} | |
279 | fi | |
280 | ||
281 | %postun | |
282 | if [ "$1" = "0" ]; then | |
283 | %userremove radius | |
284 | %groupremove radius | |
285 | fi | |
286 | ||
1e6843ce PG |
287 | %post libs -p /sbin/ldconfig |
288 | %postun libs -p /sbin/ldconfig | |
289 | ||
b3332a9e | 290 | %files |
291 | %defattr(644,root,root,755) | |
1e6843ce | 292 | %doc doc/* scripts |
b3332a9e | 293 | %dir %{_sysconfdir}/raddb |
36336d0b PG |
294 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/acct_users |
295 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/attrs* | |
296 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/clients.conf | |
297 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/dictionary | |
298 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/eap.conf | |
299 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/experimental.conf | |
300 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/hints | |
301 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/huntgroups | |
302 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/policy.conf | |
303 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/policy.txt | |
304 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/preproxy_users | |
305 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/proxy.conf | |
306 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/radiusd.conf | |
307 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/sql.conf | |
308 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/sqlippool.conf | |
309 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/templates.conf | |
310 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/users | |
311 | %dir %{_sysconfdir}/raddb/certs | |
312 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/certs/*.cnf | |
313 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/certs/xpextensions | |
314 | %dir %{_sysconfdir}/raddb/modules | |
315 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/acct_unique | |
316 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/always | |
317 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/attr_filter | |
318 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/attr_rewrite | |
319 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/chap | |
320 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/checkval | |
321 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/counter | |
322 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/detail | |
323 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/detail.example.com | |
324 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/detail.log | |
325 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/digest | |
326 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/echo | |
327 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/etc_group | |
328 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/exec | |
329 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/expiration | |
330 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/expr | |
331 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/files | |
332 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/inner-eap | |
333 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/ippool | |
334 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/linelog | |
335 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/logintime | |
336 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/mac2ip | |
337 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/mac2vlan | |
338 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/mschap | |
339 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/pap | |
340 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/passwd | |
341 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/policy | |
342 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/preprocess | |
343 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/radutmp | |
344 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/realm | |
345 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/smbpasswd | |
346 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/sql_log | |
347 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/sradutmp | |
348 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/wimax | |
349 | %dir %{_sysconfdir}/raddb/sites-available | |
350 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/sites-available/* | |
351 | %dir %{_sysconfdir}/raddb/sites-enabled | |
352 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/sites-enabled/* | |
353 | %dir %{_sysconfdir}/raddb/sql | |
354 | %dir %{_sysconfdir}/raddb/sql/mssql | |
355 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/sql/mssql/* | |
b3332a9e | 356 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/* |
357 | %attr(754,root,root) /etc/rc.d/init.d/%{name} | |
358 | %attr(755,root,root) %{_bindir}/* | |
359 | %attr(755,root,root) %{_sbindir}/* | |
42573dc2 PG |
360 | %dir %{_libdir}/freeradius |
361 | %attr(755,root,root) %{_libdir}/freeradius/rlm_acctlog*.so | |
362 | %attr(755,root,root) %{_libdir}/freeradius/rlm_acctlog*.la | |
363 | %attr(755,root,root) %{_libdir}/freeradius/rlm_acct_unique*.so | |
364 | %attr(755,root,root) %{_libdir}/freeradius/rlm_acct_unique*.la | |
365 | %attr(755,root,root) %{_libdir}/freeradius/rlm_always*.so | |
366 | %attr(755,root,root) %{_libdir}/freeradius/rlm_always*.la | |
367 | %attr(755,root,root) %{_libdir}/freeradius/rlm_attr_filter*.so | |
368 | %attr(755,root,root) %{_libdir}/freeradius/rlm_attr_filter*.la | |
369 | %attr(755,root,root) %{_libdir}/freeradius/rlm_attr_rewrite*.so | |
370 | %attr(755,root,root) %{_libdir}/freeradius/rlm_attr_rewrite*.la | |
371 | %attr(755,root,root) %{_libdir}/freeradius/rlm_chap*.so | |
372 | %attr(755,root,root) %{_libdir}/freeradius/rlm_chap*.la | |
373 | %attr(755,root,root) %{_libdir}/freeradius/rlm_checkval*.so | |
374 | %attr(755,root,root) %{_libdir}/freeradius/rlm_checkval*.la | |
375 | %attr(755,root,root) %{_libdir}/freeradius/rlm_copy_packet*.so | |
376 | %attr(755,root,root) %{_libdir}/freeradius/rlm_copy_packet*.la | |
377 | %attr(755,root,root) %{_libdir}/freeradius/rlm_counter*.so | |
378 | %attr(755,root,root) %{_libdir}/freeradius/rlm_counter*.la | |
379 | %attr(755,root,root) %{_libdir}/freeradius/rlm_cram*.so | |
380 | %attr(755,root,root) %{_libdir}/freeradius/rlm_cram*.la | |
381 | %attr(755,root,root) %{_libdir}/freeradius/rlm_dbm*.so | |
382 | %attr(755,root,root) %{_libdir}/freeradius/rlm_dbm*.la | |
383 | %attr(755,root,root) %{_libdir}/freeradius/rlm_detail*.so | |
384 | %attr(755,root,root) %{_libdir}/freeradius/rlm_detail*.la | |
385 | %attr(755,root,root) %{_libdir}/freeradius/rlm_digest*.so | |
386 | %attr(755,root,root) %{_libdir}/freeradius/rlm_digest*.la | |
387 | %attr(755,root,root) %{_libdir}/freeradius/rlm_dynamic_clients*.so | |
388 | %attr(755,root,root) %{_libdir}/freeradius/rlm_dynamic_clients*.la | |
389 | %attr(755,root,root) %{_libdir}/freeradius/rlm_eap*.so | |
390 | %attr(755,root,root) %{_libdir}/freeradius/rlm_eap*.la | |
391 | %attr(755,root,root) %{_libdir}/freeradius/rlm_example*.so | |
392 | %attr(755,root,root) %{_libdir}/freeradius/rlm_example*.la | |
393 | %attr(755,root,root) %{_libdir}/freeradius/rlm_exec*.so | |
394 | %attr(755,root,root) %{_libdir}/freeradius/rlm_exec*.la | |
395 | %attr(755,root,root) %{_libdir}/freeradius/rlm_expiration*.so | |
396 | %attr(755,root,root) %{_libdir}/freeradius/rlm_expiration*.la | |
397 | %attr(755,root,root) %{_libdir}/freeradius/rlm_expr*.so | |
398 | %attr(755,root,root) %{_libdir}/freeradius/rlm_expr*.la | |
399 | %attr(755,root,root) %{_libdir}/freeradius/rlm_fastusers*.so | |
400 | %attr(755,root,root) %{_libdir}/freeradius/rlm_fastusers*.la | |
401 | %attr(755,root,root) %{_libdir}/freeradius/rlm_files*.so | |
402 | %attr(755,root,root) %{_libdir}/freeradius/rlm_files*.la | |
403 | %attr(755,root,root) %{_libdir}/freeradius/rlm_ippool*.so | |
404 | %attr(755,root,root) %{_libdir}/freeradius/rlm_ippool*.la | |
405 | %attr(755,root,root) %{_libdir}/freeradius/rlm_jradius*.so | |
406 | %attr(755,root,root) %{_libdir}/freeradius/rlm_jradius*.la | |
42573dc2 PG |
407 | %attr(755,root,root) %{_libdir}/freeradius/rlm_linelog*.so |
408 | %attr(755,root,root) %{_libdir}/freeradius/rlm_linelog*.la | |
409 | %attr(755,root,root) %{_libdir}/freeradius/rlm_logintime*.so | |
410 | %attr(755,root,root) %{_libdir}/freeradius/rlm_logintime*.la | |
411 | %attr(755,root,root) %{_libdir}/freeradius/rlm_mschap*.so | |
412 | %attr(755,root,root) %{_libdir}/freeradius/rlm_mschap*.la | |
42573dc2 PG |
413 | %attr(755,root,root) %{_libdir}/freeradius/rlm_pap*.so |
414 | %attr(755,root,root) %{_libdir}/freeradius/rlm_pap*.la | |
415 | %attr(755,root,root) %{_libdir}/freeradius/rlm_passwd*.so | |
416 | %attr(755,root,root) %{_libdir}/freeradius/rlm_passwd*.la | |
42573dc2 PG |
417 | %attr(755,root,root) %{_libdir}/freeradius/rlm_policy*.so |
418 | %attr(755,root,root) %{_libdir}/freeradius/rlm_policy*.la | |
419 | %attr(755,root,root) %{_libdir}/freeradius/rlm_preprocess*.so | |
420 | %attr(755,root,root) %{_libdir}/freeradius/rlm_preprocess*.la | |
421 | %attr(755,root,root) %{_libdir}/freeradius/rlm_protocol_filter*.so | |
422 | %attr(755,root,root) %{_libdir}/freeradius/rlm_protocol_filter*.la | |
42573dc2 PG |
423 | %attr(755,root,root) %{_libdir}/freeradius/rlm_radutmp*.so |
424 | %attr(755,root,root) %{_libdir}/freeradius/rlm_radutmp*.la | |
425 | %attr(755,root,root) %{_libdir}/freeradius/rlm_realm*.so | |
426 | %attr(755,root,root) %{_libdir}/freeradius/rlm_realm*.la | |
427 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sim_files*.so | |
428 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sim_files*.la | |
429 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql-*.so | |
430 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql.so | |
431 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql-*.la | |
432 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql.la | |
433 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sqlcounter*.so | |
434 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sqlcounter*.la | |
435 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_firebird*.so | |
436 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_firebird*.la | |
437 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sqlhpwippool*.so | |
438 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sqlhpwippool*.la | |
439 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sqlippool*.so | |
440 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sqlippool*.la | |
441 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_log*.so | |
442 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_log*.la | |
42573dc2 PG |
443 | %attr(755,root,root) %{_libdir}/freeradius/rlm_wimax*.so |
444 | %attr(755,root,root) %{_libdir}/freeradius/rlm_wimax*.la | |
b3332a9e | 445 | %{_datadir}/freeradius |
b3332a9e | 446 | %{_mandir}/man?/* |
42573dc2 PG |
447 | %attr(771,root,radius) %dir %{_var}/log/freeradius |
448 | %attr(771,root,radius) %dir %{_var}/log/freeradius/radacct | |
449 | %attr(771,root,radius) %dir %{_var}/log/archive/freeradius | |
450 | %attr(771,root,radius) %dir %{_var}/log/archive/freeradius/radacct | |
451 | %attr(775,root,radius) %dir /var/run/freeradius | |
452 | ||
36336d0b PG |
453 | %files module-krb5 |
454 | %defattr(644,root,root,755) | |
455 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/krb5 | |
456 | %attr(755,root,root) %{_libdir}/freeradius/rlm_krb5*.so | |
457 | %attr(755,root,root) %{_libdir}/freeradius/rlm_krb5*.la | |
458 | ||
459 | %files module-ldap | |
460 | %defattr(644,root,root,755) | |
461 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/ldap.attrmap | |
462 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/ldap | |
463 | %attr(755,root,root) %{_libdir}/freeradius/rlm_ldap*.so | |
464 | %attr(755,root,root) %{_libdir}/freeradius/rlm_ldap*.la | |
465 | ||
42573dc2 PG |
466 | %files module-mysql |
467 | %defattr(644,root,root,755) | |
468 | %dir %{_sysconfdir}/raddb/sql/mysql | |
469 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/sql/mysql/* | |
470 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_mysql*.la | |
471 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_mysql*.so | |
472 | ||
36336d0b | 473 | %files module-otp |
42573dc2 | 474 | %defattr(644,root,root,755) |
36336d0b PG |
475 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/otp.conf |
476 | %attr(755,root,root) %{_libdir}/freeradius/rlm_otp*.so | |
477 | %attr(755,root,root) %{_libdir}/freeradius/rlm_otp*.la | |
478 | ||
479 | %files module-pam | |
480 | %defattr(644,root,root,755) | |
481 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/pam | |
482 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/* | |
483 | %attr(755,root,root) %{_libdir}/freeradius/rlm_pam*.so | |
484 | %attr(755,root,root) %{_libdir}/freeradius/rlm_pam*.la | |
485 | ||
486 | %files module-perl | |
487 | %defattr(644,root,root,755) | |
488 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/example.pl | |
489 | %attr(755,root,root) %{_libdir}/freeradius/rlm_perl*.so | |
490 | %attr(755,root,root) %{_libdir}/freeradius/rlm_perl*.la | |
42573dc2 PG |
491 | |
492 | %files module-postgresql | |
493 | %defattr(644,root,root,755) | |
494 | %dir %{_sysconfdir}/raddb/sql/postgresql | |
495 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/sql/postgresql/* | |
496 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_postgresql*.so | |
497 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_postgresql*.la | |
498 | ||
36336d0b PG |
499 | %files module-python |
500 | %defattr(644,root,root,755) | |
501 | %attr(755,root,root) %{_libdir}/freeradius/rlm_python*.so | |
502 | %attr(755,root,root) %{_libdir}/freeradius/rlm_python*.la | |
503 | ||
504 | %files module-sqlite | |
505 | %defattr(644,root,root,755) | |
506 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_sqlite*.so | |
507 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_sqlite*.la | |
508 | ||
509 | %files module-unix | |
510 | %defattr(644,root,root,755) | |
511 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/modules/unix | |
512 | %attr(755,root,root) %{_libdir}/freeradius/rlm_unix*.so | |
513 | %attr(755,root,root) %{_libdir}/freeradius/rlm_unix*.la | |
514 | ||
42573dc2 PG |
515 | %files module-unixodbc |
516 | %defattr(644,root,root,755) | |
517 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_unixodbc*.so | |
518 | %attr(755,root,root) %{_libdir}/freeradius/rlm_sql_unixodbc*.la | |
1e6843ce PG |
519 | |
520 | %files libs | |
521 | %defattr(644,root,root,755) | |
522 | %attr(755,root,root) %{_libdir}/libfreeradius-eap-?.?.?.so | |
523 | %attr(755,root,root) %{_libdir}/libfreeradius-radius-?.?.?.so | |
524 | %dir %{_libdir}/freeradius | |
525 | ||
526 | %files devel | |
527 | %defattr(644,root,root,755) | |
528 | %{_includedir}/freeradius | |
529 | %{_libdir}/libfreeradius-eap.so | |
530 | %{_libdir}/libfreeradius-radius.so | |
531 | ||
532 | %files mibs | |
533 | %defattr(644,root,root,755) | |
534 | %doc mibs/*.chart | |
535 | %{mibdir}/*.* |