Преглед изворни кода

workaround for BSD /bin/sh deficiencies

Michael van Elst пре 23 година
родитељ
комит
a6d84adffc
2 измењених фајлова са 20 додато и 1 уклоњено
  1. 17 0
      inn/inn-watch.patch
  2. 3 1
      inn/inn.spec

+ 17 - 0
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
+

+ 3 - 1
inn/inn.spec

@@ -37,7 +37,7 @@ Distribution: OpenPKG [BASE]
 Group:        News
 Group:        News
 License:      ISC
 License:      ISC
 Version:      %{V_inn}
 Version:      %{V_inn}
-Release:      20021112
+Release:      20021204
 
 
 #   list of sources
 #   list of sources
 Source0:      ftp://ftp.isc.org/isc/inn/inn-%{V_inn}.tar.gz
 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
 Source2:      rc.inn
 Source3:      fsl.inn
 Source3:      fsl.inn
 Patch0:       inn-db4.patch
 Patch0:       inn-db4.patch
+Patch1:       inn-watch.patch
 
 
 #   build information
 #   build information
 Prefix:       %{l_prefix}
 Prefix:       %{l_prefix}
@@ -63,6 +64,7 @@ AutoReqProv:  no
     %setup0 -q -c
     %setup0 -q -c
     %setup1 -q -T -D -a 1
     %setup1 -q -T -D -a 1
     %patch0 -p0
     %patch0 -p0
+    %patch1 -p0
 
 
 %build
 %build
     #   build inn
     #   build inn