]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- fixes and updates
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 31 Jan 2000 14:30:11 +0000 (14:30 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 31 Jan 2000 14:30:11 +0000 (14:30 +0000)
svn-id: @631

autogen.sh
rc-scripts.spec.in
rc.d/init.d/functions

index 6b3eeb913279752c626c0c2cea919b713bc86f55..7f43b7e64f232e7f6658bbdf2112b7bd4e61ec09 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $Id: autogen.sh,v 1.4 1999/09/02 12:38:52 misiek Exp $
+# $Id: autogen.sh,v 1.5 2000/01/31 14:30:11 misiek Exp $
 # Run this to generate all the initial makefiles, etc.
 
 srcdir=`dirname $0`
@@ -19,7 +19,7 @@ DIE=0
 
 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
   echo
-  echo "**Error**: You must have \`autoconf' installed to compile pinfo."
+  echo "**Error**: You must have \`autoconf' installed to compile $PKG_NAME."
   echo "Download the appropriate package for your distribution,"
   echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
   DIE=1
@@ -28,7 +28,7 @@ DIE=0
 (grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
   (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
     echo
-    echo "**Error**: You must have \`libtool' installed to compile pinfo."
+    echo "**Error**: You must have \`libtool' installed to compile $PKG_NAME."
     echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
     echo "(or a newer version if it is available)"
     DIE=1
@@ -39,7 +39,7 @@ grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
   grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
   (gettextize --version) < /dev/null > /dev/null 2>&1 || {
     echo
-    echo "**Error**: You must have \`gettext' installed to compile pinfo."
+    echo "**Error**: You must have \`gettext' installed to compile $PKG_NAME."
     echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
     echo "(or a newer version if it is available)"
     DIE=1
@@ -48,7 +48,7 @@ grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
 
 (automake --version) < /dev/null > /dev/null 2>&1 || {
   echo
-  echo "**Error**: You must have \`automake' installed to compile pinfo."
+  echo "**Error**: You must have \`automake' installed to compile $PKG_NAME."
   echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
   echo "(or a newer version if it is available)"
   DIE=1
index 5c297a3edd9c576893c7099a37b391e8878bc75d..de5dc47e36eef3b84decbfb63af1945bdbece077 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: rc-scripts.spec.in,v 1.37 1999/12/15 18:41:05 misiek Exp $
+# $Id: rc-scripts.spec.in,v 1.38 2000/01/31 14:30:11 misiek Exp $
 Summary:       inittab and /etc/rc.d scripts
 Summary(de):   inittab und /etc/rc.d Scripts
 Summary(fr):   inittab et scripts /etc/rc.d
@@ -11,6 +11,8 @@ Copyright:    GPL
 Group:         Base
 Group(pl):     Bazowe  
 Source:                %{name}-%{version}.tar.gz
+URL:           http://cvs.pld.org.pl/index.cgi/rc-scripts/
+Vendor:                PLD rc-scripts Team <pld-rc-scripts@pld.org.pl>
 BuildRequires: popt-devel
 BuildRequires: glib-devel
 BuildRequires: glib-static
@@ -193,34 +195,9 @@ fi
 %lang(pl) %{localedir}/pl/LC_MESSAGES/*.mo
 
 %changelog
-* Thu Apr 29 1999 PLD Team <bugs@pld.org.pl>
-  [0.0.5-1]
-- automake/autoconf support
-
-* Wed Apr 28 1999 PLD Team <bugs@pld.org.pl>
-  [0.0.4-1]
-- added ipchains-setup  
-
-* Thu Apr 22 1999 PLD Team <bugs@pld.org.pl>
-  [0.0.3-1]
-- split into two packages: rc-scripts & net-scripts  
-- directory structure changed - only config in /etc
-
-* Tue Mar 23 1999 PLD Team <bugs@pld.org.pl>
-  [0.0.2-1]
-- be more verbose while upgrading when /etc/inittab.rpmsave is found,
-- added seting NETWORK="no" variable to when /etc/sysconfig/network is not present
-  or when NETWORK in this file is not defined.
-
-* Sun Mar 21 1999 PLD Team <bugs@pld.org.pl>
-  [0.0.1-1]
-- added /etc/sysconfig/system,
-- removed man group from man pages,
-- added in %post not replacing /etc/inittab on upgrade from initscripts,
-- removed %config from scripts.
-
 * Fri Mar 19 1999 PLD Team <bugs@pld.org.pl>
-- Modified handling ppp links. Added new features to ifcfg-ppp
-  and changed syntax of chat scripts for ppp.
 - First Release.
 - Package based on RedHat's initscripts-3.78.
+- WARNING: This changelog won't be updated !
+  Check ChangeLog file for news.
+
index 6115e1592b050cdc532d09ec362b8d9961891212..82cfd6f85f7b9532a4b6ade1a6d098bfa7c7ad32 100644 (file)
@@ -1,7 +1,7 @@
 # functions    This file contains functions to be used by most or all
 #              shell scripts in the /etc/init.d directory.
 #
-# $Id: functions,v 1.33 1999/12/15 18:41:07 misiek Exp $
+# $Id: functions,v 1.34 2000/01/31 14:30:11 misiek Exp $
 #
 # Author:      Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
 # Hacked by:    Greg Galloway and Marc Ewing
@@ -27,7 +27,20 @@ termput()
                :
        elif [ ! -d /usr/share/terminfo ] || \
             ! ( [ -x /usr/bin/tput ] || [ -x /bin/tput ] ) ; then
-               echo -ne "\033[0;3${2}m"
+               case "$1" in
+                 hpa)
+                       echo -ne "\033[${2}G"
+                       ;;
+                 cuu*)
+                       echo -ne "\033[${2}A"
+                       ;;
+                 el)
+                       echo -ne "\033[0K"
+                       ;;
+                 setaf)
+                       echo -ne "\033[0;3${2}m"
+                       ;;
+                 esac
        else
                tput "$@"
        fi
@@ -56,7 +69,13 @@ if [ -x /bin/gettext ] || [ -x /usr/bin/gettext ]; then
        if [ -z "$NLS_DOMAIN" ]; then
                NLS_DOMAIN="rc-scripts"
        fi
-       text="`TEXTDOMAINDIR="/etc/sysconfig/locale" gettext -e --domain="$NLS_DOMAIN" "$1"`"
+       MESSAGE="$1"
+       # avoid translating empty text. --misiek
+       if [ -n "$MESSAGE" ]; then
+               text="`TEXTDOMAINDIR="/etc/sysconfig/locale" gettext -e --domain="$NLS_DOMAIN" "$MESSAGE"`"
+       else
+               text="$MESSAGE"
+       fi
        shift
        printf_ "$text" "$@"
        echo
@@ -70,7 +89,9 @@ show()
 {      
        what="`nls "DONE"`"; typeset -i offset=${#what}
        text="`nls "$*"`.................................................................................."
-       awk "BEGIN {printf \"%.$((69 - $offset))s\", \"$text\";}"
+       awk "BEGIN {printf \"%.$((75 - $offset))s\", \"$text\";}"
+       # move to column number 67
+       termput hpa 67
 }
 
 busy() 
@@ -113,13 +134,21 @@ run_cmd()
        if _ERRORS="`initlog -c \"$*\" 2>&1`"; then
                deltext; ok
        else
-               deltext; fail; echo $_ERRORS
+               deltext; fail;  [ -n "$_ERRORS" ] && echo $_ERRORS
        fi
        exit_code=$?
        unset _ERRORS
        return $exit_code
 }
 
+# compatibility functions
+action()
+{
+        STRING=$1
+       shift
+       run_cmd "$STRING" "$*"
+}
+                       
 # A function to start a program (now it's usefull on read-only filesystem too)
 daemon() 
 {
@@ -146,7 +175,7 @@ daemon()
        else
                deltext
                fail
-               echo $_ERRORS
+               [ -n "$_ERRORS" ] && echo $_ERRORS
        fi
        unset _ERRORS
 }
This page took 0.073859 seconds and 4 git commands to generate.