diff options
author | root <root@rshg054.dnsready.net> | 2012-12-29 02:13:48 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-12-29 02:13:48 -0800 |
commit | 5dd7ed82e788ebad2e920e0f2db7468cc6547cfe (patch) | |
tree | f467412e09912ababcd8fe6c05193d829f514dcd /community/open-vm-tools-modules/PKGBUILD | |
parent | 3009e8addb4a894329bf8ab3e8fb763361833978 (diff) |
Sat Dec 29 02:10:20 PST 2012
Diffstat (limited to 'community/open-vm-tools-modules/PKGBUILD')
-rw-r--r-- | community/open-vm-tools-modules/PKGBUILD | 52 |
1 files changed, 30 insertions, 22 deletions
diff --git a/community/open-vm-tools-modules/PKGBUILD b/community/open-vm-tools-modules/PKGBUILD index 082df1943..df6d75ea6 100644 --- a/community/open-vm-tools-modules/PKGBUILD +++ b/community/open-vm-tools-modules/PKGBUILD @@ -1,10 +1,11 @@ -# $Id: PKGBUILD 72483 2012-06-15 13:20:41Z spupykin $ +# $Id: PKGBUILD 80262 2012-11-18 19:27:05Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Krzysztof Raczkowski <raczkow@gmail.com> pkgname=open-vm-tools-modules -pkgver=2012.05.21 -_pkgsubver=724730 +epoch=1 +pkgver=9.2.2 +_pkgsubver=893683 pkgrel=1 pkgdesc="kernel modules for the open source implementation of VMware Tools" arch=('i686' 'x86_64') @@ -13,38 +14,45 @@ license=('GPL') makedepends=('libdnet' 'icu' 'uriparser' 'linux-headers') depends=("linux") install=$pkgname.install -options=('!strip') +options=('!strip' '!makeflags') source=("http://downloads.sourceforge.net/open-vm-tools/open-vm-tools-$pkgver-${_pkgsubver}.tar.gz" - "modprobe.conf") -md5sums=('91affb5b23db8abceff930613845f434' - 'ac9b8e3cb798f5056ca92767ec705117') + "modprobe.conf" + "linux-3.6-build-fix.patch") +md5sums=('7af505681d736d4c9ee6493b1166689f' + 'bc5518489077e91655489bd04b868584' + 'd9ffaf628837ea6a216b96dac69705e6') build() { - _kernver=`pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -` - KERNEL_RELEASE=`cat /lib/modules/extramodules-3.${_kernver}-ARCH/version` + _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 - [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr \ - --without-x --with-kernel-release=$KERNEL_RELEASE +# patch -p1 <$srcdir/linux-3.6-build-fix.patch + + [ $NOEXTRACT -eq 1 ] || ./configure \ + --prefix=/usr \ + --without-x \ + --with-linuxdir=/usr/lib/modules/$KERNEL_RELEASE - cd modules - make modules -j1 + 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 /lib/modules/extramodules-3.${_kernver}-ARCH/version` + _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/lib/modules/extramodules-3.${_kernver}-ARCH/ - for MOD in `find -type f -name '*.ko'`; do - install -Dm644 $MOD $pkgdir/lib/modules/extramodules-3.${_kernver}-ARCH/ - done - gzip $pkgdir/lib/modules/extramodules-3.${_kernver}-ARCH/*.ko + 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}/etc/modprobe.d/${pkgname}.conf + 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 } |