summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-libs/openhpi
downloadgentoo-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-libs/openhpi')
-rw-r--r--sys-libs/openhpi/Manifest2
-rw-r--r--sys-libs/openhpi/files/openhpi-confd10
-rw-r--r--sys-libs/openhpi/files/openhpi-initd21
-rw-r--r--sys-libs/openhpi/metadata.xml10
-rw-r--r--sys-libs/openhpi/openhpi-2.12.0.ebuild64
-rw-r--r--sys-libs/openhpi/openhpi-3.0.0.ebuild55
6 files changed, 162 insertions, 0 deletions
diff --git a/sys-libs/openhpi/Manifest b/sys-libs/openhpi/Manifest
new file mode 100644
index 00000000000..bdc1d1b50ed
--- /dev/null
+++ b/sys-libs/openhpi/Manifest
@@ -0,0 +1,2 @@
+DIST openhpi-2.12.0.tar.gz 2902996 SHA256 53c42b7e367cd9ce98a4f5f28be42c3797f7746059203743e542cc3b51862f59 SHA512 3b9ba75a02bf7893bf49eab2a6b0cf4e77c277e626f70a9c970c0b4c0ae05f38d3f8d3923d900ed229a809df2cfdf2cd8961eb1b135e9d29e891a15180ac6d13 WHIRLPOOL cfae9f8d7a057cbf24e8ef52be4e20d5029ade867b1a1badefdbaebf456cccda3a04e494c7667ff70efc05599a1edabc12fa092c23530640c27990e6f280a93e
+DIST openhpi-3.0.0.tar.gz 7271799 SHA256 2af5f40040a1b99b0c0a60f1bc03505d3d51f5c445cd04b1f832eb060acbb227 SHA512 a5749782808c43c4408e8cc924fbab9f80bd026710f242c482b036bcdb283660035f1257ec11ba664118167fc7b9d6efb38276875eb090d29afbb783066e6aa7 WHIRLPOOL 845648336b29a04df7713b914493817e353823e5b39f84b94f34dfe9e008cd76729da63f1e384d4fceab5880fc83180271ed8886c689fb5533483b559bf4799c
diff --git a/sys-libs/openhpi/files/openhpi-confd b/sys-libs/openhpi/files/openhpi-confd
new file mode 100644
index 00000000000..f8c861e49eb
--- /dev/null
+++ b/sys-libs/openhpi/files/openhpi-confd
@@ -0,0 +1,10 @@
+# /etc/conf.d/openhpid: config file for /etc/init.d/openhpid
+
+# Listening port. Default is 4743.
+#OPENHPID_PORT="4743"
+
+# Socket read timeout in seconds. Default is 1800 seconds.
+#OPENHPID_READTIMEOUT="1800"
+
+# Maximum number of connection threads. Default is unlimited.
+#OPENHPID_THREADS=""
diff --git a/sys-libs/openhpi/files/openhpi-initd b/sys-libs/openhpi/files/openhpi-initd
new file mode 100644
index 00000000000..d164759e663
--- /dev/null
+++ b/sys-libs/openhpi/files/openhpi-initd
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+start() {
+ local extraopts
+ [ -n "${OPENHPID_PORT}" ] && extraopts += " -p ${OPENHPID_PORT}"
+ [ -n "${OPENHPID_READTIMEOUT}" ] && extraopts += " -s ${OPENHPID_READTIMEOUT}"
+ [ -n "${OPENHPID_THREADS}" ] && extraopts += " -t ${OPENHPID_THREADS}"
+
+ ebegin "Starting openhpid"
+ start-stop-daemon --start --exec /usr/sbin/openhpid --pidfile /var/run/openhpid.pid \
+ -- -c /etc/openhpi/openhpi.conf -f /var/run/openhpid.pid ${extraopts}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping openhpid"
+ start-stop-daemon --stop --exec /usr/sbin/openhpid --pidfile /var/run/openhpid.pid
+ eend $?
+}
diff --git a/sys-libs/openhpi/metadata.xml b/sys-libs/openhpi/metadata.xml
new file mode 100644
index 00000000000..7e6386a7dfe
--- /dev/null
+++ b/sys-libs/openhpi/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">openhpi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sys-libs/openhpi/openhpi-2.12.0.ebuild b/sys-libs/openhpi/openhpi-2.12.0.ebuild
new file mode 100644
index 00000000000..1bcbcb44aa2
--- /dev/null
+++ b/sys-libs/openhpi/openhpi-2.12.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="Open source implementation of the Service Availability Forum (SAF) Hardware Platform Interface (HPI)"
+HOMEPAGE="http://www.openhpi.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="snmp"
+
+COMMONDEPEND=">=dev-libs/glib-2.2
+ sys-fs/e2fsprogs
+ sys-fs/sysfsutils
+ >=sys-libs/openipmi-1.4.20
+ snmp? ( >=net-analyzer/net-snmp-5.07 )"
+RDEPEND="${COMMONDEPEND}"
+DEPEND="${COMMONDEPEND}
+ >=sys-devel/autoconf-2.57
+ >=sys-devel/automake-1.8
+ >=sys-devel/gcc-3.2.0
+ virtual/os-headers"
+
+src_unpack() {
+ unpack ${A}
+ sed -i -e 's:-Werror::g' "${S}"/configure || die "sed failed"
+}
+
+src_compile() {
+ econf --with-varpath=/var/lib/openhpi \
+ --enable-clients \
+ --enable-cpp_wrappers \
+ --enable-daemon \
+ --enable-ipmi \
+ --enable-ipmidirect \
+ --enable-sysfs \
+ --enable-thread \
+ --enable-watchdog \
+ --enable-simulator \
+ --disable-testcover \
+ $(use_enable snmp snmp_bc) \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ # Stage main files.
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ # Stage conf.d-file and init.d-script.
+ newinitd "${FILESDIR}"/openhpi-initd openhpid
+ newconfd "${FILESDIR}"/openhpi-confd openhpid
+
+ # Stage documentation.
+ dodoc README
+
+ # Make sure the data dir exists or openhpid will fail silently.
+ keepdir /var/lib/openhpi/
+}
diff --git a/sys-libs/openhpi/openhpi-3.0.0.ebuild b/sys-libs/openhpi/openhpi-3.0.0.ebuild
new file mode 100644
index 00000000000..7054b77e4aa
--- /dev/null
+++ b/sys-libs/openhpi/openhpi-3.0.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils
+
+DESCRIPTION="Open source implementation of the Service Availability Forum (SAF) Hardware Platform Interface (HPI)"
+HOMEPAGE="http://www.openhpi.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="snmp"
+
+COMMONDEPEND=">=dev-libs/glib-2.12:2
+ sys-fs/e2fsprogs
+ sys-fs/sysfsutils
+ >=sys-libs/openipmi-1.4.20
+ snmp? ( >=net-analyzer/net-snmp-5.07 )"
+RDEPEND="${COMMONDEPEND}"
+DEPEND="${COMMONDEPEND}
+ >=sys-devel/autoconf-2.57
+ >=sys-devel/automake-1.8
+ >=sys-devel/gcc-3.2.0
+ virtual/os-headers"
+
+src_configure() {
+ econf --with-varpath=/var/lib/openhpi \
+ --enable-clients \
+ --enable-cpp_wrappers \
+ --enable-daemon \
+ --enable-ipmidirect \
+ --enable-sysfs \
+ --enable-watchdog \
+ --enable-simulator \
+ --disable-testcover \
+ $(use_enable snmp snmp_bc)
+}
+
+src_install() {
+ # Stage main files.
+ emake DESTDIR="${D}" install
+
+ # Stage conf.d-file and init.d-script.
+ newinitd "${FILESDIR}"/openhpi-initd openhpid
+ newconfd "${FILESDIR}"/openhpi-confd openhpid
+
+ # Stage documentation.
+ dodoc README
+
+ # Make sure the data dir exists or openhpid will fail silently.
+ keepdir /var/lib/openhpi/
+}