1 %include /usr/lib/rpm/macros.python
2 %include /usr/lib/rpm/macros.perl
3 # FIXME: won't be good to include these contrib examples?
4 # Source1: http://www.ping.de/~fdc/radius/radacct-replay
5 # Source2: http://www.ping.de/~fdc/radius/radlast-0.03
6 # Source3: ftp://ftp.freeradius.org/pub/radius/contrib/radwho.cgi
7 Summary: High-performance and highly configurable RADIUS server
8 Summary(pl): Szybki i wysoce konfigurowalny serwer RADIUS
13 Group: Networking/Daemons
14 Source0: ftp://ftp.freeradius.org/pub/radius/%{name}-%{version}.tar.gz
15 Source1: %{name}.logrotate
18 URL: http://www.freeradius.org/
19 Requires(post,preun): /sbin/chkconfig
20 Requires(pre): user-radius
22 BuildRequires: gdbm-devel
23 BuildRequires: libltdl-devel
24 BuildRequires: mysql-devel
25 BuildRequires: openldap-devel
26 BuildRequires: openssl-devel >= 0.9.7
27 BuildRequires: pam-devel
28 BuildRequires: perl-devel
29 BuildRequires: postgresql-backend-devel
30 BuildRequires: postgresql-devel
31 BuildRequires: python-devel
32 BuildRequires: ucd-snmp-devel
33 BuildRequires: ucd-snmp-utils
34 BuildRequires: unixODBC-devel
35 BuildRequires: rpm-perlprov
36 BuildRequires: rpm-pythonprov
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Obsoletes: cistron-radius
40 %define _localstatedir %{_var}/lib/freeradius
43 The FreeRADIUS Server Project is an attempt to create a
44 high-performance and highly configurable GPL'd RADIUS server. It is
45 generally similar to the Livingston 2.0 RADIUS server, but has a lot
46 more features, and is much more configurable.
49 Projekt FreeRadius ma na celu stworzenie szybkiego i wysoce
50 konfigurowalnego serwera RADIUS na licencji GPL. Ten jest podobny do
51 Livingston 2.0 RADIUS server ale ma o wiele wiêcej ficzersów i jest
52 bardziej podatny na konfiguracjê.
58 touch src/modules/rlm_eap/types/rlm_eap_tls/config.h
61 --with-system-libtool \
62 --enable-strict-dependencies \
63 --with-logdir=%{_var}/log/freeradius \
64 --with-experimental-modules \
68 --with-ltdl-include=%{_includedir}/none \
69 --with-ltdl-lib=%{_libdir} \
70 --disable-ltdl-install \
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{logrotate.d,pam.d,rc.d/init.d,raddb}
77 install -d $RPM_BUILD_ROOT%{_var}/log/radius
82 rm -f $RPM_BUILD_ROOT{%{_mandir}/man8/builddbm.8,%{_sbindir}/rc.radiusd}
83 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/raddb/{clients,*.pl}
85 install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
86 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
87 install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/radius
90 rm -rf $RPM_BUILD_ROOT
93 /sbin/chkconfig --add %{name}
94 if [ -f /var/lock/subsys/%{name} ]; then
95 /etc/rc.d/init.d/%{name} restart 1>&2
97 echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
101 if [ "$1" = "0" ]; then
102 if [ -f /var/lock/subsys/%{name} ]; then
103 /etc/rc.d/init.d/%{name} stop 1>&2
105 /sbin/chkconfig --del %{name}
109 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_bindir}/*
112 %attr(755,root,root) %{_sbindir}/*
113 %attr(755,root,root) %{_libdir}/*.so
116 %dir %{_sysconfdir}/raddb
117 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/raddb/*
119 %dir %{_var}/log/%{name}
120 %dir %{_var}/log/%{name}/radacct
122 %attr(754,root,root) /etc/rc.d/init.d/%{name}
123 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/*
124 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/*