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
20 Patch0: %{name}-config.patch
21 Patch1: %{name}-makefile.patch
22 URL: http://www.isc.org/inn.html
27 BuildRoot: /tmp/%{name}-%{version}-root
28 Prereq: /sbin/chkconfig
31 INN is a news server, which can be set up to handle USENET news, as well
32 as private "newsfeeds". There is a *LOT* of information about setting
33 up INN in /usr/share/doc -- read it.
36 INN jest serwerem news, który mo¿na skonfigurowaæ do obs³ugi USENET-u,
37 jak równie¿ do obs³ugi ,,prywatnych'' grup w sieciach intranetowych.
38 Ca³e mnóstwo po¿ytecznych informacji o konfigurowaniu INN-a znajdziesz
39 w katalogu /usr/share/doc/inn-*.
43 Summary(de): INN-Library
44 Summary(fr): Bibliothèque INN
45 Summary(pl): INN-biblioteka i pliki nag³ówkowe dla inn-a
46 Summary(tr): INN kitaplýðý
47 Group: Development/Libraries
48 Group(pl): Programowanie/Biblioteki
49 Requires: %{name} = %{version}
52 This library is needed by several programs that interface to INN, such as
55 %description -l de devel
56 Diese Library wird von mehreren Programmen benötigt, die mit INN
57 kommunizieren, etwa newsgate oder tin.
59 %description -l fr devel
60 Cette bibliothèque est nécessaire à plusieurs programmes qui s'interfacent
61 avec INN, comme newsgate ou tin.
63 %description -l pl devel
64 Biblioteka niezbêdna do dzia³ania kilku programów wspó³pracuj±cych z INN-em, takich jak newsgate czy tin.
66 %description -l tr devel
67 INN ile arayüz gerektiren programlar için (newsgate, tin gibi) gereken bir
72 Summary: Inews program (used for posting by inn and trn)
73 Summary(de): Inews-Programm (für die Zustellung mit inn und trn)
74 Summary(fr): Programme inews (utilisé par inn et trn pour poster)
75 Summary(pl): Inews - program do wysy³ania artyku³ów (u¿ywany przez inn i trn)
76 Summary(tr): Haber biçimlendirme programý
77 Group: Networking/News
78 Group(pl): Sieciowe/News
81 The inews program is used by some news readers to post news.
82 It does some consistency checking and header reformatting,
83 and forwards the article on to the news server specified in
86 %description -l de -n inews
87 Das Programm 'inews' wird von manchen Newsreadern zum Senden
88 von Nachrichten verwendet. Es führt eine Konsistenzprüfung und Header-Neuf
89 ormatierung aus und leitet die Nachricht an den in 'inn.conf'
90 angegebenen News-Server weiter.
92 %description -l fr -n inews
93 Le programme inews est utilisé par certains lecteurs de news pour
94 poster les articles. Il effectue des vérifications et un reformatage
95 des en-têtes et fait suivre l'article au serveur de news spécifié dans inn.conf.
97 %description -l pl -n inews
98 Inews jest u¿ywany przez niektóre czytniki news do wysy³ania
99 artyku³ów. Sprawdza budowê artyku³u, przepisuje nag³ówek i wysy³a
100 do serwera news wyszczególnionego w inn.conf.
102 %description -l tr -n inews
103 inews programý bazý haber okuyucular tarafýndan haber yollamak amacýyla
104 kullanýlýr. Program bazý güvenlik denetimleri ve baþlýk biçimlendirmesi
105 yaparak ve inn.conf dosyasýnda belirtilen haber sunucuya makaleyi yollar.
117 libtoolize --copy --force
118 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
119 ./configure %{_target_platform} \
121 --sysconfdir=/etc/news \
122 --with-news-user=news \
123 --with-news-group=news \
124 --with-news-master=news \
125 --with-db-dir=/var/state/news \
126 --with-etc-dir=/etc/news \
127 --with-log-dir=/var/log/news \
128 --with-run-dir=/var/run/news \
129 --with-spool-dir=/var/spool/news \
130 --with-lib-dir=/usr/share/news \
131 --with-tmp-path=/var/spool/news/incoming/tmp \
133 --with-sendmail=%{_libdir}/sendmail \
134 --enable-tagged-hash \
135 --enable-merge-to-groups \
136 --enable-pgp-verify \
139 make all PATHFILTER=%{_datadir}/news/filter \
140 PATHCONTROL=%{_datadir}/news/control \
141 RNEWSPROGS=%{_bindir}
144 rm -fr $RPM_BUILD_ROOT
145 install -d $RPM_BUILD_ROOT/etc/{news,rc.d/init.d,cron.d}
146 install -d $RPM_BUILD_ROOT%{_bindir}/auth
147 install -d $RPM_BUILD_ROOT%{_libdir}/news
148 install -d $RPM_BUILD_ROOT%{_datadir}/news/{control,filter}
149 install -d $RPM_BUILD_ROOT%{_includedir}/inn
150 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,3,5,8}
151 install -d $RPM_BUILD_ROOT/var/{run/news,state/news/backoff,log/news/OLD}
152 install -d $RPM_BUILD_ROOT/var/spool/news/{articles,overview,incoming/{tmp,bad},outgoing,archive,uniover,innfeed,cycbuffs}
154 make DESTDIR="$RPM_BUILD_ROOT" install PATHFILTER=%{_datadir}/news/filter \
155 PATHCONTROL=%{_datadir}/news/control \
156 RNEWSPROGS=%{_bindir}
158 install %{SOURCE1} $RPM_BUILD_ROOT/var/state/news/active
159 install %{SOURCE2} $RPM_BUILD_ROOT/var/state/news/distributions
160 install %{SOURCE3} $RPM_BUILD_ROOT/var/state/news/newsgroups
161 install %{SOURCE4} $RPM_BUILD_ROOT/etc/news/nnrp.access
162 install %{SOURCE5} $RPM_BUILD_ROOT/etc/cron.d/inn
163 install %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/inn
164 install %{SOURCE7} $RPM_BUILD_ROOT%{_bindir}/news.cron
166 rm -f $RPM_BUILD_ROOT/var/state/news/history
169 touch $RPM_BUILD_ROOT/var/state/news/subscriptions
170 touch $RPM_BUILD_ROOT/var/state/news/history
171 touch $RPM_BUILD_ROOT/var/state/news/.news.daily
172 touch $RPM_BUILD_ROOT/var/state/news/active.times
173 touch $RPM_BUILD_ROOT/var/log/news/news.notice
174 touch $RPM_BUILD_ROOT/var/log/news/news.crit
175 touch $RPM_BUILD_ROOT/var/log/news/news.err
177 LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_datadir} $RPM_BUILD_ROOT%{_bindir}/makehistory\
178 -a $RPM_BUILD_ROOT/var/state/news/active \
179 -i -r -f $RPM_BUILD_ROOT/var/state/news/history || :
181 install include/clibrary.h $RPM_BUILD_ROOT%{_includedir}/inn
182 install include/configdata.h $RPM_BUILD_ROOT%{_includedir}/inn
183 install include/dbz.h $RPM_BUILD_ROOT%{_includedir}/inn
184 install include/libinn.h $RPM_BUILD_ROOT%{_includedir}/inn
186 mv $RPM_BUILD_ROOT%{_datadir}/news/*.a $RPM_BUILD_ROOT%{_libdir}
188 #Fix perms in sample directory to avoid bogus dependencies
189 find samples -name "*.in" -exec chmod a-x {} \;
191 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man{1,3,5,8}/* \
192 CONTRIBUTORS HISTORY README README.perl_hook README.tcl_hook \
193 INSTALL ChangeLog COPYRIGHT
196 rm -rf $RPM_BUILD_ROOT
199 if [ -f /var/state/news/history ]; then
201 %{_libdir}/news/bin/makehistory -i -r
202 for i in dir hash index pag; do
203 [ -f history.n.$i ] && mv history.n.$i history.$i
205 chown news.news history.*
210 %{_libdir}/news/bin/makehistory -i
211 for i in dir hash index pag; do
212 [ -f history.n.$i ] && mv history.n.$i history.$i
214 chown news.news history history.*
215 chmod 644 history history.*
217 [ -f /var/state/news/active.times ] || {
218 touch /var/state/news/active.times
219 chown news.news /var/state/news/active.times
221 chown -R news.news /var/log/news*
222 if [ -f /etc/syslog.conf ]; then
223 if ! grep -q INN /etc/syslog.conf; then
224 sed 's/mail.none;/mail.none;news.none;/' < /etc/syslog.conf > /etc/syslog.conf.inn
225 mv /etc/syslog.conf.inn /etc/syslog.conf
235 echo 'news.=crit /var/log/news/news.crit' >> /etc/syslog.conf
236 echo 'news.=err /var/log/news/news.err' >> /etc/syslog.conf
237 echo 'news.notice /var/log/news/news.notice' >> /etc/syslog.conf
239 if [ -f /var/run/syslog.pid ]; then
240 kill -HUP `cat /var/run/syslog.pid` 2> /dev/null ||:
243 # syslog.conf does not exist
245 echo "mail.none /var/log/messages" \
246 > /etc/syslog.conf.inn
248 >> /etc/syslog.conf.inn
250 >> /etc/syslog.conf.inn
251 echo "news.=crit /var/log/news/news.crit" >> /etc/syslog.conf.inn
252 echo "news.=err /var/log/news/news.err" >> /etc/syslog.conf.inn
253 echo "news.notice /var/log/news/news.notice" >> /etc/syslog.conf.inn
255 if [ `cat /etc/news/inn.conf | grep '^server:' | wc -l` -lt 1 ]; then
256 echo "server: `hostname -f`" >> /etc/news/inn.conf
259 /sbin/chkconfig --add inn
263 if [ "$1" = "0" ]; then
264 if [ -f /var/lock/subsys/news ]; then
265 /etc/rc.d/init.d/inn stop
267 /sbin/chkconfig --del inn
271 %defattr(644,root,root,755)
272 %doc {CONTRIBUTORS,HISTORY,README,README.perl_hook,README.tcl_hook}.gz
273 %doc {INSTALL,ChangeLog,COPYRIGHT}.gz
276 %attr(750,news,news) %dir /var/state/news
277 %attr(750,news,news) %dir /var/state/news/backoff
278 %attr(664,news,news) %config(noreplace) %verify(not size mtime md5) /var/state/news/active
279 %attr(644,news,news) %config(noreplace) %verify(not size mtime md5) /var/state/news/distributions
280 %attr(644,news,news) %config(noreplace) %verify(not size mtime md5) /var/state/news/newsgroups
281 %attr(644,news,root) %config(noreplace) %verify(not size mtime md5) /var/state/news/subscriptions
282 %attr(664,news,news) %config(noreplace) %verify(not size mtime md5) /var/state/news/active.times
283 %attr(664,news,news) %config(noreplace) %verify(not size mtime md5) /var/state/news/.news.daily
286 %attr(750,news,news) %dir /var/log/news
287 %attr(770,news,news) %dir /var/log/news/OLD
288 %attr(770,news,news) %dir /var/run/news
289 %attr(664,news,news) %config(noreplace) %verify(not size mtime md5) /var/log/news/news.notice
290 %attr(660,news,news) %config(noreplace) %verify(not size mtime md5) /var/log/news/news.crit
291 %attr(660,news,news) %config(noreplace) %verify(not size mtime md5) /var/log/news/news.err
294 %attr(750,news,news) %dir /var/spool/news
295 %attr(770,news,news) %dir /var/spool/news/cycbuffs
296 %attr(770,news,news) %dir /var/spool/news/innfeed
297 %attr(770,news,news) %dir /var/spool/news/incoming
298 %attr(770,news,news) %dir /var/spool/news/incoming/bad
299 %attr(770,news,news) %dir /var/spool/news/incoming/tmp
300 %attr(770,news,news) %dir /var/spool/news/outgoing
301 %attr(770,news,news) %dir /var/spool/news/archive
302 %attr(770,news,news) %dir /var/spool/news/overview
303 %attr(770,news,news) %dir /var/spool/news/uniover
306 %attr(750,root,root) %config %verify(not size mtime md5) /etc/cron.d/*
309 %attr(754,root,root) %config /etc/rc.d/init.d/inn
311 # CONFIGS (INN is a one big config ;-)
312 %attr(755,news,news) %dir /etc/news
313 %attr(755,news,news) %dir %{_datadir}/news
314 %attr(755,news,news) %dir %{_datadir}/news/control
315 %attr(755,news,news) %dir %{_datadir}/news/filter
316 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/actsync.cfg
317 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/actsync.ign
318 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/control.ctl
319 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/cycbuff.conf
320 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/expire.ctl
321 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/incoming.conf
322 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/inn.conf
323 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/innfeed.conf
324 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/innreport.conf
325 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/innwatch.ctl
326 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/motd.news
327 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/news2mail.cf
328 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/newsfeeds
329 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/nnrp.access
330 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/nnrpd.track
331 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/nntpsend.ctl
332 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/overview.ctl
333 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/overview.fmt
334 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/passwd.nntp
335 %attr(640,news,news) %config %verify(not size mtime md5) /etc/news/storage.conf
337 %attr(644,news,news) %config %verify(not size mtime md5) /etc/news/moderators
338 %attr(644,news,news) %config %verify(not size mtime md5) /etc/news/distrib.pats
340 %attr(644,news,news) %config %verify(not size mtime md5) %{_datadir}/news/innreport_inn.pm
341 %attr(644,news,news) %config %verify(not size mtime md5) %{_datadir}/news/innshellvars
342 %attr(644,news,news) %config %verify(not size mtime md5) %{_datadir}/news/innshellvars.pl
343 %attr(644,news,news) %config %verify(not size mtime md5) %{_datadir}/news/innshellvars.tcl
345 %attr(644,news,news) %config %verify(not size mtime md5) %{_datadir}/news/filter/filter_innd.pl
346 %attr(644,news,news) %config %verify(not size mtime md5) %{_datadir}/news/filter/filter_nnrpd.pl
347 %attr(644,news,news) %config %verify(not size mtime md5) %{_datadir}/news/filter/filter.tcl
348 %attr(644,news,news) %config %verify(not size mtime md5) %{_datadir}/news/filter/nnrpd_auth.pl
349 %attr(644,news,news) %config %verify(not size mtime md5) %{_datadir}/news/filter/startup_innd.pl
350 %attr(644,news,news) %config %verify(not size mtime md5) %{_datadir}/news/filter/startup.tcl
352 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/checkgroups
353 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/checkgroups.pl
354 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/default
355 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/ihave
356 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/ihave.pl
357 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/newgroup
358 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/newgroup.pl
359 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/rmgroup
360 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/rmgroup.pl
361 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/sendme
362 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/sendme.pl
363 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/sendsys
364 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/sendsys.pl
365 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/senduuname
366 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/senduuname.pl
367 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/version
368 %attr(755,news,news) %config %verify(not size mtime md5) %{_datadir}/news/control/version.pl
371 %attr(4750,root,news) %{_bindir}/inndstart
372 %attr(4750,root,news) %config %{_bindir}/startinnfeed
373 %attr(4750,root,uucp) %config %{_bindir}/rnews
376 %attr(2755,root,news) %{_bindir}/inews
379 %attr(755,root,root) %{_bindir}/actived
380 %attr(755,root,root) %{_bindir}/actmerge
381 %attr(755,root,root) %{_bindir}/actsync
382 %attr(755,root,root) %{_bindir}/actsyncd
383 %attr(755,root,root) %{_bindir}/archive
384 %attr(755,root,root) %{_bindir}/batcher
385 %attr(755,root,root) %{_bindir}/buffchan
386 %attr(755,root,root) %{_bindir}/c7unbatch
387 %attr(755,root,root) %{_bindir}/cnfsstat
388 %attr(755,root,root) %{_bindir}/controlbatch
389 %attr(755,root,root) %{_bindir}/controlchan
390 %attr(755,root,root) %{_bindir}/convdate
391 %attr(755,root,root) %{_bindir}/crosspost
392 %attr(755,root,root) %{_bindir}/ctlinnd
393 %attr(755,root,root) %{_bindir}/cvtbatch
394 %attr(755,root,root) %{_bindir}/decode
395 %attr(755,root,root) %{_bindir}/encode
396 %attr(755,root,root) %{_bindir}/expire
397 %attr(755,root,root) %{_bindir}/expireindex
398 %attr(755,root,root) %{_bindir}/expireover
399 %attr(755,root,root) %{_bindir}/expirerm
400 %attr(755,root,root) %{_bindir}/fastrm
401 %attr(755,root,root) %{_bindir}/filechan
402 %attr(755,root,root) %{_bindir}/getlist
403 %attr(755,root,root) %{_bindir}/grephistory
404 %attr(755,root,root) %{_bindir}/gunbatch
405 %attr(755,root,root) %{_bindir}/inncheck
406 %attr(755,root,root) %{_bindir}/innconfval
407 %attr(755,root,root) %{_bindir}/innd
408 %attr(755,root,root) %{_bindir}/inndf
409 %attr(755,root,root) %{_bindir}/innfeed
410 %attr(755,root,root) %{_bindir}/innfeed-convcfg
411 %attr(755,root,root) %{_bindir}/innmail
412 %attr(755,root,root) %{_bindir}/innreport
413 %attr(755,root,root) %{_bindir}/innstat
414 %attr(755,root,root) %{_bindir}/innwatch
415 %attr(755,root,root) %{_bindir}/innxbatch
416 %attr(755,root,root) %{_bindir}/innxmit
417 %attr(755,root,root) %{_bindir}/mailpost
418 %attr(755,root,root) %{_bindir}/makeactive
419 %attr(755,root,root) %{_bindir}/makehistory
420 %attr(755,root,root) %{_bindir}/mod-active
421 %attr(755,root,root) %{_bindir}/news2mail
422 %attr(755,root,root) %{_bindir}/news.cron
423 %attr(755,root,root) %{_bindir}/news.daily
424 %attr(755,root,root) %{_bindir}/newsrequeue
425 %attr(755,root,root) %{_bindir}/nnrpd
426 %attr(755,root,root) %{_bindir}/nntpget
427 %attr(755,root,root) %{_bindir}/nntpsend
428 %attr(755,root,root) %{_bindir}/overchan
429 %attr(755,root,root) %{_bindir}/parsecontrol
430 %attr(755,root,root) %{_bindir}/pgpverify
431 %attr(755,root,root) %{_bindir}/procbatch
432 %attr(755,root,root) %{_bindir}/prunehistory
433 %attr(755,root,root) %{_bindir}/pullnews
434 %attr(755,root,root) %{_bindir}/scanlogs
435 %attr(755,root,root) %{_bindir}/scanspool
436 %attr(755,root,root) %{_bindir}/sendbatch
437 %attr(755,root,root) %{_bindir}/send-ihave
438 %attr(755,root,root) %{_bindir}/send-nntp
439 %attr(755,root,root) %{_bindir}/send-uucp
440 %attr(755,root,root) %{_bindir}/sendxbatches
441 %attr(755,root,root) %{_bindir}/shlock
442 %attr(755,root,root) %{_bindir}/shrinkfile
443 %attr(755,root,root) %{_bindir}/simpleftp
444 %attr(755,root,root) %{_bindir}/sm
445 %attr(755,root,root) %{_bindir}/tally.control
446 %attr(755,root,root) %{_bindir}/writelog
450 %attr(644,root,root) %{_mandir}/man1/convdate.1*
451 %attr(644,root,root) %{_mandir}/man1/getlist.1*
452 %attr(644,root,root) %{_mandir}/man1/grephistory.1*
453 %attr(644,root,root) %{_mandir}/man1/innconfval.1*
454 %attr(644,root,root) %{_mandir}/man1/innfeed.1*
455 %attr(644,root,root) %{_mandir}/man1/installit.1*
456 %attr(644,root,root) %{_mandir}/man1/nntpget.1*
457 %attr(644,root,root) %{_mandir}/man1/rnews.1*
458 %attr(644,root,root) %{_mandir}/man1/shlock.1*
459 %attr(644,root,root) %{_mandir}/man1/shrinkfile.1*
460 %attr(644,root,root) %{_mandir}/man1/startinnfeed.1*
461 %attr(644,root,root) %{_mandir}/man1/subst.1*
462 %attr(644,root,root) %{_mandir}/man[58]/*
464 ##############################################################################
466 %defattr(644,root,root,755)
467 %attr(644,root,root) %{_includedir}/inn/*
468 %attr(644,root,root) %{_libdir}/*.a
469 %attr(644,root,root) %{_mandir}/man3/*
471 ##############################################################################
473 %defattr(644,root,root,755)
474 %attr(2755,root,news) %{_bindir}/inews
475 %attr(644,root,root) %{_mandir}/man1/inews.1.gz