summaryrefslogtreecommitdiff
path: root/community/open-vm-tools-modules
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-01-18 23:14:59 +0000
committerroot <root@rshg054.dnsready.net>2012-01-18 23:14:59 +0000
commit3e2075427791725d8e6a007feba107d94c017caf (patch)
tree23ce535075e2575a775e0b14d2b96668d0b6d1b1 /community/open-vm-tools-modules
parent7de0a9c21ecdb7becae761d7c9f2e723cb9ae0d3 (diff)
Wed Jan 18 23:14:59 UTC 2012
Diffstat (limited to 'community/open-vm-tools-modules')
-rw-r--r--community/open-vm-tools-modules/PKGBUILD5
-rw-r--r--community/open-vm-tools-modules/open-vm-tools-modules.install13
2 files changed, 8 insertions, 10 deletions
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 <pupykin.s+arch@gmail.com>
# Contributor: Krzysztof Raczkowski <raczkow@gmail.com>
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 ">>>"