From: Arkadiusz Miśkiewicz Date: Thu, 16 Jul 2009 17:09:09 +0000 (+0000) Subject: - rel 2; fix COLUMNS/LINES on some terminals (like ipmi sol) X-Git-Tag: auto/th/rc-scripts-0_4_2_3-2 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=06a487c7b7489b7fb8dbf9f34359786b39f6f486;p=packages%2Frc-scripts.git - rel 2; fix COLUMNS/LINES on some terminals (like ipmi sol) Changed files: rc-scripts-lc.patch -> 1.1 rc-scripts.spec -> 1.305 --- diff --git a/rc-scripts-lc.patch b/rc-scripts-lc.patch new file mode 100644 index 0000000..f6a9b9d --- /dev/null +++ b/rc-scripts-lc.patch @@ -0,0 +1,14 @@ +Index: rc.d/init.d/functions +=================================================================== +--- rc.d/init.d/functions (wersja 10418) ++++ rc.d/init.d/functions (kopia robocza) +@@ -25,7 +25,8 @@ + _setterm + unset _setterm + fi +-[ -z "$COLUMNS" ] && COLUMNS=80 ++[ -z "$LINES" -o "$LINES" -le 0 ] && COLUMNS=40 ++[ -z "$COLUMNS" -o "$COLUMNS" -le 0 ] && COLUMNS=80 + export LINES COLUMNS + INIT_COL=$((COLUMNS - 13)) + diff --git a/rc-scripts.spec b/rc-scripts.spec index 3001a43..60c6bc4 100644 --- a/rc-scripts.spec +++ b/rc-scripts.spec @@ -9,12 +9,13 @@ Summary(pl.UTF-8): inittab i skrypty startowe z katalogu /etc/rc.d Summary(tr.UTF-8): inittab ve /etc/rc.d dosyaları Name: rc-scripts Version: 0.4.2.3 -Release: 1 +Release: 2 License: GPL v2 Group: Base Source0: ftp://distfiles.pld-linux.org/src/%{name}-%{version}.tar.gz # Source0-md5: 609b673eefa6c29906cc15b7a6b90a9c Patch0: dropcaps.patch +Patch1: %{name}-lc.patch URL: http://svn.pld-linux.org/cgi-bin/viewsvn/rc-scripts/ BuildRequires: autoconf BuildRequires: automake @@ -104,6 +105,7 @@ programcıklar içerir. %prep %setup -q %patch0 -p0 +%patch1 -p0 %build %{__aclocal}