From 741e4d9a127566fd90531a2565d9628764622176 Mon Sep 17 00:00:00 2001 From: Christian Affolter Date: Tue, 4 Aug 2015 17:10:12 +0200 Subject: Added systemd service support for app-emulation/vmware-player Created two systemd service unit files according to the existing OpenRC init script: * vmware-usbarbitrator.service manages the VMware USB Arbitrator * vmware-network.service manages the VMware host network It was decided to split the existing OpenRC init script, in order to have a better dependency handling and to adhere to Gentoo's Systemd/Ebuild policy. --- app-emulation/vmware-player/vmware-player-7.1.2.2780323.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app-emulation/vmware-player/vmware-player-7.1.2.2780323.ebuild') diff --git a/app-emulation/vmware-player/vmware-player-7.1.2.2780323.ebuild b/app-emulation/vmware-player/vmware-player-7.1.2.2780323.ebuild index 0a7ea6a..1dff576 100644 --- a/app-emulation/vmware-player/vmware-player-7.1.2.2780323.ebuild +++ b/app-emulation/vmware-player/vmware-player-7.1.2.2780323.ebuild @@ -4,7 +4,7 @@ EAPI=5 -inherit eutils versionator fdo-mime gnome2-utils pax-utils vmware-bundle +inherit eutils versionator fdo-mime gnome2-utils pax-utils systemd vmware-bundle MY_PN="VMware-Player" MY_PV=$(get_version_component_range 1-3) @@ -206,6 +206,9 @@ src_install() { "${FILESDIR}/vmware-11.0.rc" > "${initscript}" || die newinitd "${initscript}" vmware || die + systemd_dounit "${FILESDIR}/vmware-usbarbitrator.service" + systemd_dounit "${FILESDIR}/vmware-network.service" + # fill in variable placeholders sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \ -i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}} || die -- cgit v1.2.3-65-gdbad