1 Summary: INN, the InterNet News System (news server)
2 Summary(de): das InterNet News System (News-Server)
3 Summary(fr): INN, le système InterNet News (serveur de news)
4 Summary(pl): INN, serwer nowinek
5 Summary(tr): INN, InterNet Haber Sistemi (haber sunucu)
9 Copyright: distributable
10 Group: Networking/Daemons
11 Group(pl): Sieciowe/Serwery
12 Source: ftp://ftp.isc.org/isc/inn/%{name}-%{version}.tar.gz
13 Source1: %{name}-default-active
14 Source2: %{name}-default-distributions
15 Source3: %{name}-default-newsgroups
16 Source4: %{name}-etc-inn.conf
17 Source5: %{name}-etc-newsfeeds
18 Source6: %{name}-etc-nnrp.access
19 Source7: %{name}.crontab
21 Source9: %{name}-cnfsstat.cron
22 Source10: %{name}.logrotate
23 Patch0: ftp://ftp.nemoto.ecei.tohoku.ac.jp/pub/Net/IPv6/Patches/inn-2.2.1-v6-19991121.diff.gz
24 Patch1: %{name}-PLD.patch
25 Patch2: %{name}-libinn.so.patch
26 URL: http://www.isc.org/inn.html
27 Prereq: /sbin/chkconfig
28 Prereq: /sbin/ldconfig
35 BuildRoot: /tmp/%{name}-%{version}-root
37 %define _sysconfdir /etc/news
40 INN is a news server, which can be set up to handle USENET news, as well
41 as private "newsfeeds". There is a *LOT* of information about setting
42 up INN in /usr/share/doc -- read it.
45 INN jest serwerem news, który mo¿na skonfigurowaæ do obs³ugi USENET-u,
46 jak równie¿ do obs³ugi ,,prywatnych'' grup w sieciach intranetowych.
47 Ca³e mnóstwo po¿ytecznych informacji o konfigurowaniu INN-a znajdziesz
48 w katalogu /usr/share/doc/inn-*.
52 Summary(de): INN-Library
53 Summary(fr): Bibliothèque INN
54 Summary(pl): INN-biblioteka i pliki nag³ówkowe dla inn-a
55 Summary(tr): INN kitaplýðý
56 Group: Development/Libraries
57 Group(pl): Programowanie/Biblioteki
58 Requires: %{name} = %{version}
61 This library is needed by several programs that interface to INN, such as
64 %description -l de devel
65 Diese Library wird von mehreren Programmen benötigt, die mit INN
66 kommunizieren, etwa newsgate oder tin.
68 %description -l fr devel
69 Cette bibliothèque est nécessaire à plusieurs programmes qui s'interfacent
70 avec INN, comme newsgate ou tin.
72 %description -l pl devel
73 Biblioteka niezbêdna do dzia³ania kilku programów wspó³pracuj±cych z INN-em, takich jak newsgate czy tin.
75 %description -l tr devel
76 INN ile arayüz gerektiren programlar için (newsgate, tin gibi) gereken bir
81 Summary: Inews program (used for posting by inn and trn)
82 Summary(de): Inews-Programm (für die Zustellung mit inn und trn)
83 Summary(fr): Programme inews (utilisé par inn et trn pour poster)
84 Summary(pl): Inews - program do wysy³ania artyku³ów (u¿ywany przez inn i trn)
85 Summary(tr): Haber biçimlendirme programý
86 Group: Networking/News
87 Group(pl): Sieciowe/News
90 The inews program is used by some news readers to post news.
91 It does some consistency checking and header reformatting,
92 and forwards the article on to the news server specified in
95 %description -l de -n inews
96 Das Programm 'inews' wird von manchen Newsreadern zum Senden
97 von Nachrichten verwendet. Es führt eine Konsistenzprüfung und Header-Neuf
98 ormatierung aus und leitet die Nachricht an den in 'inn.conf'
99 angegebenen News-Server weiter.
101 %description -l fr -n inews
102 Le programme inews est utilisé par certains lecteurs de news pour
103 poster les articles. Il effectue des vérifications et un reformatage
104 des en-têtes et fait suivre l'article au serveur de news spécifié dans inn.conf.
106 %description -l pl -n inews
107 Inews jest u¿ywany przez niektóre czytniki news do wysy³ania
108 artyku³ów. Sprawdza budowê artyku³u, przepisuje nag³ówek i wysy³a
109 do serwera news wyszczególnionego w inn.conf.
111 %description -l tr -n inews
112 inews programý bazý haber okuyucular tarafýndan haber yollamak amacýyla
113 kullanýlýr. Program bazý güvenlik denetimleri ve baþlýk biçimlendirmesi
114 yaparak ve inn.conf dosyasýnda belirtilen haber sunucuya makaleyi yollar.
127 libtoolize --copy --force
128 LDFLAGS="-s"; export LDFLAGS
130 --with-news-user=news \
131 --with-news-group=news \
132 --with-news-master=news \
133 --with-db-dir=/var/state/news \
134 --with-etc-dir=%{_sysconfdir} \
135 --with-log-dir=/var/log/news \
136 --with-run-dir=/var/run/news \
137 --with-spool-dir=/var/spool/news \
138 --with-lib-dir=%{_datadir}/news \
139 --with-tmp-path=/var/spool/news/incoming/tmp \
141 --with-sendmail=/usr/lib/sendmail \
142 --enable-tagged-hash \
143 --enable-merge-to-groups \
144 --enable-pgp-verify \
148 # --enable-dual-socket
150 make all PATHFILTER=%{_datadir}/news/filter \
151 PATHCONTROL=%{_datadir}/news/control \
152 RNEWSPROGS=%{_bindir}
155 rm -fr $RPM_BUILD_ROOT
156 install -d $RPM_BUILD_ROOT/etc/{news,rc.d/init.d,cron.d,logrotate.d}
157 install -d $RPM_BUILD_ROOT%{_bindir}
158 install -d $RPM_BUILD_ROOT%{_libdir}/news
159 install -d $RPM_BUILD_ROOT%{_datadir}/news/{control,filter,auth}
160 install -d $RPM_BUILD_ROOT%{_includedir}/inn
161 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,3,5,8}
162 install -d $RPM_BUILD_ROOT/var/{run/news,state/news/backoff,log/{news,archiv/news}}
163 install -d $RPM_BUILD_ROOT/var/spool/news/{articles,overview,incoming/{tmp,bad},outgoing,archive,uniover,innfeed,cycbuffs}
166 DESTDIR="$RPM_BUILD_ROOT" \
167 PATHFILTER=%{_datadir}/news/filter \
168 PATHCONTROL=%{_datadir}/news/control \
169 RNEWSPROGS=%{_bindir}
171 install %{SOURCE1} $RPM_BUILD_ROOT/var/state/news/active
172 install %{SOURCE2} $RPM_BUILD_ROOT/var/state/news/distributions
173 install %{SOURCE3} $RPM_BUILD_ROOT/var/state/news/newsgroups
174 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/inn.conf
175 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/newsfeeds
176 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/nnrp.access
177 install %{SOURCE7} $RPM_BUILD_ROOT/etc/cron.d/inn
178 install %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/inn
179 install %{SOURCE9} $RPM_BUILD_ROOT%{_bindir}/cnfsstat.cron
180 install %{SOURCE10} $RPM_BUILD_ROOT/etc/logrotate.d/inn
182 rm -f $RPM_BUILD_ROOT/var/state/news/history
185 touch $RPM_BUILD_ROOT/var/state/news/subscriptions
186 touch $RPM_BUILD_ROOT/var/state/news/history
187 touch $RPM_BUILD_ROOT/var/state/news/.news.daily
188 touch $RPM_BUILD_ROOT/var/state/news/active.times
189 touch $RPM_BUILD_ROOT/var/log/news/news.notice
190 touch $RPM_BUILD_ROOT/var/log/news/news.crit
191 touch $RPM_BUILD_ROOT/var/log/news/news.err
193 install include/clibrary.h $RPM_BUILD_ROOT%{_includedir}/inn
194 install include/configdata.h $RPM_BUILD_ROOT%{_includedir}/inn
195 install include/dbz.h $RPM_BUILD_ROOT%{_includedir}/inn
196 install include/libinn.h $RPM_BUILD_ROOT%{_includedir}/inn
197 install include/storage.h $RPM_BUILD_ROOT%{_includedir}/inn
199 mv $RPM_BUILD_ROOT%{_datadir}/news/*.a $RPM_BUILD_ROOT%{_libdir}
201 LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_datadir} $RPM_BUILD_ROOT%{_bindir}/makehistory \
202 -a $RPM_BUILD_ROOT/var/state/news/active \
203 -i -r -f $RPM_BUILD_ROOT/var/state/news/history || :
205 #Fix perms in sample directory to avoid bogus dependencies
206 find samples -name "*.in" -exec chmod a-x {} \;
208 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man[1358]/* \
209 CONTRIBUTORS HISTORY README README.perl_hook README.tcl_hook \
210 INSTALL ChangeLog COPYRIGHT
213 rm -rf $RPM_BUILD_ROOT
216 if [ -f /var/state/news/history ]; then
218 %{_bindir}/makehistory -i -r
219 for i in dir hash index pag; do
220 [ -f history.n.$i ] && mv history.n.$i history.$i
222 chown news.news history.*
227 %{_bindir}/makehistory -i
228 for i in dir hash index pag; do
229 [ -f history.n.$i ] && mv history.n.$i history.$i
231 chown news.news history history.*
232 chmod 644 history history.*
234 [ -f /var/state/news/active.times ] || {
235 touch /var/state/news/active.times
236 chown news.news /var/state/news/active.times
239 [ -f /var/log/news/news.notice ] || {
240 touch /var/log/news/news.notice
241 chown news.news /var/log/news/news.notice
242 chmod 664 /var/log/news/news.notice
245 [ -f /var/log/news/news.crit ] || {
246 touch /var/log/news/news.crit
247 chown news.news /var/log/news/news.crit
248 chmod 660 /var/log/news/news.crit
251 [ -f /var/log/news/news.err ] || {
252 touch /var/log/news/news.err
253 chown news.news /var/log/news/news.err
254 chmod 660 /var/log/news/news.err
257 [ -f /var/state/news/.news.daily ] || {
258 touch /var/state/news/.news.daily
259 chown news.news /var/state/.news.daily
260 chmod 664 /var/state/news/.news.daily
263 if [ -f /etc/syslog.conf ]; then
264 if ! grep -q INN /etc/syslog.conf; then
265 sed 's/mail.none;/mail.none;news.none;/' < /etc/syslog.conf > /etc/syslog.conf.inn
266 mv /etc/syslog.conf.inn /etc/syslog.conf
267 echo '' >> /etc/syslog.conf
268 echo '#' >> /etc/syslog.conf
269 echo '# INN' >> /etc/syslog.conf
270 echo '#' >> /etc/syslog.conf
271 echo 'news.=crit /var/log/news/news.crit' >> /etc/syslog.conf
272 echo 'news.=err /var/log/news/news.err' >> /etc/syslog.conf
273 echo 'news.notice /var/log/news/news.notice' >> /etc/syslog.conf
275 if [ -f /var/run/syslog.pid ]; then
276 kill -HUP `cat /var/run/syslog.pid` 2> /dev/null ||:
279 # syslog.conf does not exist
280 echo "mail.none /var/log/messages" > /etc/syslog.conf.inn
281 echo "" >> /etc/syslog.conf.inn
282 echo "# INN" >> /etc/syslog.conf.inn
283 echo "news.=crit /var/log/news/news.crit" >> /etc/syslog.conf.inn
284 echo "news.=err /var/log/news/news.err" >> /etc/syslog.conf.inn
285 echo "news.notice /var/log/news/news.notice" >> /etc/syslog.conf.inn
288 /sbin/chkconfig --add inn
292 if [ "$1" = "0" ]; then
293 if [ -f /var/lock/subsys/news ]; then
294 /etc/rc.d/init.d/inn stop
296 /sbin/chkconfig --del inn
300 %defattr(644,root,root,755)
301 %doc {CONTRIBUTORS,HISTORY,README,README.perl_hook,README.tcl_hook}.gz
302 %doc {INSTALL,ChangeLog,COPYRIGHT}.gz
305 %attr(750,news,news) %dir /var/state/news
306 %attr(750,news,news) %dir /var/state/news/backoff
307 %attr(664,news,news) %config(noreplace) %verify(not size mtime md5) /var/state/news/active
308 %attr(644,news,news) %config(noreplace) %verify(not size mtime md5) /var/state/news/distributions
309 %attr(644,news,news) %config(noreplace) %verify(not size mtime md5) /var/state/news/newsgroups
310 %attr(644,news,root) %config(noreplace) %verify(not size mtime md5) /var/state/news/subscriptions
311 %attr(664,news,news) %config(noreplace) %verify(not size mtime md5) /var/state/news/active.times
312 %attr(664,news,news) %ghost /var/state/news/.news.daily
315 %attr(640,news,news) /etc/logrotate.d/inn
316 %attr(750,news,news) %dir /var/log/news
317 %attr(750,news,news) %dir /var/log/archiv/news
318 %attr(770,news,news) %dir /var/run/news
319 %attr(664,news,news) %ghost /var/log/news/news.notice
320 %attr(660,news,news) %ghost /var/log/news/news.crit
321 %attr(660,news,news) %ghost /var/log/news/news.err
324 %attr(750,news,news) %dir /var/spool/news
325 %attr(770,news,news) %dir /var/spool/news/cycbuffs
326 %attr(770,news,news) %dir /var/spool/news/innfeed
327 %attr(770,news,news) %dir /var/spool/news/incoming
328 %attr(770,news,news) %dir /var/spool/news/incoming/bad
329 %attr(770,news,news) %dir /var/spool/news/incoming/tmp
330 %attr(770,news,news) %dir /var/spool/news/outgoing
331 %attr(770,news,news) %dir /var/spool/news/archive
332 %attr(770,news,news) %dir /var/spool/news/overview
333 %attr(770,news,news) %dir /var/spool/news/uniover
334 %attr(770,news,news) %dir /var/spool/news/articles
337 %attr(640,root,root) %config %verify(not size mtime md5) /etc/cron.d/inn
340 %attr(754,root,root) /etc/rc.d/init.d/inn
342 # CONFIGS (INN is a one big config ;-)
343 %attr(755,root,root) %dir %{_sysconfdir}
344 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/actsync.cfg
345 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/actsync.ign
346 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/control.ctl
347 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/cycbuff.conf
348 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/expire.ctl
349 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/incoming.conf
350 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/inn.conf
351 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/innfeed.conf
352 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/innreport.conf
353 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/innwatch.ctl
354 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/motd.news
355 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/news2mail.cf
356 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/nnrp.access
357 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/nnrpd.track
358 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/nntpsend.ctl
359 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/overview.ctl
360 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/passwd.nntp
361 %attr(640,news,news) %config %verify(not size mtime md5) %{_sysconfdir}/storage.conf
362 %config %verify(not size mtime md5) %{_sysconfdir}/moderators
363 %config %verify(not size mtime md5) %{_sysconfdir}/distrib.pats
364 %config %verify(not size mtime md5) %{_sysconfdir}/newsfeeds
365 %config %verify(not size mtime md5) %{_sysconfdir}/overview.fmt
367 %attr(755,root,news) %dir %{_datadir}/news
368 %attr(755,root,root) %dir %{_datadir}/news/control
369 %attr(755,root,root) %dir %{_datadir}/news/filter
370 %attr(755,root,root) %dir %{_datadir}/news/auth
372 %config %verify(not size mtime md5) %{_datadir}/news/innreport_inn.pm
373 %config %verify(not size mtime md5) %{_datadir}/news/innshellvars
374 %config %verify(not size mtime md5) %{_datadir}/news/innshellvars.pl
375 %config %verify(not size mtime md5) %{_datadir}/news/innshellvars.tcl
377 %config %verify(not size mtime md5) %{_datadir}/news/filter/filter_nnrpd.pl
378 %config %verify(not size mtime md5) %{_datadir}/news/filter/filter.tcl
379 %config %verify(not size mtime md5) %{_datadir}/news/filter/nnrpd_auth.pl
380 %config %verify(not size mtime md5) %{_datadir}/news/filter/startup_innd.pl
381 %config %verify(not size mtime md5) %{_datadir}/news/filter/startup.tcl
383 %attr(755,root,root) %{_datadir}/news/control/checkgroups
384 %attr(755,root,root) %{_datadir}/news/control/checkgroups.pl
385 %attr(755,root,root) %{_datadir}/news/control/default
386 %attr(755,root,root) %{_datadir}/news/control/ihave
387 %attr(755,root,root) %{_datadir}/news/control/ihave.pl
388 %attr(755,root,root) %{_datadir}/news/control/newgroup
389 %attr(755,root,root) %{_datadir}/news/control/newgroup.pl
390 %attr(755,root,root) %{_datadir}/news/control/rmgroup
391 %attr(755,root,root) %{_datadir}/news/control/rmgroup.pl
392 %attr(755,root,root) %{_datadir}/news/control/sendme
393 %attr(755,root,root) %{_datadir}/news/control/sendme.pl
394 %attr(755,root,root) %{_datadir}/news/control/sendsys
395 %attr(755,root,root) %{_datadir}/news/control/sendsys.pl
396 %attr(755,root,root) %{_datadir}/news/control/senduuname
397 %attr(755,root,root) %{_datadir}/news/control/senduuname.pl
398 %attr(755,root,root) %{_datadir}/news/control/version
399 %attr(755,root,root) %{_datadir}/news/control/version.pl
402 %attr(4754,root,news) %{_bindir}/startinnfeed
403 %attr(4754,root,uucp) %{_bindir}/rnews
406 %attr(2755,root,news) %{_bindir}/inews
409 %attr(755,root,root) %{_bindir}/actived
410 %attr(755,root,root) %{_bindir}/actmerge
411 %attr(755,root,root) %{_bindir}/actsync
412 %attr(755,root,root) %{_bindir}/actsyncd
413 %attr(755,root,root) %{_bindir}/archive
414 %attr(755,root,root) %{_bindir}/batcher
415 %attr(755,root,root) %{_bindir}/buffchan
416 %attr(755,root,root) %{_bindir}/c7unbatch
417 %attr(755,root,root) %{_bindir}/cnfsstat
418 %attr(755,root,root) %{_bindir}/cnfsstat.cron
419 %attr(755,root,root) %{_bindir}/controlbatch
420 %attr(755,root,root) %{_bindir}/controlchan
421 %attr(755,root,root) %{_bindir}/convdate
422 %attr(755,root,root) %{_bindir}/crosspost
423 %attr(755,root,root) %{_bindir}/ctlinnd
424 %attr(755,root,root) %{_bindir}/cvtbatch
425 %attr(755,root,root) %{_bindir}/decode
426 %attr(755,root,root) %{_bindir}/encode
427 %attr(755,root,root) %{_bindir}/expire
428 %attr(755,root,root) %{_bindir}/expireindex
429 %attr(755,root,root) %{_bindir}/expireover
430 %attr(755,root,root) %{_bindir}/expirerm
431 %attr(755,root,root) %{_bindir}/fastrm
432 %attr(755,root,root) %{_bindir}/filechan
433 %attr(755,root,root) %{_bindir}/getlist
434 %attr(755,root,root) %{_bindir}/grephistory
435 %attr(755,root,root) %{_bindir}/gunbatch
436 %attr(755,root,root) %{_bindir}/inncheck
437 %attr(755,root,root) %{_bindir}/innconfval
438 %attr(755,root,root) %{_bindir}/innd
439 %attr(755,root,root) %{_bindir}/inndf
440 %attr(755,root,root) %{_bindir}/inndstart
441 %attr(755,root,root) %{_bindir}/innfeed
442 %attr(755,root,root) %{_bindir}/innfeed-convcfg
443 %attr(755,root,root) %{_bindir}/innmail
444 %attr(755,root,root) %{_bindir}/innreport
445 %attr(755,root,root) %{_bindir}/innstat
446 %attr(755,root,root) %{_bindir}/innwatch
447 %attr(755,root,root) %{_bindir}/innxbatch
448 %attr(755,root,root) %{_bindir}/innxmit
449 %attr(755,root,root) %{_bindir}/mailpost
450 %attr(755,root,root) %{_bindir}/makeactive
451 %attr(755,root,root) %{_bindir}/makehistory
452 %attr(755,root,root) %{_bindir}/mod-active
453 %attr(755,root,root) %{_bindir}/news2mail
454 %attr(755,root,root) %{_bindir}/news.daily
455 %attr(755,root,root) %{_bindir}/newsrequeue
456 %attr(755,root,root) %{_bindir}/nnrpd
457 %attr(755,root,root) %{_bindir}/nntpget
458 %attr(755,root,root) %{_bindir}/nntpsend
459 %attr(755,root,root) %{_bindir}/overchan
460 %attr(755,root,root) %{_bindir}/parsecontrol
461 %attr(755,root,root) %{_bindir}/pgpverify
462 %attr(755,root,root) %{_bindir}/procbatch
463 %attr(755,root,root) %{_bindir}/prunehistory
464 %attr(755,root,root) %{_bindir}/pullnews
465 %attr(755,root,root) %{_bindir}/scanlogs
466 %attr(755,root,root) %{_bindir}/scanspool
467 %attr(755,root,root) %{_bindir}/sendbatch
468 %attr(755,root,root) %{_bindir}/send-ihave
469 %attr(755,root,root) %{_bindir}/send-nntp
470 %attr(755,root,root) %{_bindir}/send-uucp
471 %attr(755,root,root) %{_bindir}/sendxbatches
472 %attr(755,root,root) %{_bindir}/shlock
473 %attr(755,root,root) %{_bindir}/shrinkfile
474 %attr(755,root,root) %{_bindir}/simpleftp
475 %attr(755,root,root) %{_bindir}/sm
476 %attr(755,root,root) %{_bindir}/tally.control
477 %attr(755,root,root) %{_bindir}/writelog
480 %{_mandir}/man1/convdate.1.gz
481 %{_mandir}/man1/getlist.1.gz
482 %{_mandir}/man1/grephistory.1.gz
483 %{_mandir}/man1/innconfval.1.gz
484 %{_mandir}/man1/innfeed.1.gz
485 %{_mandir}/man1/installit.1.gz
486 %{_mandir}/man1/nntpget.1.gz
487 %{_mandir}/man1/rnews.1.gz
488 %{_mandir}/man1/shlock.1.gz
489 %{_mandir}/man1/shrinkfile.1.gz
490 %{_mandir}/man1/startinnfeed.1.gz
491 %{_mandir}/man1/subst.1.gz
492 %{_mandir}/man[58]/*.gz
495 %defattr(644,root,root,755)
501 %defattr(644,root,root,755)
502 %attr(2755,root,news) %{_bindir}/inews
503 %{_mandir}/man1/inews.1.gz