2008-02-01 04:33:23 +01:00
|
|
|
#
|
2011-05-27 11:35:47 +02:00
|
|
|
# spec file for package freeradius-server
|
2008-02-01 04:33:23 +01:00
|
|
|
#
|
2012-05-17 00:31:35 +02:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-02-01 04:33:23 +01:00
|
|
|
#
|
2008-08-27 02:43:30 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2008-02-01 04:33:23 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: freeradius-server
|
2011-10-19 16:15:30 +02:00
|
|
|
Version: 2.1.12
|
2012-05-17 00:31:35 +02:00
|
|
|
Release: 0
|
2008-02-01 04:33:23 +01:00
|
|
|
Summary: Very Highly Configurable Radius Server
|
2012-05-17 00:31:35 +02:00
|
|
|
License: GPL-2.0 ; LGPL-2.1
|
2011-06-24 13:29:48 +02:00
|
|
|
Group: Productivity/Networking/Radius/Servers
|
2012-05-17 00:31:35 +02:00
|
|
|
Url: http://www.freeradius.org/
|
2008-03-21 03:37:47 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2011-05-26 17:24:56 +02:00
|
|
|
Patch1: freeradius-server-2.1.6-dialup_admin.patch
|
|
|
|
Patch2: freeradius-server-2.1.6-rcradiusd.patch
|
|
|
|
Patch3: freeradius-server-2.1.6-codecleanup.patch
|
|
|
|
Patch5: freeradius-server-2.1.6-overflow.patch
|
2009-10-21 00:16:10 +02:00
|
|
|
Patch6: freeradius-server-sha1-default.patch
|
|
|
|
Patch7: freeradius-server-fix-cert-bootstrap.patch
|
2010-05-03 23:30:26 +02:00
|
|
|
Patch8: freeradius-server-initscript-pidfile.patch
|
2010-09-17 13:04:14 +02:00
|
|
|
Patch9: freeradius-server-radius-reload-logrotate.patch
|
2011-10-03 13:34:29 +02:00
|
|
|
# PATCH-FIX-UPSTREAM edirectory ldap extensions (bnc#720620)
|
|
|
|
Patch11: freeradius-server-2.1.1-edirectory.patch
|
2012-06-03 12:41:40 +02:00
|
|
|
# PATCH-FIX-SUSE use 'su' logrotate option (bnc#677335)
|
|
|
|
Patch12: freeradius-server-2.1.1-logrotate_su.patch
|
2010-03-11 15:03:14 +01:00
|
|
|
BuildRequires: apache2-devel
|
|
|
|
BuildRequires: cyrus-sasl-devel
|
|
|
|
BuildRequires: db-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gdbm-devel
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: krb5-devel
|
2011-05-26 17:24:56 +02:00
|
|
|
BuildRequires: libcom_err-devel
|
2010-03-11 15:03:14 +01:00
|
|
|
BuildRequires: libmysqlclient-devel
|
|
|
|
BuildRequires: libpcap-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: net-snmp-devel
|
|
|
|
BuildRequires: openldap2-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: postgresql-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: sqlite3-devel
|
|
|
|
BuildRequires: unixODBC-devel
|
2011-06-24 13:29:48 +02:00
|
|
|
BuildRequires: pkgconfig(apr-1)
|
|
|
|
PreReq: %fillup_prereq
|
|
|
|
PreReq: %insserv_prereq
|
|
|
|
PreReq: coreutils
|
|
|
|
PreReq: openssl
|
|
|
|
PreReq: perl
|
|
|
|
PreReq: pwdutils
|
|
|
|
%define _oracle_support 0
|
|
|
|
%define apxs2 apxs2-prefork
|
|
|
|
%define apache2_sysconfdir %(%{_sbindir}/%{apxs2} -q SYSCONFDIR)
|
|
|
|
Requires: %{name}-libs = %{version}
|
|
|
|
Requires: python
|
|
|
|
Recommends: logrotate
|
|
|
|
Provides: freeradius = %{version}
|
2012-05-17 00:31:35 +02:00
|
|
|
Provides: radiusd
|
2011-06-24 13:29:48 +02:00
|
|
|
Obsoletes: freeradius < %{version}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Conflicts: radiusd-livingston radiusd-cistron icradius
|
2008-02-01 04:33:23 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The FreeRADIUS server has a number of features found in other servers
|
|
|
|
and additional features not found in any other server. The server's
|
|
|
|
features are:
|
|
|
|
|
|
|
|
* Support for RFC and VSA attributes
|
|
|
|
|
|
|
|
* Additional server configuration attributes
|
|
|
|
|
|
|
|
* Selection of a particular configuration
|
|
|
|
|
|
|
|
* Authentication methods
|
|
|
|
|
|
|
|
* Accounting methods
|
|
|
|
|
|
|
|
%if %_oracle_support == 1
|
|
|
|
|
|
|
|
%package oracle
|
2008-05-06 01:17:29 +02:00
|
|
|
|
2008-02-01 04:33:23 +01:00
|
|
|
Summary: FreeRADIUS Oracle database support
|
2011-06-24 13:29:48 +02:00
|
|
|
Group: Productivity/Networking/Radius/Servers
|
|
|
|
BuildRequires: oracle-instantclient-basic
|
|
|
|
BuildRequires: oracle-instantclient-devel
|
2008-02-01 04:33:23 +01:00
|
|
|
Requires: %{name} = %{version}
|
2011-06-24 13:29:48 +02:00
|
|
|
Requires: %{name}-libs = %{version}
|
|
|
|
Requires: oracle-instantclient-basic
|
2008-02-01 04:33:23 +01:00
|
|
|
|
|
|
|
%description oracle
|
|
|
|
The FreeRADIUS server has a number of features found in other servers,
|
|
|
|
and additional features not found in any other server. Rather than
|
|
|
|
doing a feature by feature comparison, we will simply list the features
|
|
|
|
of the server, and let you decide if they satisfy your needs.
|
|
|
|
|
|
|
|
Support for RFC and VSA Attributes Additional server configuration
|
|
|
|
attributes Selecting a particular configuration Authentication methods
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: FreeRADIUS shared library
|
2011-06-24 13:29:48 +02:00
|
|
|
Group: Productivity/Networking/Radius/Servers
|
2008-02-01 04:33:23 +01:00
|
|
|
|
|
|
|
%description libs
|
|
|
|
The FreeRADIUS shared library
|
|
|
|
|
|
|
|
%package utils
|
|
|
|
Summary: FreeRADIUS Clients
|
2011-06-24 13:29:48 +02:00
|
|
|
Group: Productivity/Networking/Radius/Clients
|
2008-02-01 04:33:23 +01:00
|
|
|
Requires: %{name}-libs = %{version}
|
|
|
|
|
|
|
|
%description utils
|
|
|
|
The FreeRADIUS server has a number of features found in other servers
|
|
|
|
and additional features not found in any other server. The server's
|
|
|
|
features are:
|
|
|
|
|
|
|
|
* Support for RFC and VSA attributes
|
|
|
|
|
|
|
|
* Additional server configuration attributes
|
|
|
|
|
|
|
|
* Selection of a particular configuration
|
|
|
|
|
|
|
|
* Authentication methods
|
|
|
|
|
|
|
|
* Accounting methods
|
|
|
|
|
|
|
|
%package dialupadmin
|
|
|
|
Summary: Web management for FreeRADIUS
|
2011-06-24 13:29:48 +02:00
|
|
|
Group: Productivity/Networking/Radius/Servers
|
|
|
|
Requires: http_daemon
|
|
|
|
Requires: mod_php_any
|
2012-06-10 14:47:18 +02:00
|
|
|
Requires: perl-Date-Manip
|
2011-06-24 13:29:48 +02:00
|
|
|
Requires: php
|
|
|
|
Requires: php-ldap
|
|
|
|
Requires: php-mysql
|
|
|
|
Requires: php-pgsql
|
|
|
|
Requires: php-session
|
2008-02-01 04:33:23 +01:00
|
|
|
|
|
|
|
%description dialupadmin
|
|
|
|
Dialup Admin supports users either in SQL (MySQL or PostgreSQL are
|
|
|
|
supported) or in LDAP. Apart from the web pages, it also includes a
|
|
|
|
number of scripts to make the administrator's life a lot easier.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: FreeRADIUS Development Files (static libs)
|
2011-06-24 13:29:48 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2008-02-01 04:33:23 +01:00
|
|
|
Requires: %{name}-libs = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
These are the static libraries for the FreeRADIUS package.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: FreeRADIUS Documentation
|
2011-06-24 13:29:48 +02:00
|
|
|
Group: Productivity/Networking/Radius/Servers
|
2008-02-01 04:33:23 +01:00
|
|
|
Requires: %{name}
|
|
|
|
|
|
|
|
%description doc
|
2008-03-21 03:37:47 +01:00
|
|
|
This package contains FreeRADIUS Documentation
|
2008-02-01 04:33:23 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
2009-02-10 18:49:14 +01:00
|
|
|
%patch5
|
2009-10-21 00:16:10 +02:00
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
2010-05-03 23:30:26 +02:00
|
|
|
%patch8 -p1
|
2010-09-17 13:04:14 +02:00
|
|
|
%patch9 -p1
|
2011-10-03 13:34:29 +02:00
|
|
|
%patch11 -p0
|
2012-06-03 12:41:40 +02:00
|
|
|
%patch12 -p1
|
2008-02-01 04:33:23 +01:00
|
|
|
|
|
|
|
%build
|
2011-05-26 17:24:56 +02:00
|
|
|
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
|
|
|
|
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
|
|
|
|
TIME="\"$(date -d "${modified}" "+%%R")\""
|
|
|
|
find . -type f -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} +
|
2009-06-20 05:50:06 +02:00
|
|
|
# This package failed when testing with -Wl,-as-needed being default.
|
|
|
|
# So we disable it here, if you want to retest, just delete this comment and the line below.
|
|
|
|
export SUSE_ASNEEDED=0
|
2011-06-24 13:29:48 +02:00
|
|
|
export CFLAGS="%{optflags} -DLDAP_DEPRECATED -fstack-protector"
|
2012-05-17 00:31:35 +02:00
|
|
|
%ifarch x86_64 ppc ppc64 s390 s390x %arm
|
2008-02-01 04:33:23 +01:00
|
|
|
export CFLAGS="$CFLAGS -fPIC -DPIC"
|
|
|
|
%endif
|
|
|
|
export LDFLAGS="-pie"
|
2010-03-11 15:03:14 +01:00
|
|
|
%configure \
|
2010-05-03 23:30:26 +02:00
|
|
|
--disable-static \
|
|
|
|
--with-pic \
|
2008-02-01 04:33:23 +01:00
|
|
|
--libdir=%{_libdir}/freeradius \
|
|
|
|
--disable-ltdl-install \
|
|
|
|
--enable-strict-dependencies \
|
|
|
|
--with-edir \
|
|
|
|
--with-experimental-modules \
|
|
|
|
--with-gnu-ld \
|
|
|
|
--with-system-libtool \
|
|
|
|
--with-udpfromto \
|
|
|
|
--without-rlm_eap_ikev2 \
|
2008-07-24 22:17:53 +02:00
|
|
|
--without-rlm_eap_tnc \
|
2008-02-01 04:33:23 +01:00
|
|
|
--with-rlm-krb5-lib-dir=%{_libdir} \
|
|
|
|
--without-rlm_opendirectory \
|
|
|
|
--without-rlm_sql_db2 \
|
|
|
|
--without-rlm_sql_firebird \
|
|
|
|
--without-rlm_sql_iodbc \
|
2009-06-02 17:00:18 +02:00
|
|
|
--without-rlm_ruby \
|
2011-06-24 13:29:48 +02:00
|
|
|
--without-rlm_redis \
|
|
|
|
--without-rlm_rediswho \
|
2008-02-01 04:33:23 +01:00
|
|
|
%if %{_oracle_support} == 1
|
|
|
|
--with-rlm_sql_oracle \
|
|
|
|
--with-oracle-lib-dir=%{_libdir}/oracle/10.1.0.3/client/lib/
|
|
|
|
%else
|
|
|
|
--without-rlm_sql_oracle
|
|
|
|
%endif
|
|
|
|
# no parallel build possible
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
2011-06-24 13:29:48 +02:00
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/radiusd
|
|
|
|
make install R=%{buildroot} INSTALLSTRIP=
|
2008-02-01 04:33:23 +01:00
|
|
|
# modify default configuration
|
2011-06-24 13:29:48 +02:00
|
|
|
RADDB=%{buildroot}%{_sysconfdir}/raddb
|
2008-02-01 04:33:23 +01:00
|
|
|
perl -i -pe 's/^#user =.*$/user = radiusd/' $RADDB/radiusd.conf
|
|
|
|
perl -i -pe 's/^#group =.*$/group = radiusd/' $RADDB/radiusd.conf
|
|
|
|
perl -i -pe 's/^#user =.*$/user = radiusd/' $RADDB/radrelay.conf
|
|
|
|
perl -i -pe 's/^#group =.*$/group = radiusd/' $RADDB/radrelay.conf
|
2011-06-24 13:29:48 +02:00
|
|
|
/sbin/ldconfig -n %{buildroot}%{_libdir}/freeradius
|
2008-02-01 04:33:23 +01:00
|
|
|
# logs
|
2011-06-24 13:29:48 +02:00
|
|
|
touch %{buildroot}%{_localstatedir}/log/radius/radutmp
|
|
|
|
touch %{buildroot}%{_localstatedir}/log/radius/radius.log
|
2008-02-01 04:33:23 +01:00
|
|
|
# SuSE
|
2011-06-24 13:29:48 +02:00
|
|
|
install -d %{buildroot}%{_sysconfdir}/pam.d
|
|
|
|
install -d %{buildroot}%{_sysconfdir}/logrotate.d
|
|
|
|
install -m 644 suse/radiusd-pam %{buildroot}%{_sysconfdir}/pam.d/radiusd
|
|
|
|
install -m 644 suse/radiusd-logrotate %{buildroot}%{_sysconfdir}/logrotate.d/radiusd
|
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/init.d
|
|
|
|
install -m 744 suse/rcradiusd %{buildroot}%{_sysconfdir}/init.d/freeradius
|
|
|
|
ln -sf ../..%{_sysconfdir}/init.d/freeradius %{buildroot}%{_sbindir}/rcfreeradius
|
|
|
|
cp -al %{buildroot}%{_sbindir}/radiusd %{buildroot}%{_sbindir}/radrelay
|
|
|
|
install -m 744 suse/rcradius-relayd %{buildroot}%{_sysconfdir}/init.d/freeradius-relay
|
|
|
|
ln -sf ../..%{_sysconfdir}/init.d/freeradius-relay %{buildroot}%{_sbindir}/rcfreeradius-relay
|
2008-02-01 04:33:23 +01:00
|
|
|
mv -v doc/README doc/README.doc
|
|
|
|
# install dialup_admin
|
2011-06-24 13:29:48 +02:00
|
|
|
DIALUPADMIN=%{buildroot}%{_datadir}/dialup_admin
|
2008-02-01 04:33:23 +01:00
|
|
|
mkdir -p $DIALUPADMIN
|
2011-06-24 13:29:48 +02:00
|
|
|
cp -r dialup_admin/* %{buildroot}%{_datadir}/dialup_admin
|
2008-02-01 04:33:23 +01:00
|
|
|
# apache2 config
|
2011-06-24 13:29:48 +02:00
|
|
|
install -d -m 755 %{buildroot}%{apache2_sysconfdir}/conf.d
|
|
|
|
install -m 644 suse/admin-httpd.conf %{buildroot}%{apache2_sysconfdir}/conf.d/radius.conf
|
2008-02-01 04:33:23 +01:00
|
|
|
# remove unneeded stuff
|
|
|
|
rm -rf doc/00-OLD
|
2011-06-24 13:29:48 +02:00
|
|
|
rm -f %{buildroot}%{_sbindir}/rc.radiusd
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/freeradius*
|
|
|
|
rm -rf %{buildroot}%{_libdir}/freeradius/*.*a
|
|
|
|
rm -f %{buildroot}%{_datadir}/dialup_admin/Makefile
|
|
|
|
rm -f %{buildroot}%{_defaultdocdir}/%{name}/Makefile
|
|
|
|
rm -f %{buildroot}%{_defaultdocdir}/%{name}/examples/Makefile
|
2008-02-01 04:33:23 +01:00
|
|
|
|
|
|
|
%pre
|
|
|
|
%{_sbindir}/groupadd -r radiusd 2> /dev/null || :
|
|
|
|
%{_sbindir}/useradd -r -g radiusd -s /bin/false -c "Radius daemon" -d \
|
|
|
|
%{_localstatedir}/lib/radiusd radiusd 2> /dev/null || :
|
|
|
|
|
|
|
|
%post
|
2009-01-09 16:39:51 +01:00
|
|
|
# Generate default certificates
|
2009-10-21 00:16:10 +02:00
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
|
/etc/raddb/certs/bootstrap
|
|
|
|
fi
|
2009-01-09 16:39:51 +01:00
|
|
|
chgrp radiusd /etc/raddb/certs/*
|
2008-08-28 02:03:25 +02:00
|
|
|
%{fillup_and_insserv freeradius}
|
2008-02-01 04:33:23 +01:00
|
|
|
|
|
|
|
%preun
|
|
|
|
%stop_on_removal freeradius
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%restart_on_update freeradius
|
2010-05-03 23:30:26 +02:00
|
|
|
%{insserv_cleanup}
|
2008-02-01 04:33:23 +01:00
|
|
|
|
|
|
|
%clean
|
2011-06-24 13:29:48 +02:00
|
|
|
rm -rf %{buildroot}
|
2008-02-01 04:33:23 +01:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc/*
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# doc
|
|
|
|
%doc suse/README.SuSE
|
|
|
|
%doc COPYRIGHT CREDITS LICENSE README doc/ChangeLog
|
|
|
|
# SuSE
|
|
|
|
%{_sysconfdir}/init.d/freeradius
|
|
|
|
%{_sysconfdir}/init.d/freeradius-relay
|
|
|
|
%config %{_sysconfdir}/pam.d/radiusd
|
|
|
|
%config %{_sysconfdir}/logrotate.d/radiusd
|
|
|
|
%{_sbindir}/rcfreeradius
|
|
|
|
%{_sbindir}/rcfreeradius-relay
|
|
|
|
%dir %attr(755,radiusd,radiusd) %{_localstatedir}/lib/radiusd
|
|
|
|
# configs
|
|
|
|
%dir %attr(750,root,radiusd) %{_sysconfdir}/raddb
|
|
|
|
%defattr(-,root,radiusd)
|
|
|
|
%config(noreplace) %{_sysconfdir}/raddb/dictionary
|
|
|
|
%config(noreplace) %{_sysconfdir}/raddb/acct_users
|
|
|
|
%config(noreplace) %{_sysconfdir}/raddb/attrs
|
|
|
|
%config(noreplace) %{_sysconfdir}/raddb/attrs.access_reject
|
|
|
|
%config(noreplace) %{_sysconfdir}/raddb/attrs.accounting_response
|
|
|
|
%config(noreplace) %{_sysconfdir}/raddb/attrs.pre-proxy
|
2010-03-11 01:38:48 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/raddb/attrs.access_challenge
|
2008-02-01 04:33:23 +01:00
|
|
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/clients.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/raddb/hints
|
|
|
|
%config(noreplace) %{_sysconfdir}/raddb/huntgroups
|
|
|
|
%config(noreplace) %{_sysconfdir}/raddb/ldap.attrmap
|
|
|
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/sqlippool.conf
|
|
|
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/preproxy_users
|
|
|
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/proxy.conf
|
|
|
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/radiusd.conf
|
|
|
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/sql.conf
|
2008-07-24 22:17:53 +02:00
|
|
|
%dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/modules
|
|
|
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/modules/*
|
2008-02-01 04:33:23 +01:00
|
|
|
%dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/sql
|
|
|
|
%dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/sql/mssql
|
|
|
|
%dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/sql/mysql
|
|
|
|
%dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/sql/oracle
|
|
|
|
%dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/sql/postgresql
|
2009-12-18 14:50:24 +01:00
|
|
|
%dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/sql/ndb
|
|
|
|
%{_sysconfdir}/raddb/sql/ndb/README
|
2008-02-01 04:33:23 +01:00
|
|
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/sql/*/*.conf
|
|
|
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/sql/*/*.sql
|
2010-05-03 23:30:26 +02:00
|
|
|
%{_sysconfdir}/raddb/sql/oracle/msqlippool.txt
|
2008-02-01 04:33:23 +01:00
|
|
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/users
|
|
|
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/experimental.conf
|
|
|
|
%dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/certs
|
|
|
|
%{_sysconfdir}/raddb/certs/Makefile
|
|
|
|
%{_sysconfdir}/raddb/certs/README
|
|
|
|
%{_sysconfdir}/raddb/certs/xpextensions
|
|
|
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/certs/*.cnf
|
|
|
|
%attr(750,root,radiusd) %{_sysconfdir}/raddb/certs/bootstrap
|
|
|
|
%dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/sites-available
|
|
|
|
%attr(640,root,radiusd) %{_sysconfdir}/raddb/sites-available/*
|
|
|
|
%dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/sites-enabled
|
|
|
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/sites-enabled/*
|
|
|
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/eap.conf
|
|
|
|
%attr(640,root,radiusd) %{_sysconfdir}/raddb/example.pl
|
|
|
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/policy.conf
|
|
|
|
%{_sysconfdir}/raddb/policy.txt
|
|
|
|
%attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/templates.conf
|
2010-05-03 23:30:26 +02:00
|
|
|
%attr(700,radiusd,radiusd) %dir %ghost %{_localstatedir}/run/radiusd/
|
2008-02-01 04:33:23 +01:00
|
|
|
# binaries
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sbindir}/checkrad
|
|
|
|
%{_sbindir}/radiusd
|
2008-09-09 22:09:38 +02:00
|
|
|
%{_sbindir}/radmin
|
2008-02-01 04:33:23 +01:00
|
|
|
%{_sbindir}/radrelay
|
|
|
|
%{_sbindir}/radwatch
|
2009-06-02 17:00:18 +02:00
|
|
|
%{_sbindir}/raddebug
|
2008-02-01 04:33:23 +01:00
|
|
|
# man-pages
|
|
|
|
%doc %{_mandir}/man5/*
|
|
|
|
%doc %{_mandir}/man8/*
|
|
|
|
# dictionaries
|
|
|
|
%attr(755,root,root) %dir %{_datadir}/freeradius
|
|
|
|
%{_datadir}/freeradius/*
|
|
|
|
# logs
|
|
|
|
%attr(700,radiusd,radiusd) %dir %{_localstatedir}/log/radius/
|
|
|
|
%attr(700,radiusd,radiusd) %dir %{_localstatedir}/log/radius/radacct/
|
|
|
|
%attr(644,radiusd,radiusd) %{_localstatedir}/log/radius/radutmp
|
2011-06-24 13:29:48 +02:00
|
|
|
%config(noreplace) %attr(600,radiusd,radiusd) %{_localstatedir}/log/radius/radius.log
|
2008-02-01 04:33:23 +01:00
|
|
|
# RADIUS Loadable Modules
|
|
|
|
%attr(755,root,root) %dir %{_libdir}/freeradius
|
|
|
|
%attr(755,root,root) %{_libdir}/freeradius/rlm_*.so*
|
|
|
|
|
|
|
|
%files utils
|
|
|
|
%defattr(-,root,root)
|
2009-02-06 23:05:47 +01:00
|
|
|
%doc %{_mandir}/man1/*
|
2008-02-01 04:33:23 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
%files libs
|
2010-05-03 23:30:26 +02:00
|
|
|
%defattr(-,root,root)
|
2008-02-01 04:33:23 +01:00
|
|
|
# RADIUS shared libs
|
|
|
|
%attr(755,root,root) %dir %{_libdir}/freeradius
|
|
|
|
%attr(755,root,root) %{_libdir}/freeradius/lib*.so*
|
|
|
|
%if %{_oracle_support} == 1
|
|
|
|
|
|
|
|
%files oracle
|
2010-05-03 23:30:26 +02:00
|
|
|
%defattr(-,radiusd,radiusd)
|
2008-02-01 04:33:23 +01:00
|
|
|
%attr(755,root,root) %dir %{_libdir}/freeradius
|
|
|
|
%attr(755,root,root) %{_libdir}/freeradius/rlm_sql_oracle*.so*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files dialupadmin
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_datadir}/dialup_admin/
|
|
|
|
%{_datadir}/dialup_admin/bin/
|
|
|
|
%{_datadir}/dialup_admin/doc/
|
|
|
|
%{_datadir}/dialup_admin/htdocs/
|
|
|
|
%{_datadir}/dialup_admin/html/
|
|
|
|
%{_datadir}/dialup_admin/lib/
|
|
|
|
%{_datadir}/dialup_admin/sql/
|
|
|
|
%dir %{_datadir}/dialup_admin/conf/
|
|
|
|
%config(noreplace) %{_datadir}/dialup_admin/conf/*
|
|
|
|
%config(noreplace) %{apache2_sysconfdir}/conf.d/radius.conf
|
|
|
|
%{_datadir}/dialup_admin/Changelog
|
|
|
|
%{_datadir}/dialup_admin/README
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %attr(755,root,root) %{_includedir}/freeradius
|
|
|
|
%attr(644,root,root) %{_includedir}/freeradius/*.h
|
|
|
|
|
|
|
|
%changelog
|