From 76c26b027d797f3671bf0b6c6618eda2496cf88d Mon Sep 17 00:00:00 2001 From: root Date: Fri, 15 Jul 2011 23:12:20 +0000 Subject: Fri Jul 15 23:12:20 UTC 2011 --- community-testing/vhba-module/PKGBUILD | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 community-testing/vhba-module/PKGBUILD (limited to 'community-testing/vhba-module/PKGBUILD') diff --git a/community-testing/vhba-module/PKGBUILD b/community-testing/vhba-module/PKGBUILD new file mode 100644 index 000000000..137897a28 --- /dev/null +++ b/community-testing/vhba-module/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 51733 2011-07-13 18:23:43Z schiv $ +# Maintainer: Mateusz Herych +# Contributor: Charles Lindsay + +pkgname=vhba-module +pkgver=20110416 +_kernver='2.6.39-ARCH' +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') +install=vhba-module.install +source=(http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.gz) +md5sums=('2f91dd4ee8648da92d625221d4275b60') + +build() { + cd "$srcdir/$pkgname-$pkgver" + 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" +} -- cgit v1.2.3-54-g00ecf