]> git.pld-linux.org Git - packages/freeradius.git/blobdiff - freeradius.spec
- 1.1.1, NFY, patches need review (too much for me right now)
[packages/freeradius.git] / freeradius.spec
index d82c474b1d5f8baa2855d5e7ae4a47116409dda2..f0bf6ab8b13756c7e067482a1629edcf05be1ba0 100644 (file)
@@ -1,30 +1,32 @@
 #
 %include       /usr/lib/rpm/macros.perl
-# FIXME: won't be good to include these contrib examples?
-# Source1:     http://www.ping.de/~fdc/radius/radacct-replay
-# Source3:     ftp://ftp.freeradius.org/pub/radius/contrib/radwho.cgi
+# FIXME:
+# - won't be good to include these contrib examples?
+#   Source1:   http://www.ping.de/~fdc/radius/radacct-replay
+#   Source3:   ftp://ftp.freeradius.org/pub/radius/contrib/radwho.cgi
+# TODO
+# - (CVE-2006-1354) http://security.gentoo.org/glsa/glsa-200604-03.xml
+# - finish update to 1.1.1
 Summary:       High-performance and highly configurable RADIUS server
 Summary(pl):   Szybki i wysoce konfigurowalny serwer RADIUS
 Name:          freeradius
-Version:       1.0.1
-Release:       4
+Version:       1.1.1
+Release:       0.1
 License:       GPL
 Group:         Networking/Daemons
 Source0:       ftp://ftp.freeradius.org/pub/radius/%{name}-%{version}.tar.gz
-# Source0-md5: abc30cb71367f859ceed4de6477cd59f
+# Source0-md5: b38b24f6352090fdb571b9e8da52e12e
 Source1:       %{name}.logrotate
 Source2:       %{name}.init
 Source3:       %{name}.pam
-Patch0:                %{name}-autoconf_mysql.patch
-Patch1:                %{name}-makefile.patch
-Patch2:                %{name}-smbencrypt.patch
-Patch3:                %{name}-linking.patch
-Patch4:                %{name}-moduledir.patch
-Patch5:                %{name}-rundir.patch
-Patch6:                %{name}-config.patch
+Patch0:                %{name}-makefile.patch
+Patch1:                %{name}-smbencrypt.patch
+Patch2:                %{name}-linking.patch
+Patch3:                %{name}-moduledir.patch
+Patch4:                %{name}-rundir.patch
+Patch5:                %{name}-config.patch
+Patch6:                %{name}-eap_install_order.patch
 URL:           http://www.freeradius.org/
-Provides:      user(radius)
-Provides:      group(radius)
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: cyrus-sasl-devel
@@ -32,30 +34,32 @@ BuildRequires:      gdbm-devel
 BuildRequires: libltdl-devel
 BuildRequires: libtool
 BuildRequires: mysql-devel
-BuildRequires: openldap-devel
+BuildRequires: net-snmp-devel
+BuildRequires: openldap-devel >= 2.3.0
 BuildRequires: openssl-devel >= 0.9.7d
 BuildRequires: pam-devel
 BuildRequires: perl-devel
 BuildRequires: postgresql-backend-devel
 BuildRequires: postgresql-devel
+BuildRequires: python
 BuildRequires: python-devel
-BuildRequires: net-snmp-devel
-BuildRequires: unixODBC-devel
 BuildRequires: rpm-perlprov
-BuildRequires: rpmbuild(macros) >= 1.202
-PreReq:                rc-scripts
-Requires(pre): /usr/bin/getgid
+BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: unixODBC-devel
+Requires(post,preun):  /sbin/chkconfig
+Requires(postun):      /usr/sbin/groupdel
+Requires(postun):      /usr/sbin/userdel
 Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
 Requires(pre): /usr/sbin/groupadd
-Requires(pre): /usr/sbin/usermod
 Requires(pre): /usr/sbin/useradd
