From 686482a8d92c8c06e52c8363ca0ea65bc57576d2 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 13 Jul 2000 20:45:04 +0000 Subject: tweak %pretrans some more --- initscripts.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/initscripts.spec b/initscripts.spec index 18dfb7d6..4f6a25ab 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -3,7 +3,7 @@ Name: initscripts Version: 5.31 Copyright: GPL Group: System Environment/Base -Release: 1 +Release: 2 Source: initscripts-%{version}.tar.gz BuildRoot: /%{_tmppath}/%{name}-%{version}-%{release}-root Requires: mingetty, /bin/awk, /bin/sed, mktemp, e2fsprogs >= 1.15, console-tools @@ -13,9 +13,11 @@ Requires: modutils >= 2.3.11-5 %ifarch alpha Requires: util-linux >= 2.9w-26 %endif -PreTransaction: mv /etc/rc.d/* /etc -PreTransaction: rmdir /etc/rc.d +PreTransaction: S_ISLNK /etc/rc.d +PreTransaction: mv /etc/rc.d /etc/rc.d.rpmsave +PreTransaction: mv /etc/rc.d.rpmsave/rc* /etc/rc.d.rpmsave/init.d /etc PreTransaction: symlink . /etc/rc.d +PreTransaction: rmdir /etc/rc.d.rpmsave Conflicts: kernel <= 2.2, timeconfig < 3.0, pppd < 2.3.9, wvdial < 1.40-3 Conflicts: initscripts < 1.22.1-5 Obsoletes: rhsound sapinit @@ -226,6 +228,9 @@ rm -rf $RPM_BUILD_ROOT %ghost %attr(0664,root,utmp) /var/run/utmp %changelog +* Thu Jul 13 2000 Jeff Johnson +- test if /etc/rc.d is a symlink already in pre-transaction syscalls. + * Tue Jul 11 2000 Bill Nottingham - implement the %pre with RPM Magic(tm) -- cgit v1.2.1