2 %bcond_without ipv6 # without support for IPv6
4 Summary: WWW Offline Explorer - Caching Web Proxy Server (IPv6)
5 Summary(pl.UTF-8): Eksplorator Offline World Wide Web (IPv6)
11 Group: Networking/Daemons
12 Source0: http://www.gedanken.demon.co.uk/download-wwwoffle/%{name}-%{version}.tgz
13 # Source0-md5: 39f2dfcf421e0f33286f41043c3075ea
15 Source2: %{name}.sysconfig
16 Patch0: %{name}-replacement.patch
17 Patch1: %{name}-conf_settings.patch
18 Patch2: %{name}-namazu.patch
19 Patch3: %{name}-hyperestraier.patch
20 URL: http://www.gedanken.demon.co.uk/wwwoffle/
21 BuildRequires: autoconf
22 BuildRequires: automake
24 BuildRequires: gnutls-devel
25 BuildRequires: rpmbuild(macros) >= 1.268
26 BuildRequires: zlib-devel
27 Requires(post,preun): /sbin/chkconfig
28 Requires(postun): /usr/sbin/groupdel
29 Requires(postun): /usr/sbin/userdel
30 Requires(postun): sed >= 4.0
31 Requires(pre): /bin/id
32 Requires(pre): /usr/bin/getgid
33 Requires(pre): /usr/sbin/groupadd
34 Requires(pre): /usr/sbin/useradd
35 Requires(pre): fileutils
36 Requires(pre): sh-utils
37 Requires: rc-scripts >= 0.2.0
38 Provides: group(wwwoffle)
39 Provides: user(wwwoffle)
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 %define specflags_ia32 -fomit-frame-pointer
45 A proxy HTTP/FTP server for computers with dial-up internet access.
46 - Caching of pages viewed while connected for review later.
47 - Browsing of cached pages while not connected, with the ability to
48 follow links and mark other pages for download.
49 - Downloading of specified pages non-interactively.
50 - Monitoring of pages for regular download.
51 - Multiple indices of pages stored in cache for easy selection.
52 - Interactive or command line option to select pages for fetching
53 individually or recursively.
54 - All options controlled using a simple configuration file with a web
57 %description -l de.UTF-8
58 Ein (HTTP/FTP) Proxy Server für Computer mit Wählverbindungen ins
59 Internet. Folgendes wird unterstützt:
60 - Seiten werden lokal gespeichert und können jederzeit erneut
61 abgerufen werden, auch OHNE Verbindung ins Internet
62 - Seiten, die nicht lokal vorhanden sind, werden 'bestellt'.
63 - Seiten können abonniert, d.h. regelmäßig heruntergeladen, werden;
65 - Alle lokal vorhandenen Seiten sind auf verschiedene Weisen indiziert
67 - Steuerung erfolgt per Web-Browser, Kommandozeile und einer einfachen
69 - Jede Meldung von WWWOFFLE kann durch eigene ersetzt werden (so wurde
70 auch diese Übersetzung realisiert)
71 - WWWOFFLE unterstützt verschiedene Authentifikationsmethoden
73 %description -l es.UTF-8
74 Un servidor proxy HTTP/FTP para ordenadores con conexión intermitente
76 - Almacenado de páginas vistas mientras se estuvo conectado para
78 - Revisión de páginas almacenadas mientras no se está conectado, con
79 la habilidad de seguir enlaces y marcar otras páginas para recogida.
80 - Recogida de páginas especificadas de forma no interactiva.
81 - Monitorizado de páginas para recogida regular.
82 - Múltiples índices de las páginas almacenadas para una selección
84 - Opción para seleccionar páginas de forma interactiva o en línea de
85 comandos de manera individual o recursiva.
86 - Todas las opciones se contralan usando un simple fichero de
87 configuración con una página web para editarlo.
89 %description -l pl.UTF-8
90 Serwer proxy HTTP/FTP dla komputerów z dostępem do internetu typu
92 - Buforowanie stron przeglądanych podczas połączenia.
93 - Przeglądanie buforowanych stron bez potrzeby połączenia, z
94 możliwością podążania za łączami i oznaczania innych stron do
96 - Pobieranie określonych stron nieinteraktywnie.
97 - Monitorowanie stron dla regularnego pobierania.
98 - Wiele indeksów przechowywanych w buforze stron dla łatwego ich
100 - Interaktywne lub z linii komend opcje wyboru stron do pobrania
101 indywidualnie lub rekursywnie.
102 - Wszystkie opcje są kontrolowane przy użyciu prostego pliku
103 konfiguracji z możliwością edycji z poziomu strony web.
106 Summary: Indexing and searching WWWOFFLE's cache by Namazu
107 Summary(pl.UTF-8): Indeksowanie i przeszukiwanie cache'a WWWOFFLE przez Namazu
108 Group: Networking/Daemons
109 Requires: %{name} = %{epoch}:%{version}-%{release}
110 Requires: mknmz-wwwoffle >= 0.7.2-2
111 Requires: namazu-cgi >= 2.0.12-3
114 Indexing and searching WWWOFFLE's cache by Namazu.
116 %description namazu -l pl.UTF-8
117 Indeksowanie i przeszukiwanie cache'a WWWOFFLE przez Namazu.
119 %package hyperestraier
120 Summary: Indexing and searching WWWOFFLE's cache by Hyperestraier
121 Summary(pl.UTF-8): Indeksowanie i przeszukiwanie cache'a WWWOFFLE przez Hyperestraier
122 Group: Networking/Daemons
123 Requires: %{name} = %{epoch}:%{version}-%{release}
124 Requires: hyperestraier
126 %description hyperestraier
127 Indexing and searching WWWOFFLE's cache by Hyperestraier.
129 %description hyperestraier -l pl.UTF-8
130 Indeksowanie i przeszukiwanie cache'a WWWOFFLE przez Hyperestraier.
140 cp /usr/share/automake/config.sub .
146 %{?with_ipv6:--with-ipv6} \
147 --with-spooldir=%{_var}/cache/wwwoffle
149 CFLAGS="%{rpmcflags}" \
150 LDFLAGS="%{rpmldflags}"
153 rm -rf $RPM_BUILD_ROOT
154 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,%{name}/{hyperestraier,namazu}} \
155 $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/{ftp,prev{out,time}{1,2,3,4,5,6,7},temp}
158 DESTDIR=$RPM_BUILD_ROOT
160 mv -f $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/html $RPM_BUILD_ROOT%{_datadir}/%{name}
161 ln -s %{_datadir}/%{name} $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/html
163 # changes for wwwoffle-namazu
164 mv -f $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/search/namazu/conf/*rc \
165 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/namazu
166 mv -f $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/search/namazu/scripts/wwwoffle-mknmz-* \
167 $RPM_BUILD_ROOT%{_bindir}
169 # changes for wwwoffle-hyperestraier
170 mv -f $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/search/hyperestraier/conf/estseek.{conf,tmpl,top} \
171 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/hyperestraier
172 ln -sf %{_sysconfdir}/%{name}/hyperestraier/estseek.conf \
173 $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/search/hyperestraier/conf/estseek.conf
174 ln -sf %{_sysconfdir}/%{name}/hyperestraier/estseek.tmpl \
175 $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/search/hyperestraier/conf/estseek.tmpl
176 ln -sf %{_sysconfdir}/%{name}/hyperestraier/estseek.top \
177 $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/search/hyperestraier/conf/estseek.top
178 mv -f $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/search/hyperestraier/scripts/wwwoffle-estcmd-full \
179 $RPM_BUILD_ROOT%{_bindir}
181 install -d $RPM_BUILD_ROOT%{_mandir}/fr/man5
182 install doc/fr/wwwoffle.conf.man $RPM_BUILD_ROOT%{_mandir}/fr/man5/wwwoffle.conf.5
183 rm -f doc/fr/wwwoffle.conf.man*
185 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
186 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
188 mv doc/es/contrib/README doc/es/README-contrib
189 mv doc/es/testprogs/README doc/es/README-testprogs
190 rm -rf doc/es/{contrib,testprogs}
191 rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
193 %triggerpostun -- %{name} < 2.7
195 echo Note! Your existing cache and config file look earlier than
196 echo 2.7 version. There have been several major changes in config
197 echo file and some minor changes in cache handling. Read the file
198 echo NEWS and following at a pinch for details. All the necessary
199 echo files are available from within your documentation directory.
201 %triggerpostun -- %{name} < 2.8
203 chown wwwoffle:wwwoffle -R \
204 %{_var}/cache/wwwoffle/{ftp,http,lastout,lasttime,local,monitor,outgoing,temp,prevout[1-7],prevtime[1-7]}
207 rm -rf $RPM_BUILD_ROOT
210 test -h %{_var}/cache/wwwoffle/html || rm -rf %{_var}/cache/wwwoffle/html
213 %groupadd -g 119 -r -f wwwoffle
214 %useradd -o -r -u 119 -s /bin/false -g wwwoffle -c "%{name} daemon" -d /var/cache/wwwoffle wwwoffle
217 /sbin/chkconfig --add %{name}
218 %service %{name} restart "%{name} daemon"
221 if [ "$1" = "0" ]; then
222 %service %{name} stop
223 /sbin/chkconfig --del %{name}
227 if [ "$1" = "0" ]; then
229 %groupremove wwwoffle
233 %defattr(644,root,root,755)
234 %lang(de) %doc doc/de
235 %lang(es) %doc doc/es
236 %lang(fr) %doc doc/fr
237 %lang(pl) %doc doc/pl
238 %doc doc/{ANNOUNCE,CHANGES.CONF,FAQ,NEWS,README*}
239 %doc ChangeLog* conf/upgrade-config*
240 %attr(754,root,root) /etc/rc.d/init.d/%{name}
241 %attr(755,root,root) %{_bindir}/*
242 %attr(755,root,root) %{_sbindir}/*
243 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
244 %dir %{_sysconfdir}/%{name}
245 %attr(660,root,wwwoffle) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
246 %{_mandir}/man[158]/*
247 %lang(fr) %{_mandir}/fr/man5/*
248 %dir %{_datadir}/%{name}
249 %{_datadir}/%{name}/default
250 %{_datadir}/%{name}/en
251 %lang(de) %{_datadir}/%{name}/de
252 %lang(es) %{_datadir}/%{name}/es
253 %lang(fr) %{_datadir}/%{name}/fr
254 %lang(it) %{_datadir}/%{name}/it
255 %lang(nl) %{_datadir}/%{name}/nl
256 %lang(pl) %{_datadir}/%{name}/pl
257 %lang(ru) %{_datadir}/%{name}/ru
258 %defattr(664,wwwoffle,wwwoffle,775)
259 %dir %{_var}/cache/wwwoffle
260 #%%{_var}/cache/wwwoffle/[!o]*
261 %{_var}/cache/wwwoffle/html
262 %dir %{_var}/cache/wwwoffle/ftp
263 %dir %{_var}/cache/wwwoffle/http
264 %dir %{_var}/cache/wwwoffle/lastout
265 %dir %{_var}/cache/wwwoffle/lasttime
266 %dir %{_var}/cache/wwwoffle/local
267 %dir %{_var}/cache/wwwoffle/monitor
268 %dir %{_var}/cache/wwwoffle/outgoing
269 %config(missingok) %{_var}/cache/wwwoffle/outgoing/*
270 %dir %{_var}/cache/wwwoffle/prevout[1-7]
271 %dir %{_var}/cache/wwwoffle/prevtime[1-7]
272 %dir %{_var}/cache/wwwoffle/temp
273 %dir %{_var}/cache/wwwoffle/search
274 %dir %{_var}/cache/wwwoffle/search/htdig
275 %dir %{_var}/cache/wwwoffle/search/htdig/db
276 %dir %{_var}/cache/wwwoffle/search/htdig/db-lasttime
277 %dir %{_var}/cache/wwwoffle/search/htdig/tmp
278 %dir %{_var}/cache/wwwoffle/search/htdig/conf
279 %config(noreplace) %verify(not md5 mtime size) %{_var}/cache/wwwoffle/search/htdig/conf/*
280 %dir %{_var}/cache/wwwoffle/search/htdig/scripts
281 %attr(754,root,root) %{_var}/cache/wwwoffle/search/htdig/scripts/*
283 %dir %{_var}/cache/wwwoffle/search/mnogosearch
284 %dir %{_var}/cache/wwwoffle/search/mnogosearch/db
285 %dir %{_var}/cache/wwwoffle/search/mnogosearch/conf
286 %config(noreplace) %verify(not md5 mtime size) %{_var}/cache/wwwoffle/search/mnogosearch/conf/*
287 %dir %{_var}/cache/wwwoffle/search/mnogosearch/scripts
288 %attr(754,root,root) %{_var}/cache/wwwoffle/search/mnogosearch/scripts/*
291 %defattr(644,root,root,755)
292 %dir %{_var}/cache/wwwoffle/search/hyperestraier
293 %dir %{_var}/cache/wwwoffle/search/hyperestraier/conf
294 %dir %{_var}/cache/wwwoffle/search/hyperestraier/db
295 %dir %{_var}/cache/wwwoffle/search/hyperestraier/scripts
296 %attr(644,root,wwwoffle) %{_var}/cache/wwwoffle/search/hyperestraier/conf/estseek.conf
297 %attr(644,root,wwwoffle) %{_var}/cache/wwwoffle/search/hyperestraier/conf/estseek.tmpl
298 %attr(644,root,wwwoffle) %{_var}/cache/wwwoffle/search/hyperestraier/conf/estseek.top
299 %{_var}/cache/wwwoffle/search/hyperestraier/conf/estseek.help
300 %dir %{_sysconfdir}/%{name}/hyperestraier
301 %attr(640,root,wwwoffle) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/hyperestraier/estseek.conf
302 %attr(640,root,wwwoffle) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/hyperestraier/estseek.tmpl
303 %attr(640,root,wwwoffle) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/hyperestraier/estseek.top
304 %attr(750,root,root) %{_bindir}/wwwoffle-estcmd-full
305 %attr(750,root,wwwoffle) %{_var}/cache/wwwoffle/search/hyperestraier/scripts/wwwoffle-estseek
308 %defattr(644,root,root,755)
309 %dir %{_sysconfdir}/%{name}/namazu
310 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/namazu/*
311 %attr(755,root,root) %{_bindir}/wwwoffle-mknmz-*
312 %dir %{_var}/cache/wwwoffle/search/namazu/scripts
313 %attr(755,root,root) %{_var}/cache/wwwoffle/search/namazu/scripts/wwwoffle-namazu
314 %dir %{_var}/cache/wwwoffle/search/namazu
315 %dir %{_var}/cache/wwwoffle/search/namazu/db