%include /usr/lib/rpm/macros.perl
Summary: INN, the InterNet News System (news server)
Summary(de): das InterNet News System (News-Server)
+Summary(es): INN, InterNet News System (servidor news)
Summary(fr): INN, le système InterNet News (serveur de news)
-Summary(pl): INN, serwer nowinek
+Summary(pl): INN, serwer nowinek
+Summary(pt_BR): INN, InterNet News System (servidor news)
Summary(tr): INN, InterNet Haber Sistemi (haber sunucu)
Name: inn
-Version: 2.3.1
-Release: 14
-License: Distributable
+Version: 2.3.3
+Release: 2
+License: distributable
Group: Networking/Daemons
-Group(de): Netzwerkwesen/Server
-Group(pl): Sieciowe/Serwery
Source0: ftp://ftp.isc.org/isc/inn/%{name}-%{version}.tar.gz
Source1: %{name}-default-active
Source2: %{name}-default-distributions
Source8: %{name}-cnfsstat.cron
Source9: %{name}.logrotate
Source10: %{name}-etc-readers.conf
+Source11: getlist.1.pl
+Source12: %{name}d.8.pl
#Patch0: ftp://ftp.north.ad.jp/pub/IPv6/INN/tmp/%{name}-2.3.0-v6-20001011.diff.gz
-Patch0: %{name}-2.3.1-v6-20010311.patch.gz
+Patch0: %{name}-ipv6.patch
Patch1: %{name}-PLD.patch
Patch2: %{name}-install.patch
Patch3: %{name}-db3.patch
Patch4: %{name}-setreuid.patch
Patch5: %{name}-sec.patch
-Patch6: %{name}-gcc.patch
-Patch7: %{name}-frsize.patch
+Patch6: %{name}-frsize.patch
+Patch7: %{name}-ac25x.patch
+Patch8: %{name}-ac253.patch
+Patch9: %{name}-db4.patch
URL: http://www.isc.org/inn.html
-Prereq: /sbin/chkconfig
-Prereq: /sbin/ldconfig
-Prereq: rc-scripts
-Prereq: sed
-Prereq: fileutils
-Prereq: %{name}-libs = %{version}
+BuildRequires: autoconf
+BuildRequires: libtool
BuildRequires: flex
BuildRequires: bison
-BuildRequires: db3-devel
-BuildRequires: perl
+BuildRequires: db-devel
+BuildRequires: openssl-devel >= 0.9.6a
+BuildRequires: perl-devel >= 5.6.1
Requires: cleanfeed >= 0.95.7b-4
Requires: rc-scripts >= 0.2.0
Requires: /etc/cron.d
-#Requires: perl-GD
+Requires: psmisc >= 20.1
+Requires: util-linux
+Requires: procps
+Requires: textutils
+Requires: awk
+PreReq: %{name}-libs = %{version}
+PreReq: rc-scripts
+Requires(post,preun): /sbin/chkconfig
+Requires(post): sed
+Requires(post): fileutils
+Requires(post): /usr/sbin/usermod
Provides: nntpserver
+Obsoletes: leafnode
+Obsoletes: leafnode+
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc/news
If you want innreport to generate graphs you need perl-GD package.
+%description -l es
+INN es un servidor de news, que puede ser configurado para manipular
+USENET news bien como newsfeeds privadas. Existe un *Montón* de
+información sobre la configuración del INN en /usr/doc -- léela.
+
%description -l pl
INN jest serwerem news, który mo¿na skonfigurowaæ do obs³ugi USENET-u,
jak równie¿ do obs³ugi ,,prywatnych'' grup w sieciach intranetowych.
Je¶li chcesz ¿eby innreport generowa³ wykresy musisz zainstalowaæ
pakiet perl-GD.
+%description -l pt_BR
+INN é um servidor de news, que pode ser configurado para manipular
+USENET news bem como newsfeeds privadas. Existe um *MONTE* de
+informações sobre a configuração do INN em /usr/doc -- leia.
+
%package libs
Summary: INN libraries
Summary(de): INN-Library
Summary(fr): Bibliothèque INN
Summary(pl): Biblioteki do INN-a
Group: Development/Libraries
-Group(de): Entwicklung/Libraries
-Group(fr): Development/Librairies
-Group(pl): Programowanie/Biblioteki
%description libs
This library is needed by several programs that interface to INN, such
as newsgate or tin.
-%description -l de libs
+%description libs -l de
Diese Library wird von mehreren Programmen benötigt, die mit INN
kommunizieren, etwa newsgate oder tin.
-%description -l fr libs
+%description libs -l fr
Cette bibliothèque est nécessaire à plusieurs programmes qui
s'interfacent avec INN, comme newsgate ou tin.
-%description -l pl libs
+%description libs -l pl
Biblioteka niezbêdna do dzia³ania kilku programów wspó³pracuj±cych z
INN-em, takich jak newsgate czy tin.
-%description -l tr libs
+%description libs -l tr
INN ile arayüz gerektiren programlar için (newsgate, tin gibi) gereken
bir kitaplýktýr.
%package devel
Summary: INN header files and development documentations
Summary(de): INN-Library
+Summary(es): Biblioteca INN
Summary(fr): Bibliothèque INN
Summary(pl): Pliki nag³ówkowe i dokumentacja programisty do inn-a
+Summary(pt_BR): Biblioteca INN
Summary(tr): INN kitaplýðý
Group: Development/Libraries
-Group(de): Entwicklung/Libraries
-Group(fr): Development/Librairies
-Group(pl): Programowanie/Biblioteki
Requires: %{name}-libs = %{version}
-Requires: db3-devel
+Requires: db-devel
%description devel
Header files and developer documentations for INN libraries.
-%description -l de devel
+%description devel -l de
Diese Library wird von mehreren Programmen benötigt, die mit INN
kommunizieren, etwa newsgate oder tin.
-%description -l fr devel
+%description devel -l es
+Esta biblioteca es requerida por varios programas que tienen interface
+con INN, como el newsgate o tin.
+
+%description devel -l fr
Cette bibliothèque est nécessaire à plusieurs programmes qui
s'interfacent avec INN, comme newsgate ou tin.
-%description -l pl devel
+%description devel -l pl
Pliki nag³ówkowe i dokumentacja programisty do bibliotek INN-a.
-%description -l tr devel
+%description devel -l pt_BR
+Esta biblioteca é requerida por vários programas que tem interface com
+o INN, como o newsgate ou tin.
+
+%description devel -l tr
INN ile arayüz gerektiren programlar için (newsgate, tin gibi) gereken
bir kitaplýktýr.
%package static
Summary: Static INN libraries
+Summary(es): Static libraries for inn development
Summary(pl): Biblioteki statyczne do INN
+Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com inn
Group: Development/Libraries
-Group(de): Entwicklung/Libraries
-Group(fr): Development/Librairies
-Group(pl): Programowanie/Biblioteki
Requires: %{name}-devel = %{version}
%description static
Static INN libraries.
-%description -l pl static
+%description static -l es
+Static libraries for inn development
+
+%description static -l pl
Biblioteki statyczne do INN.
+%description static -l pt_BR
+INN é um servidor de news, que pode ser configurado para manipular
+USENET news bem como newsfeeds privadas. Existe um *MONTE* de
+informações sobre a configuração do INN em /usr/doc -- leia.
+
+Bibliotecas estáticas para desenvolvimento com inn
+
%package -n inews
Summary: Inews program (used for posting by inn and trn)
-Summary(de): Inews-Programm (für die Zustellung mit inn und trn)
+Summary(de): Inews-Programm (für die Zustellung mit inn und trn)
+Summary(es): Programa Inews (usado para franqueo por inn y trn)
Summary(fr): Programme inews (utilisé par inn et trn pour poster)
Summary(pl): Inews - program do wysy³ania artyku³ów (u¿ywany przez inn i trn)
+Summary(pt_BR): Programa Inews (usado para postagem pelo inn e trn)
Summary(tr): Haber biçimlendirme programý
Group: Networking/News
-Group(de): Netzwerkwesen/News
-Group(pl): Sieciowe/News
%description -n inews
The inews program is used by some news readers to post news. It does
some consistency checking and header reformatting, and forwards the
article on to the news server specified in inn.conf.
-%description -l de -n inews
+%description -n inews -l de
Das Programm 'inews' wird von manchen Newsreadern zum Senden von
Nachrichten verwendet. Es führt eine Konsistenzprüfung und Header-Neuf
ormatierung aus und leitet die Nachricht an den in 'inn.conf'
angegebenen News-Server weiter.
-%description -l fr -n inews
+%description -n inews -l es
+El programa inews se usa por algunos lectores de news para postar
+mensajes. Hace alguna consistencia chequeando y reformateando headers,
+y enviando el artículo para el servidor de news especificado en el
+inn.conf.
+
+%description -n inews -l fr
Le programme inews est utilisé par certains lecteurs de news pour
poster les articles. Il effectue des vérifications et un reformatage
des en-têtes et fait suivre l'article au serveur de news spécifié dans
inn.conf.
-%description -l pl -n inews
+%description -n inews -l pl
Inews jest u¿ywany przez niektóre czytniki news do wysy³ania
artyku³ów. Sprawdza budowê artyku³u, przepisuje nag³ówek i wysy³a do
serwera news wyszczególnionego w inn.conf.
-%description -l tr -n inews
+%description -n inews -l pt_BR
+O programa inews é usado por alguns leitores de news para postar
+mensagens. Ele faz alguma consistência checando e reformatando
+headers, e enviando o artigo para o servidor de news especificado no
+inn.conf.
+
+%description -n inews -l tr
inews programý bazý haber okuyucular tarafýndan haber yollamak
amacýyla kullanýlýr. Program bazý güvenlik denetimleri ve baþlýk
biçimlendirmesi yaparak ve inn.conf dosyasýnda belirtilen haber
%patch5 -p1
%patch6 -p1
%patch7 -p1
+%patch8 -p1
+%patch9 -p1
%build
touch innfeed/*.[ly]
rm -f config.cache
-autoconf
-libtoolize --copy --force
+%{__autoconf}
+%{__libtoolize}
%configure \
- --with-news-user=news \
- --with-news-group=news \
- --with-news-master=news \
- --with-db-dir=/var/lib/news \
- --with-etc-dir=%{_sysconfdir} \
- --with-log-dir=/var/log/news \
- --with-run-dir=/var/run/news \
- --with-spool-dir=/var/spool/news \
- --with-lib-dir=%{_datadir}/news \
- --with-tmp-path=/var/spool/news/incoming/tmp \
- --with-perl \
- --with-sendmail=%{_libdir}/sendmail \
+ --with-news-user=news \
+ --with-news-group=news \
+ --with-news-master=news \
+ --with-db-dir=/var/lib/news \
+ --with-etc-dir=%{_sysconfdir} \
+ --with-log-dir=/var/log/news \
+ --with-run-dir=/var/run/news \
+ --with-spool-dir=/var/spool/news \
+ --with-lib-dir=%{_datadir}/news \
+ --with-tmp-path=/var/spool/news/incoming/tmp \
+ --with-perl \
+ --with-sendmail=%{_libdir}/sendmail \
--with-openssl=%{_prefix} \
--with-berkeleydb=%{_prefix} \
- %{?bcond_on_largefiles:--with-largefiles} \
- %{!?bcond_on_largefiles:--enable-tagged-hash} \
- --enable-merge-to-groups \
- --enable-pgp-verify \
+ %{?_with_largefiles:--with-largefiles} \
+ %{!?_with_largefiles:--enable-tagged-hash} \
+ --enable-merge-to-groups \
+ --enable-pgp-verify \
--enable-shared \
--enable-static \
--enable-libtool \
%{__make} all PATHFILTER=%{_datadir}/news/filter \
PATHCONTROL=%{_datadir}/news/control
-%install
+%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/{news,rc.d/init.d,cron.d,logrotate.d} \
$RPM_BUILD_ROOT{%{_libdir}/news/{rnews,auth/generic},%{_includedir}/inn} \
$RPM_BUILD_ROOT{%{_bindir},%{_datadir}/news/{control,filter,auth}} \
- $RPM_BUILD_ROOT%{_mandir}/man{1,3,5,8} \
+ $RPM_BUILD_ROOT%{_mandir}/{man{1,3,5,8},pl/man{1,8}} \
$RPM_BUILD_ROOT/var/{run/news,lib/news/backoff,log/{news,archiv/news}} \
- $RPM_BUILD_ROOT/var/spool/news/{articles,overview,incoming/{tmp,bad},outgoing,archive,uniover,innfeed,cycbuffs}
+ $RPM_BUILD_ROOT/var/spool/news/{articles,overview,incoming/{tmp,bad},outgoing,archive,uniover,innfeed,cycbuffs} \
+ $RPM_BUILD_ROOT/home/services/news
%{__make} install \
DESTDIR="$RPM_BUILD_ROOT" \
install %{SOURCE8} $RPM_BUILD_ROOT%{_bindir}/cnfsstat.cron
install %{SOURCE9} $RPM_BUILD_ROOT/etc/logrotate.d/inn
install %{SOURCE10} $RPM_BUILD_ROOT/%{_sysconfdir}/readers.conf
+install %{SOURCE11} $RPM_BUILD_ROOT/%{_mandir}/pl/man1/getlist.1
+install %{SOURCE12} $RPM_BUILD_ROOT/%{_mandir}/pl/man8/innd.8
rm -f $RPM_BUILD_ROOT/var/lib/news/history
touch $RPM_BUILD_ROOT/var/log/news/news.crit
touch $RPM_BUILD_ROOT/var/log/news/news.err
-touch $RPM_BUILD_ROOT%{_includedir}/inn/configdata.h
+touch $RPM_BUILD_ROOT%{_includedir}/inn/configdata.h
install include/{clibrary,dbz,libinn,nntp,ov,qio,ppport,rwlock,storage}.h \
$RPM_BUILD_ROOT%{_includedir}/inn
#Fix perms in sample directory to avoid bogus dependencies
find samples -name "*.in" -exec chmod a-x {} \;
-gzip -9nf CONTRIBUTORS INSTALL HISTORY README* ChangeLog LICENSE NEWS
-
%clean
rm -rf $RPM_BUILD_ROOT
%post
+if [ "`su - news -s /bin/sh -c pwd 2>/dev/null`" = "/var/spool/news" ]; then
+ /usr/sbin/usermod -d /home/services/news news
+fi
if [ -f /var/lib/news/history ]; then
cd /var/lib/news
%{_bindir}/makedbz -s `wc -l <history` -f history
/sbin/chkconfig --del inn
fi
-%post libs -p /sbin/ldconfig
-%postun libs -p /sbin/ldconfig
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
-%doc {CONTRIBUTORS,INSTALL,HISTORY,README*,ChangeLog,LICENSE,NEWS}.gz
+%doc CONTRIBUTORS INSTALL HISTORY README* ChangeLog LICENSE NEWS
# DB
%attr(770,root,news) %dir /var/lib/news
%attr(770,root,news) %dir /var/spool/news/uniover
# CRON PARTS
-%attr(640,root,root) %config %verify(not size mtime md5) /etc/cron.d/inn
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/cron.d/inn
# RC-SCRIPT
%attr(754,root,root) /etc/rc.d/init.d/inn
%attr(755,root,root) %dir %{_datadir}/news/filter
%attr(755,root,root) %{_datadir}/news/docheckgroups
-%config %verify(not size mtime md5) %{_datadir}/news/innreport_inn.pm
-%config %verify(not size mtime md5) %{_datadir}/news/innshellvars
-%config %verify(not size mtime md5) %{_datadir}/news/innshellvars.pl
-%config %verify(not size mtime md5) %{_datadir}/news/innshellvars.tcl
-
-%config %verify(not size mtime md5) %{_datadir}/news/filter/INN.py
-%config %verify(not size mtime md5) %{_datadir}/news/filter/filter_nnrpd.pl
-%config %verify(not size mtime md5) %{_datadir}/news/filter/filter.tcl
-%config %verify(not size mtime md5) %{_datadir}/news/filter/nnrpd_auth.pl
-%config %verify(not size mtime md5) %{_datadir}/news/filter/nnrpd_auth.py
-%config %verify(not size mtime md5) %{_datadir}/news/filter/startup_innd.pl
-%config %verify(not size mtime md5) %{_datadir}/news/filter/startup.tcl
+%config(noreplace) %verify(not size mtime md5) %{_datadir}/news/innreport_inn.pm
+%config(noreplace) %verify(not size mtime md5) %{_datadir}/news/innshellvars
+%config(noreplace) %verify(not size mtime md5) %{_datadir}/news/innshellvars.pl
+%config(noreplace) %verify(not size mtime md5) %{_datadir}/news/innshellvars.tcl
+
+%config(noreplace) %verify(not size mtime md5) %{_datadir}/news/filter/INN.py
+%config(noreplace) %verify(not size mtime md5) %{_datadir}/news/filter/filter_nnrpd.pl
+%config(noreplace) %verify(not size mtime md5) %{_datadir}/news/filter/filter.tcl
+%config(noreplace) %verify(not size mtime md5) %{_datadir}/news/filter/nnrpd_auth.pl
+%config(noreplace) %verify(not size mtime md5) %{_datadir}/news/filter/nnrpd_auth.py
+%config(noreplace) %verify(not size mtime md5) %{_datadir}/news/filter/startup_innd.pl
+%config(noreplace) %verify(not size mtime md5) %{_datadir}/news/filter/startup.tcl
%attr(755,root,root) %{_datadir}/news/control/checkgroups
%attr(755,root,root) %{_datadir}/news/control/checkgroups.pl
# SUID
%attr(4754,root,news) %{_bindir}/inndstart
%attr(4754,root,news) %{_bindir}/startinnfeed
-%attr(4754,root,uucp) %{_bindir}/rnews
+%attr(4754,root,news) %{_bindir}/rnews
# BINARIES
%attr(755,root,root) %{_bindir}/actmerge
%{_mandir}/man1/shrinkfile.1*
%{_mandir}/man1/simpleftp.1*
%{_mandir}/man1/startinnfeed.1*
-%{_mandir}/man[58]/**
+%{_mandir}/man[58]/*
+%lang(pl) %{_mandir}/pl/man1/getlist.1*
+%lang(pl) %{_mandir}/pl/man8/innd.8*
%files libs
%defattr(644,root,root,755)