[arch-commits] Commit in open-vm-tools/repos (16 files)
Sergej Pupykin
spupykin at archlinux.org
Sun Apr 5 21:57:33 UTC 2015
Date: Sunday, April 5, 2015 @ 23:57:33
Author: spupykin
Revision: 130729
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
open-vm-tools/repos/community-staging-i686/
open-vm-tools/repos/community-staging-i686/PKGBUILD
(from rev 130728, open-vm-tools/trunk/PKGBUILD)
open-vm-tools/repos/community-staging-i686/network-script
(from rev 130728, open-vm-tools/trunk/network-script)
open-vm-tools/repos/community-staging-i686/tools.conf
(from rev 130728, open-vm-tools/trunk/tools.conf)
open-vm-tools/repos/community-staging-i686/vmtoolsd.service
(from rev 130728, open-vm-tools/trunk/vmtoolsd.service)
open-vm-tools/repos/community-staging-i686/vmware-guestd
(from rev 130728, open-vm-tools/trunk/vmware-guestd)
open-vm-tools/repos/community-staging-i686/vmware-vmblock-fuse.service
(from rev 130728, open-vm-tools/trunk/vmware-vmblock-fuse.service)
open-vm-tools/repos/community-staging-i686/xautostart.conf
(from rev 130728, open-vm-tools/trunk/xautostart.conf)
open-vm-tools/repos/community-staging-x86_64/
open-vm-tools/repos/community-staging-x86_64/PKGBUILD
(from rev 130728, open-vm-tools/trunk/PKGBUILD)
open-vm-tools/repos/community-staging-x86_64/network-script
(from rev 130728, open-vm-tools/trunk/network-script)
open-vm-tools/repos/community-staging-x86_64/tools.conf
(from rev 130728, open-vm-tools/trunk/tools.conf)
open-vm-tools/repos/community-staging-x86_64/vmtoolsd.service
(from rev 130728, open-vm-tools/trunk/vmtoolsd.service)
open-vm-tools/repos/community-staging-x86_64/vmware-guestd
(from rev 130728, open-vm-tools/trunk/vmware-guestd)
open-vm-tools/repos/community-staging-x86_64/vmware-vmblock-fuse.service
(from rev 130728, open-vm-tools/trunk/vmware-vmblock-fuse.service)
open-vm-tools/repos/community-staging-x86_64/xautostart.conf
(from rev 130728, open-vm-tools/trunk/xautostart.conf)
------------------------------------------------------+
community-staging-i686/PKGBUILD | 80 ++++++
community-staging-i686/network-script | 195 +++++++++++++++++
community-staging-i686/tools.conf | 1
community-staging-i686/vmtoolsd.service | 9
community-staging-i686/vmware-guestd | 6
community-staging-i686/vmware-vmblock-fuse.service | 11
community-staging-i686/xautostart.conf | 6
community-staging-x86_64/PKGBUILD | 80 ++++++
community-staging-x86_64/network-script | 195 +++++++++++++++++
community-staging-x86_64/tools.conf | 1
community-staging-x86_64/vmtoolsd.service | 9
community-staging-x86_64/vmware-guestd | 6
community-staging-x86_64/vmware-vmblock-fuse.service | 11
community-staging-x86_64/xautostart.conf | 6
14 files changed, 616 insertions(+)
Copied: open-vm-tools/repos/community-staging-i686/PKGBUILD (from rev 130728, open-vm-tools/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-04-05 21:57:33 UTC (rev 130729)
@@ -0,0 +1,80 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Krzysztof Raczkowski <raczkow at gmail.com>
+
+pkgname=open-vm-tools
+epoch=6
+pkgver=9.4.6
+_pkgsubver=1770165
+pkgrel=5
+pkgdesc="The Open Virtual Machine Tools (open-vm-tools) are the open source implementation of VMware Tools"
+arch=('i686' 'x86_64')
+url="http://open-vm-tools.sourceforge.net/"
+license=('LGPL')
+depends=('libdnet' 'icu' 'procps-ng' 'uriparser' 'libsigc++' 'libxss'
+ 'iproute2' 'fuse' 'lsb-release')
+makedepends=('chrpath' 'doxygen' 'gtkmm' 'libxtst')
+optdepends=('gtkmm: DnD/CP plugin'
+ 'libxtst: DnD/CP, resolution set plugins'
+ 'netctl: suspend-resume network state'
+ 'networkmanager: suspend-resume network state')
+backup=('etc/pam.d/vmware-guestd')
+options=('docs')
+#source=("http://downloads.sourceforge.net/project/open-vm-tools/open-vm-tools/Development%20Snapshots/open-vm-tools-$pkgver-${_pkgsubver}.tar.gz"
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-${_pkgsubver}.tar.gz
+ network-script
+ tools.conf
+ vmware-guestd
+ xautostart.conf
+ vmtoolsd.service
+ vmware-vmblock-fuse.service)
+md5sums=('3969daf1535d34e1c5f0c87a779b7642'
+ 'cbfa69ead382bc527e6f6ddfed8e5c4d'
+ 'b55d15e2c4be396aad709aeca91033d3'
+ '1b9ae908fce4c623269f100ee9bdfdef'
+ '75a25d83417e683957321f97a00f8465'
+ 'a6c53243d31c765580f6dded7d5fa98f'
+ '111192ec9ad2369c1427b8cfa0a77e1e')
+
+build() {
+ cd "$srcdir/$pkgname-${pkgver}-${_pkgsubver}"
+ export CFLAGS="-DGLIB_DISABLE_DEPRECATION_WARNINGS ${CFLAGS}"
+ export CUSTOM_PROCPS_NAME="procps"
+ sed -i 's|-Werror||g' configure.ac
+ aclocal
+ libtoolize
+ automake --add-missing
+ autoconf
+ ./configure --prefix=/usr --without-kernel-modules --sbindir=/usr/bin
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-${pkgver}-${_pkgsubver}"
+
+ make install DESTDIR="$pkgdir"
+ install -Dm0644 vmware-user-suid-wrapper/vmware-user.desktop $pkgdir/usr/share/applications/vmware-user.desktop
+
+ # vmware-user XDG autostart
+ mkdir -p $pkgdir/etc/xdg/autostart
+ ln -s /usr/share/applications/vmware-user.desktop $pkgdir/etc/xdg/autostart/vmware-user.desktop
+
+ install -D -m 755 scripts/common/vmware-xdg-detect-de "$pkgdir"/usr/bin/vmware-xdg-detect-de
+ chmod 07755 "$pkgdir"/usr/bin/vmware-user-suid-wrapper
+
+ install -Dm0755 "$srcdir"/network-script $pkgdir/etc/vmware-tools/scripts/vmware/network
+ install -Dm0644 "$srcdir"/tools.conf "$pkgdir"/etc/vmware-tools/tools.conf
+ install -Dm0644 "$srcdir"/xautostart.conf "$pkgdir"/etc/vmware-tools/xautostart.conf
+ install -Dm0644 "$srcdir"/vmware-guestd "$pkgdir"/etc/pam.d/vmware-guestd
+ rm -rf "$pkgdir"/usr/etc
+
+ # We don't want a symlink in /sbin
+ rm "$pkgdir"/sbin/mount.vmhgfs
+ rmdir "$pkgdir"/sbin
+
+ cd "$pkgdir" && find -type f -exec sh -c "file {} | grep ELF >/dev/null && echo {} && chrpath -d {}" \;
+ install -Dm644 ${srcdir}/vmtoolsd.service ${pkgdir}/usr/lib/systemd/system/vmtoolsd.service
+ install -Dm644 ${srcdir}/vmware-vmblock-fuse.service ${pkgdir}/usr/lib/systemd/system/vmware-vmblock-fuse.service
+
+ rm -f $pkgdir/etc/vmware-tools/scripts/vmware/*.orig
+}
Copied: open-vm-tools/repos/community-staging-i686/network-script (from rev 130728, open-vm-tools/trunk/network-script)
===================================================================
--- community-staging-i686/network-script (rev 0)
+++ community-staging-i686/network-script 2015-04-05 21:57:33 UTC (rev 130729)
@@ -0,0 +1,195 @@
+#!/bin/sh
+##########################################################
+# Copyright (C) 2001-2010 VMware, Inc. All rights reserved.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published
+# by the Free Software Foundation version 2.1 and no later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+# or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public
+# License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+##########################################################
+
+
+#
+# network (Linux)
+#
+# Using a combination of a system networking script, ifconfig, and ifup,
+# attempt to release and renew DHCP leases upon receipt of suspend and resume
+# events, respectively.
+#
+
+echo `date` ": Executing '$0'"
+echo
+
+. `dirname "$0"`/../../statechange.subr
+
+#
+# TranquilizeNetworkManager --
+#
+# Put the NetworkManager daemon to sleep (maybe).
+#
+# See http://projects.gnome.org/NetworkManager/developers/spec.html .
+#
+# Results:
+# Sleep(true) request is sent to the NetworkManager D-Bus interface.
+#
+# Side effects:
+# None.
+#
+
+TranquilizeNetworkManager()
+{
+ # `which' may be a bit noisy, so we'll shush it.
+ dbusSend=`which dbus-send 2>/dev/null`
+ rc=$?
+ if [ $rc -ne 0 ] || [ -z "\"`pidof dbus-daemon`\"" ]; then
+ return $rc
+ fi
+
+ # Check NetworkManager state before disabling it.
+ nm_state=`$dbusSend --system --print-reply \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.DBus.Properties.Get \
+ string:'org.freedesktop.NetworkManager' \
+ string:'State' \
+ | awk '/variant/ {print $3;}'`
+ if [ -z "$nm_state" ]; then
+ return 1
+ fi
+ # NetworkManager API 0.7/0.8 0.9
+ # NM_STATE_ASLEEP 1 10
+ # NM_STATE_DISCONNECTED 4 20
+ case $nm_state in
+ 1|4|10|20)
+ # Nothing needs to be done.
+ return 0
+ ;;
+ esac
+
+ # NetworkManager 0.8.0 and above
+ $dbusSend --system --print-reply \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.NetworkManager.Enable boolean:false
+ rc=$?
+ if [ $rc -eq 0 ]; then
+ return $rc
+ fi
+ # NetworkManager 0.7.0
+ $dbusSend --system --print-reply \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.NetworkManager.Sleep boolean:true
+ rc=$?
+ if [ $rc -eq 0 ]; then
+ return $rc
+ fi
+ # NetworkManager 0.6
+ $dbusSend --system --print-reply \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.NetworkManager.sleep
+ rc=$?
+
+ return $rc
+}
+
+
+#
+# WakeNetworkManager --
+#
+# Wake the NetworkManager daemon (maybe).
+#
+# See http://projects.gnome.org/NetworkManager/developers/spec.html .
+#
+# Results:
+# Sleep(false)request is sent to the NetworkManager D-Bus interface.
+#
+# Side effects:
+# None.
+#
+
+WakeNetworkManager()
+{
+ # `which' may be a bit noisy, so we'll shush it.
+ dbusSend=`which dbus-send 2>/dev/null`
+ rc=$?
+ if [ $rc = 0 ] && [ "\"`pidof dbus-daemon`\"" ]; then
+ # NetworkManager 0.8.0
+ $dbusSend --system --print-reply \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.NetworkManager.Enable boolean:true
+ rc=$?
+ if [ $rc = 0 ]; then
+ return $rc
+ fi
+ # NetworkManager 0.7.0
+ $dbusSend --system --print-reply \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.NetworkManager.Sleep boolean:false
+ rc=$?
+ if [ $rc = 0 ]; then
+ return $rc
+ fi
+ # NetworkManager 0.6
+ $dbusSend --system --print-reply \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.NetworkManager.wake
+ rc=$?
+ fi
+ return $rc
+}
+
+
+#
+# main --
+#
+# Main entry point. Perform some sanity checking, then map state change
+# events to relevant networking operations.
+#
+# Results:
+# See comment at top of file.
+#
+
+main() {
+ exitCode=0
+
+ case "$1" in
+ poweron-vm)
+ ;;
+ suspend-vm)
+ TranquilizeNetworkManager
+ exitCode=$?
+ if [ $exitCode != 0 ]; then
+ netctl store
+ netctl stop-all
+ exitCode=$?
+ fi
+ ;;
+ resume-vm)
+ WakeNetworkManager
+ exitCode=$?
+ if [ $exitCode != 0 ]; then
+ netctl restore
+ exitCode=$?
+ fi
+ ;;
+ *) ;;
+ esac
+
+ return $exitCode
+}
+
+main "$@"
Copied: open-vm-tools/repos/community-staging-i686/tools.conf (from rev 130728, open-vm-tools/trunk/tools.conf)
===================================================================
--- community-staging-i686/tools.conf (rev 0)
+++ community-staging-i686/tools.conf 2015-04-05 21:57:33 UTC (rev 130729)
@@ -0,0 +1 @@
+bindir = "/usr/bin"
Copied: open-vm-tools/repos/community-staging-i686/vmtoolsd.service (from rev 130728, open-vm-tools/trunk/vmtoolsd.service)
===================================================================
--- community-staging-i686/vmtoolsd.service (rev 0)
+++ community-staging-i686/vmtoolsd.service 2015-04-05 21:57:33 UTC (rev 130729)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Open Virtual Machine Tools (VMware Tools)
+ConditionVirtualization=vmware
+
+[Service]
+ExecStart=/usr/bin/vmtoolsd
+
+[Install]
+WantedBy=multi-user.target
Copied: open-vm-tools/repos/community-staging-i686/vmware-guestd (from rev 130728, open-vm-tools/trunk/vmware-guestd)
===================================================================
--- community-staging-i686/vmware-guestd (rev 0)
+++ community-staging-i686/vmware-guestd 2015-04-05 21:57:33 UTC (rev 130729)
@@ -0,0 +1,6 @@
+#%PAM-1.0
+
+auth sufficient pam_unix2.so shadow nullok
+auth required pam_unix_auth.so shadow nullok
+account sufficient pam_unix2.so
+account required pam_unix_acct.so
Copied: open-vm-tools/repos/community-staging-i686/vmware-vmblock-fuse.service (from rev 130728, open-vm-tools/trunk/vmware-vmblock-fuse.service)
===================================================================
--- community-staging-i686/vmware-vmblock-fuse.service (rev 0)
+++ community-staging-i686/vmware-vmblock-fuse.service 2015-04-05 21:57:33 UTC (rev 130729)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Open Virtual Machine Tools (vmware-vmblock-fuse)
+ConditionVirtualization=vmware
+
+[Service]
+Type=simple
+ExecStartPre=/usr/bin/mkdir -p /run/vmblock-fuse
+ExecStart=/usr/bin/vmware-vmblock-fuse -d -f -o subtype=vmware-vmblock,default_permissions,allow_other /run/vmblock-fuse
+
+[Install]
+WantedBy=multi-user.target
Copied: open-vm-tools/repos/community-staging-i686/xautostart.conf (from rev 130728, open-vm-tools/trunk/xautostart.conf)
===================================================================
--- community-staging-i686/xautostart.conf (rev 0)
+++ community-staging-i686/xautostart.conf 2015-04-05 21:57:33 UTC (rev 130729)
@@ -0,0 +1,6 @@
+gnome-panel
+ksmserver
+startkde
+kwrapper
+panel
+xfce4-panel
Copied: open-vm-tools/repos/community-staging-x86_64/PKGBUILD (from rev 130728, open-vm-tools/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-04-05 21:57:33 UTC (rev 130729)
@@ -0,0 +1,80 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Krzysztof Raczkowski <raczkow at gmail.com>
+
+pkgname=open-vm-tools
+epoch=6
+pkgver=9.4.6
+_pkgsubver=1770165
+pkgrel=5
+pkgdesc="The Open Virtual Machine Tools (open-vm-tools) are the open source implementation of VMware Tools"
+arch=('i686' 'x86_64')
+url="http://open-vm-tools.sourceforge.net/"
+license=('LGPL')
+depends=('libdnet' 'icu' 'procps-ng' 'uriparser' 'libsigc++' 'libxss'
+ 'iproute2' 'fuse' 'lsb-release')
+makedepends=('chrpath' 'doxygen' 'gtkmm' 'libxtst')
+optdepends=('gtkmm: DnD/CP plugin'
+ 'libxtst: DnD/CP, resolution set plugins'
+ 'netctl: suspend-resume network state'
+ 'networkmanager: suspend-resume network state')
+backup=('etc/pam.d/vmware-guestd')
+options=('docs')
+#source=("http://downloads.sourceforge.net/project/open-vm-tools/open-vm-tools/Development%20Snapshots/open-vm-tools-$pkgver-${_pkgsubver}.tar.gz"
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-${_pkgsubver}.tar.gz
+ network-script
+ tools.conf
+ vmware-guestd
+ xautostart.conf
+ vmtoolsd.service
+ vmware-vmblock-fuse.service)
+md5sums=('3969daf1535d34e1c5f0c87a779b7642'
+ 'cbfa69ead382bc527e6f6ddfed8e5c4d'
+ 'b55d15e2c4be396aad709aeca91033d3'
+ '1b9ae908fce4c623269f100ee9bdfdef'
+ '75a25d83417e683957321f97a00f8465'
+ 'a6c53243d31c765580f6dded7d5fa98f'
+ '111192ec9ad2369c1427b8cfa0a77e1e')
+
+build() {
+ cd "$srcdir/$pkgname-${pkgver}-${_pkgsubver}"
+ export CFLAGS="-DGLIB_DISABLE_DEPRECATION_WARNINGS ${CFLAGS}"
+ export CUSTOM_PROCPS_NAME="procps"
+ sed -i 's|-Werror||g' configure.ac
+ aclocal
+ libtoolize
+ automake --add-missing
+ autoconf
+ ./configure --prefix=/usr --without-kernel-modules --sbindir=/usr/bin
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-${pkgver}-${_pkgsubver}"
+
+ make install DESTDIR="$pkgdir"
+ install -Dm0644 vmware-user-suid-wrapper/vmware-user.desktop $pkgdir/usr/share/applications/vmware-user.desktop
+
+ # vmware-user XDG autostart
+ mkdir -p $pkgdir/etc/xdg/autostart
+ ln -s /usr/share/applications/vmware-user.desktop $pkgdir/etc/xdg/autostart/vmware-user.desktop
+
+ install -D -m 755 scripts/common/vmware-xdg-detect-de "$pkgdir"/usr/bin/vmware-xdg-detect-de
+ chmod 07755 "$pkgdir"/usr/bin/vmware-user-suid-wrapper
+
+ install -Dm0755 "$srcdir"/network-script $pkgdir/etc/vmware-tools/scripts/vmware/network
+ install -Dm0644 "$srcdir"/tools.conf "$pkgdir"/etc/vmware-tools/tools.conf
+ install -Dm0644 "$srcdir"/xautostart.conf "$pkgdir"/etc/vmware-tools/xautostart.conf
+ install -Dm0644 "$srcdir"/vmware-guestd "$pkgdir"/etc/pam.d/vmware-guestd
+ rm -rf "$pkgdir"/usr/etc
+
+ # We don't want a symlink in /sbin
+ rm "$pkgdir"/sbin/mount.vmhgfs
+ rmdir "$pkgdir"/sbin
+
+ cd "$pkgdir" && find -type f -exec sh -c "file {} | grep ELF >/dev/null && echo {} && chrpath -d {}" \;
+ install -Dm644 ${srcdir}/vmtoolsd.service ${pkgdir}/usr/lib/systemd/system/vmtoolsd.service
+ install -Dm644 ${srcdir}/vmware-vmblock-fuse.service ${pkgdir}/usr/lib/systemd/system/vmware-vmblock-fuse.service
+
+ rm -f $pkgdir/etc/vmware-tools/scripts/vmware/*.orig
+}
Copied: open-vm-tools/repos/community-staging-x86_64/network-script (from rev 130728, open-vm-tools/trunk/network-script)
===================================================================
--- community-staging-x86_64/network-script (rev 0)
+++ community-staging-x86_64/network-script 2015-04-05 21:57:33 UTC (rev 130729)
@@ -0,0 +1,195 @@
+#!/bin/sh
+##########################################################
+# Copyright (C) 2001-2010 VMware, Inc. All rights reserved.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published
+# by the Free Software Foundation version 2.1 and no later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+# or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public
+# License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+##########################################################
+
+
+#
+# network (Linux)
+#
+# Using a combination of a system networking script, ifconfig, and ifup,
+# attempt to release and renew DHCP leases upon receipt of suspend and resume
+# events, respectively.
+#
+
+echo `date` ": Executing '$0'"
+echo
+
+. `dirname "$0"`/../../statechange.subr
+
+#
+# TranquilizeNetworkManager --
+#
+# Put the NetworkManager daemon to sleep (maybe).
+#
+# See http://projects.gnome.org/NetworkManager/developers/spec.html .
+#
+# Results:
+# Sleep(true) request is sent to the NetworkManager D-Bus interface.
+#
+# Side effects:
+# None.
+#
+
+TranquilizeNetworkManager()
+{
+ # `which' may be a bit noisy, so we'll shush it.
+ dbusSend=`which dbus-send 2>/dev/null`
+ rc=$?
+ if [ $rc -ne 0 ] || [ -z "\"`pidof dbus-daemon`\"" ]; then
+ return $rc
+ fi
+
+ # Check NetworkManager state before disabling it.
+ nm_state=`$dbusSend --system --print-reply \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.DBus.Properties.Get \
+ string:'org.freedesktop.NetworkManager' \
+ string:'State' \
+ | awk '/variant/ {print $3;}'`
+ if [ -z "$nm_state" ]; then
+ return 1
+ fi
+ # NetworkManager API 0.7/0.8 0.9
+ # NM_STATE_ASLEEP 1 10
+ # NM_STATE_DISCONNECTED 4 20
+ case $nm_state in
+ 1|4|10|20)
+ # Nothing needs to be done.
+ return 0
+ ;;
+ esac
+
+ # NetworkManager 0.8.0 and above
+ $dbusSend --system --print-reply \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.NetworkManager.Enable boolean:false
+ rc=$?
+ if [ $rc -eq 0 ]; then
+ return $rc
+ fi
+ # NetworkManager 0.7.0
+ $dbusSend --system --print-reply \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.NetworkManager.Sleep boolean:true
+ rc=$?
+ if [ $rc -eq 0 ]; then
+ return $rc
+ fi
+ # NetworkManager 0.6
+ $dbusSend --system --print-reply \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.NetworkManager.sleep
+ rc=$?
+
+ return $rc
+}
+
+
+#
+# WakeNetworkManager --
+#
+# Wake the NetworkManager daemon (maybe).
+#
+# See http://projects.gnome.org/NetworkManager/developers/spec.html .
+#
+# Results:
+# Sleep(false)request is sent to the NetworkManager D-Bus interface.
+#
+# Side effects:
+# None.
+#
+
+WakeNetworkManager()
+{
+ # `which' may be a bit noisy, so we'll shush it.
+ dbusSend=`which dbus-send 2>/dev/null`
+ rc=$?
+ if [ $rc = 0 ] && [ "\"`pidof dbus-daemon`\"" ]; then
+ # NetworkManager 0.8.0
+ $dbusSend --system --print-reply \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.NetworkManager.Enable boolean:true
+ rc=$?
+ if [ $rc = 0 ]; then
+ return $rc
+ fi
+ # NetworkManager 0.7.0
+ $dbusSend --system --print-reply \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.NetworkManager.Sleep boolean:false
+ rc=$?
+ if [ $rc = 0 ]; then
+ return $rc
+ fi
+ # NetworkManager 0.6
+ $dbusSend --system --print-reply \
+ --dest=org.freedesktop.NetworkManager \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.NetworkManager.wake
+ rc=$?
+ fi
+ return $rc
+}
+
+
+#
+# main --
+#
+# Main entry point. Perform some sanity checking, then map state change
+# events to relevant networking operations.
+#
+# Results:
+# See comment at top of file.
+#
+
+main() {
+ exitCode=0
+
+ case "$1" in
+ poweron-vm)
+ ;;
+ suspend-vm)
+ TranquilizeNetworkManager
+ exitCode=$?
+ if [ $exitCode != 0 ]; then
+ netctl store
+ netctl stop-all
+ exitCode=$?
+ fi
+ ;;
+ resume-vm)
+ WakeNetworkManager
+ exitCode=$?
+ if [ $exitCode != 0 ]; then
+ netctl restore
+ exitCode=$?
+ fi
+ ;;
+ *) ;;
+ esac
+
+ return $exitCode
+}
+
+main "$@"
Copied: open-vm-tools/repos/community-staging-x86_64/tools.conf (from rev 130728, open-vm-tools/trunk/tools.conf)
===================================================================
--- community-staging-x86_64/tools.conf (rev 0)
+++ community-staging-x86_64/tools.conf 2015-04-05 21:57:33 UTC (rev 130729)
@@ -0,0 +1 @@
+bindir = "/usr/bin"
Copied: open-vm-tools/repos/community-staging-x86_64/vmtoolsd.service (from rev 130728, open-vm-tools/trunk/vmtoolsd.service)
===================================================================
--- community-staging-x86_64/vmtoolsd.service (rev 0)
+++ community-staging-x86_64/vmtoolsd.service 2015-04-05 21:57:33 UTC (rev 130729)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Open Virtual Machine Tools (VMware Tools)
+ConditionVirtualization=vmware
+
+[Service]
+ExecStart=/usr/bin/vmtoolsd
+
+[Install]
+WantedBy=multi-user.target
Copied: open-vm-tools/repos/community-staging-x86_64/vmware-guestd (from rev 130728, open-vm-tools/trunk/vmware-guestd)
===================================================================
--- community-staging-x86_64/vmware-guestd (rev 0)
+++ community-staging-x86_64/vmware-guestd 2015-04-05 21:57:33 UTC (rev 130729)
@@ -0,0 +1,6 @@
+#%PAM-1.0
+
+auth sufficient pam_unix2.so shadow nullok
+auth required pam_unix_auth.so shadow nullok
+account sufficient pam_unix2.so
+account required pam_unix_acct.so
Copied: open-vm-tools/repos/community-staging-x86_64/vmware-vmblock-fuse.service (from rev 130728, open-vm-tools/trunk/vmware-vmblock-fuse.service)
===================================================================
--- community-staging-x86_64/vmware-vmblock-fuse.service (rev 0)
+++ community-staging-x86_64/vmware-vmblock-fuse.service 2015-04-05 21:57:33 UTC (rev 130729)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Open Virtual Machine Tools (vmware-vmblock-fuse)
+ConditionVirtualization=vmware
+
+[Service]
+Type=simple
+ExecStartPre=/usr/bin/mkdir -p /run/vmblock-fuse
+ExecStart=/usr/bin/vmware-vmblock-fuse -d -f -o subtype=vmware-vmblock,default_permissions,allow_other /run/vmblock-fuse
+
+[Install]
+WantedBy=multi-user.target
Copied: open-vm-tools/repos/community-staging-x86_64/xautostart.conf (from rev 130728, open-vm-tools/trunk/xautostart.conf)
===================================================================
--- community-staging-x86_64/xautostart.conf (rev 0)
+++ community-staging-x86_64/xautostart.conf 2015-04-05 21:57:33 UTC (rev 130729)
@@ -0,0 +1,6 @@
+gnome-panel
+ksmserver
+startkde
+kwrapper
+panel
+xfce4-panel
More information about the arch-commits
mailing list