X-Git-Url: http://developer.intra2net.com/git/?p=mnogosearch-rpm;a=blobdiff_plain;f=mnogosearch-distconfig.patch;fp=mnogosearch-distconfig.patch;h=a35443a2d2c6812440b882691b0f0fef746fb792;hp=0000000000000000000000000000000000000000;hb=b5bd282fc10efa3d8aa68e3cbf90d47d509ff788;hpb=7aeead928a3be2854aa93a89c4018e55af93aacc diff --git a/mnogosearch-distconfig.patch b/mnogosearch-distconfig.patch new file mode 100644 index 0000000..a35443a --- /dev/null +++ b/mnogosearch-distconfig.patch @@ -0,0 +1,116 @@ +diff -r -u mnogosearch-3.3.11.orig/etc/indexer.conf-dist mnogosearch-3.3.11/etc/indexer.conf-dist +--- mnogosearch-3.3.11.orig/etc/indexer.conf-dist 2011-01-31 11:06:27.000000000 +0100 ++++ mnogosearch-3.3.11/etc/indexer.conf-dist 2011-01-31 11:15:30.000000000 +0100 +@@ -1,4 +1,4 @@ +-#!/usr/local/mnogosearch/sbin/indexer -d ++#!/usr/bin/indexer -d + + ########################################################################### + # This is a sample indexer config file. +@@ -49,7 +49,7 @@ + # then PostgreSQL will not work via TCP, but will use Unix socket. + # + +-DBAddr mysql://root@localhost/test/?dbmode=blob ++DBAddr sqlite3://localhost/var/lib/mnogosearch/default.db/?dbmode=blob + + + +@@ -139,7 +139,7 @@ + #LocalCharset Shift-JIS + + # Full UNICODE +-#LocalCharset UTF-8 ++LocalCharset UTF-8 + + ####################################################################### + #ForceIISCharset1251 yes/no +@@ -169,7 +169,7 @@ + # + #StopwordFile stopwords/en.sl + +-#Include stopwords.conf ++Include stopwords.conf + + + ########################################################################### +@@ -180,7 +180,7 @@ + # + #LangMapFile langmap/en.ascii.lm + +-#Include langmap.conf ++Include langmap.conf + + + ####################################################################### +@@ -310,11 +310,11 @@ + + # Disallow document extensions that are not understood by default. + # Comment these lines if you have corresponding external parsers. +-Disallow *.rtf +-Disallow *.doc +-Disallow *.xls +-Disallow *.ppt +-Disallow *.pdf ++#Disallow *.rtf ++#Disallow *.doc ++#Disallow *.xls ++#Disallow *.ppt ++#Disallow *.pdf + + # Exclude some known extensions using fast "String" match: + Disallow *.b *.sh *.md5 *.rpm +@@ -531,16 +531,16 @@ + # from_mime to_mime[charset] [command line [$1]] + # + #Mime application/msword "text/plain; charset=utf-8" "catdoc -a -dutf-8 $1" +-#Mime application/msword "text/html; charset=utf-8" "wvHtml --charset=utf-8 $1 -" ++Mime application/msword "text/html; charset=utf-8" "wvHtml --charset=utf-8 $1 -" + #Mime application/x-troff-man text/plain "deroff" + #Mime text/x-postscript text/plain "ps2ascii" +-#Mime application/pdf text/plain "pdftotext $1 -" ++Mime application/pdf "text/plain; charset=utf-8" "pdftotext $1 -" + #Mime application/vnd.ms-excel text/plain "xls2csv $1" +-#Mime application/vnd.ms-excel text/html "xlhtml $1" ++Mime application/vnd.ms-excel "text/html; charset=utf-8" "xlhtml $1" + #Mime "text/rtf*" text/html "rthc --use-stdout $1 2>/dev/null" + #Mime "text/rtf*" text/xml "rtfx -w $1 2>/dev/null" +-#Mime "text/rtf*" text/html "unrtf --html $1" +-#Mime application/vnd.ms-powerpoint "text/html; charset=utf-8" "pptohtml $1" ++Mime "text/rtf*" "text/html; charset=utf-8" "unrtf --html $1" ++Mime application/vnd.ms-powerpoint "text/html; charset=utf-8" "ppthtml $1" + #Mime application/vnd.ms-powerpoint text/html "ppthtml $1" + + +@@ -975,7 +975,7 @@ + # Default value is "path". + # + # To index whole server "localhost": +-#Server http://localhost/ ++Server http://localhost/ + # + # You can also specify some path to index subdirectory only: + #Server http://localhost/subdir/ +diff -r -u mnogosearch-3.3.11.orig/etc/search.htm-dist mnogosearch-3.3.11/etc/search.htm-dist +--- mnogosearch-3.3.11.orig/etc/search.htm-dist 2011-01-27 16:10:07.000000000 +0100 ++++ mnogosearch-3.3.11/etc/search.htm-dist 2011-01-31 11:17:04.000000000 +0100 +@@ -13,7 +13,7 @@ +