Author: blues Date: Fri Oct 24 13:36:33 2008 GMT Module: SPECS Tag: HEAD ---- Log message: - init script and various fixes
---- Files affected: SPECS: radsecproxy.spec (1.3 -> 1.4) ---- Diffs: ================================================================ Index: SPECS/radsecproxy.spec diff -u SPECS/radsecproxy.spec:1.3 SPECS/radsecproxy.spec:1.4 --- SPECS/radsecproxy.spec:1.3 Thu Oct 23 15:42:35 2008 +++ SPECS/radsecproxy.spec Fri Oct 24 15:36:28 2008 @@ -1,13 +1,15 @@ # $Revision$, $Date$ +# TODO: +# - own UID/GID Summary: RADIUS proxy that in addition to to usual RADIUS UDP transport, also supports TLS (RadSec) Name: radsecproxy Version: 1.2 -Release: 0.1 -License: GPLv2 or BSD -###### Unknown group! -Group: Productivity/Networking/Radius/Clients +Release: 0.3 +License: GPLv2+ or BSD-like +Group: Networking/Daemons/Radius Source0: http://software.uninett.no/radsecproxy/%{name}-%{version}.tar.gz # Source0-md5: e209054731b3316301d0920c15a0a5b2 +Source1: %{name}.init URL: http://software.uninett.no/radsecproxy/ BuildRequires: openssl-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -32,20 +34,39 @@ %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf.d \ + $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} + %{__make} install \ DESTDIR=$RPM_BUILD_ROOT +mv $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf-example \ + $RPM_BUILD_ROOT%{_sysconfdir}/radsecproxy.conf + +install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} + %clean 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(750,root,root) %dir %{_sysconfdir}/radsecproxy.conf.d %attr(755,root,root) %{_sbindir}/radsecproxy +%attr(754,root,root) /etc/rc.d/init.d/%{name} %{_mandir}/man1/* %{_mandir}/man5/* -%{_sysconfdir}/radsecproxy.conf-example %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) @@ -54,6 +75,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.4 2008/10/24 13:36:28 blues +- init script and various fixes + Revision 1.3 2008/10/23 13:42:35 blues - 1.2 ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/radsecproxy.spec?r1=1.3&r2=1.4&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
