Skip to content

Commit

Permalink
Package v6d as a separate RPM
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
  • Loading branch information
robhoes authored and matthiasgoergens committed Jan 31, 2011
1 parent 816e9e1 commit c5a2787
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions mk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ $(OUTPUT_CLI_RT) $(OUTPUT_SDK): $(MY_MAIN_PACKAGES)/.dirstamp $(RPM_DIRECTORIES)
cp $(RPM_RPMSDIR)/$(DOMAIN0_ARCH_OPTIMIZED)/xapi-www-*.rpm $(MY_MAIN_PACKAGES)
cp $(RPM_RPMSDIR)/$(DOMAIN0_ARCH_OPTIMIZED)/xapi-xe-*.rpm $(MY_MAIN_PACKAGES)
cp $(RPM_RPMSDIR)/$(DOMAIN0_ARCH_OPTIMIZED)/xapi-xenops-*.rpm $(MY_MAIN_PACKAGES)
test -z $(INSTALL_XCP_V6D) || cp $(RPM_RPMSDIR)/$(DOMAIN0_ARCH_OPTIMIZED)/xapi-v6d-*.rpm $(MY_MAIN_PACKAGES)

.PHONY: clean
clean:
Expand Down
18 changes: 15 additions & 3 deletions xapi.spec
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ Group: System/Hypervisor
%description squeezed
This package contains the Xen virtual firmware (hvmloader)

%package v6d
Summary: The editions and features daemon
Group: System/Hypervisor

%description v6d
This package contains daemon that defines and controls XCP editions and
associated features

%package xenops
Summary: Low-level debugging tools
Group: System/Hypervisor
Expand Down Expand Up @@ -105,12 +113,14 @@ rm -rf $RPM_BUILD_ROOT
[ ! -x /sbin/chkconfig ] || chkconfig --add xenservices
[ ! -x /sbin/chkconfig ] || chkconfig --add xapi-domains
[ ! -x /sbin/chkconfig ] || chkconfig --add perfmon
[ ! -x /sbin/chkconfig ] || chkconfig --add v6d
[ ! -x /sbin/chkconfig ] || chkconfig --add genptoken

%post squeezed
[ ! -x /sbin/chkconfig ] || chkconfig squeezed on

%post v6d
[ ! -x /sbin/chkconfig ] || chkconfig --add v6d

%files core
%defattr(-,root,root,-)
/opt/xensource/bin/xapi
Expand All @@ -120,7 +130,6 @@ rm -rf $RPM_BUILD_ROOT
/etc/pam.d/xapi
/etc/rc.d/init.d/management-interface
/etc/rc.d/init.d/perfmon
/etc/rc.d/init.d/v6d
/etc/rc.d/init.d/xapi
/etc/rc.d/init.d/xapi-domains
/etc/rc.d/init.d/xapissl
Expand Down Expand Up @@ -237,7 +246,6 @@ rm -rf $RPM_BUILD_ROOT
/opt/xensource/libexec/sparse_dd
/opt/xensource/libexec/update-mh-info
/opt/xensource/libexec/upload-wrapper
/opt/xensource/libexec/v6d
/opt/xensource/libexec/vncterm-wrapper
/opt/xensource/libexec/xapi-health-check
/opt/xensource/libexec/xapi-rolling-upgrade
Expand Down Expand Up @@ -274,6 +282,10 @@ rm -rf $RPM_BUILD_ROOT
/etc/rc.d/init.d/squeezed
/opt/xensource/bin/squeezed_client

%files v6d
%defattr(-,root,root,-)
/opt/xensource/libexec/v6d
/etc/rc.d/init.d/v6d

%files xenops
%defattr(-,root,root,-)
Expand Down

0 comments on commit c5a2787

Please sign in to comment.