Bug 115165 - wwwoffle and htdig are not integrated
Summary: wwwoffle and htdig are not integrated
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Network (show other bugs)
Version: Beta 4
Hardware: x86 All
: P5 - None : Normal
Target Milestone: ---
Assignee: Mads Martin Joergensen
QA Contact: E-mail List
URL:
Whiteboard:
Keywords: Usability
Depends on:
Blocks:
 
Reported: 2005-09-03 19:34 UTC by Björn Voigt
Modified: 2006-02-28 12:38 UTC (History)
1 user (show)

See Also:
Found By: Beta-Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Patch for wwwoffle.spec (fixes the "File listed twice" warnings) (2.50 KB, patch)
2006-02-25 13:47 UTC, Björn Voigt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Voigt 2005-09-03 19:34:38 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.
Comment 1 Mads Martin Joergensen 2005-09-05 12:55:57 UTC
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
Comment 2 Björn Voigt 2005-09-05 18:27:44 UTC
Yes, this patch workes fine. I closed this bug.
Comment 3 Björn Voigt 2006-02-16 20:25:48 UTC
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.
Comment 4 Hendrik Vogelsang 2006-02-17 11:08:13 UTC
the directorys are not from the wwwoffle package nor from the htdig package. They shouldnt get touched or removed during any package operation
Comment 5 Björn Voigt 2006-02-17 11:24:58 UTC
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
Comment 6 Hendrik Vogelsang 2006-02-17 11:31:18 UTC
uhm sorry overlooked a line. will do it
Comment 7 Mads Martin Joergensen 2006-02-21 11:58:37 UTC
This was fixed. Thanks Henne.
Comment 8 Björn Voigt 2006-02-25 13:45:30 UTC
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. 
Comment 9 Björn Voigt 2006-02-25 13:47:52 UTC
Created attachment 70298 [details]
Patch for wwwoffle.spec (fixes the  "File listed twice" warnings)
Comment 10 Hendrik Vogelsang 2006-02-28 12:38:45 UTC
checked in for next beta