diff options
Diffstat (limited to 'sys-fs/vhba')
-rw-r--r-- | sys-fs/vhba/Manifest | 1 | ||||
-rw-r--r-- | sys-fs/vhba/vhba-20211218-r2.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/sys-fs/vhba/Manifest b/sys-fs/vhba/Manifest index e28e5265f9ad..12d50fbe3518 100644 --- a/sys-fs/vhba/Manifest +++ b/sys-fs/vhba/Manifest @@ -1,3 +1,4 @@ DIST vhba-module-20211218.tar.xz 16168 BLAKE2B 37fcc56cc34dfbc68c8a8212f30a54c6a04f3b9014a5964b995bfef59df1b8f5a005e6cbfff97f1233451d215b6c4fd3c09a0cd39ebf6cb86bd6b327e5d7d718 SHA512 02b554bb2d0c91c090edeeb7c692164f378273e475a64653df845cb30cdd15d689f7fbe5fa890f77f82bf778d4d228384f656d202b6b6baf02d08321d7c2598d EBUILD vhba-20211218-r1.ebuild 1170 BLAKE2B 807564dec9756a003d560573788469f5f6488dbc8bd170bd8291c28e510ca630dcb9cb4fcf71c36e9298b8331952b0d967d8e3c7616c3351b177f487af3327bb SHA512 2da6de99e5d491658e90f02107694265a96c39e9cc2cfe661d6f960d3327a9be3c007381c67a3cc1716d6eaf48cbb1d24bb1f50b8dee199463bd7703434e90ee +EBUILD vhba-20211218-r2.ebuild 1088 BLAKE2B e4554e9519dd6026ac923e4d9bd0e6fa1860464ddab4881a59c9e8df26c6ca96c705711d92d77c4c4d07047836410597bea5068576201af7a0b3686a07c998ac SHA512 79b0c85c98a43a95a23ba27c96da82a865c5b80354c0c646f877b593be93ccda0019185b149847f835373416847ccc5284b9fd2caeefb5b7cb0b640d9f19b250 MISC metadata.xml 333 BLAKE2B 99feb77e860cccd95f60688c7c2104267b6abb6188a8f24e50728b39487892ef29c58e5ddfb7a56578d27c34e9d4bb16371298449d2a3de5e6a79a6a5712e37c SHA512 2a387604d78412e81477271c793d46b197609d4d9037aa55d0146cfbbc9eae01633a7a9ac6908f923174ecfedf7336792147dc6e7c5b13db057855282e45e129 diff --git a/sys-fs/vhba/vhba-20211218-r2.ebuild b/sys-fs/vhba/vhba-20211218-r2.ebuild new file mode 100644 index 000000000000..62e5c2e3cf50 --- /dev/null +++ b/sys-fs/vhba/vhba-20211218-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-mod-r1 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.xz" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + virtual/udev +" +DEPEND=" + ${RDEPEND} +" + +CONFIG_CHECK="~BLK_DEV_SR ~CHR_DEV_SG" + +src_compile() { + local modlist=( vhba ) + local modargs=( KDIR="${KV_OUT_DIR}" ) + + linux-mod-r1_src_compile +} + +src_prepare() { + default + # Avoid -Werror problems + sed -i -e '/ccflags/s/-Werror/-Wall/' Makefile || die "sed failed" +} + +src_install() { + linux-mod-r1_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 +} + +pkg_postinst() { + linux-mod-r1_pkg_postinst + udev_reload +} + +pkg_postrm() { + udev_reload +} |