X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa.spec;h=6774c38a747fc7e678695d27874815bbb106f31a;hb=19626c7e9bfc131b6bf030ad7e1d4258871584d2;hp=27f51f359aa7dc8c11d9ce59e0d1ae008309d845;hpb=dced55d1d2d2c4517f5a81b7c2122765574dcfda;p=sfa.git diff --git a/sfa.spec b/sfa.spec index 27f51f35..6774c38a 100644 --- a/sfa.spec +++ b/sfa.spec @@ -5,8 +5,8 @@ %define url $URL$ %define name sfa -%define version 0.9 -%define taglevel 16 +%define version 1.0 +%define taglevel 0 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} %global python_sitearch %( python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" ) @@ -147,18 +147,33 @@ rm -rf $RPM_BUILD_ROOT %files sfatables %{_bindir}/sfatables -%pre plc -[ -f %{_sysconfdir}/init.d/sfa ] && service sfa stop ||: - -%pre cm -[ -f %{_sysconfdir}/init.d/sfa-cm ] && service sfa-cm stop ||: - +### sfa-plc installs the 'sfa' service %post plc chkconfig --add sfa +%preun plc +if [ "$1" = 0 ] ; then + /sbin/service sfa stop + /sbin/chkconfig --del sfa +fi + +%postun plc +[ "$1" -ge "1" ] && service sfa restart + +### sfa-cm installs the 'sfa-cm' service %post cm chkconfig --add sfa-cm +%preun cm +if [ "$1" = 0 ] ; then + /sbin/service sfa-cm stop + /sbin/chkconfig --del sfa-cm +fi + +%postun cm +[ "$1" -ge "1" ] && service sfa-cm restart + + %changelog * Tue Sep 07 2010 Tony Mack - sfa-0.9-16 - truncate login base of external (ProtoGeni, etc) slices to 20 characters