summaryrefslogtreecommitdiff
path: root/community/vhba-module
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-02 04:35:55 +0000
committerroot <root@rshg054.dnsready.net>2011-08-02 04:35:55 +0000
commitbf35116f9d203dcafce808a6c7b3dd5a0db8afbc (patch)
treef9551a1d3c67d2113cc5fc5c3f8816bcbaad0540 /community/vhba-module
parent1173ff2dba7d0fd3c45f170a5e353a76b7a5da2f (diff)
Tue Aug 2 04:35:55 UTC 2011
Diffstat (limited to 'community/vhba-module')
-rw-r--r--community/vhba-module/PKGBUILD25
-rw-r--r--community/vhba-module/vhba-module.install4
2 files changed, 15 insertions, 14 deletions
diff --git a/community/vhba-module/PKGBUILD b/community/vhba-module/PKGBUILD
index 43fa2bc67..137897a28 100644
--- a/community/vhba-module/PKGBUILD
+++ b/community/vhba-module/PKGBUILD
@@ -1,27 +1,28 @@
-# $Id: PKGBUILD 48166 2011-05-29 11:57:10Z mherych $
+# $Id: PKGBUILD 51733 2011-07-13 18:23:43Z schiv $
# Maintainer: Mateusz Herych <heniekk@gmail.com>
# Contributor: Charles Lindsay <charles@chaoslizard.org>
pkgname=vhba-module
-pkgver=20100822
+pkgver=20110416
_kernver='2.6.39-ARCH'
-pkgrel=5
+pkgrel=1
pkgdesc="Kernel module that emulates SCSI devices"
arch=('i686' 'x86_64')
url="http://cdemu.sourceforge.net/"
license=('GPL2')
depends=('kernel26>=2.6.39' 'kernel26<2.6.40')
-makedepends=('kernel26-headers>=2.6.39' 'git')
+makedepends=('kernel26-headers>=2.6.39')
install=vhba-module.install
-source=(http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.gz
- vhba-kernel2.6.37.patch)
-md5sums=('1d2f06ae33c5d15b7c29e467e4658aa2'
- 'f0499fc54f6ef9b8d6ca0b9e940c5906')
+source=(http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.gz)
+md5sums=('2f91dd4ee8648da92d625221d4275b60')
build() {
cd "$srcdir/$pkgname-$pkgver"
- git apply -p2 ../vhba-kernel2.6.37.patch
- make -j1 KDIR=/usr/src/linux-${_kernver} || return 1
- install -D vhba.ko "$pkgdir/lib/modules/${_kernver}/extra/vhba.ko" || return 1
- sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" "$startdir/vhba-module.install"
+ make -j1 KDIR=/usr/src/linux-${_kernver}
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ install -D vhba.ko "$pkgdir/lib/modules/${_kernver}/extra/vhba.ko"
+ sed -i "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" "$startdir/vhba-module.install"
}
diff --git a/community/vhba-module/vhba-module.install b/community/vhba-module/vhba-module.install
index c3bcbca3f..edb9e8d2b 100644
--- a/community/vhba-module/vhba-module.install
+++ b/community/vhba-module/vhba-module.install
@@ -1,7 +1,7 @@
post_install() {
echo ">> Place 'vhba' in MODULES= in /etc/rc.conf to enable vhba on system boot."
echo ">> This module needs to be recompiled for every kernel version upgrade."
- KERNEL_VERSION='2.6.37-ARCH'
+ KERNEL_VERSION='2.6.39-ARCH'
depmod $KERNEL_VERSION > /dev/null 2>&1
}
@@ -10,7 +10,7 @@ post_upgrade() {
}
post_remove() {
- KERNEL_VERSION='2.6.37-ARCH'
+ KERNEL_VERSION='2.6.39-ARCH'
depmod $KERNEL_VERSION > /dev/null 2>&1
}