[arch-commits] Commit in open-vm-tools-modules/repos (8 files)

Tobias Powalowski tpowa at nymeria.archlinux.org
Sun May 26 11:40:37 EDT 2013


    Date: Sunday, May 26, 2013 @ 17:40:37
  Author: tpowa
Revision: 91719

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  open-vm-tools-modules/repos/community-testing-i686/
  open-vm-tools-modules/repos/community-testing-i686/PKGBUILD
    (from rev 91718, open-vm-tools-modules/trunk/PKGBUILD)
  open-vm-tools-modules/repos/community-testing-i686/modprobe.conf
    (from rev 91718, open-vm-tools-modules/trunk/modprobe.conf)
  open-vm-tools-modules/repos/community-testing-i686/open-vm-tools-modules.install
    (from rev 91718, open-vm-tools-modules/trunk/open-vm-tools-modules.install)
  open-vm-tools-modules/repos/community-testing-x86_64/
  open-vm-tools-modules/repos/community-testing-x86_64/PKGBUILD
    (from rev 91718, open-vm-tools-modules/trunk/PKGBUILD)
  open-vm-tools-modules/repos/community-testing-x86_64/modprobe.conf
    (from rev 91718, open-vm-tools-modules/trunk/modprobe.conf)
  open-vm-tools-modules/repos/community-testing-x86_64/open-vm-tools-modules.install
    (from rev 91718, open-vm-tools-modules/trunk/open-vm-tools-modules.install)

--------------------------------------------------------+
 community-testing-i686/PKGBUILD                        |   56 +++++++++++++++
 community-testing-i686/modprobe.conf                   |    1 
 community-testing-i686/open-vm-tools-modules.install   |   23 ++++++
 community-testing-x86_64/PKGBUILD                      |   56 +++++++++++++++
 community-testing-x86_64/modprobe.conf                 |    1 
 community-testing-x86_64/open-vm-tools-modules.install |   23 ++++++
 6 files changed, 160 insertions(+)

