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