#!/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`
(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
(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
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
(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
-# $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
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
%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.
+
# 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
:
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
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
{
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()
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()
{
else
deltext
fail
- echo $_ERRORS
+ [ -n "$_ERRORS" ] && echo $_ERRORS
fi
unset _ERRORS
}