Copied: open-vm-tools-modules/repos/community-testing-i686/PKGBUILD (from rev 91718, open-vm-tools-modules/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2013-05-26 15:40:37 UTC (rev 91719)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Krzysztof Raczkowski <raczkow at gmail.com>
+
+pkgname=open-vm-tools-modules
+epoch=1
+pkgver=9.2.3
+_pkgsubver=1031360
+pkgrel=3
+pkgdesc="kernel modules for the open source implementation of VMware Tools"
+arch=('i686' 'x86_64')
+url="http://open-vm-tools.sourceforge.net/"
+license=('GPL')
+makedepends=('libdnet' 'procps' 'icu' 'uriparser' 'linux-headers')
+depends=('linux')
+install=$pkgname.install
+options=('!strip' '!makeflags')
+source=("http://downloads.sourceforge.net/open-vm-tools/open-vm-tools-$pkgver-${_pkgsubver}.tar.gz"
+	"modprobe.conf")
+md5sums=('71a1d8065b632692af2cdcc9d82f305e'
+         'bc5518489077e91655489bd04b868584')
+
+build() {
+  _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+  KERNEL_RELEASE=$(cat /usr/lib/modules/extramodules-3.${_kernver}-ARCH/version)
+
+  cd "$srcdir/open-vm-tools-${pkgver}-${_pkgsubver}"
+
+  sed -i 's|proc-3.2.8|procps|g' configure
+  sed -i 's|putname(name);|__putname(name);|' modules/linux/vmblock/linux/control.c
+
+  [ $NOEXTRACT -eq 1 ] || ./configure \
+      --prefix=/usr \
+      --without-x \
+      --with-linuxdir=/usr/lib/modules/$KERNEL_RELEASE
+
+  make -C modules modules
+}
+
+package() {
+  _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+  depends=("linux>=3.${_kernver}" "linux<3.$(expr ${_kernver} + 1)")
+  KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-3.${_kernver}-ARCH/version)
+  msg "Kernel = $KERNEL_VERSION"
+
+  cd "$srcdir/open-vm-tools-${pkgver}-${_pkgsubver}"
+  mkdir -p $pkgdir/usr/lib/modules/extramodules-3.${_kernver}-ARCH/
+
+  find -type f -name '*.ko' \
+    -exec install -t "$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH" {} +
+
+  gzip "$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH"/*.ko
+
+  install -D -m 644 ${srcdir}/modprobe.conf ${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf
+  sed -i "s|extramodules-.*-ARCH|extramodules-3.${_kernver}-ARCH|" $startdir/$pkgname.install
+}

Copied: open-vm-tools-modules/repos/community-testing-i686/modprobe.conf (from rev 91718, open-vm-tools-modules/trunk/modprobe.conf)
===================================================================
--- community-testing-i686/modprobe.conf	                        (rev 0)
+++ community-testing-i686/modprobe.conf	2013-05-26 15:40:37 UTC (rev 91719)
@@ -0,0 +1 @@
+softdep pcnet32 pre: vmxnet

Copied: open-vm-tools-modules/repos/community-testing-i686/open-vm-tools-modules.install (from rev 91718, open-vm-tools-modules/trunk/open-vm-tools-modules.install)
===================================================================
--- community-testing-i686/open-vm-tools-modules.install	                        (rev 0)
+++ community-testing-i686/open-vm-tools-modules.install	2013-05-26 15:40:37 UTC (rev 91719)
@@ -0,0 +1,23 @@
+post_install() {
+  EXTRAMODULES='extramodules-3.9-ARCH'
+  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+  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() {
+  EXTRAMODULES='extramodules-3.9-ARCH'
+  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+  EXTRAMODULES='extramodules-3.9-ARCH'
+  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+  echo ">>>"
+  echo ">>> Remember to un-blacklist pcnet32 driver"
+  echo ">>>"
+}

Copied: open-vm-tools-modules/repos/community-testing-x86_64/PKGBUILD (from rev 91718, open-vm-tools-modules/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2013-05-26 15:40:37 UTC (rev 91719)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Krzysztof Raczkowski <raczkow at gmail.com>
+
+pkgname=open-vm-tools-modules
+epoch=1
+pkgver=9.2.3
+_pkgsubver=1031360
+pkgrel=3
+pkgdesc="kernel modules for the open source implementation of VMware Tools"
+arch=('i686' 'x86_64')
+url="http://open-vm-tools.sourceforge.net/"
+license=('GPL')
+makedepends=('libdnet' 'procps' 'icu' 'uriparser' 'linux-headers')
+depends=('linux')
+install=$pkgname.install
+options=('!strip' '!makeflags')
+source=("http://downloads.sourceforge.net/open-vm-tools/open-vm-tools-$pkgver-${_pkgsubver}.tar.gz"
+	"modprobe.conf")
+md5sums=('71a1d8065b632692af2cdcc9d82f305e'
+         'bc5518489077e91655489bd04b868584')
+
+build() {
+  _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+  KERNEL_RELEASE=$(cat /usr/lib/modules/extramodules-3.${_kernver}-ARCH/version)
+
+  cd "$srcdir/open-vm-tools-${pkgver}-${_pkgsubver}"
+
+  sed -i 's|proc-3.2.8|procps|g' configure
+  sed -i 's|putname(name);|__putname(name);|' modules/linux/vmblock/linux/control.c
+
+  [ $NOEXTRACT -eq 1 ] || ./configure \
+      --prefix=/usr \
+      --without-x \
+      --with-linuxdir=/usr/lib/modules/$KERNEL_RELEASE
+
+  make -C modules modules
+}
+
+package() {
+  _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+  depends=("linux>=3.${_kernver}" "linux<3.$(expr ${_kernver} + 1)")
+  KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-3.${_kernver}-ARCH/version)
+  msg "Kernel = $KERNEL_VERSION"
+
+  cd "$srcdir/open-vm-tools-${pkgver}-${_pkgsubver}"
+  mkdir -p $pkgdir/usr/lib/modules/extramodules-3.${_kernver}-ARCH/
+
+  find -type f -name '*.ko' \
+    -exec install -t "$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH" {} +
+
+  gzip "$pkgdir/usr/lib/modules/extramodules-3.$_kernver-ARCH"/*.ko
+
+  install -D -m 644 ${srcdir}/modprobe.conf ${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf
+  sed -i "s|extramodules-.*-ARCH|extramodules-3.${_kernver}-ARCH|" $startdir/$pkgname.install
+}

Copied: open-vm-tools-modules/repos/community-testing-x86_64/modprobe.conf (from rev 91718, open-vm-tools-modules/trunk/modprobe.conf)
===================================================================
--- community-testing-x86_64/modprobe.conf	                        (rev 0)
+++ community-testing-x86_64/modprobe.conf	2013-05-26 15:40:37 UTC (rev 91719)
@@ -0,0 +1 @@
+softdep pcnet32 pre: vmxnet

Copied: open-vm-tools-modules/repos/community-testing-x86_64/open-vm-tools-modules.install (from rev 91718, open-vm-tools-modules/trunk/open-vm-tools-modules.install)
===================================================================
--- community-testing-x86_64/open-vm-tools-modules.install	                        (rev 0)
+++ community-testing-x86_64/open-vm-tools-modules.install	2013-05-26 15:40:37 UTC (rev 91719)
@@ -0,0 +1,23 @@
+post_install() {
+  EXTRAMODULES='extramodules-3.9-ARCH'
+  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+  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() {
+  EXTRAMODULES='extramodules-3.9-ARCH'
+  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+  EXTRAMODULES='extramodules-3.9-ARCH'
+  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+  echo ">>>"
+  echo ">>> Remember to un-blacklist pcnet32 driver"
+  echo ">>>"
+}



More information about the arch-commits mailing list