summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-04-28 04:24:46 +0100
committerSam James <sam@gentoo.org>2022-04-28 04:31:51 +0100
commit3749b6e7ef444608c3d93717b180179ee2eada2f (patch)
tree6941866aa5b57576cb08208fe6db07dcdc987292 /net-misc
parentdev-libs/light: use get_udevdir (diff)
downloadgentoo-3749b6e7ef444608c3d93717b180179ee2eada2f.tar.gz
gentoo-3749b6e7ef444608c3d93717b180179ee2eada2f.tar.bz2
gentoo-3749b6e7ef444608c3d93717b180179ee2eada2f.zip
net-misc/cgminer: use udev.eclass; call udev_reload
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/cgminer/cgminer-4.10.0-r1.ebuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/net-misc/cgminer/cgminer-4.10.0-r1.ebuild b/net-misc/cgminer/cgminer-4.10.0-r1.ebuild
index 016755b9d44c..7fcba45d1770 100644
--- a/net-misc/cgminer/cgminer-4.10.0-r1.ebuild
+++ b/net-misc/cgminer/cgminer-4.10.0-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit flag-o-matic toolchain-funcs
+inherit flag-o-matic toolchain-funcs udev
DESCRIPTION="Bitcoin CPU/GPU/FPGA/ASIC miner in C"
HOMEPAGE="https://bitcointalk.org/?topic=28402.msg357369 https://github.com/ckolivas/cgminer"
@@ -76,8 +76,7 @@ src_install() { # How about using some make install?
dobin cgminer
if use udev; then
- insinto /lib/udev/rules.d
- use udev && doins 01-cgminer.rules
+ udev_dorules 01-cgminer.rules
fi
if use doc; then
@@ -91,3 +90,7 @@ src_install() { # How about using some make install?
dodoc api-example.php miner.php API.java api-example.c example.conf
fi
}
+
+pkg_postinst() {
+ use udev && udev_reload
+}