summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Teran <evan.teran@gmail.com>2015-08-12 05:00:02 +0000
committerEvan Teran <evan.teran@gmail.com>2015-08-12 05:00:02 +0000
commit6065d5456b4082cd1e58ed7421b74ce69791dee6 (patch)
tree0e81e56f99de86b2330d827f4637a6c208b13003 /app-emulation
parentMerge branch 'master' of git://git.gentoo.org/proj/vmware (diff)
parentAdded systemd service support for app-emulation/vmware-player (diff)
downloadvmware-6065d5456b4082cd1e58ed7421b74ce69791dee6.tar.gz
vmware-6065d5456b4082cd1e58ed7421b74ce69791dee6.tar.bz2
vmware-6065d5456b4082cd1e58ed7421b74ce69791dee6.zip
Merge branch 'stepping-stone-feature/systemd'
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/vmware-player/files/vmware-network.service17
-rw-r--r--app-emulation/vmware-player/files/vmware-usbarbitrator.service11
-rw-r--r--app-emulation/vmware-player/vmware-player-7.1.2.2780323.ebuild5
3 files changed, 32 insertions, 1 deletions
diff --git a/app-emulation/vmware-player/files/vmware-network.service b/app-emulation/vmware-player/files/vmware-network.service
new file mode 100644
index 0000000..abc6648
--- /dev/null
+++ b/app-emulation/vmware-player/files/vmware-network.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=VMware Network
+Requires=local-fs.target
+Wants=network.target vmware-usbarbitrator.service
+After=local-fs.target network.target vmware-usbarbitrator.service
+
+[Service]
+Type=simple
+ExecStartPre=/sbin/modprobe -av vmci vmmon vsock vmblock vmnet
+ExecStart=/opt/vmware/bin/vmware-networks --start
+ExecStop=/opt/vmware/bin/vmware-networks --stop
+ExecStopPost=/sbin/modprobe -rv vmmon vsock vmblock vmnet vmci
+TimeoutSec=0
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-emulation/vmware-player/files/vmware-usbarbitrator.service b/app-emulation/vmware-player/files/vmware-usbarbitrator.service
new file mode 100644
index 0000000..16a0fb8
--- /dev/null
+++ b/app-emulation/vmware-player/files/vmware-usbarbitrator.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=VMware USB Arbitrator
+Requires=local-fs.target
+Before=vmware-network.service
+
+[Service]
+Type=forking
+ExecStart=/opt/vmware/bin/vmware-usbarbitrator
+
+[Install]
+WantedBy=multi-user.target
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