SHA256
3
0
forked from pool/aaa_base
OBS User unknown 2008-08-21 16:02:44 +00:00 committed by Git OBS Bridge
parent 552ee8a1ce
commit 4ba8628182
5 changed files with 14 additions and 71 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Aug 19 01:20:41 CEST 2008 - ro@suse.de
- remove deprecated "-p" option from fillup_and_insserv call
- remove rc.config related snippets (from before sles8)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 18 01:36:21 CEST 2008 - ro@suse.de Mon Aug 18 01:36:21 CEST 2008 - ro@suse.de

View File

@ -34,62 +34,13 @@ test -f etc/nsswitch.conf.rpmnew && grep dns6 etc/nsswitch.conf >/dev/null 2>&1
cp etc/nsswitch.conf etc/nsswitch.conf.aaa_base cp etc/nsswitch.conf etc/nsswitch.conf.aaa_base
sed "s|dns6|dns|g" < etc/nsswitch.conf.aaa_base > etc/nsswitch.conf sed "s|dns6|dns|g" < etc/nsswitch.conf.aaa_base > etc/nsswitch.conf
} }
#
# the following rc.config-variables changed their names during the releases,
# so we have to change them here ...
# FONT to CONSOLE_FONT
# TRANSLATION to CONSOLE_UNICODEMAP
# GMT to HWCLOCK
# replace CREATE_RESOLVCONF by comment
# comment out NAMESERVER
# comment out SEARCHLIST
# comment out LANGUAGE
# delete umask line
#
if test -s etc/rc.config ; then
sed -e"s/^FONT=/CONSOLE_FONT=/" \
-e"s/^TRANSLATION=/CONSOLE_UNICODEMAP=/" \
-e"s/^GMT=/HWCLOCK=/" \
-e"s/^CREATE_RESOLVCONF=.*/# Update: SuSEconfig will no longer touch resolv.conf/" \
-e"s/^NAMESERVER=\(.*\)/# NAMESERVER=\1/" \
-e"s/^SEARCHLIST=\(.*\)/# SEARCHLIST=\1/" \
-e"s/^umask .*//" \
-e"s/^test \$rc_done=/test \"\$rc_done\"=/" \
-e"s/^LANGUAGE=/# LANGUAGE=/" etc/rc.config \
> etc/rc.config.t && mv etc/rc.config.t etc/rc.config
rm -f etc/rc.config.t
fi
# GMT might already be in sysconfig/clock # GMT might already be in sysconfig/clock
%{rename_sysconfig_variable -f etc/sysconfig/clock GMT HWCLOCK} %{rename_sysconfig_variable -f etc/sysconfig/clock GMT HWCLOCK}
# XXX uncommented temporary
if [ -e etc/aaa_base_debug -a ! -e etc/rc.config ]; then
cat << EOF > etc/rc.config
#
# /etc/rc.config
#
# Copyright (c) 1996-2002 SuSE Linux AG Nuernberg, Germany.
# All rights reserved.
#
# Author: Werner Fink <werner@suse.de>, 1996
# Burchard Steinbild, 1996
#
# The configuration databases for shell scripts in /etc/init.d,
# /sbin/SuSEconfig and /etc/cron.daily/suse.de-* can now be found
# in the /etc/sysconfig directory. This file should not be used any
# longer and will disappear in one of the next releases.
#
# Please edit the files in the /etc/sysconfig directory and execute
# /sbin/SuSEconfig to configure everything.
#
EOF
chmod 644 etc/rc.config
fi
# #
# Initialize runlevel links # Initialize runlevel links
# #
%{fillup_and_insserv -py boot.proc boot.localfs boot.swap boot.clock boot.ldconfig boot.ipconfig boot.klog boot.localnet halt random reboot single} %{fillup_and_insserv -y boot.proc boot.localfs boot.swap boot.clock boot.ldconfig boot.ipconfig boot.klog boot.localnet halt random reboot single}
%{insserv_force_if_yast etc/init.d/boot.loadmodules etc/init.d/boot.cleanup etc/init.d/boot.rootfsck} %{insserv_force_if_yast etc/init.d/boot.loadmodules etc/init.d/boot.cleanup etc/init.d/boot.rootfsck}
## powerfail probably needs empty header ... ## powerfail probably needs empty header ...
@ -100,12 +51,6 @@ for i in proc localfs swap clock ldconfig ipconfig klog localnet loadmodules sch
fi fi
done done
#
# remove old stuff from rc.config
if [ -x bin/fillup -a -f etc/rc.config ] ; then
bin/fillup -q -t -r -i -d "=" etc/rc.config var/adm/fillup-templates/removed_variables.aaa_base /dev/null
test -s etc/rc.config.new && mv etc/rc.config.new etc/rc.config
fi
%{remove_and_set -n security CONSOLE_SHUTDOWN} %{remove_and_set -n security CONSOLE_SHUTDOWN}
%{remove_and_set -n suseconfig CHECK_INITTAB} %{remove_and_set -n suseconfig CHECK_INITTAB}
%{remove_and_set -n suseconfig HALT_SOUND} %{remove_and_set -n suseconfig HALT_SOUND}
@ -113,10 +58,6 @@ fi
if ! [ -d etc/sysconfig ] ; then if ! [ -d etc/sysconfig ] ; then
mkdir -p etc/sysconfig mkdir -p etc/sysconfig
fi fi
# language was called lang before
if [ ! -f etc/sysconfig/language -a -f etc/rc.config.d/lang.rc.config ] ; then
mv etc/rc.config.d/lang.rc.config etc/sysconfig/language
fi
for i in language backup boot kernel \ for i in language backup boot kernel \
suseconfig clock proxy windowmanager sysctl \ suseconfig clock proxy windowmanager sysctl \
cron news shutdown ; do cron news shutdown ; do

