Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37515741
en ru br
Репозитории ALT
S:2.6.4-alt1
5.1: 2.4.5-alt2
4.1: 2.4.5-alt0.1.M41.1
4.0: 2.4.5-alt0.1.M40.1
3.0: 2.4.1-alt7
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: inn

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: inn
Version: 2.4.1
Release: alt7

Summary: The InterNetNews (INN) system, an Usenet news server

License: GPL
Group: System/Servers

Source0: ftp://ftp.isc.org/isc/inn/inn-%version.tar.bz2
Source1: %name-default-active
Source2: %name-default-distributions
Source3: %name-default-newsgroups
Source4: %name-cron-expire
Source5: %name-cron-rnews
Source6: %name-etc-nnrp.access
Source7: %name-cron-nntpsend
Source8: innd.init
Source9: ftp://ftp.exit109.com/users/jeremy/cleanfeed-latest.tar.bz2
Source10: ftp://ftp.isc.org/pub/pgpcontrol/pgpverify-1.2.1
Source11: %name-faq.tar.bz2

Patch1: %name-2.4.1-alt.patch
Patch2: %name-2.4.0-alt-gdbm.patch
Patch3: %name-2.4.0-alt-db4.patch
Patch4: %name-2.4.0-alt-cdb.patch
Patch5: %name-2.4.0-alt-docs.patch
Patch6: %name-2.4.1-alt-bdb42.patch
Patch7: %name-2.4.1-alt-krb5.patch
Patch8: %name-2.4.1-alt-bdb43.patch

BuildPreReq: rpm-build >= 4.0.4-alt10, autoconf = 2.13
Requires: lib%name = %version-%release

# Automatically added by buildreq on Sat Feb 12 2005 (-bi)

BuildRequires: ctags flex glibc-devel-static gnupg libdb1-devel libdb4-devel libe2fs-devel libkrb5-devel libpam-devel libssl-devel ncompress perl-Math-BigInt perl-devel perl-libnet python-base python-modules-compiler python-modules-encodings rpm-build-python rpm-build-tcl su tcl time uucp wget

%description
INN (InterNetNews) is a complete system for serving Usenet news and/or
private newsfeeds.  INN includes innd, an NNTP (NetNews Transport
Protocol) server, and nnrpd, a newsreader that is spawned for each client.
Both innd and nnrpd vary slightly from the NNTP protocol, but not in ways
that are easily noticed.

Install the inn package if you need a complete system for serving and
reading Usenet news.  You may also need to install inn-devel, if you are
going to use a separate program which interfaces to INN, like newsgate or
tin.

!!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!
!!! ATTENTION !!!                                                     !!! ATTENTION !!!
!!! ATTENTION !!!        THIS PACKAGE IS COMPLETELY INSECURE.         !!! ATTENTION !!!
!!! ATTENTION !!! DON'T INSTALL IT UNLESS YOU DON'T CARE OF SECURITY. !!! ATTENTION !!!
!!! ATTENTION !!!                                                     !!! ATTENTION !!!
!!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!! ATTENTION !!!

%package -n lib%name-devel
Summary: The INN (InterNetNews) development header files and libraries
Group: Development/Other
Requires: lib%name = %version-%release

%description -n lib%name-devel
The inn-devel package contains the INN (InterNetNews) library, which
several programs that interface with INN need in order to work (for
example, newsgate and tin).

%package -n lib%name-devel-static
Summary: The INN (InterNetNews) development static libraries.
Group: Development/Other
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
The inn-devel package contains the INN (InterNetNews) static library,
which several programs that interface with INN need in order to work
(for example, newsgate and tin).

%package -n lib%name
Summary: The shared libraries required for inn server.
Group: System/Libraries

%description -n lib%name
The inn-libs package provides the essential shared libraries for inn server.
You will need to install this package to use inn package or any clients that
need to connect to a inn server.

%package -n inews
Summary: Sends Usenet articles to a local news server for distribution
Group: System/Servers
Requires: lib%name = %version-%release

%description -n inews
The inews program is used by some news programs (for example, inn and
trn) to post Usenet news articles to local news servers.  Inews reads an
article from a file or standard input, adds headers, performs some
consistency checks and then sends the article to the local news server
specified in the inn.conf file.

Install inews if you need a program for posting Usenet articles to local
news servers.

%prep
%setup -q -a9 -a11
%patch1 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

%build
%set_autoconf_version 2.13

