diff options
author | Austin English <wizardedit@gentoo.org> | 2016-04-29 14:24:27 -0500 |
---|---|---|
committer | Austin English <wizardedit@gentoo.org> | 2016-04-29 14:32:13 -0500 |
commit | ecc07233048068a59e523877a4f98eb30b331ae2 (patch) | |
tree | fa6f3e9b2b3278fe380364fabc197965fc13c84e /sys-power | |
parent | sys-power/cpudyn: remove cpudyn-1.0.1-r1 (diff) | |
download | gentoo-ecc07233048068a59e523877a4f98eb30b331ae2.tar.gz gentoo-ecc07233048068a59e523877a4f98eb30b331ae2.tar.bz2 gentoo-ecc07233048068a59e523877a4f98eb30b331ae2.zip |
sys-power/powerman: use #!/sbin/openrc-run instead of #!/sbin/runscript
Gentoo-Bug: https://bugs.gentoo.org/573846
Package-Manager: portage-2.2.26
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/powerman/files/powerman | 2 | ||||
-rw-r--r-- | sys-power/powerman/powerman-2.3.9-r1.ebuild | 38 |
2 files changed, 39 insertions, 1 deletions
diff --git a/sys-power/powerman/files/powerman b/sys-power/powerman/files/powerman index 02bb133dac4c..f5eef9c2b34d 100644 --- a/sys-power/powerman/files/powerman +++ b/sys-power/powerman/files/powerman @@ -1,4 +1,4 @@ -#!/sbin/runscript +#!/sbin/openrc-run depend() { need net diff --git a/sys-power/powerman/powerman-2.3.9-r1.ebuild b/sys-power/powerman/powerman-2.3.9-r1.ebuild new file mode 100644 index 000000000000..6746c34ac32e --- /dev/null +++ b/sys-power/powerman/powerman-2.3.9-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="RPC/PDU control and monitoring service for data center or compute cluster power management" +HOMEPAGE="https://code.google.com/p/powerman/" +SRC_URI="https://powerman.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+httppower -snmppower -h8power +genders" + +DEPEND="sys-devel/bison + httppower? ( net-misc/curl ) + snmppower? ( net-analyzer/net-snmp ) + !app-accessibility/speech-tools" +RDEPEND=">=sys-libs/freeipmi-0.2.3" + +src_configure() { + # Powerman stores the pidfile under $localstatedir/run. + # It's set to /var/lib in the release, but in gentoo pidfiles live under /var/run. + econf \ + --localstatedir=/var \ + $(use_with httppower) \ + $(use_with snmppower) \ + $(use_with h8power) \ + $(use_with genders) +} + +src_install() { + emake DESTDIR="${D}" -j1 install + rm -rf "${D}"/{etc/init.d/${PN},var/run} + doinitd "${FILESDIR}"/${PN} + dodoc AUTHORS ChangeLog DISCLAIMER NEWS TODO +} |