aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-07-08 21:17:02 +0000
committerBill Nottingham <notting@redhat.com>1999-07-08 21:17:02 +0000
commitb1902b63d48c5d4ba7aa7d7f9d04d4b809a7b6a6 (patch)
tree7d62419d8e3cef309a593bf7f2d2bb5b22cd6c3c
parente707cc2953a60d835d135ea0756ae993172b097a (diff)
downloadinitscripts-b1902b63d48c5d4ba7aa7d7f9d04d4b809a7b6a6.tar
initscripts-b1902b63d48c5d4ba7aa7d7f9d04d4b809a7b6a6.tar.gz
initscripts-b1902b63d48c5d4ba7aa7d7f9d04d4b809a7b6a6.tar.bz2
initscripts-b1902b63d48c5d4ba7aa7d7f9d04d4b809a7b6a6.tar.xz
initscripts-b1902b63d48c5d4ba7aa7d7f9d04d4b809a7b6a6.zip
*** empty log message ***
-rw-r--r--initscripts.spec15
1 files changed, 12 insertions, 3 deletions
diff --git a/initscripts.spec b/initscripts.spec
index b5f2c71f..f14cd3dd 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -8,10 +8,10 @@ Release: 1
Source: initscripts-%{version}.tar.gz
BuildRoot: /var/tmp/initbld
Requires: mingetty, bash, /bin/awk, /bin/sed, mktemp, e2fsprogs, console-tools
-Requires: procps, modutils >= 2.1.85-3, sysklogd >= 1.3.31, timeconfig >= 3.0
+Requires: procps, modutils >= 2.1.85-3, sysklogd >= 1.3.31
Requires: setup >= 2.0.3
-Conflicts: kernel <= 2.2
-Prereq: /sbin/chkconfig, /usr/sbin/groupadd
+Conflicts: kernel <= 2.2, timeconfig < 3.0
+Prereq: /sbin/chkconfig, /usr/sbin/groupadd, gawk
%description
The initscripts package contains the basic system scripts used to boot
@@ -104,6 +104,15 @@ if [ $1 = 0 ]; then
fi
fi
+# dup of timeconfig %post - here to avoid a dependency
+if [ -L /etc/localtime ]; then
+ _FNAME=`ls -ld /etc/localtime | awk '{ print $11}' | sed 's/lib/share'`
+ cp -f $_FNAME /etc/localtime
+ if ! grep -q "^ZONE=" /etc/sysconfig/clock ; then
+ echo "ZONE=\"$_FNAME"\" | sed -e "s|/usr/share/zoneinfo/||" >> /etc/sysconfig/clock
+ fi
+fi
+
%postun
if [ $1 = 0 ]; then
chkconfig --del random