From: Nathan F. <nf...@au...> - 2010-03-03 21:22:40
|
The SLES 10 releases of powerpc-utils do not include all of the commands currently in the powerpc-utils package. Namely these are drmgr, lsslot, lsdevinfo, ls-veth, ls-vscsi, and ls-vdev. In order to allow SLES 10 install bases to come up to speed without causing any collisions in package naming a powerpc-utils-sles10-addons package is being created to install the previously mentioned utilities. Signed-off-by: Nathan Fontenot <nf...@au...> --- Index: powerpc-utils/addon/powerpc-utils-addon.spec =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ powerpc-utils/addon/powerpc-utils-addon.spec 2010-02-18 16:04:34.000000000 -0600 @@ -0,0 +1,63 @@ +%define name powerpc-utils-sles10-addons +%define version 1.0.0 +%define release 0 +Summary: Powerpc-utils Add-ons for SLES10 SP3 +Name: %{name} +Version: %{version} +Release: %{release} +License: IBM Common Public License (CPL) +Group: System Environment +Source: powerpc-utils-sles10-addons-%{version}.tar.gz +BuildRoot: /tmp/%{name}-buildroot/ +Requires: /bin/bash, /bin/sh, /bin/sed, /usr/bin/perl, librtas >= 1.3.0 + +%description +Additional utilities for maintaining and servicing PowerPC systems on SLES10 +SP3 releases. + +%prep +%setup -q + +%build +%configure +%{__make} %{?_smp_mflags} + +%install +%{__rm} -rf $RPM_BULD_ROOT +%{__make} install -C addon DESTDIR=$RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +#/usr/share/doc/packages/powerpc-utils-sles10-addons/README +#/usr/share/doc/packages/powerpc-utils-sles10-addons/COPYRIGHT + +/usr/sbin/drmgr +/usr/sbin/lsslot +/usr/sbin/lsdevinfo +/usr/sbin/ls-veth +/usr/sbin/ls-vdev +/usr/sbin/ls-vscsi + +%post +# Post-install script ----------------------------------------------- +ln -sf /usr/sbin/drmgr /usr/sbin/drslot_chrp_slot +ln -sf /usr/sbin/drmgr /usr/sbin/drslot_chrp_pci +ln -sf /usr/sbin/drmgr /usr/sbin/drslot_chrp_cpu +ln -sf /usr/sbin/drmgr /usr/sbin/drslot_chrp_phb +ln -sf /usr/sbin/drmgr /usr/sbin/drslot_chrp_mem +ln -sf /usr/sbin/drmgr /usr/sbin/drslot_chrp_hea +ln -sf /usr/sbin/drmgr /usr/sbin/drmig_chrp_pmig + +%postun +# Post-uninstall script --------------------------------------------- +if [ "$1" = "0" ]; then + # last uninstall + rm /usr/sbin/drslot_chrp_slot + rm /usr/sbin/drslot_chrp_pci + rm /usr/sbin/drslot_chrp_cpu + rm /usr/sbin/drslot_chrp_phb + rm /usr/sbin/drslot_chrp_mem + rm /usr/sbin/drslot_chrp_hea + rm /usr/sbin/drmig_chrp_pmig +fi + Index: powerpc-utils/addon/Makefile =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ powerpc-utils/addon/Makefile 2010-02-18 20:04:38.000000000 -0600 @@ -0,0 +1,35 @@ +## Makefile for powerpc-utils-sles10-addons + +PPU_ADDONS_NAME = powerpc-utils-sles10-addons +VERSION = 1.0.0 + +SCRIPTS = ../scripts/lsdevinfo ../scripts/ls-vdev ../scripts/ls-veth ../scripts/ls-vscsi +UTILS = ../src/drmgr/drmgr ../src/drmgr/lsslot +DOCS = ../COPYRIGHT README + +INSTALL = /usr/bin/install +SBIN_DIR = /usr/sbin +DOC_DIR = /usr/share/doc/packages/$(PPU_ADDONS_NAME) + +PPU_TARNAME = powerpc-utils-1.2.2 +PPU_ADDONS_TARNAME = $(PPU_ADDONS_NAME)-$(VERSION) + +all: + +install: + $(INSTALL) -d -m 755 $(DESTDIR)$(SBIN_DIR) + $(foreach f,$(SCRIPTS),$(INSTALL) -m 744 $f $(DESTDIR)$(SBIN_DIR);) + $(foreach f,$(UTILS),$(INSTALL) -m 744 $f $(DESTDIR)$(SBIN_DIR);) + $(INSTALL) -d -m 755$(DESTDIR)$(DOC_DIR) + $(foreach f,$(DOCS),$(INSTALL) -m 744 $f $(DESTDIR)$(DOC_DIR);) + +dist: + $(MAKE) -C .. dist + tar -xzf ../$(PPU_TARNAME).tar.gz + mv $(PPU_TARNAME) $(PPU_ADDONS_TARNAME) + mkdir $(PPU_ADDONS_TARNAME)/addon + cp Makefile $(PPU_ADDONS_TARNAME)/addon + cp powerpc-utils-sles10-addons.spec $(PPU_ADDONS_TARNAME)/addon + tar -chof $(PPU_ADDONS_TARNAME).tar $(PPU_ADDONS_TARNAME) + gzip $(PPU_ADDONS_TARNAME).tar + rm -rf $(PPU_ADDONS_TARNAME) Index: powerpc-utils/addon/README =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ powerpc-utils/addon/README 2010-02-18 20:12:22.000000000 -0600 @@ -0,0 +1,27 @@ +powerpc-utils-sles10-addons package +=================================== +This package is meant as an addon for the SLES 10 SP3 release to bring +the installed powerpc-utilities up to par with the latest ppowerpc-utils +release. the packages installed are those that are not installed with the +version of powerpc-utils shipped with SLES 10 SP3. + +This package contains utilities which are intended for maintenance of IBM +powerpc platforms that follow the POWER Architecture Platform Reference (PAPR), +This package requires the librtas package in order to function properly. +All of these utilities must be run as root. + +drmgr +----- +Dynamic reconfiguration manager. This isn't neccessarily meant to be invoked +from the command line, but rather is the command invoked via the RMC connection +from an HMC. + +lsslot: +------ +Tool used to determine dyanmic reconfiguration capable slots/cpus/memory +on a partition. + +lsdevinfo, ls-vdev, ls-veth, ls-vscsi: +--------- +These utilities provides the HMC or IVM with name information for +virtual devices so they can be matched against the VIOS names. |