%__rm -f config.cache
export CFLAGS="$RPM_OPT_FLAGS"
%__libtoolize --copy --force
%__autoconf
./configure %_target_platform \
--prefix=%prefix  \
--sysconfdir=%_sysconfdir/news \
--mandir=%_mandir \
--with-log-dir=%_var/log/inn \
--with-syslog-dir=%_var/log/news \
--with-spool-dir=%_var/spool/news\
--with-db-dir=%_localstatedir/news \
--with-run-dir=%_var/run/news \
--with-etc-dir=%_sysconfdir/news \
--with-tmp-dir=%_var/run/news/tmp \
--with-control-dir=%_libdir/%name/control \
--with-filter-dir=%_libdir/%name/filter \
--with-auth-dir=%_libdir/%name/auth \
--with-rnews-dir=%_libdir/%name/rnews.libexec \
--with-lib-dir=%_libdir \
--with-newslib-dir=%_libdir/%name \
--with-berkeleydb=%_includedir/db4 \
--enable-libtool \
--enable-shared \
--with-perl \
--with-openssl \
--with-kerberos=%_libdir \
--enable-largefiles \
--enable-pgp-verify \
--enable-merge-to-groups \
--with-news-user=news \
--with-news-group=news \
--with-news-master=news \
--with-sendmail=%_sbindir/sendmail \
#NO SMP
%make

%install
%make install DESTDIR=$RPM_BUILD_ROOT

# -- Install man pages needed by suck et al.

#for f in clibrary.h config.h dbz.h libinn.h storage.h; do
# %__install -pD -m644 ./include/$f "$RPM_BUILD_ROOT%_includedir/%name/$f"
#done

touch $RPM_BUILD_ROOT%_localstatedir/news/subscriptions
%__chmod 644 $RPM_BUILD_ROOT%_localstatedir/news/subscriptions

#%__install -m 644 $RPM_SOURCE_DIR/inn-default-active \

#        $RPM_BUILD_ROOT%_localstatedir/news/active
%__install -m 644 $RPM_SOURCE_DIR/inn-default-distributions \
       $RPM_BUILD_ROOT%_localstatedir/news/distributions
%__install -m 644 $RPM_SOURCE_DIR/inn-default-newsgroups \
       $RPM_BUILD_ROOT%_localstatedir/news/newsgroups

%__mkdir_p $RPM_BUILD_ROOT%_sysconfdir/cron.hourly $RPM_BUILD_ROOT%_sysconfdir/cron.daily
%__install -m755 $RPM_SOURCE_DIR/inn-cron-expire \
       $RPM_BUILD_ROOT%_sysconfdir/cron.daily/inn-cron-expire
%__install -m755 $RPM_SOURCE_DIR/inn-cron-rnews \
       $RPM_BUILD_ROOT%_sysconfdir/cron.hourly/inn-cron-rnews
%__install -m755 $RPM_SOURCE_DIR/inn-cron-nntpsend \
       $RPM_BUILD_ROOT%_sysconfdir/cron.hourly/inn-cron-nntpsend

%__install -m440 $RPM_SOURCE_DIR/inn-etc-nnrp.access \
       $RPM_BUILD_ROOT%_sysconfdir/news/nnrp.access

%__mkdir_p $RPM_BUILD_ROOT%_initdir
%__install -m 755 %SOURCE8 \
$RPM_BUILD_ROOT%_initdir/innd

