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