diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-power/powerman | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-power/powerman')
-rw-r--r-- | sys-power/powerman/Manifest | 1 | ||||
-rw-r--r-- | sys-power/powerman/files/powerman | 24 | ||||
-rw-r--r-- | sys-power/powerman/metadata.xml | 19 | ||||
-rw-r--r-- | sys-power/powerman/powerman-2.3.9.ebuild | 38 |
4 files changed, 82 insertions, 0 deletions
diff --git a/sys-power/powerman/Manifest b/sys-power/powerman/Manifest new file mode 100644 index 000000000000..30e808a93c83 --- /dev/null +++ b/sys-power/powerman/Manifest @@ -0,0 +1 @@ +DIST powerman-2.3.9.tar.gz 654883 SHA256 d669767b037e38ee339c01b5b02fe586027489addcd59c45d9d5061d6ca0365f SHA512 0c1817369ef358f617139792a203c4480128bae22ea484ad23e16f8091372e91bca33988cd27bd8c5e1f0fcb3321e68efa3a29ae3b477c2bf6d90c990a1940fc WHIRLPOOL 36d5e7b85e50cca59dcdffe72e1abcd61769b8c58a55cdfb1b306a2661acac5dda8bb39aa361504e0e48c585a7ad21033af27e9e6fe2d14c96b8e1caa79125d0 diff --git a/sys-power/powerman/files/powerman b/sys-power/powerman/files/powerman new file mode 100644 index 000000000000..02bb133dac4c --- /dev/null +++ b/sys-power/powerman/files/powerman @@ -0,0 +1,24 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + ebegin "Starting powermand" + + checkpath -q -d -m 0755 /var/run/powerman + + start-stop-daemon --start \ + --pidfile /var/run/powerman/powermand.pid \ + --exec /usr/sbin/powermand + eend $? +} + +stop() { + ebegin "Stopping powermand" + start-stop-daemon --stop \ + --pidfile /var/run/powerman/powermand.pid \ + --exec /usr/sbin/powermand + eend $? +} diff --git a/sys-power/powerman/metadata.xml b/sys-power/powerman/metadata.xml new file mode 100644 index 000000000000..04d640ee055a --- /dev/null +++ b/sys-power/powerman/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription lang="en">Powerman provides power management in a data center or compute cluster + environment. It performs operations such as power on, power off, and + power cycle via remote power controller (RPC) devices.</longdescription> + <use> + <flag name="httppower">Add support for HTTP based power controllers</flag> + <flag name="snmppower">Add support for SNMP based power controllers</flag> + <flag name="h8power">Add support for h8 based power controllers</flag> + <flag name="genders">Add support for selecting power control targets using genders (-g option)</flag> + </use> + <upstream> + <remote-id type="google-code">powerman</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-power/powerman/powerman-2.3.9.ebuild b/sys-power/powerman/powerman-2.3.9.ebuild new file mode 100644 index 000000000000..604ecf9d6788 --- /dev/null +++ b/sys-power/powerman/powerman-2.3.9.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="RPC/PDU control and monitoring service for data center or compute cluster power management" +HOMEPAGE="http://code.google.com/p/powerman/" +SRC_URI="http://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 +} |