Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/cgminer/
Date: Thu, 28 Apr 2022 03:34:18
Message-Id: 1651116711.3749b6e7ef444608c3d93717b180179ee2eada2f.sam@gentoo
1 commit: 3749b6e7ef444608c3d93717b180179ee2eada2f
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 28 03:24:46 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 28 03:31:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3749b6e7
7
8 net-misc/cgminer: use udev.eclass; call udev_reload
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-misc/cgminer/cgminer-4.10.0-r1.ebuild | 11 +++++++----
13 1 file changed, 7 insertions(+), 4 deletions(-)
14
15 diff --git a/net-misc/cgminer/cgminer-4.10.0-r1.ebuild b/net-misc/cgminer/cgminer-4.10.0-r1.ebuild
16 index 016755b9d44c..7fcba45d1770 100644
17 --- a/net-misc/cgminer/cgminer-4.10.0-r1.ebuild
18 +++ b/net-misc/cgminer/cgminer-4.10.0-r1.ebuild
19 @@ -1,9 +1,9 @@
20 -# Copyright 1999-2021 Gentoo Authors
21 +# Copyright 1999-2022 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 EAPI=7
25
26 -inherit flag-o-matic toolchain-funcs
27 +inherit flag-o-matic toolchain-funcs udev
28
29 DESCRIPTION="Bitcoin CPU/GPU/FPGA/ASIC miner in C"
30 HOMEPAGE="https://bitcointalk.org/?topic=28402.msg357369 https://github.com/ckolivas/cgminer"
31 @@ -76,8 +76,7 @@ src_install() { # How about using some make install?
32 dobin cgminer
33
34 if use udev; then
35 - insinto /lib/udev/rules.d
36 - use udev && doins 01-cgminer.rules
37 + udev_dorules 01-cgminer.rules
38 fi
39
40 if use doc; then
41 @@ -91,3 +90,7 @@ src_install() { # How about using some make install?
42 dodoc api-example.php miner.php API.java api-example.c example.conf
43 fi
44 }
45 +
46 +pkg_postinst() {
47 + use udev && udev_reload
48 +}