]> git.pld-linux.org Git - packages/radsecproxy.git/blobdiff - radsecproxy.spec
- fix paths (/usr/local/etc -> /etc)
[packages/radsecproxy.git] / radsecproxy.spec
index 298cb429b9ede39aa0b3bc702e879a0e8fc279d7..1bea6dd6ad7cc767322ac3b067bbff2f99d80242 100644 (file)
@@ -1,13 +1,25 @@
-######         Unknown group!
+# TODO:
+# - own UID/GID
 Summary:       RADIUS proxy that in addition to to usual RADIUS UDP transport, also supports TLS (RadSec)
 Name:          radsecproxy
-Version:       1.1
-Release:       1.1
-License:       Artistic License
-Group:         Productivity/Networking/Radius/Clients
+Version:       1.7.1
+Release:       1
+License:       GPLv2+ or BSD-like
+Group:         Networking/Daemons/Radius
+Source0:       https://github.com/radsecproxy/radsecproxy/releases/download/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 070ec707aa2f351bdc5387b474b58e7a
+Source1:       %{name}.init
+Source2:       %{name}.logrotate
+Patch0:                %{name}-paths.patch
 URL:           http://software.uninett.no/radsecproxy/
-Source0:       %{name}-%{version}.tar.bz2
-BuildRequires: openssl-devel
+# For manual creation:
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: docbook2X
+BuildRequires: nettle-devel
+Requires:      openssl >= 1.0.0b
+Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts >= 0.4.3.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -18,36 +30,70 @@ time to be small, efficient and easy to configure. Currently the
 executable on Linux is only about 48 Kb, and it uses about 64 Kb
 (depending on the number of peers) while running.
 
+%package upstart
+Summary:       Upstart job description for %{name}
+Summary(pl.UTF-8):     Opis zadania Upstart dla %{name}
+Group:         Daemons
+Requires:      %{name} = %{version}-%{release}
+Requires:      upstart >= 0.6
+
+%description upstart
+Upstart job description for %{name}.
+
+%description upstart -l pl.UTF-8
+Opis zadania Upstart dla %{name}.
+
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+%{__aclocal}
+%{__autoconf}
+%{__automake}
 %configure \
-       --enable-shadow \
-       --with-secure-path \
-
-
+       --enable-fticks
+# Some trash comes with tar:
+%{__make} clean
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf.d \
+       $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,init}
+
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-%post
-%{run_ldconfig}
+cp -p radsecproxy.conf-example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
+
+install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
 
-%postun
-%{run_ldconfig}
+install -p radsecproxy.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5
 
 %clean
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add %{name}
+%service %{name} restart "RADIUS secure proxy"
+
+%preun
+if [ "$1" = "0" ]; then
+       %service %{name} stop
+       /sbin/chkconfig --del %{name}
+fi
 
 %files
 %defattr(644,root,root,755)
-%doc COPYING NEWS INSTALL AUTHORS ChangeLog
-#%config(noreplace) %{_sysconfdir}/radsecproxy.conf
+%doc AUTHORS ChangeLog README
+%attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/radsecproxy.conf
+%attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
+%attr(750,root,root) %dir %{_sysconfdir}/radsecproxy.conf.d
 %attr(755,root,root) %{_sbindir}/radsecproxy
+%attr(755,root,root) %{_bindir}/radsecproxy-conf
+%attr(755,root,root) %{_bindir}/radsecproxy-hash
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
 %{_mandir}/man1/*
 %{_mandir}/man5/*
-%{_sysconfdir}/radsecproxy.conf-example
This page took 0.141748 seconds and 4 git commands to generate.