]> git.pld-linux.org Git - packages/mnogosearch.git/blob - mnogosearch.spec
-adding hostnames is done now by script from /etc/cron.daily
[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 URL:            http://www.mnogosearch.ru/
13 BuildRequires:  postgresql-devel
14 PreReq:         webserver
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _sysconfdir     /etc/httpd/%{name}
18 %define         _localstatedir  /var/lib/mnogosearch
19
20 %description
21 The mnogosearch system is a complete world wide web indexing and
22 searching system for a small domain or intranet. This system is not
23 meant to replace the need for powerful internet-wide search systems
24 like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant to
25 cover the search needs for a single company, campus, or even a
26 particular sub section of a web site. Features:
27  - mp3 tag info
28  - news searching(?)
29  - http: (and ftp: - via proxy) URL schemaa
30  - charset guesser
31  - externel parsers
32  - support for ssl (https://)
33  - limiting queries to one hostname by sth like this: <INPUT TYPE=HIDDEN NAME=ul VALUE=http://www.something.com/>
34  - 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
35  
36
37 As opposed to some WAIS-based or web-server based search engines,
38 mnogsearch can span several web servers at a site. The type of these
39 different web servers doesn't matter as long as they understand the
40 HTTP 1.0 protocol. Mnogosearch supports also virtual domains.
41
42 %description -l pl
43 Mnogosearch jest kompletnym systemem indeksuj±cym i przeszukuj±cym www
44 dla ma³ych domen oraz intranetu. System nie zosta³ opracowany jako
45 wielki system typu Lycos, Infoseek WebCrawler i AltaVista. Natomiast
46 nadeje siê do zastosowania w pojedyñczej firmie, kampusie lub
47 jakiejkolwiek stronie www.
48 Zalety:
49  - przeszukiwaie tagow mp3
50  - wyszykiwanie w URLach http (i ftp: - przez proxy)
51  - zgadywanie zestawu znakow
52  - zewnetrzne przetwarzacze dokumentow na potrzeby indekosowania
53  - wsparcie dla ssl (https://)
54  - ograniczanie zapytañ do jednej nazwy hosta:  <INPUT TYPE=HIDDEN NAME=ul VALUE=http://www.something.com/>
55  - 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
56
57 W odró¿nieniu do innych bazuj±cych na WAIS-sie lub serwerch www
58 systemach, mnogosearch mo¿e ³±czyæ kilka serwerów www w jednym
59 miejscu. Typ serwera nie ma znaczenia, dopóki pracuje on zgodnie z
60 protoko³em HTTP 1.0. Pakiet wspó³pracuje równie¿ z domenami wirtualnymi
61
62 %package devel
63 Summary:        Include files and libraries for mnogo
64 Summary(pl):    Pliki nag³ówkowe dla mnogo
65 Group:          Development/Libraries
66 Group(de):      Entwicklung/Libraries
67 Group(fr):      Development/Librairies
68 Group(pl):      Programowanie/Biblioteki
69 Requires:       %{name} = %{version}
70
71 %description devel
72 The mnogosearch system is a complete world wide web indexing and
73 searching system for a small domain or intranet. This system is not
74 meant to replace the need for powerful internet-wide search systems
75 like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant to
76 cover the search needs for a single company, campus, or even a
77 particular sub section of a web site.
78
79 As opposed to some WAIS-based or web-server based search engines,
80 mnogosearch can span several web servers at a site. The type of these
81 different web servers doesn't matter as long as they understand the
82 HTTP 1.0 protocol. Mnogosearch supports also virtual domains.
83
84 This package contains devlopment files.
85
86 %package pgsql
87 Summary:        mnogosearch w/ pgsql storage-support 
88 Summary(pl):    mnogosearch z pgsqlem jako metod± przechowywania danych
89 Group:          Networking/Utilities
90 Group(de):      Netzwerkwesen/Werkzeuge
91 Group(pl):      Sieciowe/Narzêdzia
92 Requires:       %{name} = %{version}
93
94 %description pgsql
95 The mnogosearch system is a complete world wide web indexing and
96 searching system for a small domain or intranet. This system is not
97 meant to replace the need for powerful internet-wide search systems
98 like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant to
99 cover the search needs for a single company, campus, or even a
100 particular sub section of a web site.
101
102 As opposed to some WAIS-based or web-server based search engines,
103 mnogosearch can span several web servers at a site. The type of these
104 different web servers doesn't matter as long as they understand the
105 HTTP 1.0 protocol. Mnogosearch supports also virtual domains.
106
107 This package contains pgsql storage support.
108
109 %package static
110 Summary:        mnogo static libraries
111 Summary(pl):    Biblioteki statyczne mnogo
112 Group:          Development/Libraries
113 Group(de):      Entwicklung/Libraries
114 Group(fr):      Development/Librairies
115 Group(pl):      Programowanie/Biblioteki
116 Requires:       %{name}-devel = %{version}
117
118 %description static
119 The mnogosearch system is a complete world wide web indexing and
120 searching system for a small domain or intranet. This system is not
121 meant to replace the need for powerful internet-wide search systems
122 like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant to
123 cover the search needs for a single company, campus, or even a
124 particular sub section of a web site. As opposed to some WAIS-based or
125 web-server based search engines, mnogosearch can span several web servers
126 at a site. The type of these different web servers doesn't matter as
127 long as they understand the HTTP 1.0 protocol. Mnogosearch supports also 
128 virtual domains. This package contains static libraries of mnogosearch.
129
130 %prep
131 %setup -q
132 %patch0 -p1
133
134 %build
135 libtoolize --copy --force
136 aclocal
137 autoconf
138 automake -a -c
139 #where the hell is pgsql?
140 sed -e 's/usr\/include\/pgsql/usr\/include\/postgresql/' < configure.in > aqq
141 mv aqq  configure.in
142 %configure \
143         --enable-syslog      \
144         --enable-syslog=LOG_LOCAL6 \
145         --with-image-dir=/home/httpd/html/%{name} \
146         --with-cgi-bin-dir=/home/httpd/cgi-bin \
147         --with-search-dir=/home/httpd/html \
148         --with-config-dir=%{_sysconfdir}/http/%{name} \
149         --with-pgsql \
150         --with-openssl \
151         --enable-linux-pthreads \
152         --enable-charset-guesser \
153         --enable-news-extension \
154         --enable-fast-tag \
155         --enable-fast-cat \
156         --enable-fast-site \
157         --enable-phrase         
158
159 #  enable automatic Russian charset guesser :-]
160 # wy uze www.linux.ru procitacli sewodnja?
161
162 #  --with-msql[=DIR]       Include mSQL support.  DIR is the mSQL base
163 #  --with-iodbc[=DIR]      Include iODBC support.  DIR is the iODBC base
164 #  --with-unixODBC[=DIR]   Include unixODBC support.  DIR is the unixODBC base
165 #  --with-solid[=DIR]      Include Solid support.  DIR is the Solid base
166 #  --with-openlink[=DIR]   Include OpenLink ODBC support. 
167 #  --with-easysoft[=DIR]   Include EasySoft ODBC support. 
168 #  --with-sapdb[=DIR]      Include SAPDB support.  DIR is the SAPDB base
169 #  --with-ibase[=DIR]      Include InterBase support.  DIR is the InterBase
170 #  --with-oracle7[=DIR]    Include Oracle 7.3 support.  DIR is the Oracle
171 #  --with-oracle8[=DIR]    Include Oracle8 support.  DIR is the Oracle
172 #  --with-oracle8i[=DIR]   Include Oracle8i support.  DIR is the Oracle
173 #       --with-buildin \
174 #       --with-mysql \
175 #       
176 # FIXME: add selection of storage method, spliting into %{name}-common & %{name}-$DB_NAME
177
178 %{__make}
179
180 %install
181 install -d $RPM_BUILD_ROOT{/var/lib/mnogosearch,/etc/cron.daily} \
182         $RPM_BUILD_ROOT/home/httpd/html/%{name} $RPM_BUILD_ROOT%{_sysconfdir}
183
184 %{__make} DESTDIR=$RPM_BUILD_ROOT install
185
186 ln -sf ../..%{_sbindir}/indexer \
187         $RPM_BUILD_ROOT/etc/cron.daily/mnogo-dbgen
188
189 ln -sf ../../../..%{_defaultdocdir}/%{name} \
190         $RPM_BUILD_ROOT/home/httpd/html/%{name}/mnogodoc
191
192 install etc/search.htm-dist $RPM_BUILD_ROOT/home/httpd/html/search.html
193 install -d $RPM_BUILD_ROOT/home/httpd/cgi-bin
194
195 install $RPM_BUILD_ROOT%{_bindir}/search.cgi $RPM_BUILD_ROOT/home/httpd/cgi-bin/search.cgi
196 touch $RPM_BUILD_ROOT%{_sysconfdir}/mnogosearch.hostnames
197 install mnogo-addnewlocalhostnames \
198         $RPM_BUILD_ROOT/etc/cron.daily/mnogo-addnewlocalhostnames
199
200 gzip -z9 create/*
201
202 %clean
203 rm -rf $RPM_BUILD_ROOT
204
205 %post
206 cp %{_sysconfdir}/indexer.conf-dist %{_sysconfdir}/indexer.conf
207
208
209 cat << EOF
210 Please see docs (%{_defaultdocdir}/%{name} or http://localhost/mnogodoc), then read how to setup db connection,
211 and put line like this "pgsql://user:password@/dbname/" into %{_sysconfdir}, then run sth like psql < %{_defaultdocdir}/%{name}/pgsql/*.txt
212
213 EOF
214
215 %files
216 %defattr(644,root,root,755)
217 %doc COPYING README doc/* create/*
218 %dir /var/lib/%{name}
219 %attr (755,http,http) /home/httpd/cgi-bin/*
220 %attr (755,http,http) %{_bindir}/*
221 %attr (755,http,http) %{_sbindir}/*
222 %attr (755,http,http) %{_libdir}/*
223 #%attr (755,http,http) %{_libdir}/%{name}/*la
224 %config(noreplace) /home/httpd/html/%{name}/*
225 #%{_datadir}/%{name}/*
226 %config(noreplace) %verify(not size mtime md5) /home/httpd/html/search.html
227 %config(noreplace) %{_sysconfdir}/*
228 %config(noreplace) %attr(750,http,http) /etc/cron.daily/*
229
230 #%files devel
231 #%defattr(644,root,root,755)
232 #%{_includedir}/%{name}/*
233
234 #%files static
235 #%defattr(644,root,root,755)
236 #%{_libdir}/%{name}/*.a
This page took 0.110173 seconds and 4 git commands to generate.