diff options
-rw-r--r-- | initscripts.spec | 15 |
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 |