]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - post script is nightmare | |
3 | # | |
4 | # Conditional build: | |
5 | %bcond_with largefiles # enable largefiles (disables tagged hash) | |
6 | # | |
7 | %include /usr/lib/rpm/macros.perl | |
8 | Summary: INN, the InterNet News System (news server) | |
9 | Summary(de.UTF-8): das InterNet News System (News-Server) | |
10 | Summary(es.UTF-8): INN, InterNet News System (servidor news) | |
11 | Summary(fr.UTF-8): INN, le système InterNet News (serveur de news) | |
12 | Summary(pl.UTF-8): INN, serwer nowinek | |
13 | Summary(pt_BR.UTF-8): INN, InterNet News System (servidor news) | |
14 | Summary(tr.UTF-8): INN, InterNet Haber Sistemi (haber sunucu) | |
15 | Name: inn | |
16 | Version: 2.4.3 | |
17 | Release: 0.1 | |
18 | License: distributable | |
19 | Group: Networking/Daemons | |
20 | Source0: ftp://ftp.isc.org/isc/inn/%{name}-%{version}.tar.gz | |
21 | # Source0-md5: 6caa10909a7bf55fb91535685990aec9 | |
22 | Source1: %{name}-default-active | |
23 | Source2: %{name}-default-distributions | |
24 | Source3: %{name}-default-newsgroups | |
25 | Source4: %{name}.crontab | |
26 | Source5: %{name}.init | |
27 | Source6: %{name}-cnfsstat.cron | |
28 | Source7: %{name}.logrotate | |
29 | Source8: getlist.1.pl | |
30 | Source9: %{name}d.8.pl | |
31 | Patch0: %{name}-PLD.patch | |
32 | Patch1: %{name}-install.patch | |
33 | Patch2: %{name}-db.patch | |
34 | Patch3: %{name}-ac25x.patch | |
35 | Patch4: %{name}-ac253.patch | |
36 | Patch5: %{name}-setgid.patch | |
37 | Patch6: %{name}-db4.patch | |
38 | Patch7: %{name}-lib_install_modes.patch | |
39 | Patch8: %{name}-config.patch | |
40 | Patch9: %{name}-db4.4.patch | |
41 | Patch10: %{name}-libdir.patch | |
42 | URL: http://www.isc.org/sw/inn/ | |
43 | BuildRequires: fix-%post-script-first | |
44 | BuildRequires: autoconf | |
45 | BuildRequires: automake | |
46 | BuildRequires: bison | |
47 | BuildRequires: db-devel | |
48 | BuildRequires: flex | |
49 | BuildRequires: libtool >= 1:1.4.2-9 | |
50 | BuildRequires: openssl-devel >= 0.9.7d | |
51 | BuildRequires: perl-devel >= 1:5.8.0 | |
52 | BuildRequires: rpmbuild(macros) >= 1.268 | |
53 | Requires(post): /bin/kill | |
54 | Requires(post): /usr/bin/getent | |
55 | Requires(post): /usr/sbin/usermod | |
56 | Requires(post): fileutils | |
57 | Requires(post): sed >= 4.0 | |
58 | Requires(post): textutils | |
59 | Requires(post,preun): /sbin/chkconfig | |
60 | Requires: %{name}-libs = %{version}-%{release} | |
61 | Requires: /etc/cron.d | |
62 | Requires: awk | |
63 | Requires: cleanfeed >= 0.95.7b-4 | |
64 | Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION') | |
65 | Requires: procps | |
66 | Requires: psmisc >= 20.1 | |
67 | Requires: rc-scripts >= 0.2.0 | |
68 | Requires: textutils | |
69 | Requires: util-linux | |
70 | Provides: nntpserver | |
71 | Obsoletes: leafnode | |
72 | Obsoletes: leafnode+ | |
73 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
74 | ||
75 | %define _sysconfdir /etc/news | |
76 | %define _includedir %{_prefix}/include/inn | |
77 | ||
78 | # /usr/bin/pullnews doesn't provide perl(Net::NNTP) - perl-libnet does. | |
79 | %define _noautoprov 'perl(Net::NNTP)' | |
80 | # it's necessary only for sample nnrpd_auth.pl hook | |
81 | %define _noautoreq 'perl(CDB_File)' | |
82 | ||
83 | %description | |
84 | INN is a news server, which can be set up to handle USENET news, as | |
85 | well as private "newsfeeds". There is a *LOT* of information about | |
86 | setting up INN in %{_docdir}/%{name}-%{version} -- read it. | |
87 | ||
88 | If you want innreport to generate graphs you need perl-GD package. | |
89 | ||
90 | %description -l es.UTF-8 | |
91 | INN es un servidor de news, que puede ser configurado para manipular | |
92 | USENET news bien como newsfeeds privadas. Existe un *Montón* de | |
93 | información sobre la configuración del INN en %{_docdir}/%{name}-%{version} -- léela. | |
94 | ||
95 | %description -l pl.UTF-8 | |
96 | INN jest serwerem news, który można skonfigurować do obsługi USENET-u, | |
97 | jak również do obsługi ,,prywatnych'' grup w sieciach intranetowych. | |
98 | Całe mnóstwo pożytecznych informacji o konfigurowaniu INN-a znajdziesz | |
99 | w katalogu %{_docdir}/%{name}-%{version}. | |
100 | ||
101 | Jeśli chcesz żeby innreport generował wykresy musisz zainstalować | |
102 | pakiet perl-GD. | |
103 | ||
104 | %description -l pt_BR.UTF-8 | |
105 | INN é um servidor de news, que pode ser configurado para manipular | |
106 | USENET news bem como newsfeeds privadas. Existe um *MONTE* de | |
107 | informações sobre a configuração do INN em %{_docdir}/%{name}-%{version} -- leia. | |
108 | ||
109 | %package libs | |
110 | Summary: INN libraries | |
111 | Summary(de.UTF-8): INN-Library | |
112 | Summary(fr.UTF-8): Bibliothèque INN | |
113 | Summary(pl.UTF-8): Biblioteki do INN-a | |
114 | Group: Development/Libraries | |
115 | ||
116 | %description libs | |
117 | This library is needed by several programs that interface to INN, such | |
118 | as newsgate or tin. | |
119 | ||
120 | %description libs -l de.UTF-8 | |
121 | Diese Library wird von mehreren Programmen benötigt, die mit INN | |
122 | kommunizieren, etwa newsgate oder tin. | |
123 | ||
124 | %description libs -l fr.UTF-8 | |
125 | Cette bibliothèque est nécessaire à plusieurs programmes qui | |
126 | s'interfacent avec INN, comme newsgate ou tin. | |
127 | ||
128 | %description libs -l pl.UTF-8 | |
129 | Biblioteka niezbędna do działania kilku programów współpracujących z | |
130 | INN-em, takich jak newsgate czy tin. | |
131 | ||
132 | %description libs -l tr.UTF-8 | |
133 | INN ile arayüz gerektiren programlar için (newsgate, tin gibi) gereken | |
134 | bir kitaplıktır. | |
135 | ||
136 | %package devel | |
137 | Summary: INN header files and development documentations | |
138 | Summary(de.UTF-8): INN-Library | |
139 | Summary(es.UTF-8): Biblioteca INN | |
140 | Summary(fr.UTF-8): Bibliothèque INN | |
141 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do inn-a | |
142 | Summary(pt_BR.UTF-8): Biblioteca INN | |
143 | Summary(tr.UTF-8): INN kitaplığı | |
144 | Group: Development/Libraries | |
145 | Requires: %{name}-libs = %{version}-%{release} | |
146 | Requires: db-devel | |
147 | ||
148 | %description devel | |
149 | Header files and developer documentations for INN libraries. | |
150 | ||
151 | %description devel -l de.UTF-8 | |
152 | Diese Library wird von mehreren Programmen benötigt, die mit INN | |
153 | kommunizieren, etwa newsgate oder tin. | |
154 | ||
155 | %description devel -l es.UTF-8 | |
156 | Esta biblioteca es requerida por varios programas que tienen interface | |
157 | con INN, como el newsgate o tin. | |
158 | ||
159 | %description devel -l fr.UTF-8 | |
160 | Cette bibliothèque est nécessaire à plusieurs programmes qui | |
161 | s'interfacent avec INN, comme newsgate ou tin. | |
162 | ||
163 | %description devel -l pl.UTF-8 | |
164 | Pliki nagłówkowe i dokumentacja programisty do bibliotek INN-a. | |
165 | ||
166 | %description devel -l pt_BR.UTF-8 | |
167 | Esta biblioteca é requerida por vários programas que tem interface com | |
168 | o INN, como o newsgate ou tin. | |
169 | ||
170 | %description devel -l tr.UTF-8 | |
171 | INN ile arayüz gerektiren programlar için (newsgate, tin gibi) gereken | |
172 | bir kitaplıktır. | |
173 | ||
174 | %package static | |
175 | Summary: Static INN libraries | |
176 | Summary(es.UTF-8): Static libraries for inn development | |
177 | Summary(pl.UTF-8): Biblioteki statyczne do INN | |
178 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com inn | |
179 | Group: Development/Libraries | |
180 | Requires: %{name}-devel = %{version}-%{release} | |
181 | ||
182 | %description static | |
183 | Static INN libraries. | |
184 | ||
185 | %description static -l es.UTF-8 | |
186 | Static libraries for inn development | |
187 | ||
188 | %description static -l pl.UTF-8 | |
189 | Biblioteki statyczne do INN. | |
190 | ||
191 | %description static -l pt_BR.UTF-8 | |
192 | INN é um servidor de news, que pode ser configurado para manipular | |
193 | USENET news bem como newsfeeds privadas. Existe um *MONTE* de | |
194 | informações sobre a configuração do INN em /usr/doc -- leia. | |
195 | ||
196 | Bibliotecas estáticas para desenvolvimento com inn | |
197 | ||
198 | %package -n inews | |
199 | Summary: Inews program (used for posting by inn and trn) | |
200 | Summary(de.UTF-8): Inews-Programm (für die Zustellung mit inn und trn) | |
201 | Summary(es.UTF-8): Programa Inews (usado para franqueo por inn y trn) | |
202 | Summary(fr.UTF-8): Programme inews (utilisé par inn et trn pour poster) | |
203 | Summary(pl.UTF-8): Inews - program do wysyłania artykułów (używany przez inn i trn) | |
204 | Summary(pt_BR.UTF-8): Programa Inews (usado para postagem pelo inn e trn) | |
205 | Summary(tr.UTF-8): Haber biçimlendirme programı | |
206 | Group: Networking/News | |
207 | Requires: %{name}-libs = %{version}-%{release} | |
208 | ||
209 | %description -n inews | |
210 | The inews program is used by some news readers to post news. It does | |
211 | some consistency checking and header reformatting, and forwards the | |
212 | article on to the news server specified in inn.conf. | |
213 | ||
214 | %description -n inews -l de.UTF-8 | |
215 | Das Programm 'inews' wird von manchen Newsreadern zum Senden von | |
216 | Nachrichten verwendet. Es führt eine Konsistenzprüfung und Header-Neuf | |
217 | ormatierung aus und leitet die Nachricht an den in 'inn.conf' | |
218 | angegebenen News-Server weiter. | |
219 | ||
220 | %description -n inews -l es.UTF-8 | |
221 | El programa inews se usa por algunos lectores de news para postar | |
222 | mensajes. Hace alguna consistencia chequeando y reformateando headers, | |
223 | y enviando el artículo para el servidor de news especificado en el | |
224 | inn.conf. | |
225 | ||
226 | %description -n inews -l fr.UTF-8 | |
227 | Le programme inews est utilisé par certains lecteurs de news pour | |
228 | poster les articles. Il effectue des vérifications et un reformatage | |
229 | des en-têtes et fait suivre l'article au serveur de news spécifié dans | |
230 | inn.conf. | |
231 | ||
232 | %description -n inews -l pl.UTF-8 | |
233 | Inews jest używany przez niektóre czytniki news do wysyłania | |
234 | artykułów. Sprawdza budowę artykułu, przepisuje nagłówek i wysyła do | |
235 | serwera news wyszczególnionego w inn.conf. | |
236 | ||
237 | %description -n inews -l pt_BR.UTF-8 | |
238 | O programa inews é usado por alguns leitores de news para postar | |
239 | mensagens. Ele faz alguma consistência checando e reformatando | |
240 | headers, e enviando o artigo para o servidor de news especificado no | |
241 | inn.conf. | |
242 | ||
243 | %description -n inews -l tr.UTF-8 | |
244 | inews programı bazı haber okuyucular tarafından haber yollamak | |
245 | amacıyla kullanılır. Program bazı güvenlik denetimleri ve başlık | |
246 | biçimlendirmesi yaparak ve inn.conf dosyasında belirtilen haber | |
247 | sunucuya makaleyi yollar. | |
248 | ||
249 | %prep | |
250 | %setup -q | |
251 | %patch0 -p1 | |
252 | %patch1 -p1 | |
253 | %patch2 -p1 | |
254 | %patch3 -p1 | |
255 | %patch4 -p1 | |
256 | %patch5 -p1 | |
257 | %patch6 | |
258 | %patch7 -p1 | |
259 | %patch8 -p1 | |
260 | %patch9 -p1 | |
261 | %patch10 -p1 | |
262 | ||
263 | touch innfeed/*.[ly] | |
264 | ||
265 | %build | |
266 | %{__libtoolize} | |
267 | %{__aclocal} | |
268 | %{__autoconf} | |
269 | %configure \ | |
270 | CFLAGS="%{rpmcflags} -D_GNU_SOURCE" \ | |
271 | --with-news-user=news \ | |
272 | --with-news-group=news \ | |
273 | --with-news-master=news \ | |
274 | --with-control-dir=%{_datadir}/news/control \ | |
275 | --with-db-dir=/var/lib/news \ | |
276 | --with-etc-dir=%{_sysconfdir} \ | |
277 | --with-filter-dir=%{_datadir}/news/filter \ | |
278 | --with-log-dir=/var/log/news \ | |
279 | --with-run-dir=/var/run/news \ | |
280 | --with-spool-dir=/var/spool/news \ | |
281 | --with-lib-dir=%{_datadir}/news \ | |
282 | --with-tmp-dir=/var/spool/news/incoming/tmp \ | |
283 | --with-perl \ | |
284 | --with-sendmail=/usr/lib/sendmail \ | |
285 | --with-openssl=%{_prefix} \ | |
286 | --with-berkeleydb=%{_prefix} \ | |
287 | %{?with_largefiles:--enable-largefiles} \ | |
288 | %{!?with_largefiles:--enable-tagged-hash} \ | |
289 | --enable-merge-to-groups \ | |
290 | --enable-pgp-verify \ | |
291 | --enable-shared \ | |
292 | --enable-static \ | |
293 | --enable-libtool \ | |
294 | --enable-ipv6 \ | |
295 | --enable-dual-socket | |
296 | ||
297 | %{__make} all \ | |
298 | PATHFILTER=%{_datadir}/news/filter \ | |
299 | PATHCONTROL=%{_datadir}/news/control | |
300 | ||
301 | %install | |
302 | rm -rf $RPM_BUILD_ROOT | |
303 | install -d $RPM_BUILD_ROOT/etc/{news,rc.d/init.d,cron.d,logrotate.d} \ | |
304 | $RPM_BUILD_ROOT{%{_libdir}/news/{rnews,auth/generic},%{_includedir}} \ | |
305 | $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/news/{control,filter,auth}} \ | |
306 | $RPM_BUILD_ROOT%{_mandir}/{man{1,3,5,8},pl/man{1,8}} \ | |
307 | $RPM_BUILD_ROOT/var/{run/news,lib/news/backoff,log/{news,archiv/news}} \ | |
308 | $RPM_BUILD_ROOT/var/spool/news/{articles,overview,incoming/{tmp,bad},outgoing,archive,uniover,innfeed,cycbuffs} \ | |
309 | $RPM_BUILD_ROOT/home/services/news | |
310 | ||
311 | %{__make} install \ | |
312 | DESTDIR=$RPM_BUILD_ROOT \ | |
313 | PATHFILTER=%{_datadir}/news/filter \ | |
314 | PATHCONTROL=%{_datadir}/news/control \ | |
315 | PATHRNEWS=%{_libdir}/news/rnews \ | |
316 | PATHAUTHPASSWD=%{_libdir}/news/auth/passwd \ | |
317 | PATHAUTHRESOLV=%{_libdir}/news/auth/resolv | |
318 | ||
319 | install samples/readers.conf $RPM_BUILD_ROOT%{_sysconfdir}/readers.conf | |
320 | ||
321 | install %{SOURCE1} $RPM_BUILD_ROOT/var/lib/news/active | |
322 | install %{SOURCE2} $RPM_BUILD_ROOT/var/lib/news/distributions | |
323 | install %{SOURCE3} $RPM_BUILD_ROOT/var/lib/news/newsgroups | |
324 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/cron.d/inn | |
325 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/inn | |
326 | install %{SOURCE6} $RPM_BUILD_ROOT%{_bindir}/cnfsstat.cron | |
327 | install %{SOURCE7} $RPM_BUILD_ROOT/etc/logrotate.d/inn | |
328 | install %{SOURCE8} $RPM_BUILD_ROOT%{_mandir}/pl/man1/getlist.1 | |
329 | install %{SOURCE9} $RPM_BUILD_ROOT%{_mandir}/pl/man8/innd.8 | |
330 | ||
331 | rm -f $RPM_BUILD_ROOT/var/lib/news/history | |
332 | ||
333 | umask 002 | |
334 | > $RPM_BUILD_ROOT%{_sysconfdir}/subscriptions | |
335 | touch $RPM_BUILD_ROOT/var/lib/news/history | |
336 | touch $RPM_BUILD_ROOT/var/lib/news/.news.daily | |
337 | touch $RPM_BUILD_ROOT/var/lib/news/active.times | |
338 | ||
339 | LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_bindir}/makehistory \ | |
340 | -a $RPM_BUILD_ROOT/var/lib/news/active \ | |
341 | -i -r -f $RPM_BUILD_ROOT/var/lib/news/history || : | |
342 | ||
343 | # Fix perms in sample directory to avoid bogus dependencies | |
344 | find samples -name "*.in" -exec chmod a-x {} \; | |
345 | ||
346 | # remove files in conflict with cleanfeed | |
347 | rm -f $RPM_BUILD_ROOT%{_datadir}/news/filter/filter_innd.* | |
348 | ||
349 | # remove unpackaged files | |
350 | rm -rf $RPM_BUILD_ROOT%{_prefix}/doc | |
351 | rm -f $RPM_BUILD_ROOT%{_bindir}/rc.news | |
352 | ||
353 | %clean | |
354 | rm -rf $RPM_BUILD_ROOT | |
355 | ||
356 | %post | |
357 | if [ "`getent passwd news | cut -d: -f6`" = "/var/spool/news" ]; then | |
358 | /usr/sbin/usermod -d /home/services/news news | |
359 | fi | |
360 | umask 022 | |
361 | if [ -f /var/lib/news/history ]; then | |
362 | cd /var/lib/news | |
363 | %{_bindir}/makedbz -s `wc -l <history` -f history | |
364 | for i in dir hash index pag; do | |
365 | [ -f history.n.$i ] && mv history.n.$i history.$i | |
366 | done | |
367 | chown news:news history.* | |
368 | chmod 644 history.* | |
369 | else | |
370 | cd /var/lib/news | |
371 | # FIXME: this will fail immediately as it needs *configured* | |
372 | # inn.conf, but PLD default rpm doesn't provide one! | |
373 | %{_bindir}/makehistory | |
374 | %{_bindir}/makedbz -s `wc -l <history` -f history | |
375 | for i in dir hash index pag; do | |
376 | [ -f history.n.$i ] && mv history.n.$i history.$i | |
377 | done | |
378 | chown news:news history history.* | |
379 | chmod 644 history history.* | |
380 | fi | |
381 | ||
382 | if [ ! -f /var/lib/news/active.times ]; then | |
383 | touch /var/lib/news/active.times | |
384 | chown news:news /var/lib/news/active.times | |
385 | fi | |
386 | ||
387 | if [ ! -f /var/lib/news/.news.daily ]; then | |
388 | touch /var/lib/news/.news.daily | |
389 | chown news:news /var/lib/news/.news.daily | |
390 | chmod 664 /var/lib/news/.news.daily | |
391 | fi | |
392 | ||
393 | /sbin/chkconfig --add inn | |
394 | %service inn restart "inn news server" | |
395 | ||
396 | %preun | |
397 | if [ "$1" = "0" ]; then | |
398 | %service inn stop | |
399 | /sbin/chkconfig --del inn | |
400 | fi | |
401 | ||
402 | %triggerpostun -- inn < 2.4.0 | |
403 | cp -af %{_sysconfdir}/inn.conf{,.rpmorig} | |
404 | sed -e 's/^\(listenonipv6\)/#\1/;s/^bindipv6address/bindaddress6/;s/^sourceipv6address/sourceaddress6/' \ | |
405 | %{_sysconfdir}/inn.conf.rpmorig > %{_sysconfdir}/inn.conf | |
406 | ||
407 | %post libs -p /sbin/ldconfig | |
408 | %postun libs -p /sbin/ldconfig | |
409 | ||
410 | %files | |
411 | %defattr(644,root,root,755) | |
412 | %doc CONTRIBUTORS ChangeLog INSTALL LICENSE NEWS README TODO doc/[Icehs]* | |
413 | %attr(700,news,news) %dir /home/services/news | |
414 | ||
415 | # DB | |
416 | %attr(770,root,news) %dir /var/lib/news | |
417 | %attr(770,root,news) %dir /var/lib/news/backoff | |
418 | %attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/active | |
419 | %attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/distributions | |
420 | %attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/newsgroups | |
421 | %attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/active.times | |
422 | %attr(664,news,news) %ghost /var/lib/news/.news.daily | |
423 | %attr(664,news,news) %ghost /var/lib/news/history | |
424 | ||
425 | # LOGS | |
426 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/inn | |
427 | %attr(770,news,news) %dir /var/run/news | |
428 | ||
429 | # SPOOL | |
430 | %attr(771,root,news) %dir /var/spool/news | |
431 | %attr(770,root,news) %dir /var/spool/news/archive | |
432 | %attr(770,root,news) %dir /var/spool/news/articles | |
433 | %attr(770,root,news) %dir /var/spool/news/cycbuffs | |
434 | %attr(770,root,news) %dir /var/spool/news/incoming | |
435 | %attr(770,root,news) %dir /var/spool/news/incoming/bad | |
436 | %attr(770,root,news) %dir /var/spool/news/incoming/tmp | |
437 | %attr(770,root,news) %dir /var/spool/news/innfeed | |
438 | %attr(770,root,news) %dir /var/spool/news/outgoing | |
439 | %attr(770,root,news) %dir /var/spool/news/overview | |
440 | %attr(770,root,news) %dir /var/spool/news/uniover | |
441 | ||
442 | # CRON PARTS | |
443 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/inn | |
444 | ||
445 | # RC-SCRIPT | |
446 | %attr(754,root,root) /etc/rc.d/init.d/inn | |
447 | ||
448 | # CONFIGS (INN is a one big config ;-) | |
449 | %attr(755,root,news) %dir %{_sysconfdir} | |
450 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/actsync.cfg | |
451 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/actsync.ign | |
452 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/buffindexed.conf | |
453 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/control.ctl | |
454 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cycbuff.conf | |
455 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/distrib.pats | |
456 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/expire.ctl | |
457 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/incoming.conf | |
458 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/inn.conf | |
459 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/innfeed.conf | |
460 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/innreport.conf | |
461 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/innwatch.ctl | |
462 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/moderators | |
463 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/motd.news | |
464 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/news2mail.cf | |
465 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/newsfeeds | |
466 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nnrpd.track | |
467 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nntpsend.ctl | |
468 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ovdb.conf | |
469 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/overview.fmt | |
470 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/passwd.nntp | |
471 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radius.conf | |
472 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/readers.conf | |
473 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sasl.conf | |
474 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/storage.conf | |
475 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/subscriptions | |
476 | ||
477 | %attr(755,root,news) %dir %{_datadir}/news | |
478 | %attr(755,root,root) %dir %{_datadir}/news/control | |
479 | %attr(755,root,root) %dir %{_datadir}/news/filter | |
480 | ||
481 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/innreport_inn.pm | |
482 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/innshellvars | |
483 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/innshellvars.pl | |
484 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/innshellvars.tcl | |
485 | ||
486 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/INN.py | |
487 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/filter_nnrpd.pl | |
488 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/filter.tcl | |
489 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/nnrpd_auth.pl | |
490 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/nnrpd_auth.py | |
491 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/startup_innd.pl | |
492 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/startup.tcl | |
493 | ||
494 | %attr(755,root,root) %{_datadir}/news/control/checkgroups.pl | |
495 | %attr(755,root,root) %{_datadir}/news/control/ihave.pl | |
496 | %attr(755,root,root) %{_datadir}/news/control/newgroup.pl | |
497 | %attr(755,root,root) %{_datadir}/news/control/rmgroup.pl | |
498 | %attr(755,root,root) %{_datadir}/news/control/sendme.pl | |
499 | %attr(755,root,root) %{_datadir}/news/control/sendsys.pl | |
500 | %attr(755,root,root) %{_datadir}/news/control/senduuname.pl | |
501 | %attr(755,root,root) %{_datadir}/news/control/version.pl | |
502 | ||
503 | %attr(755,root,news) %dir %{_libdir}/news | |
504 | %attr(755,root,root) %dir %{_libdir}/news/auth | |
505 | %attr(755,root,root) %dir %{_libdir}/news/auth/generic | |
506 | %attr(755,root,root) %dir %{_libdir}/news/auth/passwd | |
507 | %attr(755,root,root) %dir %{_libdir}/news/auth/resolv | |
508 | %attr(755,root,root) %dir %{_libdir}/news/rnews | |
509 | ||
510 | %attr(755,root,root) %{_libdir}/news/auth/passwd/* | |
511 | %attr(755,root,root) %{_libdir}/news/auth/resolv/* | |
512 | %attr(755,root,root) %{_libdir}/news/rnews/* | |
513 | ||
514 | # SUID | |
515 | %attr(4754,root,news) %{_bindir}/inndstart | |
516 | %attr(4754,root,news) %{_bindir}/startinnfeed | |
517 | %attr(4754,root,news) %{_bindir}/rnews | |
518 | ||
519 | # BINARIES | |
520 | %attr(755,root,root) %{_bindir}/actmerge | |
521 | %attr(755,root,root) %{_bindir}/actsync | |
522 | %attr(755,root,root) %{_bindir}/actsyncd | |
523 | %attr(755,root,root) %{_bindir}/archive | |
524 | %attr(755,root,root) %{_bindir}/batcher | |
525 | %attr(755,root,root) %{_bindir}/buffchan | |
526 | %attr(755,root,root) %{_bindir}/cnfsheadconf | |
527 | %attr(755,root,root) %{_bindir}/cnfsstat | |
528 | %attr(755,root,root) %{_bindir}/cnfsstat.cron | |
529 | %attr(755,root,root) %{_bindir}/controlbatch | |
530 | %attr(755,root,root) %{_bindir}/controlchan | |
531 | %attr(755,root,root) %{_bindir}/convdate | |
532 | %attr(755,root,root) %{_bindir}/ctlinnd | |
533 | %attr(755,root,root) %{_bindir}/cvtbatch | |
534 | %attr(755,root,root) %{_bindir}/docheckgroups | |
535 | %attr(755,root,root) %{_bindir}/expire | |
536 | %attr(755,root,root) %{_bindir}/expireover | |
537 | %attr(755,root,root) %{_bindir}/expirerm | |
538 | %attr(755,root,root) %{_bindir}/fastrm | |
539 | %attr(755,root,root) %{_bindir}/filechan | |
540 | %attr(755,root,root) %{_bindir}/getlist | |
541 | %attr(755,root,root) %{_bindir}/gpgverify | |
542 | %attr(755,root,root) %{_bindir}/grephistory | |
543 | %attr(755,root,root) %{_bindir}/imapfeed | |
544 | %attr(755,root,root) %{_bindir}/inncheck | |
545 | %attr(755,root,root) %{_bindir}/innconfval | |
546 | %attr(755,root,root) %{_bindir}/innd | |
547 | %attr(755,root,root) %{_bindir}/inndf | |
548 | %attr(755,root,root) %{_bindir}/innfeed | |
549 | %attr(755,root,root) %{_bindir}/innmail | |
550 | %attr(755,root,root) %{_bindir}/innreport | |
551 | %attr(755,root,root) %{_bindir}/innstat | |
552 | %attr(755,root,root) %{_bindir}/innupgrade | |
553 | %attr(755,root,root) %{_bindir}/innwatch | |
554 | %attr(755,root,root) %{_bindir}/innxbatch | |
555 | %attr(755,root,root) %{_bindir}/innxmit | |
556 | %attr(755,root,root) %{_bindir}/mailpost | |
557 | %attr(755,root,root) %{_bindir}/makedbz | |
558 | %attr(755,root,root) %{_bindir}/makehistory | |
559 | %attr(755,root,root) %{_bindir}/mod-active | |
560 | %attr(755,root,root) %{_bindir}/news.daily | |
561 | %attr(755,root,root) %{_bindir}/news2mail | |
562 | %attr(755,root,root) %{_bindir}/ninpaths | |
563 | %attr(755,root,root) %{_bindir}/nnrpd | |
564 | %attr(755,root,root) %{_bindir}/nntpget | |
565 | %attr(755,root,root) %{_bindir}/nntpsend | |
566 | %attr(755,root,root) %{_bindir}/ovdb_* | |
567 | %attr(755,root,root) %{_bindir}/overchan | |
568 | %attr(755,root,root) %{_bindir}/perl-nocem | |
569 | %attr(755,root,root) %{_bindir}/pgpverify | |
570 | %attr(755,root,root) %{_bindir}/procbatch | |
571 | %attr(755,root,root) %{_bindir}/prunehistory | |
572 | %attr(755,root,root) %{_bindir}/pullnews | |
573 | %attr(755,root,root) %{_bindir}/scanlogs | |
574 | %attr(755,root,root) %{_bindir}/scanspool | |
575 | %attr(755,root,root) %{_bindir}/send-ihave | |
576 | %attr(755,root,root) %{_bindir}/send-nntp | |
577 | %attr(755,root,root) %{_bindir}/send-uucp | |
578 | %attr(755,root,root) %{_bindir}/sendinpaths | |
579 | %attr(755,root,root) %{_bindir}/sendxbatches | |
580 | %attr(755,root,root) %{_bindir}/shlock | |
581 | %attr(755,root,root) %{_bindir}/shrinkfile | |
582 | %attr(755,root,root) %{_bindir}/signcontrol | |
583 | %attr(755,root,root) %{_bindir}/simpleftp | |
584 | %attr(755,root,root) %{_bindir}/sm | |
585 | %attr(755,root,root) %{_bindir}/tally.control | |
586 | %attr(755,root,root) %{_bindir}/tdx-util | |
587 | %attr(755,root,root) %{_bindir}/writelog | |
588 | ||
589 | # MAN | |
590 | %{_mandir}/man1/convdate.1* | |
591 | %{_mandir}/man1/fastrm.1* | |
592 | %{_mandir}/man1/getlist.1* | |
593 | %{_mandir}/man1/grephistory.1* | |
594 | %{_mandir}/man1/innconfval.1* | |
595 | %{_mandir}/man1/innfeed.1* | |
596 | %{_mandir}/man1/innmail.1* | |
597 | %{_mandir}/man1/nntpget.1* | |
598 | %{_mandir}/man1/pgpverify.1* | |
599 | %{_mandir}/man1/pullnews.1* | |
600 | %{_mandir}/man1/rnews.1* | |
601 | %{_mandir}/man1/shlock.1* | |
602 | %{_mandir}/man1/shrinkfile.1* | |
603 | %{_mandir}/man1/simpleftp.1* | |
604 | %{_mandir}/man1/sm.1* | |
605 | %{_mandir}/man1/startinnfeed.1* | |
606 | %{_mandir}/man[58]/* | |
607 | %lang(pl) %{_mandir}/pl/man1/getlist.1* | |
608 | %lang(pl) %{_mandir}/pl/man8/innd.8* | |
609 | ||
610 | %files libs | |
611 | %defattr(644,root,root,755) | |
612 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
613 | ||
614 | %files devel | |
615 | %defattr(644,root,root,755) | |
616 | %{_includedir} | |
617 | %{_libdir}/lib*.la | |
618 | %{_libdir}/lib*.so | |
619 | %{_mandir}/man3/* | |
620 | ||
621 | %files static | |
622 | %defattr(644,root,root,755) | |
623 | %{_libdir}/lib*.a | |
624 | ||
625 | %files -n inews | |
626 | %defattr(644,root,root,755) | |
627 | %attr(755,root,news) %{_bindir}/inews | |
628 | %{_mandir}/man1/inews.1* |