summaryrefslogtreecommitdiff
path: root/community/open-vm-tools-modules/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-09 23:14:53 +0000
committerroot <root@rshg054.dnsready.net>2011-11-09 23:14:53 +0000
commit7b0cdd65ac7bcd3c7597b528a10de58e4e0a430f (patch)
tree94f5e5e8ba53712358886d7a29554a7c5d624563 /community/open-vm-tools-modules/PKGBUILD
parentddba9670c1518d9b420db6a6dca01a4a4a4136c7 (diff)
Wed Nov 9 23:14:53 UTC 2011
Diffstat (limited to 'community/open-vm-tools-modules/PKGBUILD')
-rw-r--r--community/open-vm-tools-modules/PKGBUILD17
1 files changed, 10 insertions, 7 deletions
diff --git a/community/open-vm-tools-modules/PKGBUILD b/community/open-vm-tools-modules/PKGBUILD
index cdb6a85eb..dfd30f1da 100644
--- a/community/open-vm-tools-modules/PKGBUILD
+++ b/community/open-vm-tools-modules/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 56484 2011-10-07 10:16:01Z spupykin $
+# $Id: PKGBUILD 58214 2011-11-08 22:41:11Z ibiru $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Krzysztof Raczkowski <raczkow@gmail.com>
pkgname=open-vm-tools-modules
pkgver=2011.09.23
_pkgsubver=491607
-pkgrel=1
+pkgrel=2
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/"
@@ -17,22 +17,25 @@ source=("http://downloads.sourceforge.net/open-vm-tools/open-vm-tools-$pkgver-${
md5sums=('599342eee8d531b35ca1cc948b61868f')
build() {
+ _kernver=`pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -`
+ KERNEL_RELEASE=`cat /lib/modules/extramodules-3.${_kernver}-ARCH/version`
+
cd "$srcdir/open-vm-tools-${pkgver}-${_pkgsubver}"
-# sed -i 's#-lproc-3.2.7#-lproc-3.2.8#' configure
- [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --without-x
+ [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr \
+ --without-x --with-kernel-release=$KERNEL_RELEASE
(cd modules && make 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=`uname -r`
+ KERNEL_VERSION=`cat /lib/modules/extramodules-3.${_kernver}-ARCH/version`
msg "Kernel = $KERNEL_VERSION"
cd "$srcdir/open-vm-tools-${pkgver}-${_pkgsubver}"
- mkdir -p $pkgdir/lib/modules/$KERNEL_VERSION/misc/
+ mkdir -p $pkgdir/lib/modules/extramodules-3.${_kernver}-ARCH/
for MOD in `find -type f -name '*.ko'`; do
- install -D -m644 $MOD $pkgdir/lib/modules/$KERNEL_VERSION/misc/
+ install -D -m644 $MOD $pkgdir/lib/modules/extramodules-3.${_kernver}-ARCH/
done
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='$KERNEL_VERSION'/" $startdir/$pkgname.install
}