View File

@ -249,13 +249,6 @@ for DIR in etc/rc.d usr/X11 ; do
fi fi
done done
# Backup YP_DOMAINNAME, before we remove it
if test ! -f etc/defaultdomain -a -f /etc/rc.config ; then
eval `grep ^YP_DOMAINNAME etc/rc.config 2>/dev/null`
echo -n $YP_DOMAINNAME > etc/defaultdomain
chmod 644 etc/defaultdomain
fi
if test -f /root/.gnupg/secring.gpg ; then if test -f /root/.gnupg/secring.gpg ; then
cp -a /root/.gnupg/secring.gpg /root/.gnupg/secring.gpg.aaa_save cp -a /root/.gnupg/secring.gpg /root/.gnupg/secring.gpg.aaa_save
fi fi

View File

@ -28,7 +28,7 @@ Recommends: cron logrotate
PreReq: /usr/bin/sed /usr/bin/grep /bin/mv /bin/cat /bin/ls /bin/date /usr/bin/cmp /bin/fillup /sbin/insserv udev net-tools PreReq: /usr/bin/sed /usr/bin/grep /bin/mv /bin/cat /bin/ls /bin/date /usr/bin/cmp /bin/fillup /sbin/insserv udev net-tools
AutoReqProv: on AutoReqProv: on
Version: 11.0.42 Version: 11.0.42
Release: 31 Release: 34
Summary: SUSE Linux Base Package Summary: SUSE Linux Base Package
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: aaa_base.tar.bz2 Source: aaa_base.tar.bz2
@ -74,7 +74,7 @@ test -d ../aaa_base/root/.gnupg && exit 1
cp -a ../aaa_base/* $RPM_BUILD_ROOT cp -a ../aaa_base/* $RPM_BUILD_ROOT
cp $RPM_SOURCE_DIR/get_kernel_version $RPM_BUILD_ROOT/sbin cp $RPM_SOURCE_DIR/get_kernel_version $RPM_BUILD_ROOT/sbin
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
for i in $RPM_BUILD_DIR/sysconfig_parts/sysconfig.* $RPM_BUILD_DIR/sysconfig_parts/removed_variables.aaa_base; do for i in $RPM_BUILD_DIR/sysconfig_parts/sysconfig.* ; do
cp $i $RPM_BUILD_ROOT/var/adm/fillup-templates/ cp $i $RPM_BUILD_ROOT/var/adm/fillup-templates/
done done
# #
@ -150,6 +150,9 @@ rm -f /root/.gnupg/secring.gpg.aaa_save
%defattr(-,root,root) %defattr(-,root,root)
%changelog %changelog
* Tue Aug 19 2008 ro@suse.de
- remove deprecated "-p" option from fillup_and_insserv call
- remove rc.config related snippets (from before sles8)
* Mon Aug 18 2008 ro@suse.de * Mon Aug 18 2008 ro@suse.de
- fix header for boot.localnet - fix header for boot.localnet
* Mon Aug 11 2008 werner@suse.de * Mon Aug 11 2008 werner@suse.de

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:e24e141b1fee1eae1b879fe9b277273292cc93e295bd64c546b95ac3f62af200 oid sha256:e826fc749e1a56038d60f819e1bf5dcb86f500fb4c8465e2ae421826c17b5b87
size 8421 size 6984