diff options
author | 2024-07-14 20:57:44 +0200 | |
---|---|---|
committer | 2024-07-21 17:04:20 +0200 | |
commit | 4264b69be5de58092ddc59e0107a3f3cdf9df853 (patch) | |
tree | 7cadf5f466eff4495c24bb2bd83cb108e78211c2 /sys-power/sispmctl/sispmctl-4.12.ebuild | |
parent | sys-power/RyzenAdj: add 0.15.0 (diff) | |
download | gentoo-4264b69be5de58092ddc59e0107a3f3cdf9df853.tar.gz gentoo-4264b69be5de58092ddc59e0107a3f3cdf9df853.tar.bz2 gentoo-4264b69be5de58092ddc59e0107a3f3cdf9df853.zip |
sys-power/sispmctl: add 4.12
Closes: https://bugs.gentoo.org/852290
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'sys-power/sispmctl/sispmctl-4.12.ebuild')
-rw-r--r-- | sys-power/sispmctl/sispmctl-4.12.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/sys-power/sispmctl/sispmctl-4.12.ebuild b/sys-power/sispmctl/sispmctl-4.12.ebuild new file mode 100644 index 000000000000..800da41c65b6 --- /dev/null +++ b/sys-power/sispmctl/sispmctl-4.12.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd udev + +DESCRIPTION="GEMBIRD SiS-PM control utility" +HOMEPAGE="http://sispmctl.sourceforge.net/" +SRC_URI="https://downloads.sourceforge.net/sispmctl/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="static-libs" + +DEPEND=" + virtual/libusb:0 +" +RDEPEND=" + ${DEPEND} + acct-group/sispmctl +" + +src_configure() { + local myeconfargs=( + $(use_enable static-libs static) + --enable-webless + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die + + # install udev rules which make the device files writable + # by the members of the group sispmctl + udev_dorules examples/60-sispmctl.rules + + systemd_dounit examples/${PN}.service +} + +pkg_postinst() { + udev_reload + einfo "Add users who may run ${PN} to the group '${PN}'" +} + +pkg_postrm() { + udev_reload +} |