summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Baude <ranger@gentoo.org>2006-02-26 19:34:47 +0000
committerBrent Baude <ranger@gentoo.org>2006-02-26 19:34:47 +0000
commit302dfdba6bb39dcf4b6dc7af565b9e2612cf5763 (patch)
treebdc97b1608c948305a18e9a2a0a5640d43e921bc /sys-apps/ibm-powerpc-utils-papr
parentMarked stable on mips. (diff)
downloadhistorical-302dfdba6bb39dcf4b6dc7af565b9e2612cf5763.tar.gz
historical-302dfdba6bb39dcf4b6dc7af565b9e2612cf5763.tar.bz2
historical-302dfdba6bb39dcf4b6dc7af565b9e2612cf5763.zip
Adding new package ibm-powerpc-utils-papr to support new ibm-powerpc-utils package
Package-Manager: portage-2.0.54
Diffstat (limited to 'sys-apps/ibm-powerpc-utils-papr')
-rw-r--r--sys-apps/ibm-powerpc-utils-papr/ChangeLog13
-rw-r--r--sys-apps/ibm-powerpc-utils-papr/Manifest7
-rw-r--r--sys-apps/ibm-powerpc-utils-papr/files/digest-ibm-powerpc-utils-papr-1.0.11
-rw-r--r--sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.0.1-remove-doc.patch14
-rw-r--r--sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.0.1-removeinitandvscsis.patch23
-rw-r--r--sys-apps/ibm-powerpc-utils-papr/files/ibmvscsis69
-rw-r--r--sys-apps/ibm-powerpc-utils-papr/ibm-powerpc-utils-papr-1.0.1.ebuild49
-rw-r--r--sys-apps/ibm-powerpc-utils-papr/metadata.xml32
8 files changed, 208 insertions, 0 deletions
diff --git a/sys-apps/ibm-powerpc-utils-papr/ChangeLog b/sys-apps/ibm-powerpc-utils-papr/ChangeLog
new file mode 100644
index 000000000000..77fbe92d4795
--- /dev/null
+++ b/sys-apps/ibm-powerpc-utils-papr/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for sys-apps/ibm-powerpc-utils-papr
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/ibm-powerpc-utils-papr/ChangeLog,v 1.1 2006/02/26 19:34:47 ranger Exp $
+
+*ibm-powerpc-utils-papr-1.0.1 (26 Feb 2006)
+
+ 26 Feb 2006; Brent Baude <ranger@gentoo.org>
+ +files/ibm-powerpc-utils-papr-1.0.1-remove-doc.patch,
+ +files/ibm-powerpc-utils-papr-1.0.1-removeinitandvscsis.patch,
+ +files/ibmvscsis, +metadata.xml, +ibm-powerpc-utils-papr-1.0.1.ebuild:
+ Adding new package ibm-powerpc-utils-papr which supports ibm-powerpc-utils
+ package
+
diff --git a/sys-apps/ibm-powerpc-utils-papr/Manifest b/sys-apps/ibm-powerpc-utils-papr/Manifest
new file mode 100644
index 000000000000..a6f8bd40e36f
--- /dev/null
+++ b/sys-apps/ibm-powerpc-utils-papr/Manifest
@@ -0,0 +1,7 @@
+MD5 2244b753347ccf2981cd2aee33a0f2be ChangeLog 609
+MD5 fd1096c8145fb3fe4a2f409d1cadfb1b files/digest-ibm-powerpc-utils-papr-1.0.1 76
+MD5 2871acc1fdd5410ef5573aaef24cd177 files/ibm-powerpc-utils-papr-1.0.1-remove-doc.patch 425
+MD5 9bc88bd39b8c9947639619d22bd50f6f files/ibm-powerpc-utils-papr-1.0.1-removeinitandvscsis.patch 662
+MD5 0e926695e3fc71b75d3965ff50e4729a files/ibmvscsis 1673
+MD5 57e32b64c0ad1e5afc7c5b8355b6d771 ibm-powerpc-utils-papr-1.0.1.ebuild 1620
+MD5 8e747d27f6e89e3546f877c89232cb0d metadata.xml 1173
diff --git a/sys-apps/ibm-powerpc-utils-papr/files/digest-ibm-powerpc-utils-papr-1.0.1 b/sys-apps/ibm-powerpc-utils-papr/files/digest-ibm-powerpc-utils-papr-1.0.1
new file mode 100644
index 000000000000..fed299810983
--- /dev/null
+++ b/sys-apps/ibm-powerpc-utils-papr/files/digest-ibm-powerpc-utils-papr-1.0.1
@@ -0,0 +1 @@
+MD5 cb63dd20b5aed48b2ca2881e3116f2fa powerpc-utils-papr-1.0.1.tar.gz 146265
diff --git a/sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.0.1-remove-doc.patch b/sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.0.1-remove-doc.patch
new file mode 100644
index 000000000000..813374a67833
--- /dev/null
+++ b/sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.0.1-remove-doc.patch
@@ -0,0 +1,14 @@
+--- powerpc-utils-papr-1.0.1.orig/Makefile 2006-02-15 14:23:19.000000000 -0600
++++ powerpc-utils-papr-1.0.1/Makefile 2006-02-16 17:52:58.000000000 -0600
+@@ -20,11 +20,9 @@
+ @$(MAKE) -C doc
+
+ install: all
+- @$(call install_doc,$(FILES),$(DESTDIR))
+ @$(foreach d,$(SUBDIRS), $(MAKE) -C $d install;)
+
+ uninstall:
+- @$(call uninstall_doc,$(FILES),$(DESTDIR))
+ @$(foreach d,$(SUBDIRS), $(MAKE) -C $d uninstall;)
+
+ rpm: all
diff --git a/sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.0.1-removeinitandvscsis.patch b/sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.0.1-removeinitandvscsis.patch
new file mode 100644
index 000000000000..06e7cc8940b4
--- /dev/null
+++ b/sys-apps/ibm-powerpc-utils-papr/files/ibm-powerpc-utils-papr-1.0.1-removeinitandvscsis.patch
@@ -0,0 +1,23 @@
+--- powerpc-utils-papr-1.0.1.orig/scripts/Makefile 2006-02-15 14:23:19.000000000 -0600
++++ powerpc-utils-papr-1.0.1/scripts/Makefile 2006-02-25 10:30:08.000000000 -0600
+@@ -4,7 +4,7 @@
+
+ include ../rules.mk
+
+-SCRIPTS = update_flash hvcsadmin vscsisadmin rtas_dump
++SCRIPTS = update_flash hvcsadmin rtas_dump
+
+ RCSCRIPTS = ibmvscsis.sh
+
+@@ -12,11 +12,9 @@
+
+ install: all
+ @$(call install_sbin,$(SCRIPTS),$(DESTDIR))
+- @$(call install_files,$(RCSCRIPTS),755,$(DESTDIR)/etc/init.d)
+
+ uninstall:
+ @$(call uninstall_sbin,$(SCRIPTS),$(DESTDIR))
+- @$(call uninstall_files,$(RCSCRIPTS),$(DESTDIR)/etc/init.d)
+
+ clean:
+ @echo "Cleaning up $(WORK_DIR) files..."
diff --git a/sys-apps/ibm-powerpc-utils-papr/files/ibmvscsis b/sys-apps/ibm-powerpc-utils-papr/files/ibmvscsis
new file mode 100644
index 000000000000..2a47f2ac0ddd
--- /dev/null
+++ b/sys-apps/ibm-powerpc-utils-papr/files/ibmvscsis
@@ -0,0 +1,69 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+#
+# This file is tasked with testing for the existence of the ibmvscsis driver
+# and configuring the ibmvscsi server properly as indicated by the config file
+# located at /etc/ibmvscsis.conf
+#
+
+DRIVER=ibmvscsis
+SYSFS=/sys/bus/vio/drivers/ibmvscsis
+CONFIG=/etc/ibmvscsis.conf
+
+depend() {
+ need logger
+ provide ibmvscsis
+}
+
+checkconfig() {
+ if [ ! -e ${CONFIG} ] ; then
+ eerror " ${CONFIG} does not exist."
+ return 1
+ fi
+}
+
+checkmodule_load() {
+ # The existence of $SYSFS indicates that the module has been loaded or that
+ # the driver is at least built into the kernel.
+ if [ ! -e ${SYSFS} ] ; then
+ ewarn " Module ${DRIVER} is not loaded, attempting to load it"
+ /sbin/modprobe ${DRIVER} &> /dev/null && return 0
+ eerror " Failed to load module ${DRIVER}"
+ return 1
+ fi
+}
+
+checkmodule() {
+ # The existence of $SYSFS indicates that the module has been loaded or that
+ # the driver is at least built into the kernel.
+ if [ ! -e ${SYSFS} ] ; then
+ eerror " Module ${DRIVER} is not loaded"
+ return 1
+ fi
+}
+
+start() {
+ ebegin "Starting vscsiadmin"
+ checkconfig || return 1
+ checkmodule_load || return 1
+ /usr/sbin/vscsiadmin -start &> /dev/null
+ eend $? "Failed to start vscsiadmin"
+}
+
+stop() {
+ ebegin "Stopping vscsiadmin"
+ checkmodule || return 1
+ /usr/sbin/vscsiadmin -stop &> /dev/null
+ eend $? "Failed to stop vscsiadmin"
+}
+
+status() {
+ checkmodule || return 1
+ /usr/sbin/vscsiadmin -status
+}
+
+restart() {
+ stop
+ start
+}
diff --git a/sys-apps/ibm-powerpc-utils-papr/ibm-powerpc-utils-papr-1.0.1.ebuild b/sys-apps/ibm-powerpc-utils-papr/ibm-powerpc-utils-papr-1.0.1.ebuild
new file mode 100644
index 000000000000..cb4bcbfaf611
--- /dev/null
+++ b/sys-apps/ibm-powerpc-utils-papr/ibm-powerpc-utils-papr-1.0.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/ibm-powerpc-utils-papr/ibm-powerpc-utils-papr-1.0.1.ebuild,v 1.1 2006/02/26 19:34:47 ranger Exp $
+
+inherit eutils
+
+MY_P="powerpc-utils-papr-${PV}"
+
+DESCRIPTION="The powerpc-utils-papr package provides the utilities listed below
+which are intended for the maintenance of IBM powerpc platforms that follow the
+POWER Architecture Platform Reference"
+SRC_URI="http://powerpc-utils.ozlabs.org/releases/powerpc-utils-papr-${PV}.tar.gz"
+HOMEPAGE="http://powerpc-utils.ozlabs.org/"
+
+S="${WORKDIR}/${MY_P}"
+
+SLOT="0"
+LICENSE="IPL-1"
+KEYWORDS="~ppc64 ~ppc"
+IUSE=""
+RDEPEND="sys-apps/ibm-powerpc-utils
+sys-libs/librtas"
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/ibm-powerpc-utils-papr-1.0.1-remove-doc.patch
+ epatch ${FILESDIR}/ibm-powerpc-utils-papr-1.0.1-removeinitandvscsis.patch
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "Compilation failed"
+ dodoc README COPYRIGHT
+ #dodir /etc/init.d
+ #exeinto /etc/init.d
+ #newexe ${FILESDIR}/ibmvscsis ibmvscsis
+}
+
+pkg_postinst() {
+ #einfo "An initscript for managing virtual scsi servers has "
+ #einfo "been install into /etc/init.d/ called ibmviscsis. "
+ #einfo "Before you can use this daemon, you must create a proper "
+ #einfo "/etc/ibmvscsis.conf file."
+ einfo "Support for the IBM Virtual SCSI server (virtual disk) "
+ einfo "is not included in this version of powerpc-utils-papr. "
+ einfo "When the ibmvscsis function is generally available in "
+ einfo "the kernel source trees, it will be added back in."
+}
+
+
diff --git a/sys-apps/ibm-powerpc-utils-papr/metadata.xml b/sys-apps/ibm-powerpc-utils-papr/metadata.xml
new file mode 100644
index 000000000000..bb3bb995d357
--- /dev/null
+++ b/sys-apps/ibm-powerpc-utils-papr/metadata.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The sys-libs category contains various system-level libraries.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría sys-libs contiene varias librerías del sistema.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie sys-libs enthält verschiedene Systembibliotheken.
+ </longdescription>
+ <longdescription lang="ja">
+ sys-libsカテゴリには様々なシステムレベルライブラリが含まれます。
+ </longdescription>
+ <longdescription lang="nl">
+ De sys-libs categorie bevat verschillende systeembibliotheken.
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm sys-libs chứa các thư viện cấp hệ thống.
+ </longdescription>
+ <longdescription lang="it">
+ La categoria sys-libs contiene varie librerie di sistema.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria sys-libs contém várias bibliotecas de sistema.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria sys-libs zawiera biblioteki systemowe.
+ </longdescription>
+</catmetadata>
+