diff options
author | Maxwell Pray | 2017-02-14 08:07:11 -0800 |
---|---|---|
committer | Maxwell Pray | 2017-02-14 08:07:11 -0800 |
commit | dfcb75623e2a107dc311e82f89838529ca2a3bc3 (patch) | |
tree | ea23fa6eb5a7a85837017b1008bf7df921b54d6b | |
parent | 9c791a734d229b0ee186d51aa8f5f44f63b801cd (diff) | |
download | aur-dfcb75623e2a107dc311e82f89838529ca2a3bc3.tar.gz |
Add systemd services for vmware-networks.
-rw-r--r-- | PKGBUILD | 34 | ||||
-rw-r--r-- | vmware-networks-configuration.service | 14 | ||||
-rw-r--r-- | vmware-networks.service | 12 | ||||
-rw-r--r-- | vmware-workstation-server.service | 2 |
4 files changed, 48 insertions, 14 deletions
@@ -2,7 +2,7 @@ pkgname=vmware-workstation pkgver=12.5.2_4638234 -pkgrel=3 +pkgrel=4 pkgdesc='The industry standard for running multiple operating systems as virtual machines on a single Linux PC.' arch=(x86_64) url='https://www.vmware.com/products/workstation-for-linux.html' @@ -26,6 +26,8 @@ source=( environments.xml proxy.xml + vmware-networks-configuration.service + vmware-networks.service vmware-usbarbitrator.service vmware-workstation-server-certificates.service vmware-workstation-server.service @@ -48,9 +50,11 @@ sha1sums=( a7e4a6fe33dc6ca95b469ec6f88de21e5b16a95b 80c5626984ffcdea6fa655d248c731e7c9c657fa + d90c687250c16fc5586938de5dc7539a58500adc + ba7e8fb23512fd87b986591ff52ee9f3f8b3cd4c c1dbfbad3473d12e9c82b75c5f1faf795f3cc217 fa9bc954e7ea595fd365f3d34fc7b89351e355d9 - 8121242dc9b402477e089f0ecb9c35519eb56186 + db659e4edbc6810a79eff3bdac151ef346ed41a2 3f6f14f8047941c015e9067f62ae403acc7b563c bd8955b45f9ac3deed99aba93d2c82bc5424167e @@ -120,22 +124,22 @@ package() { install -Dm 644 vmware-vmx/extra/modules.xml "$pkgdir/usr/lib/vmware/modules/modules.xml" install -Dm 644 vmware-installer/bootstrap "$pkgdir/etc/vmware-installer/bootstrap" - install -Dm 644 \ - "$srcdir/vmware-usbarbitrator.service" \ - "$pkgdir/usr/lib/systemd/system/vmware-usbarbitrator.service" - - install -Dm 644 \ - "$srcdir/vmware-workstation-server.service" \ - "$pkgdir/usr/lib/systemd/system/vmware-workstation-server.service" - - install -Dm 644 \ - "$srcdir/vmware-workstation-server-certificates.service" \ - "$pkgdir/usr/lib/systemd/system/vmware-workstation-server-certificates.service" - for hostd_file in config datastores environments proxy; do install -Dm 644 "$srcdir/$hostd_file.xml" "$pkgdir/etc/vmware/hostd/$hostd_file.xml" done + for service_file in \ + vmware-networks-configuration.service \ + vmware-networks.service \ + vmware-usbarbitrator.service \ + vmware-workstation-server-certificates.service \ + vmware-workstation-server.service + do + install -Dm 644 \ + "$srcdir/$service_file" \ + "$pkgdir/usr/lib/systemd/system/$service_file" + done + # Apply permissions where necessary. @@ -171,6 +175,8 @@ package() { ln -s /usr/lib/vmware/bin/appLoader "$pkgdir/usr/lib/vmware/bin/$link" done + ln -s /usr/lib/vmware/icu "$pkgdir/etc/vmware/icu" + # Replace placeholder "variables" with real paths. diff --git a/vmware-networks-configuration.service b/vmware-networks-configuration.service new file mode 100644 index 000000000000..779b01a3171a --- /dev/null +++ b/vmware-networks-configuration.service @@ -0,0 +1,14 @@ +[Unit] +Description=VMware Networks Configuration Generation +ConditionPathExists=|!/etc/vmware/networking +ConditionPathExists=|!/etc/vmware/vmnet1/dhcpd/dhcpd.conf +ConditionPathExists=|!/etc/vmware/vmnet1/dhcpd/dhcpd.leases +ConditionPathExists=|!/etc/vmware/vmnet8/dhcpd/dhcpd.conf +ConditionPathExists=|!/etc/vmware/vmnet8/dhcpd/dhcpd.leases +ConditionPathExists=|!/etc/vmware/vmnet8/nat/nat.conf + +[Service] +UMask=0077 +ExecStart=/usr/bin/vmware-networks --postinstall vmware-player,0,1 +Type=oneshot +RemainAfterExit=yes diff --git a/vmware-networks.service b/vmware-networks.service new file mode 100644 index 000000000000..10922d55c3b2 --- /dev/null +++ b/vmware-networks.service @@ -0,0 +1,12 @@ +[Unit] +Description=VMware Networks +Wants=vmware-networks-configuration.service +After=vmware-networks-configuration.service + +[Service] +Type=forking +ExecStart=/usr/bin/vmware-networks --start +ExecStop=/usr/bin/vmware-networks --stop + +[Install] +WantedBy=multi-user.target diff --git a/vmware-workstation-server.service b/vmware-workstation-server.service index 18f1c8cbcee8..66150de974fd 100644 --- a/vmware-workstation-server.service +++ b/vmware-workstation-server.service @@ -4,6 +4,8 @@ Wants=vmware-workstation-server-certificates.service After=vmware-workstation-server-certificates.service Wants=vmware-usbarbitrator.service After=vmware-usbarbitrator.service +Wants=vmware-networks.service +After=vmware-networks.service [Service] ExecStart=/usr/bin/vmware-hostd -a /etc/vmware/hostd/config.xml |