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