merge cloudbridge spec to cloudstack spec

This commit is contained in:
frank 2012-04-13 10:52:06 -07:00 committed by prachi
parent dfde2bc0d6
commit 1d0749cc92
1 changed files with 35 additions and 0 deletions

View File

@ -304,6 +304,14 @@ Group: System Environment/Libraries
The CloudStack usage monitor provides usage accounting across the entire cloud for
cloud operators to charge based on usage parameters.
%package bridge
Summary: CloudStack CloudBridge
Group: System Environment/Libraries
Requires: java >= 1.6.0
Requires: tomcat6
Obsoletes: cloud-bridge < %{version}-%{release}
%description bridge
This is the CloudStack CloudBridge
%prep
@ -417,6 +425,19 @@ else
/sbin/service %{name}-console-proxy condrestart >/dev/null 2>&1 || true
fi
%preun
/sbin/service cloud-bridge stop || true
if [ "$1" == "0" ] ; then
/sbin/chkconfig --del cloud-bridge > /dev/null 2>&1 || true
/sbin/service cloud-bridge stop > /dev/null 2>&1 || true
fi
%post
if [ "$1" == "1" ] ; then
/sbin/chkconfig --add cloud-bridge > /dev/null 2>&1 || true
/sbin/chkconfig --level 345 cloud-bridge on > /dev/null 2>&1 || true
fi
%files utils
%defattr(0644,root,root,0755)
%{_javadir}/%{name}-utils.jar
@ -599,6 +620,20 @@ fi
%config(noreplace) %{_sysconfdir}/%{name}/usage/log4j-%{name}_usage.xml
%config(noreplace) %attr(0640,root,%{name}) %{_sysconfdir}/%{name}/usage/db.properties
%files bridge
%defattr(0644,cloud,cloud,0755)
/usr/share/cloud/bridge/conf/*
/usr/share/cloud/bridge/lib/*
/usr/share/cloud/bridge/webapps/*
%dir %attr(0775,cloud,cloud) /usr/share/cloud/bridge/logs
%dir %attr(0775,cloud,cloud) /usr/share/cloud/bridge/work
%dir %attr(0775,cloud,cloud) /usr/share/cloud/bridge/temp
%attr(0644,root,root) /usr/share/cloud/setup/bridge/db/*
%attr(0755,root,root) /etc/init.d/cloud-bridge
%attr(0755,root,root) /usr/bin/cloud-bridge-register
%attr(0755,root,root) /usr/bin/cloud-setup-bridge
%attr(0755,root,root) /usr/bin/cloud-setup-bridge-db
%changelog
* Mon May 3 2010 Manuel Amador (Rudd-O) <manuel@vmops.com> 1.9.12
- Bump version for RC4 release