Date: Monday, June 17, 2013 @ 19:32:56 Author: spupykin Revision: 92880
archrelease: copy trunk to community-testing-i686, community-testing-x86_64 Added: open-vm-tools/repos/community-testing-i686/ open-vm-tools/repos/community-testing-i686/PKGBUILD (from rev 92879, open-vm-tools/trunk/PKGBUILD) open-vm-tools/repos/community-testing-i686/modprobe.conf (from rev 92879, open-vm-tools/trunk/modprobe.conf) open-vm-tools/repos/community-testing-i686/network-script (from rev 92879, open-vm-tools/trunk/network-script) open-vm-tools/repos/community-testing-i686/open-vm-tools-dkms.install (from rev 92879, open-vm-tools/trunk/open-vm-tools-dkms.install) open-vm-tools/repos/community-testing-i686/open-vm-tools.install (from rev 92879, open-vm-tools/trunk/open-vm-tools.install) open-vm-tools/repos/community-testing-i686/tools.conf (from rev 92879, open-vm-tools/trunk/tools.conf) open-vm-tools/repos/community-testing-i686/vmtoolsd.service (from rev 92879, open-vm-tools/trunk/vmtoolsd.service) open-vm-tools/repos/community-testing-i686/vmware-guestd (from rev 92879, open-vm-tools/trunk/vmware-guestd) open-vm-tools/repos/community-testing-i686/xautostart.conf (from rev 92879, open-vm-tools/trunk/xautostart.conf) open-vm-tools/repos/community-testing-x86_64/ open-vm-tools/repos/community-testing-x86_64/PKGBUILD (from rev 92879, open-vm-tools/trunk/PKGBUILD) open-vm-tools/repos/community-testing-x86_64/modprobe.conf (from rev 92879, open-vm-tools/trunk/modprobe.conf) open-vm-tools/repos/community-testing-x86_64/network-script (from rev 92879, open-vm-tools/trunk/network-script) open-vm-tools/repos/community-testing-x86_64/open-vm-tools-dkms.install (from rev 92879, open-vm-tools/trunk/open-vm-tools-dkms.install) open-vm-tools/repos/community-testing-x86_64/open-vm-tools.install (from rev 92879, open-vm-tools/trunk/open-vm-tools.install) open-vm-tools/repos/community-testing-x86_64/tools.conf (from rev 92879, open-vm-tools/trunk/tools.conf) open-vm-tools/repos/community-testing-x86_64/vmtoolsd.service (from rev 92879, open-vm-tools/trunk/vmtoolsd.service) open-vm-tools/repos/community-testing-x86_64/vmware-guestd (from rev 92879, open-vm-tools/trunk/vmware-guestd) open-vm-tools/repos/community-testing-x86_64/xautostart.conf (from rev 92879, open-vm-tools/trunk/xautostart.conf) Deleted: open-vm-tools/repos/community-i686/PKGBUILD open-vm-tools/repos/community-i686/modprobe.conf open-vm-tools/repos/community-i686/open-vm-tools-X11Bool.patch open-vm-tools/repos/community-i686/open-vm-tools-dkms.install open-vm-tools/repos/community-i686/open-vm-tools.install open-vm-tools/repos/community-i686/scripts-network-FS19541.patch open-vm-tools/repos/community-i686/scripts-network.patch open-vm-tools/repos/community-i686/tools.conf open-vm-tools/repos/community-i686/vmtoolsd.service open-vm-tools/repos/community-i686/vmware-guestd open-vm-tools/repos/community-i686/xautostart.conf -----------------------------------------------------+ community-i686/PKGBUILD | 96 -------- community-i686/modprobe.conf | 1 community-i686/open-vm-tools-X11Bool.patch | 15 - community-i686/open-vm-tools-dkms.install | 23 -- community-i686/open-vm-tools.install | 10 community-i686/scripts-network-FS19541.patch | 38 --- community-i686/scripts-network.patch | 73 ------ community-i686/tools.conf | 1 community-i686/vmtoolsd.service | 9 community-i686/vmware-guestd | 6 community-i686/xautostart.conf | 6 community-testing-i686/PKGBUILD | 89 ++++++++ community-testing-i686/modprobe.conf | 1 community-testing-i686/network-script | 197 ++++++++++++++++++ community-testing-i686/open-vm-tools-dkms.install | 23 ++ community-testing-i686/open-vm-tools.install | 10 community-testing-i686/tools.conf | 1 community-testing-i686/vmtoolsd.service | 9 community-testing-i686/vmware-guestd | 6 community-testing-i686/xautostart.conf | 6 community-testing-x86_64/PKGBUILD | 89 ++++++++ community-testing-x86_64/modprobe.conf | 1 community-testing-x86_64/network-script | 197 ++++++++++++++++++ community-testing-x86_64/open-vm-tools-dkms.install | 23 ++ community-testing-x86_64/open-vm-tools.install | 10 community-testing-x86_64/tools.conf | 1 community-testing-x86_64/vmtoolsd.service | 9 community-testing-x86_64/vmware-guestd | 6 community-testing-x86_64/xautostart.conf | 6 29 files changed, 684 insertions(+), 278 deletions(-) Deleted: community-i686/PKGBUILD =================================================================== --- community-i686/PKGBUILD 2013-06-17 17:31:30 UTC (rev 92879) +++ community-i686/PKGBUILD 2013-06-17 17:32:56 UTC (rev 92880) @@ -1,96 +0,0 @@ -# $Id$ -# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> -# Contributor: Krzysztof Raczkowski <racz...@gmail.com> - -pkgbase=open-vm-tools -pkgname=('open-vm-tools' 'open-vm-tools-dkms') -epoch=2 -pkgver=9.2.3 -_pkgsubver=1031360 -pkgrel=3 -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') -makedepends=('chrpath' 'doxygen' 'gtkmm' 'fuse' 'libxtst') -optdepends=('gtkmm' 'libnotify' 'libxtst' 'fuse' 'libsm' - 'open-vm-tools-modules: for linux kernel' - 'open-vm-tools-dkms: for linux-lts and other kernels') -backup=('etc/pam.d/vmware-guestd') -options=('docs' '!libtool') -install=$pkgname.install -source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-${_pkgsubver}.tar.gz - scripts-network.patch - scripts-network-FS19541.patch - open-vm-tools-X11Bool.patch - tools.conf - vmware-guestd - xautostart.conf - modprobe.conf - vmtoolsd.service) -md5sums=('71a1d8065b632692af2cdcc9d82f305e' - 'b8f68fef3d388489e40dba581b6da18a' - '921637fcb05cd68b1c8350fcb7d59d36' - '8c333a979578bdc0c3134c1dd6bb7353' - 'b55d15e2c4be396aad709aeca91033d3' - '1b9ae908fce4c623269f100ee9bdfdef' - '75a25d83417e683957321f97a00f8465' - 'bc5518489077e91655489bd04b868584' - 'a6c53243d31c765580f6dded7d5fa98f') - -build() { - cd "$srcdir/$pkgname-${pkgver}-${_pkgsubver}" - export CFLAGS="-DGLIB_DISABLE_DEPRECATION_WARNINGS ${CFLAGS}" - sed -i 's|-Werror||g' configure{,.ac} - [ -f Makefile ] || CUSTOM_PROCPS_NAME="procps" ./configure --prefix=/usr --without-kernel-modules --sbindir=/usr/bin - make -} - -package_open-vm-tools() { - 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 - - cd "$pkgdir" - patch -p1 -i "$srcdir"/scripts-network.patch etc/vmware-tools/scripts/vmware/network - patch -p1 -i "$srcdir"/scripts-network-FS19541.patch 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 - - rm -f $pkgdir/etc/vmware-tools/scripts/vmware/*.orig -} - -package_open-vm-tools-dkms() { - pkgdesc="kernel modules for the open source implementation of VMware Tools" - depends=('dkms') - provides=('open-vm-tools-modules') - conflicts=('open-vm-tools-modules') - optdepends=() - backup=() - install=open-vm-tools-dkms.install - - install -d -m755 ${pkgdir}/usr/src/ - sh ${srcdir}/open-vm-tools-${pkgver}-${_pkgsubver}/modules/linux/dkms.sh \ - ${srcdir}/open-vm-tools-${pkgver}-${_pkgsubver}/ \ - ${pkgdir}/usr/src/ - install -Dm644 ${srcdir}/modprobe.conf ${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf -} Deleted: community-i686/modprobe.conf =================================================================== --- community-i686/modprobe.conf 2013-06-17 17:31:30 UTC (rev 92879) +++ community-i686/modprobe.conf 2013-06-17 17:32:56 UTC (rev 92880) @@ -1 +0,0 @@ -softdep pcnet32 pre: vmxnet Deleted: community-i686/open-vm-tools-X11Bool.patch =================================================================== --- community-i686/open-vm-tools-X11Bool.patch 2013-06-17 17:31:30 UTC (rev 92879) +++ community-i686/open-vm-tools-X11Bool.patch 2013-06-17 17:32:56 UTC (rev 92880) @@ -1,15 +0,0 @@ -diff -wbBur open-vm-tools-2010.08.24-292196.org/lib/include/vm_basic_types.h open-vm-tools-2010.08.24-292196/lib/include/vm_basic_types.h ---- open-vm-tools-2010.08.24-292196.org/lib/include/vm_basic_types.h 2010-08-24 19:59:22.000000000 +0000 -+++ open-vm-tools-2010.08.24-292196/lib/include/vm_basic_types.h 2010-08-30 09:38:48.000000000 +0000 -@@ -83,8 +83,11 @@ - - /* STRICT ANSI means the Xserver build and X defines Bool differently. */ - #if !defined(__STRICT_ANSI__) || defined(__FreeBSD__) || defined(__MINGW32__) -+# ifndef _XTYPEDEF_BOOL -+# define _XTYPEDEF_BOOL - typedef char Bool; - #endif -+#endif - - #ifndef FALSE - #define FALSE 0 Deleted: community-i686/open-vm-tools-dkms.install =================================================================== --- community-i686/open-vm-tools-dkms.install 2013-06-17 17:31:30 UTC (rev 92879) +++ community-i686/open-vm-tools-dkms.install 2013-06-17 17:32:56 UTC (rev 92880) @@ -1,23 +0,0 @@ -post_install() { - echo ">>> Enable building of open-vm-tools modules:" - echo ">>> $ dkms add open-vm-tools/${1%-*}" - echo ">>>" - echo ">>> Enabling vmxnet driver in /usr/lib/modprobe.d/open-vm-tools-modules.conf" - echo ">>> (this will disable pcnet32 driver)" - echo ">>>" - echo ">>> If vmxnet driver doesn't handle your NIC, you have to manually" - echo ">>> disable loading of pcnet32 driver" - echo ">>>" -} - -post_upgrade() { - echo ">>> Enable building of open-vm-tools modules:" - echo ">>> $ dkms add open-vm-tools/${1%-*}" - echo ">>>" -} - -post_remove() { - echo ">>>" - echo ">>> Remember to un-blacklist pcnet32 driver" - echo ">>>" -} Deleted: community-i686/open-vm-tools.install =================================================================== --- community-i686/open-vm-tools.install 2013-06-17 17:31:30 UTC (rev 92879) +++ community-i686/open-vm-tools.install 2013-06-17 17:32:56 UTC (rev 92880) @@ -1,10 +0,0 @@ -post_install() { - [ ! -d "/mnt/hgfs" ] && mkdir /mnt/hgfs - echo ">>>" - echo ">>> You can mount VMware Shared Folders via:" - echo ">>> mount -t vmhgfs .host:/ /mnt/hgfs" - echo ">>>" - echo ">>> or by adding this line to /etc/fstab:" - echo ">>> .host:/ /mnt/hgfs vmhgfs defaults 0 0" - echo ">>>" -} Deleted: community-i686/scripts-network-FS19541.patch =================================================================== --- community-i686/scripts-network-FS19541.patch 2013-06-17 17:31:30 UTC (rev 92879) +++ community-i686/scripts-network-FS19541.patch 2013-06-17 17:32:56 UTC (rev 92880) @@ -1,38 +0,0 @@ ---- network.orig 2013-05-06 01:26:27.000000000 +0400 -+++ network 2013-05-06 01:31:28.718026417 +0400 -@@ -89,7 +89,7 @@ - else - echo `date` "[rescue_nic] activating $nic ..." - -- ifup $nic -+ ip link set $nic up - exitCode=`expr $exitCode \| $?` - fi - done < $activeList -@@ -118,7 +118,7 @@ - # `which' may be a bit noisy, so we'll shush it. - dbusSend=`which dbus-send 2>/dev/null` - rc=$? -- if [ $rc -ne 0 ]; then -+ if [ $rc -ne 0 ] || [ -z `pidof dbus-daemon` ]; then - return $rc - fi - -@@ -191,7 +191,7 @@ - # `which' may be a bit noisy, so we'll shush it. - dbusSend=`which dbus-send 2>/dev/null` - rc=$? -- if [ $rc = 0 ]; then -+ if [ $rc = 0 ] && [ `pidof dbus-daemon` ]; then - # NetworkManager 0.8.0 - $dbusSend --system --print-reply \ - --dest=org.freedesktop.NetworkManager \ -@@ -237,7 +237,7 @@ - - # XXX Are these really necessary? If so, we should have seen customer - # complaints by now. -- which ifup >/dev/null 2>&1 || Panic "ifup not in search path." -+# which ifup >/dev/null 2>&1 || Panic "ifup not in search path." - which ifconfig >/dev/null 2>&1 || Panic "ifconfig not in search path." - - case "$1" in Deleted: community-i686/scripts-network.patch =================================================================== --- community-i686/scripts-network.patch 2013-06-17 17:31:30 UTC (rev 92879) +++ community-i686/scripts-network.patch 2013-06-17 17:32:56 UTC (rev 92880) @@ -1,73 +0,0 @@ ---- network.org 2012-03-17 22:20:11.000000000 +0400 -+++ network 2012-03-17 22:18:47.000000000 +0400 -@@ -34,51 +34,6 @@ - - - # --# find_networking_script -- --# --# Searches common Linux distro init/rc paths to find a singular network --# services script. --# --# Result: --# Returns a valid networking script path on success or "error" on failure. --# --# Side effects: --# None. --# -- --find_networking_script() { -- local script="error" -- for dir in "/etc/init.d" "/sbin/init.d" "/etc" "/etc/rc.d" ; do -- if [ -d "$dir/rc0.d" ] && -- [ -d "$dir/rc1.d" ] && -- [ -d "$dir/rc2.d" ] && -- [ -d "$dir/rc3.d" ] && -- [ -d "$dir/rc4.d" ] && -- [ -d "$dir/rc5.d" ] && -- [ -d "$dir/rc6.d" ]; then -- -- # Now find the appropriate networking script. -- if [ -d "$dir/init.d" ]; then -- if [ -x "$dir/init.d/network" ]; then -- script="$dir/init.d/network" -- elif [ -x "$dir/init.d/networking" ]; then -- script="$dir/init.d/networking" -- fi -- else -- if [ -x "$dir/network" ]; then -- script="$dir/network" -- elif [ -x "$dir/networking" ]; then -- script="$dir/networking" -- fi -- fi -- fi -- done -- -- echo "$script" --} -- -- --# - # run_network_script -- - # - # Finds out how to run the system's script used to control networking, and -@@ -87,17 +42,7 @@ - # - run_network_script() - { -- script=`find_networking_script` -- [ "$script" != "error" ] || Panic "Cannot find system networking script." -- -- # Using SysV "service" if it exists, otherwise fall back to run the script directly -- service=`which service 2>/dev/null` -- if [ $? = 0 -a -n "$service" ]; then -- serviceName=`basename "$script"` -- "$service" "$serviceName" "$1" -- else -- "$script" "$1" -- fi -+ /etc/rc.d/network "$1" - } - - Deleted: community-i686/tools.conf =================================================================== --- community-i686/tools.conf 2013-06-17 17:31:30 UTC (rev 92879) +++ community-i686/tools.conf 2013-06-17 17:32:56 UTC (rev 92880) @@ -1 +0,0 @@ -bindir = "/usr/bin" Deleted: community-i686/vmtoolsd.service =================================================================== --- community-i686/vmtoolsd.service 2013-06-17 17:31:30 UTC (rev 92879) +++ community-i686/vmtoolsd.service 2013-06-17 17:32:56 UTC (rev 92880) @@ -1,9 +0,0 @@ -[Unit] -Description=Open Virtual Machine Tools (VMware Tools) -ConditionVirtualization=vmware - -[Service] -ExecStart=/usr/bin/vmtoolsd - -[Install] -WantedBy=multi-user.target Deleted: community-i686/vmware-guestd =================================================================== --- community-i686/vmware-guestd 2013-06-17 17:31:30 UTC (rev 92879) +++ community-i686/vmware-guestd 2013-06-17 17:32:56 UTC (rev 92880) @@ -1,6 +0,0 @@ -#%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 Deleted: community-i686/xautostart.conf =================================================================== --- community-i686/xautostart.conf 2013-06-17 17:31:30 UTC (rev 92879) +++ community-i686/xautostart.conf 2013-06-17 17:32:56 UTC (rev 92880) @@ -1,6 +0,0 @@ -gnome-panel -ksmserver -startkde -kwrapper -panel -xfce4-panel Copied: open-vm-tools/repos/community-testing-i686/PKGBUILD (from rev 92879, open-vm-tools/trunk/PKGBUILD) =================================================================== --- community-testing-i686/PKGBUILD (rev 0) +++ community-testing-i686/PKGBUILD 2013-06-17 17:32:56 UTC (rev 92880) @@ -0,0 +1,89 @@ +# $Id$ +# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> +# Contributor: Krzysztof Raczkowski <racz...@gmail.com> + +pkgbase=open-vm-tools +pkgname=('open-vm-tools' 'open-vm-tools-dkms') +epoch=2 +pkgver=9.2.3 +_pkgsubver=1031360 +pkgrel=4 +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') +makedepends=('chrpath' 'doxygen' 'gtkmm' 'fuse' 'libxtst') +optdepends=('gtkmm' 'libnotify' 'libxtst' 'fuse' 'libsm' + 'open-vm-tools-modules: for linux kernel' + 'open-vm-tools-dkms: for linux-lts and other kernels') +backup=('etc/pam.d/vmware-guestd') +options=('docs' '!libtool') +install=$pkgname.install +source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-${_pkgsubver}.tar.gz + network-script + tools.conf + vmware-guestd + xautostart.conf + modprobe.conf + vmtoolsd.service) +md5sums=('71a1d8065b632692af2cdcc9d82f305e' + '41db8f3db17f5b76248b09233a4355c4' + 'b55d15e2c4be396aad709aeca91033d3' + '1b9ae908fce4c623269f100ee9bdfdef' + '75a25d83417e683957321f97a00f8465' + 'bc5518489077e91655489bd04b868584' + 'a6c53243d31c765580f6dded7d5fa98f') + +build() { + cd "$srcdir/$pkgname-${pkgver}-${_pkgsubver}" + export CFLAGS="-DGLIB_DISABLE_DEPRECATION_WARNINGS ${CFLAGS}" + sed -i 's|-Werror||g' configure{,.ac} + [ -f Makefile ] || CUSTOM_PROCPS_NAME="procps" ./configure --prefix=/usr --without-kernel-modules --sbindir=/usr/bin + make +} + +package_open-vm-tools() { + 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 + + rm -f $pkgdir/etc/vmware-tools/scripts/vmware/*.orig +} + +package_open-vm-tools-dkms() { + pkgdesc="kernel modules for the open source implementation of VMware Tools" + depends=('dkms') + provides=('open-vm-tools-modules') + conflicts=('open-vm-tools-modules') + optdepends=() + backup=() + install=open-vm-tools-dkms.install + + install -d -m755 ${pkgdir}/usr/src/ + sh ${srcdir}/open-vm-tools-${pkgver}-${_pkgsubver}/modules/linux/dkms.sh \ + ${srcdir}/open-vm-tools-${pkgver}-${_pkgsubver}/ \ + ${pkgdir}/usr/src/ + install -Dm644 ${srcdir}/modprobe.conf ${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf +} Copied: open-vm-tools/repos/community-testing-i686/modprobe.conf (from rev 92879, open-vm-tools/trunk/modprobe.conf) =================================================================== --- community-testing-i686/modprobe.conf (rev 0) +++ community-testing-i686/modprobe.conf 2013-06-17 17:32:56 UTC (rev 92880) @@ -0,0 +1 @@ +softdep pcnet32 pre: vmxnet Copied: open-vm-tools/repos/community-testing-i686/network-script (from rev 92879, open-vm-tools/trunk/network-script) =================================================================== --- community-testing-i686/network-script (rev 0) +++ community-testing-i686/network-script 2013-06-17 17:32:56 UTC (rev 92880) @@ -0,0 +1,197 @@ +#!/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 + + which ifconfig >/dev/null 2>&1 || Panic "ifconfig not in search path." + + 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-testing-i686/open-vm-tools-dkms.install (from rev 92879, open-vm-tools/trunk/open-vm-tools-dkms.install) =================================================================== --- community-testing-i686/open-vm-tools-dkms.install (rev 0) +++ community-testing-i686/open-vm-tools-dkms.install 2013-06-17 17:32:56 UTC (rev 92880) @@ -0,0 +1,23 @@ +post_install() { + echo ">>> Enable building of open-vm-tools modules:" + echo ">>> $ dkms add open-vm-tools/${1%-*}" + echo ">>>" + echo ">>> Enabling vmxnet driver in /usr/lib/modprobe.d/open-vm-tools-modules.conf" + echo ">>> (this will disable pcnet32 driver)" + echo ">>>" + echo ">>> If vmxnet driver doesn't handle your NIC, you have to manually" + echo ">>> disable loading of pcnet32 driver" + echo ">>>" +} + +post_upgrade() { + echo ">>> Enable building of open-vm-tools modules:" + echo ">>> $ dkms add open-vm-tools/${1%-*}" + echo ">>>" +} + +post_remove() { + echo ">>>" + echo ">>> Remember to un-blacklist pcnet32 driver" + echo ">>>" +} Copied: open-vm-tools/repos/community-testing-i686/open-vm-tools.install (from rev 92879, open-vm-tools/trunk/open-vm-tools.install) =================================================================== --- community-testing-i686/open-vm-tools.install (rev 0) +++ community-testing-i686/open-vm-tools.install 2013-06-17 17:32:56 UTC (rev 92880) @@ -0,0 +1,10 @@ +post_install() { + [ ! -d "/mnt/hgfs" ] && mkdir /mnt/hgfs + echo ">>>" + echo ">>> You can mount VMware Shared Folders via:" + echo ">>> mount -t vmhgfs .host:/ /mnt/hgfs" + echo ">>>" + echo ">>> or by adding this line to /etc/fstab:" + echo ">>> .host:/ /mnt/hgfs vmhgfs defaults 0 0" + echo ">>>" +} Copied: open-vm-tools/repos/community-testing-i686/tools.conf (from rev 92879, open-vm-tools/trunk/tools.conf) =================================================================== --- community-testing-i686/tools.conf (rev 0) +++ community-testing-i686/tools.conf 2013-06-17 17:32:56 UTC (rev 92880) @@ -0,0 +1 @@ +bindir = "/usr/bin" Copied: open-vm-tools/repos/community-testing-i686/vmtoolsd.service (from rev 92879, open-vm-tools/trunk/vmtoolsd.service) =================================================================== --- community-testing-i686/vmtoolsd.service (rev 0) +++ community-testing-i686/vmtoolsd.service 2013-06-17 17:32:56 UTC (rev 92880) @@ -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-testing-i686/vmware-guestd (from rev 92879, open-vm-tools/trunk/vmware-guestd) =================================================================== --- community-testing-i686/vmware-guestd (rev 0) +++ community-testing-i686/vmware-guestd 2013-06-17 17:32:56 UTC (rev 92880) @@ -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-testing-i686/xautostart.conf (from rev 92879, open-vm-tools/trunk/xautostart.conf) =================================================================== --- community-testing-i686/xautostart.conf (rev 0) +++ community-testing-i686/xautostart.conf 2013-06-17 17:32:56 UTC (rev 92880) @@ -0,0 +1,6 @@ +gnome-panel +ksmserver +startkde +kwrapper +panel +xfce4-panel Copied: open-vm-tools/repos/community-testing-x86_64/PKGBUILD (from rev 92879, open-vm-tools/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2013-06-17 17:32:56 UTC (rev 92880) @@ -0,0 +1,89 @@ +# $Id$ +# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> +# Contributor: Krzysztof Raczkowski <racz...@gmail.com> + +pkgbase=open-vm-tools +pkgname=('open-vm-tools' 'open-vm-tools-dkms') +epoch=2 +pkgver=9.2.3 +_pkgsubver=1031360 +pkgrel=4 +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') +makedepends=('chrpath' 'doxygen' 'gtkmm' 'fuse' 'libxtst') +optdepends=('gtkmm' 'libnotify' 'libxtst' 'fuse' 'libsm' + 'open-vm-tools-modules: for linux kernel' + 'open-vm-tools-dkms: for linux-lts and other kernels') +backup=('etc/pam.d/vmware-guestd') +options=('docs' '!libtool') +install=$pkgname.install +source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-${_pkgsubver}.tar.gz + network-script + tools.conf + vmware-guestd + xautostart.conf + modprobe.conf + vmtoolsd.service) +md5sums=('71a1d8065b632692af2cdcc9d82f305e' + '41db8f3db17f5b76248b09233a4355c4' + 'b55d15e2c4be396aad709aeca91033d3' + '1b9ae908fce4c623269f100ee9bdfdef' + '75a25d83417e683957321f97a00f8465' + 'bc5518489077e91655489bd04b868584' + 'a6c53243d31c765580f6dded7d5fa98f') + +build() { + cd "$srcdir/$pkgname-${pkgver}-${_pkgsubver}" + export CFLAGS="-DGLIB_DISABLE_DEPRECATION_WARNINGS ${CFLAGS}" + sed -i 's|-Werror||g' configure{,.ac} + [ -f Makefile ] || CUSTOM_PROCPS_NAME="procps" ./configure --prefix=/usr --without-kernel-modules --sbindir=/usr/bin + make +} + +package_open-vm-tools() { + 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 + + rm -f $pkgdir/etc/vmware-tools/scripts/vmware/*.orig +} + +package_open-vm-tools-dkms() { + pkgdesc="kernel modules for the open source implementation of VMware Tools" + depends=('dkms') + provides=('open-vm-tools-modules') + conflicts=('open-vm-tools-modules') + optdepends=() + backup=() + install=open-vm-tools-dkms.install + + install -d -m755 ${pkgdir}/usr/src/ + sh ${srcdir}/open-vm-tools-${pkgver}-${_pkgsubver}/modules/linux/dkms.sh \ + ${srcdir}/open-vm-tools-${pkgver}-${_pkgsubver}/ \ + ${pkgdir}/usr/src/ + install -Dm644 ${srcdir}/modprobe.conf ${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf +} Copied: open-vm-tools/repos/community-testing-x86_64/modprobe.conf (from rev 92879, open-vm-tools/trunk/modprobe.conf) =================================================================== --- community-testing-x86_64/modprobe.conf (rev 0) +++ community-testing-x86_64/modprobe.conf 2013-06-17 17:32:56 UTC (rev 92880) @@ -0,0 +1 @@ +softdep pcnet32 pre: vmxnet Copied: open-vm-tools/repos/community-testing-x86_64/network-script (from rev 92879, open-vm-tools/trunk/network-script) =================================================================== --- community-testing-x86_64/network-script (rev 0) +++ community-testing-x86_64/network-script 2013-06-17 17:32:56 UTC (rev 92880) @@ -0,0 +1,197 @@ +#!/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 + + which ifconfig >/dev/null 2>&1 || Panic "ifconfig not in search path." + + 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-testing-x86_64/open-vm-tools-dkms.install (from rev 92879, open-vm-tools/trunk/open-vm-tools-dkms.install) =================================================================== --- community-testing-x86_64/open-vm-tools-dkms.install (rev 0) +++ community-testing-x86_64/open-vm-tools-dkms.install 2013-06-17 17:32:56 UTC (rev 92880) @@ -0,0 +1,23 @@ +post_install() { + echo ">>> Enable building of open-vm-tools modules:" + echo ">>> $ dkms add open-vm-tools/${1%-*}" + echo ">>>" + echo ">>> Enabling vmxnet driver in /usr/lib/modprobe.d/open-vm-tools-modules.conf" + echo ">>> (this will disable pcnet32 driver)" + echo ">>>" + echo ">>> If vmxnet driver doesn't handle your NIC, you have to manually" + echo ">>> disable loading of pcnet32 driver" + echo ">>>" +} + +post_upgrade() { + echo ">>> Enable building of open-vm-tools modules:" + echo ">>> $ dkms add open-vm-tools/${1%-*}" + echo ">>>" +} + +post_remove() { + echo ">>>" + echo ">>> Remember to un-blacklist pcnet32 driver" + echo ">>>" +} Copied: open-vm-tools/repos/community-testing-x86_64/open-vm-tools.install (from rev 92879, open-vm-tools/trunk/open-vm-tools.install) =================================================================== --- community-testing-x86_64/open-vm-tools.install (rev 0) +++ community-testing-x86_64/open-vm-tools.install 2013-06-17 17:32:56 UTC (rev 92880) @@ -0,0 +1,10 @@ +post_install() { + [ ! -d "/mnt/hgfs" ] && mkdir /mnt/hgfs + echo ">>>" + echo ">>> You can mount VMware Shared Folders via:" + echo ">>> mount -t vmhgfs .host:/ /mnt/hgfs" + echo ">>>" + echo ">>> or by adding this line to /etc/fstab:" + echo ">>> .host:/ /mnt/hgfs vmhgfs defaults 0 0" + echo ">>>" +} Copied: open-vm-tools/repos/community-testing-x86_64/tools.conf (from rev 92879, open-vm-tools/trunk/tools.conf) =================================================================== --- community-testing-x86_64/tools.conf (rev 0) +++ community-testing-x86_64/tools.conf 2013-06-17 17:32:56 UTC (rev 92880) @@ -0,0 +1 @@ +bindir = "/usr/bin" Copied: open-vm-tools/repos/community-testing-x86_64/vmtoolsd.service (from rev 92879, open-vm-tools/trunk/vmtoolsd.service) =================================================================== --- community-testing-x86_64/vmtoolsd.service (rev 0) +++ community-testing-x86_64/vmtoolsd.service 2013-06-17 17:32:56 UTC (rev 92880) @@ -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-testing-x86_64/vmware-guestd (from rev 92879, open-vm-tools/trunk/vmware-guestd) =================================================================== --- community-testing-x86_64/vmware-guestd (rev 0) +++ community-testing-x86_64/vmware-guestd 2013-06-17 17:32:56 UTC (rev 92880) @@ -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-testing-x86_64/xautostart.conf (from rev 92879, open-vm-tools/trunk/xautostart.conf) =================================================================== --- community-testing-x86_64/xautostart.conf (rev 0) +++ community-testing-x86_64/xautostart.conf 2013-06-17 17:32:56 UTC (rev 92880) @@ -0,0 +1,6 @@ +gnome-panel +ksmserver +startkde +kwrapper +panel +xfce4-panel