Bugzilla – Bug 115165
wwwoffle and htdig are not integrated
Last modified: 2006-02-28 12:38:45 UTC
The wwwoffle proxy has support for several local search engines including htdig, mnogosearch, namazu and udmsearch. The local search engine HTDig is included in SuSE Linux since several releases. Unfortunately it's not possible to use the htdig search engine within wwwoffle, because wwwoffle does not find the path of htsearch. Test: 1) Create/Update the search database with /var/spool/wwwoffle/search/htdig/scripts/wwwoffle-htdig-full 2) Call the URL http://chemnitz:3128/search/htdig/search.html in a browser Result: Empty page The reason for this behaviour is, that wwwoffle does not find /srv/www/cgi-bin/htsearch. As a work around I set PATH=/srv/www/cgi-bin:$PATH in /etc/init.d/wwwoffle but there may be better solutions.
Does this patch work? --- /etc/init.d/wwwoffle 2003-01-22 10:36:32.000000000 +0100 +++ /etc/init.d/wwwoffle 2005-09-05 14:55:00.695165643 +0200 @@ -26,6 +26,8 @@ # Configuration file WWWOFFLECONF=/etc/wwwoffle/wwwoffle.conf +test -f /srv/www/cgi-bin/htsearch && export PATH="$PATH:/srv/www/cgi-bin" + # Shell functions sourced from /etc/rc.status: # rc_check check and set local and overall rc status # rc_status check and set local and overall rc status
Yes, this patch workes fine. I closed this bug.
It's not a big issue, but it would be great, if the files /var/spool/wwwoffle/search/{htdig,mnogosearch,namazu}/conf/* would be marked as configuration files (%config). For instance people who changed the wwwoffle proxy port and use a search engine like HTDig have to change the port numbers in /var/spool/wwwoffle/search/htdig/conf/htdig-*.conf after each package-update.
the directorys are not from the wwwoffle package nor from the htdig package. They shouldnt get touched or removed during any package operation
Oh, I'm relatively sure, that this files (and directories) are part of the current wwwoffle package from SL-OSS-factory: $ rpm -qpl http://ftp.tu-chemnitz.de/pub/linux/opensuse/distribution/SL-OSS-factory/inst-source/suse/i586/wwwoffle-2.8e-2.i586.rpm | grep '/var/spool/wwwoffle/search/\(htdig\|mnogosearch\|namazu\)/conf' /var/spool/wwwoffle/search/htdig/conf /var/spool/wwwoffle/search/htdig/conf/htdig-full.conf /var/spool/wwwoffle/search/htdig/conf/htdig-incr.conf /var/spool/wwwoffle/search/htdig/conf/htdig-lasttime.conf /var/spool/wwwoffle/search/htdig/conf/htfuzzy.conf /var/spool/wwwoffle/search/htdig/conf/htmerge.conf /var/spool/wwwoffle/search/htdig/conf/htsearch.conf /var/spool/wwwoffle/search/mnogosearch/conf /var/spool/wwwoffle/search/mnogosearch/conf/indexer-full.conf /var/spool/wwwoffle/search/mnogosearch/conf/indexer-full.old.conf /var/spool/wwwoffle/search/mnogosearch/conf/indexer-incr.conf /var/spool/wwwoffle/search/mnogosearch/conf/indexer-incr.old.conf /var/spool/wwwoffle/search/mnogosearch/conf/result.html /var/spool/wwwoffle/search/namazu/conf /var/spool/wwwoffle/search/namazu/conf/mknmzrc /var/spool/wwwoffle/search/namazu/conf/namazurc
uhm sorry overlooked a line. will do it
This was fixed. Thanks Henne.
During "rpmbuild" of the new package (wwwoffle-2.8e-4.src.rpm) there are warnings like this: warning: File listed twice: /var/spool/wwwoffle/search/htdig/conf warning: File listed twice: /var/spool/wwwoffle/search/htdig/conf/htdig-full.conf My attached patch fixes this little problem. Please verify my patch.
Created attachment 70298 [details] Patch for wwwoffle.spec (fixes the "File listed twice" warnings)
checked in for next beta