diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-01-07 06:30:10 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-01-07 07:02:04 +0100 |
commit | 8cf8410241fc77b097c9909cd6156dcb5a9eb6dc (patch) | |
tree | c997ab1bfd89e768ac9a1e7ad88050e9a66937ea /sys-fs/vhba | |
parent | x11-misc/rofi-calc: new ebuild (diff) | |
download | gentoo-8cf8410241fc77b097c9909cd6156dcb5a9eb6dc.tar.gz gentoo-8cf8410241fc77b097c9909cd6156dcb5a9eb6dc.tar.bz2 gentoo-8cf8410241fc77b097c9909cd6156dcb5a9eb6dc.zip |
sys-fs/vhba: Bump to 20200106
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-fs/vhba')
-rw-r--r-- | sys-fs/vhba/Manifest | 1 | ||||
-rw-r--r-- | sys-fs/vhba/vhba-20200106.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/sys-fs/vhba/Manifest b/sys-fs/vhba/Manifest index 2addafd3684b..a61bbc0a6f02 100644 --- a/sys-fs/vhba/Manifest +++ b/sys-fs/vhba/Manifest @@ -1 +1,2 @@ DIST vhba-module-20190831.tar.bz2 15570 BLAKE2B 202f28a0729eddce907f5fc46f99a52b116948a376c0f2aaab3b9340f88fc248151c3ec592f2f60e52a07eeed4f551d6f270b4464605bce9df4badf9fa8ed322 SHA512 f43cb9b5730c4d634b58d3dd204610dbc86fdc520d4cfee6c9efbae3bb2acb88f5663e5fbd2b11b5ef9e3b6ad7d4dd0ecf9728dc36ac0b492bd06e0806223591 +DIST vhba-module-20200106.tar.bz2 15632 BLAKE2B 9b2db6cab2388fb5b84f2735d41a093af212434de2784f112d212cfc6193b1267ccf0afb222765bc32b0fc455d16bd1f0e98ddf60212735473853ec29ab27b97 SHA512 fc320e1f8f05247b7c2feded1335dce0fcc9a1257127d8d4086db48bd1e082d81b8a88089c04d0b8624ae584f1c0d049544f6f0018ec7dcea20ccfb136cd1bf0 diff --git a/sys-fs/vhba/vhba-20200106.ebuild b/sys-fs/vhba/vhba-20200106.ebuild new file mode 100644 index 000000000000..588db552a4bf --- /dev/null +++ b/sys-fs/vhba/vhba-20200106.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils linux-mod udev + +MY_P=vhba-module-${PV} +DESCRIPTION="Virtual (SCSI) Host Bus Adapter kernel module for the CDEmu suite" +HOMEPAGE="https://cdemu.sourceforge.io" +SRC_URI="https://download.sourceforge.net/cdemu/vhba-module/${MY_P}.tar.bz2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="virtual/udev" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} +MODULE_NAMES="vhba(block:${S})" +BUILD_TARGETS=modules + +pkg_setup() { + CONFIG_CHECK="~BLK_DEV_SR ~CHR_DEV_SG" + check_extra_config + BUILD_PARAMS="KDIR=${KV_OUT_DIR}" + linux-mod_pkg_setup +} + +src_prepare() { + # Avoid -Werror problems + sed -i -e '/ccflags/s/-Werror/-Wall/' Makefile || die "sed failed" + + eapply_user +} + +src_install() { + dodoc AUTHORS ChangeLog README + linux-mod_src_install + + einfo "Generating udev rules ..." + udev_newrules - 69-vhba.rules <<-EOF + # do not edit this file, it will be overwritten on update + # + KERNEL=="vhba_ctl", SUBSYSTEM=="misc", TAG+="uaccess" + EOF +} |