diff options
author | Brent Baude <ranger@gentoo.org> | 2006-02-26 19:34:47 +0000 |
---|---|---|
committer | Brent Baude <ranger@gentoo.org> | 2006-02-26 19:34:47 +0000 |
commit | 43c7605f5abcf83f6c9024da1bf56e0670d7b3f4 (patch) | |
tree | 8473d43cd055d61f0416766dd5516a50018d5149 | |
parent | Marked stable on mips. (diff) | |
download | gentoo-2-43c7605f5abcf83f6c9024da1bf56e0670d7b3f4.tar.gz gentoo-2-43c7605f5abcf83f6c9024da1bf56e0670d7b3f4.tar.bz2 gentoo-2-43c7605f5abcf83f6c9024da1bf56e0670d7b3f4.zip |
Adding new package ibm-powerpc-utils-papr to support new ibm-powerpc-utils package
(Portage version: 2.0.54)
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..ba55fc3e9bf7 --- /dev/null +++ b/sys-apps/ibm-powerpc-utils-papr/Manifest @@ -0,0 +1,7 @@ +MD5 c5d2588dec454ba8cbc5dd52f8eb8b76 ChangeLog 506 +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 b37ddac0c6ef79ec314f6189fd16476c ibm-powerpc-utils-papr-1.0.1.ebuild 1491 +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> + |