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