|
|
|
@ -39,8 +39,8 @@
|
|
|
|
|
# o any cc(1) |
|
|
|
|
|
|
|
|
|
# the package version and release |
|
|
|
|
%define V_openpkg 20020308 |
|
|
|
|
%define R_openpkg 20020308 |
|
|
|
|
%define V_openpkg 20020311 |
|
|
|
|
%define R_openpkg 20020311 |
|
|
|
|
|
|
|
|
|
# the used software versions |
|
|
|
|
%define V_rpm 4.0.2 |
|
|
|
@ -954,6 +954,28 @@ Provides: OpenPKG
|
|
|
|
|
elif [ -f /etc/redhat-release ]; then |
|
|
|
|
sroot=/etc/rc.d/init.d |
|
|
|
|
lroot=/etc/rc.d/rc%d.d |
|
|
|
|
else |
|
|
|
|
echo "WARNING: you are not running one of the supported standard" 1>&2 |
|
|
|
|
echo "WARNING: Linux platforms (Debian, SuSE, RedHat). We are" 1>&2 |
|
|
|
|
echo "WARNING: trying to guess the location of the system init scripts!" 1>&2 |
|
|
|
|
sroot="" |
|
|
|
|
lroot="" |
|
|
|
|
for sr in /etc/rc.d/init.d /etc/init.d /sbin/init.d; do |
|
|
|
|
if [ -d $sr ]; then |
|
|
|
|
sroot="$sr" |
|
|
|
|
break |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
for lr in /etc/rc.d/rc2.d /etc/rc2.d /sbin/init.d/rc2.d; do |
|
|
|
|
if [ -d $lr ]; then |
|
|
|
|
lroot="`echo $lr | sed -e 's;2;%d;'`" |
|
|
|
|
break |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
if [ ".$sroot" = . -o ".$lroot" = . ]; then |
|
|
|
|
echo "ERROR: Failed to guess the location of the system init scripts!" 1>&2 |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
if [ ! -f $sroot/${name} ]; then |
|
|
|
|
# install transfer script |
|
|
|
@ -1240,6 +1262,28 @@ Provides: OpenPKG
|
|
|
|
|
elif [ -f /etc/redhat-release ]; then |
|
|
|
|
sroot=/etc/rc.d/init.d |
|
|
|
|
lroot=/etc/rc.d/rc%d.d |
|
|
|
|
else |
|
|
|
|
echo "WARNING: you are not running one of the supported standard" 1>&2 |
|
|
|
|
echo "WARNING: Linux platforms (Debian, SuSE, RedHat). We are" 1>&2 |
|
|
|
|
echo "WARNING: trying to guess the location of the system init scripts!" 1>&2 |
|
|
|
|
sroot="" |
|
|
|
|
lroot="" |
|
|
|
|
for sr in /etc/rc.d/init.d /etc/init.d /sbin/init.d; do |
|
|
|
|
if [ -d $sr ]; then |
|
|
|
|
sroot="$sr" |
|
|
|
|
break |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
for lr in /etc/rc.d/rc2.d /etc/rc2.d /sbin/init.d/rc2.d; do |
|
|
|
|
if [ -d $lr ]; then |
|
|
|
|
lroot="`echo $lr | sed -e 's;2;%d;'`" |
|
|
|
|
break |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
if [ ".$sroot" = . -o ".$lroot" = . ]; then |
|
|
|
|
echo "ERROR: Failed to guess the location of the system init scripts!" 1>&2 |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
rm -f ${sroot}/${name} >/dev/null 2>&1 |
|
|
|
|
for i in 2 3 4 5; do |
|
|
|
|