system/vhba-module: Added to 12.1 repository

This commit is contained in:
Niklas Nille Åkerström 2010-05-11 22:55:34 +02:00 committed by Robby Workman
parent 1f9f067f6c
commit 2057932eaf
6 changed files with 121 additions and 0 deletions

View File

@ -0,0 +1,5 @@
This is VHBA (Virtual SCSI Host Bus adapter), a Linux kernel
module which acts as a low-level SCSI driver and which provides
the SCSI layer with a virtual SCSI adapter which can have
multiple virtual devices. It is part of the userspace-cdemu
suite, a free, GPL CD/DVD-ROM device emulator for linux.

View File

@ -0,0 +1,3 @@
chroot . /sbin/depmod -a

View File

@ -0,0 +1,18 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------|
vhba-module: vhba-module (virtual scsi host bus adapter module)
vhba-module:
vhba-module: This is VHBA (Virtual SCSI Host Bus adapter), a Linux kernel
vhba-module: module which acts as a low-level SCSI driver and which provides
vhba-module: the SCSI layer with a virtual SCSI adapter which can have
vhba-module: multiple virtual devices. It is part of the userspace-cdemu
vhba-module: suite, a free, GPL CD/DVD-ROM device emulator for linux.
vhba-module:
vhba-module: Homepage: http://cdemu.sourceforge.net/pkg_vhba.php
vhba-module:

View File

@ -0,0 +1,12 @@
--- vhba-module-1.1.0.orig/kat/scatterlist_has_page_link.c 2008-09-13 18:44:36.000000000 +0200
+++ vhba-module-1.1.0/kat/scatterlist_has_page_link.c 2008-09-13 19:01:33.000000000 +0200
@@ -0,0 +1,9 @@
+#include <linux/autoconf.h>
+#include <linux/scatterlist.h>
+
+/* Note: scatterlist.page_link is used in kernel (2.6.24 <= version < X) */
+
+struct scatterlist s = { .page_link = 0 };
+
+//T#define KAT_SCATTERLIST_HAS_PAGE_LINK
+//F#include <linux/scatterlist.h>

View File

@ -0,0 +1,75 @@
#!/bin/sh
# Slackware build script for vhba-module
# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Added patch by Niklas "Nille" Åkerström
PRGNAM=vhba-module
SRC_VERSION=1.1.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
KERNELVERSION=${KERNELVERSION:-$(uname -r)}
VERSION=${SRC_VERSION}_$(echo $KERNELVERSION | tr - _)
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=${PKG:-$TMP/package-$PRGNAM}
OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
rm -rf $PRGNAM-$SRC_VERSION
tar xvf $CWD/$PRGNAM-$SRC_VERSION.tar.bz2 || exit 1
cd $PRGNAM-$SRC_VERSION || exit 1
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
# patch and change filename for scatterlist API in 2.6.24+ kernels.
patch -p1 < $CWD/vhba-module-scatterlist.diff
make KERNELRELEASE=$KERNELVERSION || exit 1
mkdir -p $PKG/lib/modules/$KERNELVERSION/extra
install -m 0664 vhba.ko $PKG/lib/modules/$KERNELVERSION/extra/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
if [ "$1" = "--cleanup" ]; then
rm -rf $PKG $TMP/$PRGNAM-$SRC_VERSION
fi

View File

@ -0,0 +1,8 @@
PRGNAM="vhba-module"
VERSION="1.1.0"
HOMEPAGE="http://cdemu.sourceforge.net/pkg_vhba.php"
DOWNLOAD="http://downloads.sourceforge.net/cdemu/vhba-module-1.1.0.tar.bz2"
MD5SUM="dd9dd9a03060498aaa5391819c17e201"
MAINTAINER="Niklas 'Nille' Åkerström"
EMAIL="nille.kungen[AT]gmail.com"
APPROVED="rworkman"