Browse Source

workaround for BSD /bin/sh deficiencies

master
Michael van Elst 23 years ago committed by Ralf S. Engelschall
parent
commit
a6d84adffc
  1. 17
      inn/inn-watch.patch
  2. 4
      inn/inn.spec

17
inn/inn-watch.patch

@ -0,0 +1,17 @@
--- inn-2.3.3/scripts/innwatch.in.dist Wed Dec 4 15:02:05 2002
+++ inn-2.3.3/scripts/innwatch.in Wed Dec 4 15:05:21 2002
@@ -126,7 +126,12 @@
NEXTSLEEP=1
HASEXITED=false
-while { sleep ${NEXTSLEEP} & wait; } ; : ; do
+SLEEPTINY=1
+while { sleep ${SLEEPTINY} & wait; } ; : ; do
+ NEXTSLEEP=`expr ${NEXTSLEEP} - ${SLEEPTINY}`
+ if [ $NEXTSLEEP -gt 0 ]; then
+ continue;
+ fi
NEXTSLEEP=${INNWATCHSLEEPTIME}
## If news.daily is running, idle: we don't want to change the

4
inn/inn.spec

@ -37,7 +37,7 @@ Distribution: OpenPKG [BASE]
Group: News
License: ISC
Version: %{V_inn}
Release: 20021112
Release: 20021204
# list of sources
Source0: ftp://ftp.isc.org/isc/inn/inn-%{V_inn}.tar.gz
@ -45,6 +45,7 @@ Source1: http://www.bofh.it/~md/cleanfeed/cleanfeed-%{V_cleanfeed}.tgz
Source2: rc.inn
Source3: fsl.inn
Patch0: inn-db4.patch
Patch1: inn-watch.patch
# build information
Prefix: %{l_prefix}
@ -63,6 +64,7 @@ AutoReqProv: no
%setup0 -q -c
%setup1 -q -T -D -a 1
%patch0 -p0
%patch1 -p0
%build
# build inn

Loading…
Cancel
Save