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-nnrp.access
17 Source5: %{name}.crontab
18 Source6: %{name}.initd
19 Source7: %{name}-cnfsstat.cron
20 Patch0: ftp://ftp.nemoto.ecei.tohoku.ac.jp/pub/Net/IPv6/Patches/inn-2.2.1-v6-19991121.diff.gz
21 Patch1: %{name}-config.patch
22 Patch2: %{name}-makefile.patch
23 Patch3: %{name}-authdir.patch
24 URL: http://www.isc.org/inn.html
25 Prereq: /sbin/chkconfig
26 Prereq: /sbin/ldconfig
33 BuildRoot: /tmp/%{name}-%{version}-root
36 %define _sysconfdir /etc/news
39 INN is a news server, which can be set up to handle USENET news, as well
40 as private "newsfeeds". There is a *LOT* of information about setting
41 up INN in /usr/share/doc -- read it.
44 INN jest serwerem news, który mo¿na skonfigurowaæ do obs³ugi USENET-u,
45 jak równie¿ do obs³ugi ,,prywatnych'' grup w sieciach intranetowych.
46 Ca³e mnóstwo po¿ytecznych informacji o konfigurowaniu INN-a znajdziesz
47 w katalogu /usr/share/doc/inn-*.
51 Summary(de): INN-Library
52 Summary(fr): Bibliothèque INN
53 Summary(pl): INN-biblioteka i pliki nag³ówkowe dla inn-a
54 Summary(tr): INN kitaplýðý
55 Group: Development/Libraries
56 Group(pl): Programowanie/Biblioteki
57 Requires: %{name} = %{version}
60 This library is needed by several programs that interface to INN, such as
63 %description -l de devel
64 Diese Library wird von mehreren Programmen benötigt, die mit INN
65 kommunizieren, etwa newsgate oder tin.
67 %description -l fr devel
68 Cette bibliothèque est nécessaire à plusieurs programmes qui s'interfacent
69 avec INN, comme newsgate ou tin.
71 %description -l pl devel
72 Biblioteka niezbêdna do dzia³ania kilku programów wspó³pracuj±cych z INN-em, takich jak newsgate czy tin.
74 %description -l tr devel
75 INN ile arayüz gerektiren programlar için (newsgate, tin gibi) gereken bir
80 Summary: Inews program (used for posting by inn and trn)
81 Summary(de): Inews-Programm (für die Zustellung mit inn und trn)
82 Summary(fr): Programme inews (utilisé par inn et trn pour poster)
83 Summary(pl): Inews - program do wysy³ania artyku³ów (u¿ywany przez inn i trn)
84 Summary(tr): Haber biçimlendirme programý
85 Group: Networking/News
86 Group(pl): Sieciowe/News
89 The inews program is used by some news readers to post news.
90 It does some consistency checking and header reformatting,
91 and forwards the article on to the news server specified in
94 %description -l de -n inews
95 Das Programm 'inews' wird von manchen Newsreadern zum Senden
96 von Nachrichten verwendet. Es führt eine Konsistenzprüfung und Header-Neuf
97 ormatierung aus und leitet die Nachricht an den in 'inn.conf'
98 angegebenen News-Server weiter.
100 %description -l fr -n inews
101 Le programme inews est utilisé par certains lecteurs de news pour
102 poster les articles. Il effectue des vérifications et un reformatage
103 des en-têtes et fait suivre l'article au serveur de news spécifié dans inn.conf.
105 %description -l pl -n inews
106 Inews jest u¿ywany przez niektóre czytniki news do wysy³ania
107 artyku³ów. Sprawdza budowê artyku³u, przepisuje nag³ówek i wysy³a
108 do serwera news wyszczególnionego w inn.conf.
110 %description -l tr -n inews
111 inews programý bazý haber okuyucular tarafýndan haber yollamak amacýyla
112 kullanýlýr. Program bazý güvenlik denetimleri ve baþlýk biçimlendirmesi
113 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=%{_libdir}/sendmail \
142 --enable-tagged-hash \
143 --enable-merge-to-groups \
144 --enable-pgp-verify \
149 make all PATHFILTER=%{_datadir}/news/filter \
150 PATHCONTROL=%{_datadir}/news/control \
151 RNEWSPROGS=%{_bindir}
154 rm -fr $RPM_BUILD_ROOT
155 install -d $RPM_BUILD_ROOT/etc/{news,rc.d/init.d,cron.d}
156 install -d $RPM_BUILD_ROOT%{_bindir}
157 install -d $RPM_BUILD_ROOT%{_libdir}/news
158 install -d $RPM_BUILD_ROOT%{_datadir}/news/{control,filter,auth}
159 install -d $RPM_BUILD_ROOT%{_includedir}/inn
160 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,3,5,8}
161 install -d $RPM_BUILD_ROOT/var/{run/news,state/news/backoff,log/news/OLD}
162 install -d $RPM_BUILD_ROOT/var/spool/news/{articles,overview,incoming/{tmp,bad},outgoing,archive,uniover,innfeed,cycbuffs}
165 DESTDIR="$RPM_BUILD_ROOT" \
166 PATHFILTER=%{_datadir}/news/filter \
167 PATHCONTROL=%{_datadir}/news/control \
168 RNEWSPROGS=%{_bindir}
170 install %{SOURCE1} $RPM_BUILD_ROOT/var/state/news/active
171 install %{SOURCE2} $RPM_BUILD_ROOT/var/state/news/distributions
172 install %{SOURCE3} $RPM_BUILD_ROOT/var/state/news/newsgroups
173 install %{SOURCE4} $RPM_BUILD_ROOT/etc/news/nnrp.access
174 install %{SOURCE5} $RPM_BUILD_ROOT/etc/cron.d/inn
175 install %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/inn
176 install %{SOURCE7} $RPM_BUILD_ROOT%{_bindir}/cnfsstat.cron
178 rm -f $RPM_BUILD_ROOT/var/state/news/history
181 touch $RPM_BUILD_ROOT/var/state/news/subscriptions
182 touch $RPM_BUILD_ROOT/var/state/news/history
183 touch $RPM_BUILD_ROOT/var/state/news/.news.daily
184 touch $RPM_BUILD_ROOT/var/state/news/active.times
185 touch $RPM_BUILD_ROOT/var/log/news/news.notice
186 touch $RPM_BUILD_ROOT/var/log/news/news.crit
187 touch $RPM_BUILD_ROOT/var/log/news/news.err
189 LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_datadir} $RPM_BUILD_ROOT%{_bindir}/makehistory\
190 -a $RPM_BUILD_ROOT/var/state/news/active \
191 -i -r -f $RPM_BUILD_ROOT/var/state/news/history || :
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 #Fix perms in sample directory to avoid bogus dependencies
202 find samples -name "*.in" -exec chmod a-x {} \;
204 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man{1,3,5,8}/* \
205 CONTRIBUTORS HISTORY README README.perl_hook README.tcl_hook \
206 INSTALL ChangeLog COPYRIGHT
209 rm -rf $RPM_BUILD_ROOT
212 if [ -f /var/state/news/history ]; then
214 %{_bindir}/makehistory -i -r
215 for i in dir hash index pag; do
216 [ -f history.n.$i ] && mv history.n.$i history.$i
218 chown news.news history.*
223 %{_bindir}/makehistory -i
224 for i in dir hash index pag; do
225 [ -f history.n.$i ] && mv history.n.$i history.$i
227 chown news.news history history.*
228 chmod 644 history history.*
230 [ -f /var/state/news/active.times ] || {
231 touch /var/state/news/active.times
232 chown news.news /var/state/news/active.times
234 chown -R news.news /var/log/news*
235 if [ -f /etc/syslog.conf ]; then
236 if ! grep -q INN /etc/syslog.conf; then
237 sed 's/mail.none;/mail.none;news.none;/' < /etc/syslog.conf > /etc/syslog.conf.inn
238 mv /etc/syslog.conf.inn /etc/syslog.conf
248 echo 'news.=crit /var/log/news/news.crit' >> /etc/syslog.conf
249 echo 'news.=err /var/log/news/news.err' >> /etc/syslog.conf
250 echo 'news.notice /var/log/news/news.notice' >> /etc/syslog.conf
252 if [ -f /var/run/syslog.pid ]; then
253 kill -HUP `cat /var/run/syslog.pid` 2> /dev/null ||:
256 # syslog.conf does not exist
258 echo "mail.none /var/log/messages" \
259 > /etc/syslog.conf.inn
261 >> /etc/syslog.conf.inn
263 >> /etc/syslog.conf.inn
264 echo "news.=crit /var/log/news/news.crit" >> /etc/syslog.conf.inn
265 echo "news.=err /var/log/news/news.err" >> /etc/syslog.conf.inn
266 echo "news.notice /var/log/news/news.notice" >> /etc/syslog.conf.inn
268 if [ `cat /etc/news/inn.conf | grep '^server:' | wc -l` -lt 1 ]; then
269 echo "server: `hostname -f`" >> /etc/news/inn.conf
272 /sbin/chkconfig --add inn
276 if [ "$1" = "0" ]; then
277 if [ -f /var/lock/subsys/news ]; then
278 /etc/rc.d/init.d/inn stop
280 /sbin/chkconfig --del inn
284 %defattr(644,root,root,755)
285 %doc {CONTRIBUTORS,HISTORY,README,README.perl_hook,README.tcl_hook}.gz
286 %doc {INSTALL,ChangeLog,COPYRIGHT}.gz
289 %attr(750,news,news) %dir /var/state/news
290 %attr(750,news,news) %dir /var/state/news/backoff
291 %attr(664,news,news) %config(noreplace) %verify(not size mtime md5) /var/state/news/active
292 %attr(644,news,news) %config(noreplace) %verify(not size mtime md5) /var/state/news/distributions
293 %attr(644,news,news) %config(noreplace) %verify(not size mtime md5) /var/state/news/newsgroups
294 %attr(644,news,root) %config(noreplace) %verify(not size mtime md5) /var/state/news/subscriptions
295 %attr(664,news,news) %config(noreplace) %verify(not size mtime md5) /var/state/news/active.times
296 %attr(664,news,news) %config(noreplace) %verify(not size mtime md5) /var/state/news/.news.daily
299 %attr(750,news,news) %dir /var/log/news
300 %attr(770,news,news) %dir /var/log/news/OLD
301 %attr(770,news,news) %dir /var/run/news
302 %attr(664,news,news) %config(noreplace) %verify(not size mtime md5) /var/log/news/news.notice
303 %attr(660,news,news) %config(noreplace) %verify(not size mtime md5) /var/log/news/news.crit
304 %attr(660,news,news) %config(noreplace) %verify(not size mtime md5) /var/log/news/news.err
307 %attr(750,news,news) %dir /var/spool/news
308 %attr(770,news,news) %dir /var/spool/news/cycbuffs
309 %attr(770,news,news) %dir /var/spool/news/innfeed
310 %attr(770,news,news) %dir /var/spool/news/incoming
311 %attr(770,news,news) %dir /var/spool/news/incoming/bad
312 %attr(770,news,news) %dir /var/spool/news/incoming/tmp
313 %attr(770,news,news) %dir /var/spool/news/outgoing
314 %attr(770,news,news) %dir /var/spool/news/archive
315 %attr(770,news,news) %dir /var/spool/news/overview
316 %attr(770,news,news) %dir /var/spool/news/uniover
317 %attr(770,news,news) %dir /var/spool/news/articles
320 %attr(640,root,root) %config %verify(not size mtime md5) /etc/cron.d/*
323 %attr(754,root,root) %config /etc/rc.d/init.d/inn
325 # CONFIGS (INN is a one big config ;-)
326 %attr(755,root,root) %dir /etc/news
327 %attr(755,root,root) %dir %{_datadir}/news
328 %attr(755,root,root) %dir %{_datadir}/news/control
329 %attr(755,root,root) %dir %{_datadir}/news/filter
330 %attr(755,root,root) %dir %{_datadir}/news/auth
331 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/actsync.cfg
332 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/actsync.ign
333 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/control.ctl
334 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/cycbuff.conf
335 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/expire.ctl
336 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/incoming.conf
337 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/inn.conf
338 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/innfeed.conf
339 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/innreport.conf
340 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/innwatch.ctl
341 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/motd.news
342 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/news2mail.cf
343 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/newsfeeds
344 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/nnrp.access
345 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/nnrpd.track
346 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/nntpsend.ctl
347 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/overview.ctl
348 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/overview.fmt
349 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/passwd.nntp
350 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/storage.conf
352 %config %verify(not size mtime md5) /etc/news/moderators
353 %config %verify(not size mtime md5) /etc/news/distrib.pats
355 %config %verify(not size mtime md5) %{_datadir}/news/innreport_inn.pm
356 %config %verify(not size mtime md5) %{_datadir}/news/innshellvars
357 %config %verify(not size mtime md5) %{_datadir}/news/innshellvars.pl
358 %config %verify(not size mtime md5) %{_datadir}/news/innshellvars.tcl
360 #%config %verify(not size mtime md5) %{_datadir}/news/filter/filter_innd.pl
361 %config %verify(not size mtime md5) %{_datadir}/news/filter/filter_nnrpd.pl
362 %config %verify(not size mtime md5) %{_datadir}/news/filter/filter.tcl
363 %config %verify(not size mtime md5) %{_datadir}/news/filter/nnrpd_auth.pl
364 %config %verify(not size mtime md5) %{_datadir}/news/filter/startup_innd.pl
365 %config %verify(not size mtime md5) %{_datadir}/news/filter/startup.tcl
367 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/checkgroups
368 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/checkgroups.pl
369 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/default
370 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/ihave
371 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/ihave.pl
372 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/newgroup
373 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/newgroup.pl
374 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/rmgroup
375 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/rmgroup.pl
376 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/sendme
377 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/sendme.pl
378 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/sendsys
379 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/sendsys.pl
380 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/senduuname
381 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/senduuname.pl
382 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/version
383 %attr(755,root,root) %config %verify(not size mtime md5) %{_datadir}/news/control/version.pl
386 %attr(4750,root,news) %config %{_bindir}/startinnfeed
387 %attr(4750,root,uucp) %config %{_bindir}/rnews
390 %attr(2755,root,news) %{_bindir}/inews
393 %attr(755,root,root) %{_bindir}/actived
394 %attr(755,root,root) %{_bindir}/actmerge
395 %attr(755,root,root) %{_bindir}/actsync
396 %attr(755,root,root) %{_bindir}/actsyncd
397 %attr(755,root,root) %{_bindir}/archive
398 %attr(755,root,root) %{_bindir}/batcher
399 %attr(755,root,root) %{_bindir}/buffchan
400 %attr(755,root,root) %{_bindir}/c7unbatch
401 %attr(755,root,root) %{_bindir}/cnfsstat
402 %attr(755,root,root) %{_bindir}/cnfsstat.cron
403 %attr(755,root,root) %{_bindir}/controlbatch
404 %attr(755,root,root) %{_bindir}/controlchan
405 %attr(755,root,root) %{_bindir}/convdate
406 %attr(755,root,root) %{_bindir}/crosspost
407 %attr(755,root,root) %{_bindir}/ctlinnd
408 %attr(755,root,root) %{_bindir}/cvtbatch
409 %attr(755,root,root) %{_bindir}/decode
410 %attr(755,root,root) %{_bindir}/encode
411 %attr(755,root,root) %{_bindir}/expire
412 %attr(755,root,root) %{_bindir}/expireindex
413 %attr(755,root,root) %{_bindir}/expireover
414 %attr(755,root,root) %{_bindir}/expirerm
415 %attr(755,root,root) %{_bindir}/fastrm
416 %attr(755,root,root) %{_bindir}/filechan
417 %attr(755,root,root) %{_bindir}/getlist
418 %attr(755,root,root) %{_bindir}/grephistory
419 %attr(755,root,root) %{_bindir}/gunbatch
420 %attr(755,root,root) %{_bindir}/inncheck
421 %attr(755,root,root) %{_bindir}/innconfval
422 %attr(755,root,root) %{_bindir}/innd
423 %attr(755,root,root) %{_bindir}/inndf
424 %attr(755,root,root) %{_bindir}/inndstart
425 %attr(755,root,root) %{_bindir}/innfeed
426 %attr(755,root,root) %{_bindir}/innfeed-convcfg
427 %attr(755,root,root) %{_bindir}/innmail
428 %attr(755,root,root) %{_bindir}/innreport
429 %attr(755,root,root) %{_bindir}/innstat
430 %attr(755,root,root) %{_bindir}/innwatch
431 %attr(755,root,root) %{_bindir}/innxbatch
432 %attr(755,root,root) %{_bindir}/innxmit
433 %attr(755,root,root) %{_bindir}/mailpost
434 %attr(755,root,root) %{_bindir}/makeactive
435 %attr(755,root,root) %{_bindir}/makehistory
436 %attr(755,root,root) %{_bindir}/mod-active
437 %attr(755,root,root) %{_bindir}/news2mail
438 %attr(755,root,root) %{_bindir}/news.daily
439 %attr(755,root,root) %{_bindir}/newsrequeue
440 %attr(755,root,root) %{_bindir}/nnrpd
441 %attr(755,root,root) %{_bindir}/nntpget
442 %attr(755,root,root) %{_bindir}/nntpsend
443 %attr(755,root,root) %{_bindir}/overchan
444 %attr(755,root,root) %{_bindir}/parsecontrol
445 %attr(755,root,root) %{_bindir}/pgpverify
446 %attr(755,root,root) %{_bindir}/procbatch
447 %attr(755,root,root) %{_bindir}/prunehistory
448 %attr(755,root,root) %{_bindir}/pullnews
449 %attr(755,root,root) %{_bindir}/scanlogs
450 %attr(755,root,root) %{_bindir}/scanspool
451 %attr(755,root,root) %{_bindir}/sendbatch
452 %attr(755,root,root) %{_bindir}/send-ihave
453 %attr(755,root,root) %{_bindir}/send-nntp
454 %attr(755,root,root) %{_bindir}/send-uucp
455 %attr(755,root,root) %{_bindir}/sendxbatches
456 %attr(755,root,root) %{_bindir}/shlock
457 %attr(755,root,root) %{_bindir}/shrinkfile
458 %attr(755,root,root) %{_bindir}/simpleftp
459 %attr(755,root,root) %{_bindir}/sm
460 %attr(755,root,root) %{_bindir}/tally.control
461 %attr(755,root,root) %{_bindir}/writelog
465 %{_mandir}/man1/convdate.1*
466 %{_mandir}/man1/getlist.1*
467 %{_mandir}/man1/grephistory.1*
468 %{_mandir}/man1/innconfval.1*
469 %{_mandir}/man1/innfeed.1*
470 %{_mandir}/man1/installit.1*
471 %{_mandir}/man1/nntpget.1*
472 %{_mandir}/man1/rnews.1*
473 %{_mandir}/man1/shlock.1*
474 %{_mandir}/man1/shrinkfile.1*
475 %{_mandir}/man1/startinnfeed.1*
476 %{_mandir}/man1/subst.1*
479 ##############################################################################
481 %defattr(644,root,root,755)
486 ##############################################################################
488 %defattr(644,root,root,755)
489 %attr(2755,root,news) %{_bindir}/inews
490 %{_mandir}/man1/inews.1.gz