summaryrefslogtreecommitdiff
path: root/community/vhba-module
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-10 23:14:50 +0000
committerroot <root@rshg054.dnsready.net>2011-11-10 23:14:50 +0000
commit4141f5b04aab597f88a617a82649a404c773469a (patch)
treeb293827df78bf1e9b7059db63c04c3f7ab854ae6 /community/vhba-module
parent7b0cdd65ac7bcd3c7597b528a10de58e4e0a430f (diff)
Thu Nov 10 23:14:50 UTC 2011
Diffstat (limited to 'community/vhba-module')
-rw-r--r--community/vhba-module/PKGBUILD16
-rw-r--r--community/vhba-module/vhba-module.install8
2 files changed, 13 insertions, 11 deletions
diff --git a/community/vhba-module/PKGBUILD b/community/vhba-module/PKGBUILD
index 4e2739fb2..448c9f7fb 100644
--- a/community/vhba-module/PKGBUILD
+++ b/community/vhba-module/PKGBUILD
@@ -1,17 +1,19 @@
-# $Id: PKGBUILD 57058 2011-10-20 04:40:39Z bpiotrowski $
+# $Id: PKGBUILD 58264 2011-11-09 15:50:55Z jelle $
# Maintainer: Mateusz Herych <heniekk@gmail.com>
# Contributor: Charles Lindsay <charles@chaoslizard.org>
pkgname=vhba-module
pkgver=20110915
-_kernver='3.0-ARCH'
-pkgrel=1
+#_kernver='3.1.0-ARCH'
+_extramodules=extramodules-3.1-ARCH
+_kernver="$(cat /lib/modules/${_extramodules}/version)"
+pkgrel=2
pkgdesc="Kernel module that emulates SCSI devices"
arch=('i686' 'x86_64')
url="http://cdemu.sourceforge.net/"
license=('GPL2')
-depends=('linux>=3.0' 'linux<3.1')
-makedepends=('linux-headers>=3.0')
+depends=('linux>=3.1' 'linux<3.2')
+makedepends=('linux-headers>=3.1')
install=vhba-module.install
source=(http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.gz)
md5sums=('fb90cd8fc4cd74d08c92e8235f99f1f4')
@@ -23,6 +25,6 @@ build() {
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"
+ install -D vhba.ko "$pkgdir/lib/modules/${_extramodules}/vhba.ko"
+ sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/vhba-module.install"
}
diff --git a/community/vhba-module/vhba-module.install b/community/vhba-module/vhba-module.install
index 75669d1a5..eca9bb285 100644
--- a/community/vhba-module/vhba-module.install
+++ b/community/vhba-module/vhba-module.install
@@ -1,8 +1,8 @@
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='3.0-ARCH'
- depmod $KERNEL_VERSION > /dev/null 2>&1
+ EXTRAMODULES='extramodules-3.1-ARCH'
+ depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
post_upgrade() {
@@ -10,7 +10,7 @@ post_upgrade() {
}
post_remove() {
- KERNEL_VERSION='3.0-ARCH'
- depmod $KERNEL_VERSION > /dev/null 2>&1
+ EXTRAMODULES='extramodules-3.1-ARCH'
+ depmod $(cat /lib/modules/$EXTRAMODULES/version)
}