diff --git a/htdig-3.2.0b6-incremental.patch b/htdig-3.2.0b6-incremental.patch new file mode 100644 index 0000000..cb6f4fb --- /dev/null +++ b/htdig-3.2.0b6-incremental.patch @@ -0,0 +1,45 @@ +--- htdig-3.2.0b6/installdir/rundig.incremental 2007-01-09 16:49:35.000000000 +0100 ++++ htdig-3.2.0b6/installdir/rundig 2007-01-09 16:49:35.000000000 +0100 +@@ -14,6 +14,7 @@ + + # To help debug problems, try running rundig -vvv + # This will add lots of debugging output to all of the programs ++incremental=0 + stats= opts= alt= + while [ "$#" -gt 0 ] + do +@@ -24,6 +25,7 @@ + conffile="$1" + opts="$opts -c $conffile" + ;; ++ +i) incremental=1;; + *) opts="$opts $1" ;; # e.g. -v + esac + shift +@@ -53,7 +55,13 @@ + TMPDIR=$DBDIR + export TMPDIR + +-$BINDIR/htdig -i $opts $stats $alt ++if [ $incremental -ne 0 ] ++then ++ $BINDIR/htdig $opts $stats $alt ++else ++ $BINDIR/htdig -i $opts $stats $alt ++fi ++ + $BINDIR/htpurge $opts $alt + case "$alt" in + -a) +--- htdig-3.2.0b6/installdir/rundig.1.in.incremental 2007-01-09 16:50:11.000000000 +0100 ++++ htdig-3.2.0b6/installdir/rundig.1.in 2007-01-09 16:52:17.000000000 +0100 +@@ -23,6 +23,9 @@ + .TP + .B \-c configfile + Use alternate config file. ++.TP ++.B \+i ++Use incremental digging instead non-incremental + .SH "SEE ALSO" + Please refer to the HTML pages (in the htdig-doc package) + .B /usr/share/doc/htdig-doc/html/index.html diff --git a/htdig.spec b/htdig.spec index f13893c..6ca8e79 100644 --- a/htdig.spec +++ b/htdig.spec @@ -5,7 +5,7 @@ Summary: ht://Dig - Web search engine Name: htdig Version: 3.2.0b6 -Release: 8%{?dist} +Release: 9%{?dist} Epoch: 3 License: GPL Group: Applications/Internet @@ -24,6 +24,7 @@ Patch7: htdig-3.2.0b-versioncheck.patch Patch8: htdig-3.2.0b6-compile-fix.patch Patch9: htdig-3.2.0b6-opts.patch Patch10: htdig-3.2.0b6-sigfault.patch +Patch11: htdig-3.2.0b6-incremental.patch BuildRequires: flex >= 2.5.4a-13 BuildRequires: zlib-devel httpd openssl-devel BuildRoot: %{_tmppath}/%{name}-root @@ -77,6 +78,7 @@ various web servers on the campus network. %patch8 -p1 -b .compile-fix %patch9 -p1 -b .opts %patch10 -p1 -b .sigfault +%patch11 -p1 -b .incremental %build %configure \ @@ -147,6 +149,9 @@ rm -rf $RPM_BUILD_ROOT %endif %changelog +* Tue Jan 09 2007 Adam Tkac 3:3.2.0b6-9.fc7 +- added +i option to rundig script. This option enables incremental digging + * Wed Dec 20 2006 Adam Tkac 3:3.2.0b6-8.fc7 - fixed htfuzzy's sigfaults (#130528)