mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
40 lines
1.0 KiB
Bash
40 lines
1.0 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
_extramodules=extramodules-3.6-CHAKRA
|
|
_kver="$(cat /lib/modules/${_extramodules}/version)"
|
|
|
|
pkgname=vhba-module
|
|
pkgver=20120422
|
|
pkgrel=6
|
|
pkgdesc="Kernel module that emulates SCSI devices"
|
|
arch=('x86_64')
|
|
url="http://cdemu.sourceforge.net/"
|
|
license=('GPL2')
|
|
depends=('linux>=3.6' 'linux<3.7')
|
|
makedepends=('linux-headers')
|
|
install=vhba-module.install
|
|
source=("http://sourceforge.net/projects/cdemu/files/vhba-module/vhba-module-$pkgver.tar.bz2"
|
|
'60-vhba.rules')
|
|
md5sums=('d97372da1d270d1605742b2995fb6678'
|
|
'071cd160f50ef6b062b6e3262d5b1e76')
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
make -j1 KDIR=/usr/src/linux-${_kver}
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
install -D vhba.ko "$pkgdir/lib/modules/${_extramodules}/vhba.ko"
|
|
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" \
|
|
"${startdir}/vhba-module.install"
|
|
|
|
install -Dm644 "$srcdir/60-vhba.rules" \
|
|
"$pkgdir/usr/lib/udev/rules.d/60-vhba.rules"
|
|
}
|