I have made the following changes intended for : CE:Adaptation:x86-generic / virtualbox
Please review and accept or decline. BOSS has already run some checks on this request. See the "Messages from BOSS" section below. https://build.pub.meego.com//request/show/8424 Thank You, - [This message was auto-generated] --- Request # 8424: Messages from BOSS: WARNING check_package_is_complete_sources (virtualbox) failed: No dsc file found Extra source files: boss.conf, virtualbox.changes_suse. State: review at 2013-03-13T23:23:49 by bossbot Reviews: accepted by bossbot : Prechecks succeeded. new for CE-maintainers : Please replace this text with a review and approve/reject the review (not the SR). BOSS will take care of the rest Changes: submit: home:lbt:branches:CE:Adaptation:x86-generic / virtualbox -> CE:Adaptation:x86-generic / virtualbox changes files: -------------- --- virtualbox.changes +++ virtualbox.changes @@ -0,0 +1,3 @@ +* Wed Mar 13 2013 David Greaves <[email protected]> - 4.2.4 +- Add the systemd vboxservice.service to enable time-sync in guests + new: ---- vboxservice.service spec files: ----------- --- virtualbox.spec +++ virtualbox.spec @@ -58,6 +58,8 @@ #BuildRequires: xorg-x11-server-sdk #BuildRequires: yasm #BuildRequires: zlib-devel-static +# and just for the macro: +BuildRequires: systemd Version: 4.2.4 Release: 1 @@ -84,6 +86,8 @@ # init script to start virtual boxes during boot, to be configured via /etc/sysconfig/vbox bnc#582398 Source12: %{name}-vboxes Source13: %{name}-sysconfig.vbox +# added by lbt as the Mer systemd service +Source14: vboxservice.service # added by lbt to provide yasm from curl -O https://www.virtualbox.org/export/43504/vbox/trunk/tools/linux.x86/bin/yasm Source50: yasm Source98: %{name}-%{version}-rpmlintrc @@ -195,6 +199,7 @@ mkdir -p tools/linux.x86/bin %__cp %{S:50} tools/linux.x86/bin/yasm chmod 755 tools/linux.x86/bin/yasm +%__cp %{S:14} vboxservice.service # ########################## ####workaround kmk_sed --v @@ -289,6 +294,14 @@ %__install -m 755 out/linux.*/release/bin/additions/VBoxService %{buildroot}%{_bindir}/VBoxService %__install -m 755 out/linux.*/release/bin/additions/mount.vboxsf %{buildroot}/sbin/mount.vboxsf +########################################### +echo "entering systemd install section" +########################################### +%__install -d -m 755 %{buildroot}%{_unitdir}/basic.target.wants/ +%__install -m 755 vboxservice.service %{buildroot}%{_unitdir}/vboxservice.service +ln -sf ../vboxservice.service %{buildroot}%{_unitdir}/basic.target.wants/ + + %post guest-modules # depmod for kernel we require depmod -a %{kernel_version} @@ -305,6 +318,8 @@ %{_bindir}/VBoxControl %{_bindir}/VBoxService /sbin/mount.vboxsf +%{_unitdir}/vboxservice.service +%{_unitdir}/basic.target.wants/vboxservice.service %files guest-modules %defattr(-, root, root) other changes: -------------- ++++++ vboxservice.service (new) --- vboxservice.service +++ vboxservice.service @@ -0,0 +1,9 @@ +[Unit] +Description=VBoxService daemon for various aspects of guest control and time sync + +[Service] +Type=simple +ExecStart=/usr/bin/VBoxService -f + +[Install] +WantedBy=basic.target
