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.2
-Release: 7
+Version: 2.3.3
+Release: 2
License: distributable
Group: Networking/Daemons
Source0: ftp://ftp.isc.org/isc/inn/%{name}-%{version}.tar.gz
Source9: %{name}.logrotate
Source10: %{name}-etc-readers.conf
Source11: getlist.1.pl
-Source12: innd.8.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}-ipv6.patch
Patch1: %{name}-PLD.patch
Patch5: %{name}-sec.patch
Patch6: %{name}-frsize.patch
Patch7: %{name}-ac25x.patch
+Patch8: %{name}-ac253.patch
+Patch9: %{name}-db4.patch
URL: http://www.isc.org/inn.html
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: flex
BuildRequires: bison
-BuildRequires: db3-devel
+BuildRequires: db-devel
BuildRequires: openssl-devel >= 0.9.6a
BuildRequires: perl-devel >= 5.6.1
Requires: cleanfeed >= 0.95.7b-4
Requires: /etc/cron.d
Requires: psmisc >= 20.1
Requires: util-linux
-Prereq: /sbin/chkconfig
-Prereq: /sbin/ldconfig
-Prereq: rc-scripts
-Prereq: sed
-Prereq: fileutils
-Prereq: %{name}-libs = %{version}
+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
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.
Summary(tr): INN kitaplýðý
Group: Development/Libraries
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 es devel
+%description devel -l es
Esta biblioteca es requerida por varios programas que tienen interface
con INN, como el newsgate o tin.
-%description -l fr devel
+%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 pt_BR 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 -l tr devel
+%description devel -l tr
INN ile arayüz gerektiren programlar için (newsgate, tin gibi) gereken
bir kitaplýktýr.
%description static
Static INN libraries.
-%description -l es static
+%description static -l es
Static libraries for inn development
-%description -l pl static
+%description static -l pl
Biblioteki statyczne do INN.
-%description -l pt_BR static
+%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.
%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)
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 es -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 -l fr -n inews
+%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 pt_BR -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 -l tr -n inews
+%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} \
%{?_with_largefiles:--with-largefiles} \
- %{!?_with_largefiles:--enable-tagged-hash} \
- --enable-merge-to-groups \
- --enable-pgp-verify \
+ %{!?_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},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" \
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