summaryrefslogtreecommitdiff
path: root/sys-kernel
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/vhba-dkms/Manifest1
-rw-r--r--sys-kernel/vhba-dkms/files/dkms.conf7
-rw-r--r--sys-kernel/vhba-dkms/vhba-dkms-20140928.ebuild46
3 files changed, 54 insertions, 0 deletions
diff --git a/sys-kernel/vhba-dkms/Manifest b/sys-kernel/vhba-dkms/Manifest
new file mode 100644
index 00000000..a2591419
--- /dev/null
+++ b/sys-kernel/vhba-dkms/Manifest
@@ -0,0 +1 @@
+DIST vhba-module-20140928.tar.bz2 15571 SHA256 45f56e4972b5aa7175903307901ca42d29da6fc8f92ab4c47007f53bc5bb55a2 SHA512 efa61b2ac44a015582f99affa4c26e4b6ccdd1506a7f14626c08833c4ffff300d128dd4e9040d83d5a51064b0bc9f95397c3cdfec7197c53c3d6f1a97953f779 WHIRLPOOL 4b96bb5010b8ab892db09f7e8f36fc67107533dd4d6beea6d5b89e6076c44ee969bee5d3b646b4ca5b1f0f6af446096fd892ab0970b8d6893fe4730f3eb18c07
diff --git a/sys-kernel/vhba-dkms/files/dkms.conf b/sys-kernel/vhba-dkms/files/dkms.conf
new file mode 100644
index 00000000..d9fe0c26
--- /dev/null
+++ b/sys-kernel/vhba-dkms/files/dkms.conf
@@ -0,0 +1,7 @@
+PACKAGE_NAME="vhba-dkms"
+PACKAGE_VERSION="20140928"
+MAKE[0]="make KVER=$kernelver"
+MAKE[0]="make KV_FULL=$kernelver"
+BUILT_MODULE_NAME[0]="vhba"
+DEST_MODULE_LOCATION[0]="/block"
+AUTOINSTALL="YES"
diff --git a/sys-kernel/vhba-dkms/vhba-dkms-20140928.ebuild b/sys-kernel/vhba-dkms/vhba-dkms-20140928.ebuild
new file mode 100644
index 00000000..dfbdd932
--- /dev/null
+++ b/sys-kernel/vhba-dkms/vhba-dkms-20140928.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils
+
+MY_P=vhba-module-${PV}
+DESCRIPTION="Virtual (SCSI) Host Bus Adapter kernel module for the CDEmu suite sources"
+HOMEPAGE="http://cdemu.org"
+SRC_URI="mirror://sourceforge/cdemu/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ~hppa x86"
+IUSE=""
+
+DEPEND="sys-kernel/dkms"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -e '/ccflags/s/-Werror$/-Wall/' \
+ -i Makefile || die "sed failed"
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ cp "${FILESDIR}/dkms.conf" "${S}" || die
+ dodir /usr/src/${P}
+ insinto /usr/src/${P}
+ doins -r "${S}"/*
+}
+
+pkg_postinst() {
+ dkms add ${PN}/${PV}
+}
+
+pkg_postrm() {
+ dkms remove ${PN}/${PV} --all
+}
+