Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/vhba/
Date: Wed, 28 Aug 2019 07:08:00
Message-Id: 1566976065.e44504efa6e541569f2106d4a83af1ecaf67fad8.mgorny@gentoo
1 commit: e44504efa6e541569f2106d4a83af1ecaf67fad8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 28 06:47:54 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 28 07:07:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e44504ef
7
8 sys-fs/vhba: Bump to 20190827
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-fs/vhba/Manifest | 1 +
13 sys-fs/vhba/vhba-20190827.ebuild | 51 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 52 insertions(+)
15
16 diff --git a/sys-fs/vhba/Manifest b/sys-fs/vhba/Manifest
17 index 667f7ec876d..d70612f60b7 100644
18 --- a/sys-fs/vhba/Manifest
19 +++ b/sys-fs/vhba/Manifest
20 @@ -1 +1,2 @@
21 DIST vhba-module-20190410.tar.bz2 15741 BLAKE2B 6d513877c771b1c4c5805231cf8bb13333d29dd3c6de7d91879ef1898fdc424df026b0835a772f398dcdc7d8900db462164a40e46c9b66b38ed70f5b5f6a0e7e SHA512 e4b30bea8464d8ac24fd2fddca9d41052af2f5b3dc9e054ead47991bff41366be377600075627c40261722c88c20ed2eaf65fa7afb34690ef09a6f4ea6f9351f
22 +DIST vhba-module-20190827.tar.bz2 15570 BLAKE2B 54a50f14659e388c0d53edce842633a3d85bae66483d27e458a83fcc7c547a804e83d34bba0e9a11a0b7e4e533f78c7014ac8e1235a83a7dc6aa13671cb9a823 SHA512 e84ffbbace9964b5fda844d3dd5201ae969ca017886a709d814670a371631376ebb2b1f05775c14ace43e84ed7fc0340638e485ac2a386db530cc25a9fa6e534
23
24 diff --git a/sys-fs/vhba/vhba-20190827.ebuild b/sys-fs/vhba/vhba-20190827.ebuild
25 new file mode 100644
26 index 00000000000..a049dfd927d
27 --- /dev/null
28 +++ b/sys-fs/vhba/vhba-20190827.ebuild
29 @@ -0,0 +1,51 @@
30 +# Copyright 1999-2019 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit eutils linux-mod udev
36 +
37 +MY_P=vhba-module-${PV}
38 +DESCRIPTION="Virtual (SCSI) Host Bus Adapter kernel module for the CDEmu suite"
39 +HOMEPAGE="http://cdemu.org"
40 +SRC_URI="mirror://sourceforge/cdemu/${MY_P}.tar.bz2"
41 +
42 +LICENSE="GPL-2+"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE=""
46 +
47 +RDEPEND="virtual/udev"
48 +DEPEND="${RDEPEND}
49 + virtual/pkgconfig"
50 +
51 +S=${WORKDIR}/${MY_P}
52 +MODULE_NAMES="vhba(block:${S})"
53 +BUILD_TARGETS=modules
54 +
55 +pkg_setup() {
56 + CONFIG_CHECK="~BLK_DEV_SR ~CHR_DEV_SG"
57 + check_extra_config
58 + BUILD_PARAMS="KDIR=${KV_OUT_DIR}"
59 + linux-mod_pkg_setup
60 +}
61 +
62 +src_prepare() {
63 + # Avoid -Werror problems
64 + sed -i -e '/ccflags/s/-Werror/-Wall/' Makefile || die "sed failed"
65 +
66 + eapply_user
67 +}
68 +
69 +src_install() {
70 + dodoc AUTHORS ChangeLog README
71 + linux-mod_src_install
72 +
73 + einfo "Generating udev rules ..."
74 + dodir "$(get_udevdir)"/rules.d
75 + cat > "${D}$(get_udevdir)"/rules.d/69-vhba.rules <<-EOF || die
76 + # do not edit this file, it will be overwritten on update
77 + #
78 + KERNEL=="vhba_ctl", SUBSYSTEM=="misc", TAG+="uaccess"
79 + EOF
80 +}