Thread View: news.software.nntp
2 messages
2 total messages
Started by Joe User
Sun, 19 Oct 1997 00:00
inn 1.7 rpm spec?
Author: Joe User
Date: Sun, 19 Oct 1997 00:00
Date: Sun, 19 Oct 1997 00:00
9 lines
583 bytes
583 bytes
I'm looking for a rpm .spec to build inn-1.7. Somebody has a .spec ready? Thanks /alfredo
Re: inn 1.7 rpm spec?
Author: Mark Nordberg
Date: Sun, 19 Oct 1997 00:00
Date: Sun, 19 Oct 1997 00:00
450 lines
14639 bytes
14639 bytes
Joe User (joe.user@supernews.com) wrote:
: I'm looking for a rpm .spec to build inn-1.7. Somebody has a .spec
: ready?
:
: Thanks
:
: /alfredo
Here is one for all its worth, built 5 times using this
SPEC. It was taken from 1.5.1 from redhat and hacked up a little bit...
Of course you will have different patches and extra sources.
--mpn
Summary: INN, the InterNet News System (news server) hackup for nortel
Name: inn
Requires: pgp >= 2.6.3
Version: 1.7
Release: 5
Copyright: GPL
Group: Base
Source: ftp://ftp.isc.org/isc/inn/inn-1.7.tar.gz
Source1: inn-default-active
Source2: inn-default-distributions
Source3: inn-default-newsgroups
Source4: inn-cron-expire
Source5: inn-cron-rnews
Source6: inn-etc-nnrp.access
Source7: inn-cron-nntpsend
Source8: news.init
Patch0: inn-1.7.insync.diff
Patch1: inn-1.7.nortel.diff
Buildroot: /tmp/inn-buildroot
%changelog
* Sat Oct 18 1997 Mark Nordberg <mpn@nortel.net>
- Upgrade to 1.7
%description
INN is a news server, which can be set up to handle USENET news, as well
as private "newsfeeds". There is a *LOT* of information about setting
up INN in /usr/doc -- read it.
%package devel
Summary: INN Library
Group: Development/Libraries
%description devel
This library is needed by several programs that interface to INN, such as
newsgate or tin.
%package -n inews
Summary: Inews program (used for posting by inn and trn)
Group: Networking/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.
%prep
%setup
%patch0 -p1
%patch1 -p1
%build
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" world
nroff -ms Install.ms > Install.txt
%install
rm -fr $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/sbin
mkdir -p $RPM_BUILD_ROOT/usr/include
mkdir -p $RPM_BUILD_ROOT/usr/lib/news
mkdir -p $RPM_BUILD_ROOT/usr/lib/news/bin
mkdir -p $RPM_BUILD_ROOT/var/spool/news
mkdir -p $RPM_BUILD_ROOT/var/spool/news/news.archive
mkdir -p $RPM_BUILD_ROOT/var/lib
mkdir -p $RPM_BUILD_ROOT/var/lock
mkdir -p $RPM_BUILD_ROOT/var/log/news
mkdir -p $RPM_BUILD_ROOT/var/run/news
mkdir -p $RPM_BUILD_ROOT/etc/news
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc0.d
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc1.d
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc2.d
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc3.d
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc4.d
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc5.d
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc6.d
chown -R news.news $RPM_BUILD_ROOT/usr/lib/news \
$RPM_BUILD_ROOT/var/spool/news \
$RPM_BUILD_ROOT/var/log/news $RPM_BUILD_ROOT/var/run/news \
$RPM_BUILD_ROOT/etc/news
chmod -R 775 $RPM_BUILD_ROOT/usr/lib/news $RPM_BUILD_ROOT/var/spool/news \
$RPM_BUILD_ROOT/var/log/news $RPM_BUILD_ROOT/var/run/news \
$RPM_BUILD_ROOT/etc/news
make DESTDIR="$RPM_BUILD_ROOT" install
install -m644 libinn.a $RPM_BUILD_ROOT/usr/lib
install -m 0644 include/libinn.h $RPM_BUILD_ROOT/usr/include
install -m 0644 dbz/dbz.h $RPM_BUILD_ROOT/usr/include
install -m 0750 $RPM_SOURCE_DIR/news.init $RPM_BUILD_ROOT/etc/rc.d/init.d/news
install -m 0440 -o news -g news samples/nntpsend.ctl $RPM_BUILD_ROOT/etc/news
ln -sf /usr/lib/news/bin/ctlinnd $RPM_BUILD_ROOT/usr/sbin/ctlinnd
ln -sf ../init.d/news $RPM_BUILD_ROOT/etc/rc.d/rc2.d/S95news
ln -sf ../init.d/news $RPM_BUILD_ROOT/etc/rc.d/rc3.d/S95news
ln -sf ../init.d/news $RPM_BUILD_ROOT/etc/rc.d/rc5.d/S95news
ln -sf ../init.d/news $RPM_BUILD_ROOT/etc/rc.d/rc0.d/K25news
ln -sf ../init.d/news $RPM_BUILD_ROOT/etc/rc.d/rc1.d/K25news
ln -sf ../init.d/news $RPM_BUILD_ROOT/etc/rc.d/rc6.d/K25news
# Fail silently on all these 'strips'
strip $RPM_BUILD_ROOT/usr/sbin/* ||:
strip $RPM_BUILD_ROOT/usr/lib/news/bin/* ||:
strip $RPM_BUILD_ROOT/usr/lib/news/bin/rnews/* ||:
strip $RPM_BUILD_ROOT/usr/lib/news/rnews ||:
cp /dev/null $RPM_BUILD_ROOT/var/lib/news/subscriptions
chown news.news $RPM_BUILD_ROOT/var/lib/news/subscriptions
chmod 644 $RPM_BUILD_ROOT/var/lib/news/subscriptions
install -m 644 -o news -g news $RPM_SOURCE_DIR/inn-default-active \
$RPM_BUILD_ROOT/var/lib/news/active
install -m 644 -o news -g news $RPM_SOURCE_DIR/inn-default-distributions \
$RPM_BUILD_ROOT/var/lib/news/distributions
install -m 644 -o news -g news $RPM_SOURCE_DIR/inn-default-newsgroups \
$RPM_BUILD_ROOT/var/lib/news/newsgroups
mkdir -p $RPM_BUILD_ROOT/etc/cron.hourly $RPM_BUILD_ROOT/etc/cron.daily
install -m755 -o 0 -g 0 $RPM_SOURCE_DIR/inn-cron-expire \
$RPM_BUILD_ROOT/etc/cron.daily/inn-cron-expire
install -m755 -o 0 -g 0 $RPM_SOURCE_DIR/inn-cron-rnews \
$RPM_BUILD_ROOT/etc/cron.daily/inn-cron-rnews
install -m755 -o 0 -g 0 $RPM_SOURCE_DIR/inn-cron-nntpsend \
$RPM_BUILD_ROOT/etc/cron.hourly/inn-cron-nntpsend
install -m440 -o news -g news $RPM_SOURCE_DIR/inn-etc-nnrp.access \
$RPM_BUILD_ROOT/etc/news/nnrp.access
cd $RPM_BUILD_ROOT/var/lib/news
rm -f history
touch history
rm -f .news.daily
touch .news.daily
$RPM_BUILD_ROOT/usr/lib/news/bin/makehistory -a $RPM_BUILD_ROOT/var/lib/news/active -i -r -f $RPM_BUILD_ROOT/var/lib/news/history
chown news.news history history.dir history.pag .news.daily .
chmod 775 .
chmod 644 history history.dir history.pag .news.daily
chown root.news $RPM_BUILD_ROOT/usr/sbin/inndstart
chmod 4750 $RPM_BUILD_ROOT/usr/sbin/inndstart
chgrp news $RPM_BUILD_ROOT/usr/lib/news/rnews
mkdir -p $RPM_BUILD_ROOT/usr/bin
ln -sf ../lib/news/rnews $RPM_BUILD_ROOT/usr/bin/rnews
chmod 755 $RPM_BUILD_ROOT/usr/lib/news/rnews
ln -sf ../lib/news/inews $RPM_BUILD_ROOT/usr/bin/inews
%clean
rm -rf $RPM_BUILD_ROOT
%post
ln -s /usr/lib/news /usr/news
umask 002
touch /var/log/news/news.notice
touch /var/log/news/news.crit
touch /var/log/news/news.err
[ -f /var/lib/news/active.times ] || {
touch /var/lib/news/active.times
chown news.news /var/lib/news/active.times
}
chown -R news.news /var/log/news
if [ -f /etc/syslog.conf ]; then
if ! grep -q INN /etc/syslog.conf; then
sed 's/mail.none;/mail.none;news.none;/' < /etc/syslog.conf > /etc/syslog.conf.inn
mv /etc/syslog.conf.inn /etc/syslog.conf
echo '' \
>> /etc/syslog.conf
echo '#' \
>> /etc/syslog.conf
echo '# INN' \
>> /etc/syslog.conf
echo '#' \
>> /etc/syslog.conf
echo 'news.=crit /var/log/news/news.crit' >> /etc/syslog.conf
echo 'news.=err /var/log/news/news.err' >> /etc/syslog.conf
echo 'news.notice /var/log/news/news.notice' >> /etc/syslog.conf
fi
if [ -f /var/run/syslog.pid ]; then
kill -HUP `cat /var/run/syslog.pid` 2> /dev/null ||:
fi
else
# syslog.conf does not exist
echo "mail.none /var/log/messages" \
> /etc/syslog.conf.inn
echo "" \
>> /etc/syslog.conf.inn
echo "# INN" \
>> /etc/syslog.conf.inn
echo "news.=crit /var/log/news/news.crit" >> /etc/syslog.conf.inn
echo "news.=err /var/log/news/news.err" >> /etc/syslog.conf.inn
echo "news.notice /var/log/news/news.notice" >> /etc/syslog.conf.inn
fi
if [ `cat /etc/news/inn.conf | grep '^server:' | wc -l` -lt 1 ]; then
echo "server: `hostname -f`" >> /etc/news/inn.conf
fi
%files
/usr/lib/news/rnews
/usr/sbin/innd
/usr/sbin/in.nnrpd
/usr/sbin/inndstart
/usr/sbin/ctlinnd
/usr/bin/rnews
/usr/lib/news/bin/control/checkgroups
/usr/lib/news/bin/control/default
/usr/lib/news/bin/control/ihave
/usr/lib/news/bin/control/newgroup
/usr/lib/news/bin/control/rmgroup
/usr/lib/news/bin/control/sendme
/usr/lib/news/bin/control/sendsys
/usr/lib/news/bin/control/senduuname
/usr/lib/news/bin/control/version
/usr/lib/news/bin/control/docheckgroups
/usr/lib/news/bin/control/startup_innd.pl
/usr/lib/news/bin/control/filter_innd.pl
/usr/lib/news/bin/control/filter_nnrpd.pl
/usr/lib/news/bin/control/startup.tcl
/usr/lib/news/bin/control/filter.tcl
/usr/lib/news/bin/control/sample.control
/usr/lib/news/bin/rnews/c7unbatch
/usr/lib/news/bin/rnews/decode
/usr/lib/news/bin/rnews/encode
/usr/lib/news/bin/ctlinnd
/usr/lib/news/bin/getlist
/usr/lib/news/bin/innconfval
/usr/lib/news/bin/archive
/usr/lib/news/bin/batcher
/usr/lib/news/bin/buffchan
/usr/lib/news/bin/cvtbatch
/usr/lib/news/bin/filechan
/usr/lib/news/bin/nntpget
/usr/lib/news/bin/innxmit
/usr/lib/news/bin/overchan
/usr/lib/news/bin/shlock
/usr/lib/news/bin/shrinkfile
/usr/lib/news/bin/convdate
/usr/lib/news/bin/expire
/usr/lib/news/bin/expireover
/usr/lib/news/bin/fastrm
/usr/lib/news/bin/grephistory
/usr/lib/news/bin/makeactive
/usr/lib/news/bin/makehistory
/usr/lib/news/bin/newsrequeue
/usr/lib/news/bin/prunehistory
/usr/lib/news/bin/writelog
/usr/lib/news/bin/news.daily
/usr/lib/news/bin/scanlogs
/usr/lib/news/bin/expirerm
/usr/lib/news/bin/tally.control
/usr/lib/news/bin/tally.unwanted
/usr/lib/news/bin/nntpsend
/usr/lib/news/bin/sendbatch
/usr/lib/news/bin/inncheck
/usr/lib/news/bin/innstat
/usr/lib/news/bin/innwatch
/usr/lib/news/bin/crosspost
/usr/lib/news/bin/innxbatch
/usr/lib/news/bin/sendxbatches
/usr/lib/news/bin/actsync
/usr/lib/news/bin/actsyncd
/usr/lib/news/bin/actmerge
/usr/lib/news/bin/pgpverify
/usr/lib/news/bin/scanspool
/usr/lib/news/bin/actived
%config /usr/lib/news/parsecontrol
%config /usr/lib/news/innshellvars
%config /usr/lib/news/innshellvars.csh
%config /usr/lib/news/innshellvars.pl
%config /usr/lib/news/innshellvars.tcl
%dir /etc/news
%config /etc/cron.daily/inn-cron-expire
%config /etc/cron.daily/inn-cron-rnews
%config /etc/cron.hourly/inn-cron-nntpsend
%config /etc/news/control.ctl
%config /etc/news/distrib.pats
%config /etc/news/nnrp.access
%config /etc/news/expire.ctl
%config /etc/news/hosts.nntp
%config /etc/news/hosts.nntp.nolimit
%config /etc/news/inn.conf
%config /etc/news/innwatch.ctl
%config /etc/news/moderators
%config /etc/news/passwd.nntp
%config /etc/news/newsfeeds
%config /etc/news/overview.fmt
%config /etc/news/actsync.cfg
%config /etc/news/actsync.ign
%config /etc/news/nntpsend.ctl
%config /etc/rc.d/rc.news
%config /etc/rc.d/init.d/news
/etc/rc.d/rc5.d/S95news
/etc/rc.d/rc3.d/S95news
/etc/rc.d/rc2.d/S95news
/etc/rc.d/rc6.d/K25news
/etc/rc.d/rc1.d/K25news
/etc/rc.d/rc0.d/K25news
%dir /usr/lib/news
%dir /usr/lib/news/bin
%dir /usr/lib/news/bin/rnews
%dir /usr/lib/news/bin/control
%dir /usr/lib/news/bin/auth.dir
%dir /var/lib/news
%config /var/lib/news/.news.daily
%config /var/lib/news/history
%config /var/lib/news/history.dir
%config /var/lib/news/history.pag
%config /var/lib/news/active
%config /var/lib/news/distributions
%config /var/lib/news/newsgroups
%config /var/lib/news/subscriptions
%config /var/lib/news/innlog.pl
%config /var/lib/news/send-ihave
%config /var/lib/news/send-nntp
%config /var/lib/news/send-uucp
%dir /var/lib/news/innd
%dir /var/run/news
%dir /var/lock/news
%dir /var/spool/news
%dir /var/spool/news/in.coming
%dir /var/spool/news/in.coming/bad
%dir /var/spool/news/in.coming/tmp
%dir /var/spool/news/out.going
%dir /var/spool/news/news.archive
%dir /var/spool/news/over.view
%dir /var/log/news
%dir /var/log/news/OLD
%doc FAQ samples
%doc README* CHANGES CONTRIBUTORS COPYRIGHT HISTORY
%doc Install.ms Install.txt
/usr/man/man1/convdate.1
/usr/man/man1/getlist.1
/usr/man/man1/grephistory.1
/usr/man/man1/innconfval.1
/usr/man/man1/installit.1
/usr/man/man1/nntpget.1
/usr/man/man1/rnews.1
/usr/man/man1/shlock.1
/usr/man/man1/shrinkfile.1
/usr/man/man1/subst.1
/usr/man/man5/active.5
/usr/man/man5/control.ctl.5
/usr/man/man5/distrib.pats.5
/usr/man/man5/expire.ctl.5
/usr/man/man5/history.5
/usr/man/man5/hosts.nntp.5
/usr/man/man5/inn.conf.5
/usr/man/man5/innwatch.ctl.5
/usr/man/man5/moderators.5
/usr/man/man5/newsfeeds.5
/usr/man/man5/newslog.5
/usr/man/man5/nnrp.access.5
/usr/man/man5/nntpsend.ctl.5
/usr/man/man5/overview.fmt.5
/usr/man/man5/passwd.nntp.5
/usr/man/man8/actsync.8
/usr/man/man8/archive.8
/usr/man/man8/batcher.8
/usr/man/man8/buffchan.8
/usr/man/man8/crosspost.8
/usr/man/man8/ctlinnd.8
/usr/man/man8/cvtbatch.8
/usr/man/man8/expire.8
/usr/man/man8/expireover.8
/usr/man/man8/expirerm.8
/usr/man/man8/fastrm.8
/usr/man/man8/filechan.8
/usr/man/man8/inncheck.8
/usr/man/man8/innd.8
/usr/man/man8/innlog.pl.8
/usr/man/man8/innstat.8
/usr/man/man8/innwatch.8
/usr/man/man8/innxbatch.8
/usr/man/man8/innxmit.8
/usr/man/man8/makeactive.8
/usr/man/man8/makehistory.8
/usr/man/man8/news-recovery.8
/usr/man/man8/news.daily.8
/usr/man/man8/newslog.8
/usr/man/man8/newsrequeue.8
/usr/man/man8/nnrpd.8
/usr/man/man8/nntpsend.8
/usr/man/man8/overchan.8
/usr/man/man8/prunehistory.8
/usr/man/man8/scanlogs.8
/usr/man/man8/tally.control.8
/usr/man/man8/tally.unwanted.8
/usr/man/man8/writelog.8
%files devel
/usr/lib/libinn.a
/usr/include/libinn.h
/usr/include/dbz.h
# build roots are your friend
/usr/man/man3/*
%files -n inews
/usr/lib/news/inews
/usr/bin/inews
/usr/man/man1/inews.1
--
Mark Nordberg | *Nortel's Information Network
mpn@nortel.net (business) | *Unix System Administration
mpn@mindspring.com (personal) |-------------------------------------------\
-------------------------------/So yes, the answer is "don't do that, then".\
-Linus Torvalds
--
* BETA of Evil Purple NewsCache. Info/Complaints: See headers.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads