From 02b77e6682d91cec7ddb35fb140720e95a026e29 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 17 Jan 2013 15:54:49 +0100 Subject: [PATCH] deprecate the cm package altogether --- setup.py | 6 ++++-- sfa.spec | 50 +++++++++++++++++++++++++------------------------- 2 files changed, 29 insertions(+), 27 deletions(-) diff --git a/setup.py b/setup.py index 575dfd63..204003a9 100755 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ scripts = glob("clientbin/*.py") + \ [ 'config/sfa-config-tty', 'config/sfa-config', - 'config/gen-sfa-cm-config.py', +# 'config/gen-sfa-cm-config.py', 'sfa/server/sfa-start.py', 'sfa/server/sfa_component_setup.py', 'sfatables/sfatables', @@ -46,7 +46,9 @@ packages = [ 'sfatables/processors', ] -initscripts = [ 'sfa', 'sfa-cm' ] +initscripts = [ 'sfa', +# 'sfa-cm', + ] data_files = [ ('/etc/sfa/', [ 'config/aggregates.xml', 'config/registries.xml', diff --git a/sfa.spec b/sfa.spec index 6c4f2ff2..f5f8e50e 100644 --- a/sfa.spec +++ b/sfa.spec @@ -77,11 +77,11 @@ Summary: the SFA layer around MyPLC Group: Applications/System Requires: sfa -%package cm -Summary: the SFA layer around MyPLC NodeManager -Group: Applications/System -Requires: sfa -Requires: pyOpenSSL >= 0.6 +#%package cm +#Summary: the SFA layer around MyPLC NodeManager +#Group: Applications/System +#Requires: sfa +#Requires: pyOpenSSL >= 0.6 %package federica Summary: the SFA layer around Federica @@ -127,9 +127,9 @@ sfi.py, together with other utilities. This package implements the SFA interface which serves as a layer between the existing PlanetLab interfaces and the SFA API. -%description cm -This package implements the SFA interface which serves as a layer -between the existing PlanetLab NodeManager interfaces and the SFA API. +#%description cm +#This package implements the SFA interface which serves as a layer +#between the existing PlanetLab NodeManager interfaces and the SFA API. %description federica The SFA driver for FEDERICA. @@ -216,12 +216,12 @@ rm -rf $RPM_BUILD_ROOT /etc/sfa/xml.xsd /etc/sfa/protogeni-rspec-common.xsd /etc/sfa/topology -%{_bindir}/gen-sfa-cm-config.py* +#%{_bindir}/gen-sfa-cm-config.py* -%files cm -/etc/init.d/sfa-cm -%{_bindir}/sfa_component_setup.py* -# cron jobs here +#%files cm +#/etc/init.d/sfa-cm +#%{_bindir}/sfa_component_setup.py* +## cron jobs here %files federica %{python_sitelib}/sfa/federica @@ -256,18 +256,18 @@ fi %postun [ "$1" -ge "1" ] && { service sfa dbdump ; 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 || : +#### 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 * Sun Dec 16 2012 Thierry Parmentelat - sfa-2.1-22 -- 2.43.0