mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-misc/cgminer: use udev.eclass; call udev_reload
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user