mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 12:47:16 +08:00
40 lines
1.5 KiB
Bash
40 lines
1.5 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=vhba-module-lts
|
|
pkgver=1.2.1
|
|
_kernver='2.6.35-CHAKRA-LTS'
|
|
pkgrel=1
|
|
pkgdesc="Kernel26 module that emulates SCSI devices"
|
|
arch=('i686' 'x86_64')
|
|
url="http://cdemu.sourceforge.net/"
|
|
license=('GPL2')
|
|
depends=('kernel26-lts>=2.6.35' 'kernel26-lts<2.6.36')
|
|
makedepends=('kernel26-lts-headers>=2.6.35')
|
|
install=vhba-module.install
|
|
source=(http://downloads.sourceforge.net/cdemu/vhba-module-$pkgver.tar.bz2 vhba-kernel26-2.6.34.patch vhba-kernel26-2.6.36.patch)
|
|
md5sums=('a3b6ad798f2b72ef599df797ef79e5ec' 'de68d2e744885faade0b03baff52f4a8' '5960ac48a487ff5a4d767ed1f5eaf904')
|
|
groups=("kernel26-lts-modules")
|
|
|
|
build() {
|
|
cd "$srcdir/vhba-module-$pkgver"
|
|
#workaround to fix compilation against 2.6.33
|
|
#http://bugs.gentoo.org/233910
|
|
for i in kat/*.c; do
|
|
sed -i "s:<linux/autoconf.h>:<generated/autoconf.h>:" $i
|
|
done
|
|
|
|
patch -Np0 -i ${srcdir}/vhba-kernel26-2.6.34.patch || return 1
|
|
patch -Np0 -i ${srcdir}/vhba-kernel26-2.6.36.patch || return 1
|
|
|
|
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"
|
|
}
|