Remove deprecated scripts

This commit is contained in:
Roman Rakus 2010-03-05 17:38:36 +00:00
parent 0600b5f6b9
commit da95a4db20
2 changed files with 7 additions and 38 deletions

View File

@ -1,20 +0,0 @@
diff -up powerpc-utils/scripts/ibmvscsis.sh.chkconfig powerpc-utils/scripts/ibmvscsis.sh
--- powerpc-utils/scripts/ibmvscsis.sh.chkconfig 2009-07-30 19:06:07.000000000 -0400
+++ powerpc-utils/scripts/ibmvscsis.sh 2009-08-20 11:29:29.000000000 -0400
@@ -2,6 +2,7 @@
# IBM "ibmvscsis.sh": ibmvscsis init script
#
+# chkconfig: 35 50 50
# Copyright (c) 2004, 2005 International Business Machines.
# Common Public License Version 1.0 (see COPYRIGHT)
#
@@ -20,7 +21,7 @@
# Required-Stop: $syslog $remote_fs
# Should-Stop:
# Default-Start: 3 5
-# Default-Stop:
+# Default-Stop: 0 1 2 4 6
# Short-Description: configure this partition as virtual scsi server
# Description: Based on /etc/ibmvscsis.conf, this partition
# will export configured drives, partitions or loop mounted

View File

@ -1,12 +1,11 @@
Name: powerpc-utils
Version: 1.2.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Utilities for PowerPC platforms
Group: System Environment/Base
License: CPL
URL: http://sourceforge.net/projects/%{name}/
#Source0: http://downloads.sourceforge.net/projects/%{name}/%{name}-%{version}.tar.gz
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1: nvsetenv
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -16,7 +15,6 @@ BuildRequires: doxygen automake librtas-devel libservicelog-devel >= 1.0.1-2
Requires: libservicelog
ExclusiveArch: ppc ppc64
Patch1: powerpc-utils-1.2.0-chkconfig.patch
# This hack is needed only for platforms with autoconf < 2.63
Patch2: powerpc-utils-autoconf.patch
@ -29,11 +27,10 @@ Utilities for PowerPC platforms.
%prep
%setup -q
%patch1 -p1 -b .chkconfig
# This hack is needed only for platforms with autoconf < 2.63
%if 0%{?fedora} < 9 && 0%{?rhel} < 6
%patch2 -p1 -b .aconf
%patch1 -p1 -b .aconf
%endif
%build
@ -53,15 +50,12 @@ mkdir -p $RPM_BUILD_ROOT%{pkgdocdir}
install $RPM_BUILD_ROOT/usr/share/doc/packages/powerpc-utils/* -t $RPM_BUILD_ROOT%{pkgdocdir}
rm -rf $RPM_BUILD_ROOT/usr/share/doc/packages/powerpc-utils
# move init script
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
install -m 755 $RPM_BUILD_ROOT/etc/init.d/ibmvscsis.sh $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/ibmvscsisd
rm -rf $RPM_BUILD_ROOT/etc/init.d/ibmvscsis.sh
# remove init script and perl script. They are deprecated
rm -rf $RPM_BUILD_ROOT/etc/init.d/ibmvscsis.sh $RPM_BUILD_ROOT/usr/sbin/vscsisadmin
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_sbindir}/nvsetenv
@ -77,8 +71,6 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man8/bootlist.8*
%{_mandir}/man8/ofpathname.8*
%{_sysconfdir}/rc.d/init.d/ibmvscsisd
%{_sbindir}/update_flash
%{_sbindir}/activate_firmware
%{_sbindir}/usysident
@ -88,7 +80,6 @@ rm -rf $RPM_BUILD_ROOT
%{_sbindir}/serv_config
%{_sbindir}/uesensor
%{_sbindir}/hvcsadmin
%{_sbindir}/vscsisadmin
%{_sbindir}/rtas_dump
%{_sbindir}/rtas_event_decode
%{_sbindir}/sys_ident
@ -114,15 +105,13 @@ rm -rf $RPM_BUILD_ROOT
%doc README COPYRIGHT Changelog
%post
/sbin/chkconfig --add ibmvscsisd
%preun
if [ $1 = 0 ] ; then
/sbin/service ibmvscsisd stop >/dev/null 2>&1
/sbin/chkconfig --del ibmvscsisd
fi
%changelog
* Fri Mar 05 2010 Roman Rakus <rrakus@redhat.com> - 1.2.2-2
- Removed deprecated init script and perl script
* Thu Oct 29 2009 Stepan Kasal <skasal@redhat.com> - 1.2.2-1
- new upstream version
- amsvis removed, this package has no longer anything with python