-Requires(postun):      /usr/sbin/userdel
-Requires(postun):      /usr/sbin/groupdel
-Requires(post,preun):  /sbin/chkconfig
-Requires:      libtool
+Requires(pre): /usr/sbin/usermod
 Requires:      perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Requires:      rc-scripts
+Provides:      group(radius)
+Provides:      user(radius)
 Obsoletes:     cistron-radius
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 The FreeRADIUS Server Project is an attempt to create a
@@ -72,26 +76,24 @@ wi
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
+#%patch1 -p1
+#%patch2 -p1
+#%patch3 -p1
+#%patch4 -p1
 %patch5 -p1
-%patch6 -p1
+#%patch6 -p1
 
 awk 'BEGIN { printit=0; } { if (printit) print $0; } /## end libtool.m4/ { printit=1;}' \
        < aclocal.m4 > acinclude.m4
 
-find . -type d -name CVS | xargs rm -r
-
 %build
 maindir="$(pwd)"
 for d in rlm_attr_rewrite rlm_checkval rlm_counter rlm_dbm \
        rlm_eap/types/rlm_eap_{md5,mschapv2,peap,sim,tls,ttls} \
-       rlm_eap rlm_example rlm_ippool rlm_krb5 rlm_ldap rlm_pam rlm_perl rlm_python \
-       rlm_radutmp rlm_smb \
+       rlm_eap rlm_example rlm_ippool rlm_krb5 rlm_ldap rlm_otp \
+       rlm_pam rlm_perl rlm_python rlm_radutmp rlm_smb \
        rlm_sql/drivers/rlm_sql_{db2,iodbc,mysql,oracle,postgresql,unixodbc} \
-       rlm_sql rlm_sqlcounter rlm_unix rlm_x99_token ; do
+       rlm_sql rlm_sql_log rlm_sqlcounter rlm_unix ; do
 
        cd src/modules/${d}
        %{__aclocal} -I ${maindir}
@@ -126,7 +128,7 @@ done
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/raddb,%{_libdir}/%{name}} \
        $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,rc.d/init.d} \
-       $RPM_BUILD_ROOT%{_var}/log/radius
+       $RPM_BUILD_ROOT%{_var}/log/{,archiv}/freeradius/radacct
 
 %{__make} install \
        LIBTOOL="`pwd`/libtool --tag=CC" \
@@ -141,8 +143,8 @@ install %{SOURCE3}  $RPM_BUILD_ROOT/etc/pam.d/radius
 
 # remove useless static modules and library
 # rlm*.la are used (lt_dlopen)
-rm -f $RPM_BUILD_ROOT%{_libdir}/{*.a,libradius.la}
-rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/{*.a,libradius.la}
+rm -f $RPM_BUILD_ROOT%{_libdir}/{*.a,*.la}
+rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.a
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -161,17 +163,11 @@ fi
 
 %post
 /sbin/chkconfig --add %{name}
-if [ -f /var/lock/subsys/%{name} ]; then
-       /etc/rc.d/init.d/%{name} restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
-fi
+%service %{name} restart "%{name} daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/%{name} ]; then
-               /etc/rc.d/init.d/%{name} stop 1>&2
-       fi
+       %service %{name} stop
        /sbin/chkconfig --del %{name}
 fi
 
@@ -188,7 +184,6 @@ fi
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_sbindir}/*
 %attr(755,root,root) %{_libdir}/*.so
-%{_libdir}/*.la
 %dir %{_libdir}/%{name}
 %attr(755,root,root) %{_libdir}/%{name}/*.so
 %{_libdir}/%{name}/*.la
@@ -199,6 +194,8 @@ fi
 
 %attr(771,root,radius) %dir %{_var}/log/%{name}
 %attr(771,root,radius) %dir %{_var}/log/%{name}/radacct
+%attr(771,root,radius) %dir %{_var}/log/archiv/%{name}
+%attr(771,root,radius) %dir %{_var}/log/archiv/%{name}/radacct
 %attr(775,root,radius) %dir /var/run/%{name}
 
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
This page took 0.074268 seconds and 4 git commands to generate.