]> git.pld-linux.org Git - packages/mnogosearch.git/blob - mnogosearch.spec
--added pgsql tables creation
[packages/mnogosearch.git] / mnogosearch.spec
1 Summary:        A another one web indexing and searching system for a small domain or intranet
2 Summary(pl):    Kolejny System indeksowania i przeszukiwania www dla ma³ych domen i intranetu
3 Name:           mnogosearch
4 Version:        3.1.17
5 Release:        1
6 License:        GPL
7 Group:          Networking/Utilities
8 Group(de):      Netzwerkwesen/Werkzeuge
9 Group(pl):      Sieciowe/Narzêdzia
10 Source0:        http://www.mnogosearch.ru/Download/%{name}-%{version}.tar.gz
11 Patch0:         %{name}-DESTDIR.patch
12 Source1:        %{name}-gethostnames
13 URL:            http://www.mnogosearch.ru/
14 BuildRequires:  postgresql-devel
15 PreReq:         webserver
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _sysconfdir     /etc/httpd/%{name}
19 %define         _localstatedir  /var/lib/mnogosearch
20
21 %description
22 The mnogosearch system is a complete world wide web indexing and
23 searching system for a small domain or intranet. This system is not
24 meant to replace the need for powerful internet-wide search systems
25 like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant to
26 cover the search needs for a single company, campus, or even a
27 particular sub section of a web site. Features:
28  - mp3 tag info
29  - news searching(?)
30  - http: (and ftp: - via proxy) URL schemaa
31  - charset guesser
32  - externel parsers
33  - support for ssl (https://)
34  - limiting queries to one hostname by sth like this: <INPUT TYPE=HIDDEN NAME=ul VALUE=http://www.something.com/>
35  - it's posilble to run indexers on several diffrent (theoreticaly 128) hosts, and gather information on one of them, reindexing proceses make no harm to avalibility of search engine. See  cachemode.txt
36  
37
38 As opposed to some WAIS-based or web-server based search engines,
39 mnogsearch can span several web servers at a site. The type of these
40 different web servers doesn't matter as long as they understand the
41 HTTP 1.0 protocol. Mnogosearch supports also virtual domains.
42
43 %description -l pl
44 Mnogosearch jest kompletnym systemem indeksuj±cym i przeszukuj±cym www
45 dla ma³ych domen oraz intranetu. System nie zosta³ opracowany jako
46 wielki system typu Lycos, Infoseek WebCrawler i AltaVista. Natomiast
47 nadeje siê do zastosowania w pojedyñczej firmie, kampusie lub
48 jakiejkolwiek stronie www.
49 Zalety:
50  - przeszukiwaie tagow mp3,
51  - niusów (Server news://localhost/pl/),
52  - htdb czyli baz danych udostêpnianych przez www/cgi. (HTDBList SELECT concat("http://search.mnogo.ru/board/message.php?id=",id) \ FROM udm.messages LIMIT 2)) 
53  - zawarto¶ci serwerów ftp (rada za 2gr "Index  no" dla serwera ftp spowoduje nie indexowanie *zawarto¶ci* plików na nim siê znajduj±cych)
54  - wyszykiwanie w zwyk³ych URLach http:// 
55  - wsparcie dla ssl (https://)
56  - wyszukiwanie w mirrorach [równie¿ lokalnych] odleg³ych sieci
57  - zgadywanie zestawu znakow
58  - zewnetrzne przetwarzacze dokumentow na potrzeby indekosowania
59  - ograniczanie zapytañ do jednej nazwy hosta:  <INPUT TYPE=HIDDEN NAME=ul VALUE=http://www.something.com/>
60  - kategoryzacja witryny (doc/categories.txt)
61  - mo¿liwe jest uruchomienie kilku procesów indeksuj±cych na kilku (teoretycznie 128) hostach i trzymanie bazy na jednym z nich, reindeksacja nie powoduje wtedy niedostêpno¶ci wyszukiwarki. Przeczytaj cachemode.txt
62
63 W odró¿nieniu od innych systemów bazuj±cych na WAIS-sie lub serwerch www,
64 mnogosearch mo¿e ³±czyæ kilka serwerów www w jednym miejscu. Typ serwera 
65 nie ma znaczenia, dopóki pracuje on zgodnie z protoko³em HTTP 1.0. Pakiet
66 wspó³pracuje równie¿ z domenami wirtualnymi.
67
68 %package devel
69 Summary:        Include files and libraries for mnogo
70 Summary(pl):    Pliki nag³ówkowe dla mnogo
71 Group:          Development/Libraries
72 Group(de):      Entwicklung/Libraries
73 Group(fr):      Development/Librairies
74 Group(pl):      Programowanie/Biblioteki
75 Requires:       %{name} = %{version}
76
77 %description devel
78 The mnogosearch system is a complete world wide web indexing and
79 searching system for a small domain or intranet. This system is not
80 meant to replace the need for powerful internet-wide search systems
81 like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant to
82 cover the search needs for a single company, campus, or even a
83 particular sub section of a web site.
84
85 As opposed to some WAIS-based or web-server based search engines,
86 mnogosearch can span several web servers at a site. The type of these
87 different web servers doesn't matter as long as they understand the
88 HTTP 1.0 protocol. Mnogosearch supports also virtual domains.
89
90 This package contains devlopment files.
91
92 %package pgsql
93 Summary:        mnogosearch w/ pgsql storage-support 
94 Summary(pl):    mnogosearch z pgsqlem jako metod± przechowywania danych
95 Group:          Networking/Utilities
96 Group(de):      Netzwerkwesen/Werkzeuge
97 Group(pl):      Sieciowe/Narzêdzia
98 Requires:       %{name} = %{version}
99
100 %description pgsql
101 The mnogosearch system is a complete world wide web indexing and
102 searching system for a small domain or intranet. This system is not
103 meant to replace the need for powerful internet-wide search systems
104 like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant to
105 cover the search needs for a single company, campus, or even a
106 particular sub section of a web site.
107
108 As opposed to some WAIS-based or web-server based search engines,
109 mnogosearch can span several web servers at a site. The type of these
110 different web servers doesn't matter as long as they understand the
111 HTTP 1.0 protocol. Mnogosearch supports also virtual domains.
112
113 This package contains pgsql storage support.
114
115 %package static
116 Summary:        mnogo static libraries
117 Summary(pl):    Biblioteki statyczne mnogo
118 Group:          Development/Libraries
119 Group(de):      Entwicklung/Libraries
120 Group(fr):      Development/Librairies
121 Group(pl):      Programowanie/Biblioteki
122 Requires:       %{name}-devel = %{version}
123
124 %description static
125 The mnogosearch system is a complete world wide web indexing and
126 searching system for a small domain or intranet. This system is not
127 meant to replace the need for powerful internet-wide search systems
128 like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant to
129 cover the search needs for a single company, campus, or even a
130 particular sub section of a web site. As opposed to some WAIS-based or
131 web-server based search engines, mnogosearch can span several web servers
132 at a site. The type of these different web servers doesn't matter as
133 long as they understand the HTTP 1.0 protocol. Mnogosearch supports also 
134 virtual domains. This package contains static libraries of mnogosearch.
135
136 %prep
137 %setup -q
138 %patch0 -p1
139
140 %build
141 libtoolize --copy --force
142 aclocal
143 autoconf
144 automake -a -c
145 #where the hell is pgsql?
146 sed -e 's/usr\/include\/pgsql/usr\/include\/postgresql/' < configure.in > aqq
147 mv aqq  configure.in
148 %configure \
149         --enable-syslog      \
150         --enable-syslog=LOG_LOCAL6 \
151         --with-image-dir=/home/httpd/html/%{name} \
152         --with-cgi-bin-dir=/home/httpd/cgi-bin \
153         --with-search-dir=/home/httpd/html \
154         --with-config-dir=%{_sysconfdir}/http/%{name} \
155         --infodir=%{_infodir} \
156         --with-pgsql \
157         --with-openssl \
158         --enable-linux-pthreads \
159         --enable-charset-guesser \
160         --enable-news-extension \
161         --enable-fast-tag \
162         --enable-fast-cat \
163         --enable-fast-site \
164         --enable-phrase         
165
166 #  enable automatic Russian charset guesser :-]
167 # wy uze www.linux.ru procitacli sewodnja?
168
169 #  --with-msql[=DIR]       Include mSQL support.  DIR is the mSQL base
170 #  --with-iodbc[=DIR]      Include iODBC support.  DIR is the iODBC base
171 #  --with-unixODBC[=DIR]   Include unixODBC support.  DIR is the unixODBC base
172 #  --with-solid[=DIR]      Include Solid support.  DIR is the Solid base
173 #  --with-openlink[=DIR]   Include OpenLink ODBC support. 
174 #  --with-easysoft[=DIR]   Include EasySoft ODBC support. 
175 #  --with-sapdb[=DIR]      Include SAPDB support.  DIR is the SAPDB base
176 #  --with-ibase[=DIR]      Include InterBase support.  DIR is the InterBase
177 #  --with-oracle7[=DIR]    Include Oracle 7.3 support.  DIR is the Oracle
178 #  --with-oracle8[=DIR]    Include Oracle8 support.  DIR is the Oracle
179 #  --with-oracle8i[=DIR]   Include Oracle8i support.  DIR is the Oracle
180 #       --with-buildin \
181 #       --with-mysql \
182 #       
183 # FIXME: add selection of storage method, spliting into %{name}-common & %{name}-$DB_NAME
184
185 %{__make}
186
187 %install
188 install -d $RPM_BUILD_ROOT{/var/lib/mnogosearch,/etc/cron.daily,/home/httpd/html/%{name},%{_sysconfdir},%{_infodir}}
189
190 %{__make} DESTDIR=$RPM_BUILD_ROOT install
191
192 ln -sf ../..%{_sbindir}/indexer \
193         $RPM_BUILD_ROOT/etc/cron.daily/mnogo-dbgen
194
195 ln -sf ../../../..%{_defaultdocdir}/%{name} \
196         $RPM_BUILD_ROOT/home/httpd/html/%{name}/mnogodoc
197
198 install etc/search.htm-dist $RPM_BUILD_ROOT/home/httpd/html/search.html
199 install -d $RPM_BUILD_ROOT/home/httpd/cgi-bin
200
201 install $RPM_BUILD_ROOT%{_bindir}/search.cgi $RPM_BUILD_ROOT/home/httpd/cgi-bin/search.cgi
202 touch $RPM_BUILD_ROOT%{_sysconfdir}/mnogosearch.hostnames
203 install %{SOURCE1} \
204         $RPM_BUILD_ROOT/etc/cron.daily/mnogo-addnewlocalhostnames
205
206 gzip -z9 create/*
207
208 %clean
209 rm -rf $RPM_BUILD_ROOT
210
211 %post
212 cp %{_sysconfdir}/indexer.conf-dist %{_sysconfdir}/indexer.conf
213
214
215 cat << EOF
216 Please see docs (%{_defaultdocdir}/%{name} or http://localhost/mnogodoc), 
217 then read how to setup db connection, and put line like this 
218 "pgsql://user:password@/dbname/" into %{_sysconfdir}, then run sth like 
219 psql < %{_defaultdocdir}/%{name}/pgsql/*.txt
220 Now I will try to Create Tables for postgres: 
221 EOF
222 su postgres -c "psql -U postgres template1 -c 'CREATE DATABASE mnogosearch;' "
223 echo "Trying to Create Tables:"
224 su postgres -c "psql -U postgres mnogosearch < /usr/share/doc/mnogosearch-3.1.17/pgsql/create.txt"
225 echo "Trying to Create Tables for crc-multi storage method:"
226 su postgres -c "psql -U postgres mnogosearch < /usr/share/doc/mnogosearch-3.1.17/pgsql/crc-multi.txt"
227 echo "Mnogosearch user will be created with passwd aqq123 change it ! and I mean it realy !"
228 su postgres -c "psql -U postgres template1 -c 'CREATE USER "mnogosearch" WITH PASSWORD 'aqq123' NOCREATEDB NOCREATEUSER; ' "
229 echo "Granting Permisions..."
230 cat > /tmp/mnogo.aqq << EOF
231 GRANT ALL ON url,dict,robots,stopword,categories TO mnogosearch;
232
233 GRANT ALL ON ndict TO mnogosearch;
234
235 GRANT ALL ON ndict2,ndict3,ndict4,ndict5,ndict6,ndict7,ndict8,ndict9,
236 ndict10,ndict11,ndict12,ndict16,ndict32 TO mnogosearch;
237
238 GRANT ALL ON dict2,dict3,dict4,dict5,dict6,dict7,dict8,dict9,dict10,
239 dict11,dict12,dict16,dict32 TO mnogosearch;
240
241 GRANT ALL ON "qtrack" TO mnogosearch;
242 EOF
243 su postgres -c "psql -U postgres template1 -f /tmp/mnogo.aqq"
244 rm -f /tmp/mnogo.aqq
245
246 %files
247 %defattr(644,root,root,755)
248 %doc COPYING README doc/* create/* create/*/*
249 #%doc %{_infodir}/*
250 %dir /var/lib/%{name}
251 %attr (755,http,http) /home/httpd/cgi-bin/*
252 %attr (755,http,http) %{_bindir}/*
253 %attr (755,http,http) %{_sbindir}/*
254 %attr (755,http,http) %{_libdir}/*
255 #%attr (755,http,http) %{_libdir}/%{name}/*la
256 %config(noreplace) /home/httpd/html/%{name}/*
257 #%{_datadir}/%{name}/*
258 %config(noreplace) %verify(not size mtime md5) /home/httpd/html/search.html
259 %config(noreplace) %{_sysconfdir}/*
260 %config(noreplace) %attr(750,http,http) /etc/cron.daily/*
261
262 %files devel
263 %defattr(644,root,root,755)
264 #%{_includedir}/%{name}/*
265
266 %files static
267 %defattr(644,root,root,755)
268 #%{_libdir}/%{name}/*.a
This page took 0.103814 seconds and 4 git commands to generate.