From 3e2075427791725d8e6a007feba107d94c017caf Mon Sep 17 00:00:00 2001 From: root Date: Wed, 18 Jan 2012 23:14:59 +0000 Subject: Wed Jan 18 23:14:59 UTC 2012 --- community/open-vm-tools-modules/PKGBUILD | 5 ++--- .../open-vm-tools-modules/open-vm-tools-modules.install | 13 ++++++------- 2 files changed, 8 insertions(+), 10 deletions(-) (limited to 'community/open-vm-tools-modules') diff --git a/community/open-vm-tools-modules/PKGBUILD b/community/open-vm-tools-modules/PKGBUILD index 09c8dee1f..4807e3623 100644 --- a/community/open-vm-tools-modules/PKGBUILD +++ b/community/open-vm-tools-modules/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 61571 2012-01-03 12:07:32Z spupykin $ +# $Id: PKGBUILD 62178 2012-01-17 14:46:25Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Krzysztof Raczkowski pkgname=open-vm-tools-modules pkgver=2011.12.20 _pkgsubver=562307 -pkgrel=1 +pkgrel=2 pkgdesc="kernel modules for the open source implementation of VMware Tools" arch=('i686' 'x86_64') url="http://open-vm-tools.sourceforge.net/" @@ -43,7 +43,6 @@ package() { for MOD in `find -type f -name '*.ko'`; do install -Dm644 $MOD $pkgdir/lib/modules/extramodules-3.${_kernver}-ARCH/ done - sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='$KERNEL_VERSION'/" $startdir/$pkgname.install gzip $pkgdir/lib/modules/extramodules-3.${_kernver}-ARCH/*.ko install -D -m 644 ${srcdir}/modprobe.conf ${pkgdir}/etc/modprobe.d/${pkgname}.conf diff --git a/community/open-vm-tools-modules/open-vm-tools-modules.install b/community/open-vm-tools-modules/open-vm-tools-modules.install index 187dfb1bb..ba2f9ddc2 100644 --- a/community/open-vm-tools-modules/open-vm-tools-modules.install +++ b/community/open-vm-tools-modules/open-vm-tools-modules.install @@ -1,8 +1,6 @@ -KERNEL_VERSION='3.1.0-4-ARCH' - post_install() { - depmod -a -v $KERNEL_VERSION > /dev/null 2>&1 - + EXTRAMODULES='extramodules-3.1-ARCH' + depmod $(cat /lib/modules/$EXTRAMODULES/version) echo ">>> Enabling vmxnet driver in /etc/modprobe.d/open-vm-tools-modules.conf" echo ">>> (this will disable pcnet32 driver)" echo ">>>" @@ -12,12 +10,13 @@ post_install() { } post_upgrade() { - depmod -a -v $KERNEL_VERSION > /dev/null 2>&1 + EXTRAMODULES='extramodules-3.1-ARCH' + depmod $(cat /lib/modules/$EXTRAMODULES/version) } post_remove() { - depmod -a -v $KERNEL_VERSION > /dev/null 2>&1 - + EXTRAMODULES='extramodules-3.1-ARCH' + depmod $(cat /lib/modules/$EXTRAMODULES/version) echo ">>>" echo ">>> Remember to un-blacklist pcnet32 driver" echo ">>>" -- cgit v1.2.3-54-g00ecf