aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-07-15 16:59:00 +0000
committerMatt Wilson <msw@redhat.com>2000-07-15 16:59:00 +0000
commite9df1bb98184fdde90d822a8a76b3ff9f81c5862 (patch)
tree02fde2c40a9c4544347dcd17e597e6b978798cf4
parent9c2e824d2fe206316b40ce0784892bca1f8e1657 (diff)
downloadinitscripts-r5-32.tar
initscripts-r5-32.tar.gz
initscripts-r5-32.tar.bz2
initscripts-r5-32.tar.xz
initscripts-r5-32.zip
hack hack, move things backr5-32
-rw-r--r--Makefile3
-rw-r--r--initscripts.spec40
2 files changed, 20 insertions, 23 deletions
diff --git a/Makefile b/Makefile
index 91f9a926..ff43e76a 100644
--- a/Makefile
+++ b/Makefile
@@ -28,8 +28,7 @@ install:
mkdir -p $(ROOT)/etc/sysconfig
mkdir -p $(ROOT)/etc/sysconfig/console
install -m644 sysconfig/init $(ROOT)/etc/sysconfig/init
- cp -af rc.d/* sysconfig ppp $(ROOT)/etc
- ln -s . $(ROOT)/etc/rc.d
+ cp -af rc.d sysconfig ppp $(ROOT)/etc
mkdir -p $(ROOT)/sbin
mv $(ROOT)/etc/sysconfig/network-scripts/ifup $(ROOT)/sbin
mv $(ROOT)/etc/sysconfig/network-scripts/ifdown $(ROOT)/sbin
diff --git a/initscripts.spec b/initscripts.spec
index ed7a87c9..7193dc11 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -40,24 +40,28 @@ mkdir -p $RPM_BUILD_ROOT/var/run/netreport
chmod u=rwx,g=rwx,o=rx $RPM_BUILD_ROOT/var/run/netreport
for i in 0 1 2 3 4 5 6 ; do
- file=$RPM_BUILD_ROOT/etc/rc$i.d
+ file=$RPM_BUILD_ROOT/etc/rc.d/rc$i.d
mkdir $file
# chown root.root $file
chmod u=rwx,g=rx,o=rx $file
done
# Can't store symlinks in a CVS archive
-ln -s ../init.d/killall $RPM_BUILD_ROOT/etc/rc0.d/S00killall
-ln -s ../init.d/killall $RPM_BUILD_ROOT/etc/rc6.d/S00killall
+ln -s ../init.d/killall $RPM_BUILD_ROOT/etc/rc.d/rc0.d/S00killall
+ln -s ../init.d/killall $RPM_BUILD_ROOT/etc/rc.d/rc6.d/S00killall
-ln -s ../init.d/halt $RPM_BUILD_ROOT/etc/rc0.d/S01halt
-ln -s ../init.d/halt $RPM_BUILD_ROOT/etc/rc6.d/S01reboot
+ln -s ../init.d/halt $RPM_BUILD_ROOT/etc/rc.d/rc0.d/S01halt
+ln -s ../init.d/halt $RPM_BUILD_ROOT/etc/rc.d/rc6.d/S01reboot
-ln -s ../init.d/single $RPM_BUILD_ROOT/etc/rc1.d/S00single
+ln -s ../init.d/single $RPM_BUILD_ROOT/etc/rc.d/rc1.d/S00single
-ln -s ../rc.local $RPM_BUILD_ROOT/etc/rc2.d/S99local
-ln -s ../rc.local $RPM_BUILD_ROOT/etc/rc3.d/S99local
-ln -s ../rc.local $RPM_BUILD_ROOT/etc/rc5.d/S99local
+ln -s ../rc.local $RPM_BUILD_ROOT/etc/rc.d/rc2.d/S99local
+ln -s ../rc.local $RPM_BUILD_ROOT/etc/rc.d/rc3.d/S99local
+ln -s ../rc.local $RPM_BUILD_ROOT/etc/rc.d/rc5.d/S99local
+
+for i in 0 1 2 3 4 5 6 ; do
+ ln -s rc.d/rc$i.d $RPM_BUILD_ROOT/etc/rc$i.d
+done
mkdir -p $RPM_BUILD_ROOT/var/{log,run}
touch $RPM_BUILD_ROOT/var/run/utmp
@@ -66,13 +70,6 @@ touch $RPM_BUILD_ROOT/var/log/wtmp
%pre
/usr/sbin/groupadd -g 22 -r -f utmp
-#if [ -e /etc/rc.d -a ! -L /etc/rc.d -a -d /etc/init.d ]; then
-# echo "can't move /etc/rc.d/init.d -> /etc/init.d - bailing"
-# exit 1
-#fi
-#if [ -d /etc/rc.d -a ! -L /etc/rc.d ]; then
-# mv -f /etc/rc.d/* /etc && rm -rf /etc/rc.d && ln -snf . /etc/rc.d
-#fi
%post
touch /var/log/wtmp
@@ -190,13 +187,13 @@ rm -rf $RPM_BUILD_ROOT
%config /etc/X11/prefdm
%config /etc/inittab
/etc/rc.d
-%config /etc/rc.sysinit
-%dir /etc/rc[0-9].d
-%config(missingok) /etc/rc[0-9].d/*
+%config /etc/rc.d/rc.sysinit
+/etc/rc[0-9].d
+%config(missingok) /etc/rc.d/rc[0-9].d/*
%dir /etc/init.d
%config(missingok) /etc/init.d/*
-%config /etc/rc
-%config(noreplace) /etc/rc.local
+%config /etc/rc.d/rc
+%config(noreplace) /etc/rc.d/rc.local
%config(noreplace) /etc/sysctl.conf
%config /etc/profile.d/lang.sh
%config /etc/profile.d/lang.csh
@@ -225,6 +222,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Sat Jul 15 2000 Matt Wilson <msw@redhat.com>
- kill all the PreTransaction stuff
+- move all the stuff back in to /etc/rc.d/
* Thu Jul 13 2000 Bill Nottingham <notting@redhat.com>
- fix == tests in rc.sysinit