]> git.pld-linux.org Git - packages/wwwoffle.git/blob - wwwoffle.spec
cf785076890cf367064d76194298948755de9988
[packages/wwwoffle.git] / wwwoffle.spec
1 # Conditional build:
2 %bcond_without  ipv6    # without support for IPv6
3 #
4 Summary:        WWW Offline Explorer - Caching Web Proxy Server (IPv6)
5 Summary(pl.UTF-8):      Eksplorator Offline World Wide Web (IPv6)
6 Name:           wwwoffle
7 Version:        2.9e
8 Release:        2
9 Epoch:          0
10 License:        GPL
11 Group:          Networking/Daemons
12 Source0:        http://www.gedanken.demon.co.uk/download-wwwoffle/%{name}-%{version}.tgz
13 # Source0-md5:  39f2dfcf421e0f33286f41043c3075ea
14 Source1:        %{name}.init
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
23 BuildRequires:  flex
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)
41
42 %define         specflags_ia32   -fomit-frame-pointer
43
44 %description
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
55   page to edit it.
56
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;
64   dies auch rekursiv.
65 - Alle lokal vorhandenen Seiten sind auf verschiedene Weisen indiziert
66   und durchsuchbar.
67 - Steuerung erfolgt per Web-Browser, Kommandozeile und einer einfachen
68   Konfigurationsdatei
69 - Jede Meldung von WWWOFFLE kann durch eigene ersetzt werden (so wurde
70   auch diese Übersetzung realisiert)
71 - WWWOFFLE unterstützt verschiedene Authentifikationsmethoden
72
73 %description -l es.UTF-8
74 Un servidor proxy HTTP/FTP para ordenadores con conexión intermitente
75 a internet.
76 - Almacenado de páginas vistas mientras se estuvo conectado para
77   releerlas más tarde.
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
83   fácil.
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.
88
89 %description -l pl.UTF-8
90 Serwer proxy HTTP/FTP dla komputerów z dostępem do internetu typu
91 dial-up.
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
95   pobrania.
96 - Pobieranie określonych stron nieinteraktywnie.
97 - Monitorowanie stron dla regularnego pobierania.
98 - Wiele indeksów przechowywanych w buforze stron dla łatwego ich
99   wyboru.
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.
104
105 %package namazu
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
112
113 %description namazu
114 Indexing and searching WWWOFFLE's cache by Namazu.
115
116 %description namazu -l pl.UTF-8
117 Indeksowanie i przeszukiwanie cache'a WWWOFFLE przez Namazu.
118
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
125
126 %description hyperestraier
127 Indexing and searching WWWOFFLE's cache by Hyperestraier.
128
129 %description hyperestraier -l pl.UTF-8
130 Indeksowanie i przeszukiwanie cache'a WWWOFFLE przez Hyperestraier.
131
132 %prep
133 %setup -q
134 %patch0 -p1
135 %patch1 -p1
136 %patch2 -p1
137 %patch3 -p1
138
139 %build
140 cp /usr/share/automake/config.sub .
141 %{__aclocal}
142 %{__autoconf}
143 %configure2_13 \
144         --with-gnutls \
145         --with-zlib \
146         %{?with_ipv6:--with-ipv6} \
147         --with-spooldir=%{_var}/cache/wwwoffle
148 %{__make} \
149         CFLAGS="%{rpmcflags}" \
150         LDFLAGS="%{rpmldflags}"
151
152 %install
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}
156
157 %{__make} install \
158         DESTDIR=$RPM_BUILD_ROOT
159
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
162
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}
168
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}
180
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*
184
185 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
186 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
187
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
192
193 %triggerpostun -- %{name} < 2.7
194
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.
200
201 %triggerpostun -- %{name} < 2.8
202
203 chown wwwoffle:wwwoffle -R \
204         %{_var}/cache/wwwoffle/{ftp,http,lastout,lasttime,local,monitor,outgoing,temp,prevout[1-7],prevtime[1-7]}
205
206 %clean
207 rm -rf $RPM_BUILD_ROOT
208
209 %pretrans
210 test -h %{_var}/cache/wwwoffle/html || rm -rf %{_var}/cache/wwwoffle/html
211
212 %pre
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
215
216 %post
217 /sbin/chkconfig --add %{name}
218 %service %{name} restart "%{name} daemon"
219
220 %preun
221 if [ "$1" = "0" ]; then
222         %service %{name} stop
223         /sbin/chkconfig --del %{name}
224 fi
225
226 %postun
227 if [ "$1" = "0" ]; then
228         %userremove wwwoffle
229         %groupremove wwwoffle
230 fi
231
232 %files
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/*
282
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/*
289
290 %files hyperestraier
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
306
307 %files namazu
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
This page took 0.096586 seconds and 2 git commands to generate.