%__rm -f $RPM_BUILD_ROOT%_localstatedir/news/history
touch $RPM_BUILD_ROOT%_localstatedir/news/history
%__chmod 644 $RPM_BUILD_ROOT%_localstatedir/news/*

#Fix perms in sample directory to avoid bogus dependencies

find samples -name "*.in" -exec chmod a-x {} \;

%__mkdir_p $RPM_BUILD_ROOT%_var/spool/news/articles
%__mkdir_p $RPM_BUILD_ROOT%_var/spool/news/overview
%__mkdir_p $RPM_BUILD_ROOT%_var/spool/news/archive
%__mkdir_p $RPM_BUILD_ROOT%_var/spool/news/incoming/bad
%__mkdir_p $RPM_BUILD_ROOT%_var/spool/news/outgoing
%__mkdir_p $RPM_BUILD_ROOT%_var/spool/news/uniover
%__mkdir_p $RPM_BUILD_ROOT%_var/spool/news/innfeed
%__mkdir_p $RPM_BUILD_ROOT%_var/log/inn
%__mkdir_p $RPM_BUILD_ROOT%_var/run/news/tmp

%post
#if [ `%__cat %_sysconfdir/news/inn.conf | %__grep '^server:' | wc -l` -lt 1 ]; then
#  echo "server: `hostname -f`" >> %_sysconfdir/news/inn.conf
#fi

%post_service innd

%preun
%preun_service innd
if [ -f %_localstatedir/news/history.dir ]; then
%__rm -f %_localstatedir/news/history.*
fi

%files
%doc samples README* ChangeLog CONTRIBUTORS LICENSE INSTALL faq NEWS TODO
%doc doc/checklist doc/compliance-nntp doc/config-design doc/config-semantics doc/config-syntax doc/external-auth
%doc doc/history doc/hook-perl doc/hook-python doc/hook-tcl doc/IPv6-info doc/sample-control
%defattr(3770,root,news)
%dir %_var/spool/news
%dir %_var/spool/news/articles
%dir %_var/spool/news/overview
%dir %_var/spool/news/archive
%dir %_var/spool/news/incoming
%dir %_var/spool/news/incoming/bad
%dir %_var/spool/news/outgoing
%dir %_var/spool/news/uniover
%dir %_var/spool/news/innfeed
%dir %_var/log/%name
%dir %_var/run/news
%dir %_var/run/news/tmp
%dir %_localstatedir/news

%attr(-,news,root) %config(noreplace) %_localstatedir/news/*
%attr(-,root,news) %dir %_sysconfdir/news
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/actsync.cfg
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/actsync.ign
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/buffindexed.conf
%attr(640,root,news) %config(noreplace) %_sysconfdir/news/control.ctl
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/cycbuff.conf
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/distrib.pats
%attr(640,root,news) %config(noreplace) %_sysconfdir/news/expire.ctl
%attr(640,root,news) %config(noreplace) %_sysconfdir/news/incoming.conf
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/inn.conf
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/innfeed.conf
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/innreport.conf
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/innwatch.ctl
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/moderators
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/motd.news
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/news2mail.cf
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/newsfeeds
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/nnrp.access
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/nnrpd.track
%attr(640,root,news) %config(noreplace) %_sysconfdir/news/nntpsend.ctl
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/ovdb.conf
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/overview.fmt
%attr(640,root,news) %config(noreplace) %_sysconfdir/news/passwd.nntp
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/radius.conf
%attr(640,root,news) %config(noreplace) %_sysconfdir/news/readers.conf
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/sasl.conf
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/storage.conf
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/subscriptions

%defattr(-,root,root)
%dir %_libdir/%name
%_man5dir/*
%_man8dir/*
%_libdir/%name/*
%_bindir/ovdb_init
%_bindir/ovdb_monitor
%_bindir/ovdb_server
%_bindir/ovdb_stat
%_bindir/perl-nocem
%_bindir/tdx-util
%_bindir/innupgrade
%_bindir/ninpaths
%_bindir/innd
%_bindir/inndstart
%_bindir/nnrpd
%_bindir/innfeed
%_bindir/procbatch
%_bindir/startinnfeed
%_bindir/convdate
%_bindir/expire
%_bindir/expireover
%_bindir/expirerm
%_bindir/fastrm
%_bindir/grephistory
%_bindir/makedbz
%_bindir/makehistory
%_bindir/prunehistory
%_bindir/cnfsheadconf
%_bindir/cnfsstat
%_bindir/ctlinnd
%_bindir/getlist
%_bindir/innconfval
%_bindir/mailpost
%_bindir/pullnews
%_bindir/rnews
%_bindir/scanspool
%_bindir/signcontrol
%_bindir/sm
%_bindir/actmerge
%_bindir/actsync
%_bindir/actsyncd
%_bindir/archive
%_bindir/batcher
%_bindir/buffchan
%_bindir/controlbatch
%_bindir/controlchan
%_bindir/cvtbatch
%_bindir/filechan
%_bindir/gpgverify
%_bindir/inndf
%_bindir/innxmit
%_bindir/innxbatch
%_bindir/mod-active
%_bindir/news2mail
%_bindir/nntpget
%_bindir/nntpsend
%_bindir/overchan
%_bindir/pgpverify
%_bindir/send-ihave
%_bindir/send-nntp
%_bindir/send-uucp
%_bindir/sendxbatches
%_bindir/shlock
%_bindir/shrinkfile
%_bindir/inncheck
%_bindir/innmail
%_bindir/innreport
%_bindir/innstat
%_bindir/innwatch
%_bindir/news.daily
%_bindir/scanlogs
%_bindir/simpleftp
%_bindir/tally.control
%_bindir/writelog
%_bindir/docheckgroups
%_bindir/imapfeed
%_bindir/sendinpaths
%_man1dir/convdate.*
%_man1dir/fastrm.*
%_man1dir/getlist.*
%_man1dir/grephistory.*
%_man1dir/innconfval.*
%_man1dir/innfeed.*
%_man1dir/innmail.*
%_man1dir/nntpget.*
%_man1dir/rnews.*
%_man1dir/shlock.*
%_man1dir/shrinkfile.*
%_man1dir/startinnfeed.*
%_man1dir/simpleftp.*
%_man1dir/pgpverify.*
%_man1dir/sm.*
%_sysconfdir/cron.hourly/*
%_sysconfdir/cron.daily/*
%_sysconfdir/rc.d/init.d/*

%files -n lib%name
%_libdir/libinn.so.*
%_libdir/libstorage.so.*
%_libdir/libinnhist.so.*

%files -n lib%name-devel
%_libdir/libinn.so
%_libdir/libstorage.so
%_libdir/libinnhist.so
%_includedir/%name/*
%_man3dir/*

%files -n lib%name-devel-static
%_libdir/libinn.a
%_libdir/libstorage.a
%_libdir/libinnhist.a

%files -n inews
%_bindir/inews
%_man1dir/inews*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin