diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-02 17:45:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-02 17:45:32 +0000 |
commit | 5939313f229e6fcf374fb7e9ee4f8675b05ab293 (patch) | |
tree | 0a8181cbc5d052ab4d26a8e1d2dc52f126063fc6 /sys-fs/vhba | |
parent | 7e3d6dcede5749fe6a1adef4e673a9dde7703b7b (diff) |
gentoo auto-resync : 02:02:2024 - 17:45:32
Diffstat (limited to 'sys-fs/vhba')
-rw-r--r-- | sys-fs/vhba/Manifest | 2 | ||||
-rw-r--r-- | sys-fs/vhba/vhba-20240202.ebuild | 58 |
2 files changed, 60 insertions, 0 deletions
diff --git a/sys-fs/vhba/Manifest b/sys-fs/vhba/Manifest index 8346015f2274..dbba187fff08 100644 --- a/sys-fs/vhba/Manifest +++ b/sys-fs/vhba/Manifest @@ -1,3 +1,5 @@ DIST vhba-module-20211218.tar.xz 16168 BLAKE2B 37fcc56cc34dfbc68c8a8212f30a54c6a04f3b9014a5964b995bfef59df1b8f5a005e6cbfff97f1233451d215b6c4fd3c09a0cd39ebf6cb86bd6b327e5d7d718 SHA512 02b554bb2d0c91c090edeeb7c692164f378273e475a64653df845cb30cdd15d689f7fbe5fa890f77f82bf778d4d228384f656d202b6b6baf02d08321d7c2598d +DIST vhba-module-20240202.tar.xz 16168 BLAKE2B 7974f60b73c634528afdd44e94c6da34bdc481d874f19845efc0464435a7e560494dd703b0fb1df34c96fce5f1afb300a1e6e2b3b9730e91c956816905eb2f44 SHA512 fdb9b79feb870bb22ed2182216103c8b87d1b5a471d02def24bdf5782cc2bee2333f1d78e1428b042c3df5a33ff8e07b1d61cbe11414a27db18034f3fbbe2612 EBUILD vhba-20211218-r2.ebuild 1086 BLAKE2B 5060fff6e96533ee3001d5e2b4898082b6ea8aa8b76ff267a1c0935acd22c4ef653c8f343e440d4250ba8f749ab38416b48b9f8b3b77bc79abb324cd6369568a SHA512 66d3d519615ad07902709a8355aabed88de28368c5593c1a09ea670b1fa8891f690788e53b8f874beb35463bb2b915c7ada9bbc057d20029b7fb54245673156b +EBUILD vhba-20240202.ebuild 1088 BLAKE2B 41caec15924e0cee276f78183f3912de23099695dec2c72034efeeaa2dbec7d63cfa54edcb20d43b1c638986e1b2ade6c7028970967fb5743149259698e3868e SHA512 213f02109b6de84b55bd8c7325a35a90bf7ef35c72abd18b71cef628898fcb4bf591bfc57a2e52e6fe03dadbbf882d5275a7d780b8c27893edc5a22fbd6dbc3f MISC metadata.xml 333 BLAKE2B 99feb77e860cccd95f60688c7c2104267b6abb6188a8f24e50728b39487892ef29c58e5ddfb7a56578d27c34e9d4bb16371298449d2a3de5e6a79a6a5712e37c SHA512 2a387604d78412e81477271c793d46b197609d4d9037aa55d0146cfbbc9eae01633a7a9ac6908f923174ecfedf7336792147dc6e7c5b13db057855282e45e129 diff --git a/sys-fs/vhba/vhba-20240202.ebuild b/sys-fs/vhba/vhba-20240202.ebuild new file mode 100644 index 000000000000..4c97a5404e45 --- /dev/null +++ b/sys-fs/vhba/vhba-20240202.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2024 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 +} |