Commit 566331c5 authored by Hilko Bengen's avatar Hilko Bengen

Imported Debian patch 0.3.8-3

parent b23eae0c
...@@ -3,6 +3,8 @@ listed here. You should have already built and installed sn, see ...@@ -3,6 +3,8 @@ listed here. You should have already built and installed sn, see
file INSTALL. "SNROOT" and "PREFIX" refer to values as you have file INSTALL. "SNROOT" and "PREFIX" refer to values as you have
set in the Makefile. set in the Makefile.
For Debian, SNROOT=/var/spool/sn and PREFIX=/usr
In the following, remember that (almost) every file and directory In the following, remember that (almost) every file and directory
under and including SNROOT must be owned be the same user and group. under and including SNROOT must be owned be the same user and group.
(In some cases the owner may be root instead.) sn won't complain (In some cases the owner may be root instead.) sn won't complain
...@@ -19,12 +21,12 @@ about writeable files. ...@@ -19,12 +21,12 @@ about writeable files.
If you leave out the news server address, the newsgroup will If you leave out the news server address, the newsgroup will
get created as a local one. (You can tell a global group by get created as a local one. (You can tell a global group by
the symlink news.group.name/.outgoing, which points somewhere the symlink news.group.name/.outgoing, which points somewhere
into one of SNROOT/.outgoing/*). A local group doesn't have into one of /var/spool/sn/.outgoing/*). A local group doesn't have
an upstream feed; it gets articles when people post to it. an upstream feed; it gets articles when people post to it.
Each newsgroup has at most one upstream feed. Each newsgroup has at most one upstream feed.
If my.isps.server on port PORT requires a username and password: If my.isps.server on port PORT requires a username and password:
$ cd SNROOT/.outgoing/my.isps.server:PORT $ cd /var/spool/sn/.outgoing/my.isps.server:PORT
$ echo my-username >username $ echo my-username >username
$ echo my-password >password $ echo my-password >password
$ chmod 600 username password $ chmod 600 username password
...@@ -40,7 +42,7 @@ about writeable files. ...@@ -40,7 +42,7 @@ about writeable files.
it connects. "Optionally" because these lists are usually very it connects. "Optionally" because these lists are usually very
long. If you do this, check your email after step 2. long. If you do this, check your email after step 2.
$ echo 'mail me@myhost' >/SNROOT/.outgoing/my.isps.server:119/request-list $ echo 'mail me@myhost' >/var/spool/sn/.outgoing/my.isps.server:119/request-list
Replace "me@myhost" with your email address. You can also replace Replace "me@myhost" with your email address. You can also replace
"mail me@myhost" with any other shell command that will read "mail me@myhost" with any other shell command that will read
...@@ -78,7 +80,7 @@ about writeable files. ...@@ -78,7 +80,7 @@ about writeable files.
The example access control policy here is to permit reading and The example access control policy here is to permit reading and
posting from local clients, and to deny all access to everyone posting from local clients, and to deny all access to everyone
else. The local network is assumed to be 192.168.9.0. For more else. The local network is assumed to be 192.168.9.0. For more
complicated posting access control, see the PREFIX/sbin/SNPOST script, complicated posting access control, see the /usr/sbin/SNPOST script,
which can do fine-grain control. The coarse grain posting access which can do fine-grain control. The coarse grain posting access
here is determined by the POSTING_OK environment variable. here is determined by the POSTING_OK environment variable.
...@@ -101,22 +103,22 @@ Running under inetd/tcpd: ...@@ -101,22 +103,22 @@ Running under inetd/tcpd:
#!/bin/sh #!/bin/sh
# snntpd needs to find snstore if it is to accept news postings. # snntpd needs to find snstore if it is to accept news postings.
# Replace PREFIX with the real value of PREFIX from the Makefile. # Replace PREFIX with the real value of PREFIX from the Makefile.
PATH=PREFIX/sbin:$PATH PATH=/usr/sbin:$PATH
export PATH export PATH
# Enable posting? Can also do this from /etc/hosts.allow # Enable posting? Can also do this from /etc/hosts.allow
POSTING_OK=1; export POSTING_OK # yes POSTING_OK=1; export POSTING_OK # yes
# No: unset POSTING_OK # No: unset POSTING_OK
# Run snntpd, and log errors in the system log: # Run snntpd, and log errors in the system log:
PREFIX/sbin/snntpd /usr/bin/logger -p news.info /usr/sbin/snntpd /usr/bin/logger -p news.info
# Run snntpd, and log errors in a log file: # Run snntpd, and log errors in a log file:
# PREFIX/sbin/snntpd 2>>/where/you/want/the/snntpd.log # /usr/sbin/snntpd 2>>/where/you/want/the/snntpd.log
# End of wrapper script. # End of wrapper script.
In /etc/inetd.conf, insert a line: In /etc/inetd.conf, insert a line:
nntp stream tcp nowait root.root /path/to/tcpd /path/to/nntpd nntp stream tcp nowait root.root /path/to/tcpd /path/to/nntpd
You can change root.root to the owner and group of SNROOT; You can change root.root to the owner and group of /var/spool/sn;
however, snntpd always drops root. however, snntpd always drops root.
Hup inetd and run your newsreader. The news spool can be read Hup inetd and run your newsreader. The news spool can be read
...@@ -138,9 +140,9 @@ Running under tcpserver: ...@@ -138,9 +140,9 @@ Running under tcpserver:
man 1 tcprules for more on this file. man 1 tcprules for more on this file.
Run a command similar to one of the following, and place it Run a command similar to one of the following, and place it
somewhere in your rc files when you're happy with it. somewhere in your rc files when you're happy with it.
Do this as root or as the owner of SNROOT. Do this as root or as the owner of /var/spool/sn.
$ env - PATH=PREFIX/sbin:$PATH \ $ env - PATH=/usr/sbin:$PATH \
tcpserver -RHl0 -x news.cdb 0 nntp \ tcpserver -RHl0 -x news.cdb 0 nntp \
snntpd logger -p news.info & snntpd logger -p news.info &
...@@ -150,18 +152,18 @@ Running under tcpserver: ...@@ -150,18 +152,18 @@ Running under tcpserver:
man tcpserver(1). man tcpserver(1).
4) Crontab entries. The following refers to the crontab for root 4) Crontab entries. The following refers to the crontab for root
or the owner of SNROOT. or the owner of /var/spool/sn.
A line similar to the following will expire old articles: A line similar to the following will expire old articles:
0 3 * * * cd SNROOT && PREFIX/sbin/snexpire * 0 3 * * * cd /var/spool/sn && /usr/sbin/snexpire *
man cron(8)/crond(8), crontab(1), crontab(5). man cron(8)/crond(8), crontab(1), crontab(5).
5) You can fetch news automatically whenever you dial up. If you're 5) You can fetch news automatically whenever you dial up. If you're
using pppd, place a line in /etc/ppp/ip-up: using pppd, place a line in /etc/ppp/ip-up:
PREFIX/sbin/snget 2>&1 >/dev/null & /usr/sbin/snget 2>&1 >/dev/null &
If you're worried about snget taking up all your bandwidth, If you're worried about snget taking up all your bandwidth,
use the -h option to snget (see the man page) to throttle use the -h option to snget (see the man page) to throttle
...@@ -172,7 +174,7 @@ Running under tcpserver: ...@@ -172,7 +174,7 @@ Running under tcpserver:
6) Tuning. After some days or weeks of use, you can start tuning 6) Tuning. After some days or weeks of use, you can start tuning
the expiration: the expiration:
$ echo '10d' >SNROOT/alt.lemmings/.expire $ echo '10d' >/var/spool/sn/alt.lemmings/.expire
expires alt.lemmings in 10 days instead of the default of 7. expires alt.lemmings in 10 days instead of the default of 7.
You can also say '2w' for 2 weeks, or '1m' for one month. You can also say '2w' for 2 weeks, or '1m' for one month.
...@@ -183,7 +185,7 @@ Running under tcpserver: ...@@ -183,7 +185,7 @@ Running under tcpserver:
you can enable compression on selected newsgroups, which by now you can enable compression on selected newsgroups, which by now
would be easy to identify: would be easy to identify:
$ touch /SNROOT/comp.source-code.big/.compress $ touch /var/spool/sn/comp.source-code.big/.compress
says new articles entered in comp.source-code.big will be candidates says new articles entered in comp.source-code.big will be candidates
for compression. Old articles won't be touched. Compression and for compression. Old articles won't be touched. Compression and
...@@ -194,12 +196,12 @@ Running under tcpserver: ...@@ -194,12 +196,12 @@ Running under tcpserver:
Deny posting on a per-newsgroup basis: Deny posting on a per-newsgroup basis:
$ touch /SNROOT/alt.usenet.noise.noise.noise/.nopost $ touch /var/spool/sn/alt.usenet.noise.noise.noise/.nopost
This disallows posting (via "POST" NNTP command) for this group, This disallows posting (via "POST" NNTP command) for this group,
but permits new articles from it's upstream host. Effectively but permits new articles from it's upstream host. Effectively
alt.usenet.noise.noise.noise becomes readonly to users. See the alt.usenet.noise.noise.noise becomes readonly to users. See the
PREFIX/sbin/SNPOST script. /usr/sbin/SNPOST script.
man snntpd(8). man snntpd(8).
...@@ -208,11 +210,11 @@ Running under tcpserver: ...@@ -208,11 +210,11 @@ Running under tcpserver:
In one of your system rc scripts, after the filesystems have been In one of your system rc scripts, after the filesystems have been
mounted and fsck has been run, execute the following: mounted and fsck has been run, execute the following:
cd SNROOT cd /var/spool/sn
rm .newsgroup .table .chain rm .newsgroup .table .chain
find . -type f -name "+*" -exec rm -f {} \; find . -type f -name "+*" -exec rm -f {} \;
PREFIX/sbin/snprimedb -i /usr/sbin/snprimedb -i
PREFIX/sbin/snscan -n * | PREFIX/sbin/snprimedb; /usr/sbin/snscan -n * | /usr/sbin/snprimedb;
This ensures that sn's ID database is in sync with the news This ensures that sn's ID database is in sync with the news
spool. spool.
......
...@@ -15,12 +15,12 @@ PREFIX =/usr/local ...@@ -15,12 +15,12 @@ PREFIX =/usr/local
#PREFIX =/home/patrik/stow/sn-current #PREFIX =/home/patrik/stow/sn-current
## Where the news spool will be ## Where the news spool will be
SNROOT =/var/spool/news SNROOT =/var/spool/sn
#SNROOT =/home/patrik/spool/news #SNROOT =/home/patrik/spool/news
## Where to send mail for the admin if neither the NEWSMASTER nor ## Where to send mail for the admin if neither the NEWSMASTER nor
## the LOGNAME environment variable is set ## the LOGNAME environment variable is set
DEFAULT_ADMIN_EMAIL =newsmaster DEFAULT_ADMIN_EMAIL =postmaster
# #
# OS-specific settings. Uncomment only one section below. # OS-specific settings. Uncomment only one section below.
...@@ -45,8 +45,8 @@ LIBS =-L./lib -lstuff ...@@ -45,8 +45,8 @@ LIBS =-L./lib -lstuff
CC =gcc CC =gcc
LD =gcc LD =gcc
BINDIR =$(PREFIX)/sbin BINDIR =$(DESTDIR)/usr/sbin
MANDIR =$(PREFIX)/man MANDIR =$(DESTDIR)/usr/share/man
# #
# You can stop editing here. # You can stop editing here.
...@@ -63,14 +63,14 @@ OBJS =$(AOBJS) snscan.o snprimedb.o sndumpdb.o snntpd.o list.o \ ...@@ -63,14 +63,14 @@ OBJS =$(AOBJS) snscan.o snprimedb.o sndumpdb.o snntpd.o list.o \
BINS =snprimedb snntpd snfetch snexpire snsend \ BINS =snprimedb snntpd snfetch snexpire snsend \
snmail snget sngetd snscan sndumpdb \ snmail snget sngetd snscan sndumpdb \
snnewgroup sndelgroup snlockf snsplit snnewgroup sndelgroup snlockf snsplit
SCRIPTS =dot-outgoing.ex SNHELLO SNPOST SCRIPTS =SNHELLO SNPOST snnewsq
PROGS =$(BINS) $(SCRIPTS) PROGS =$(BINS) $(SCRIPTS)
MANS =sn.8 sncat.8 sndelgroup.8 sndumpdb.8 snexpire.8 \ MANS =sn.8 sncat.8 sndelgroup.8 sndumpdb.8 snexpire.8 \
snfetch.8 snget.8 snmail.8 snnewgroup.8 snntpd.8 \ snfetch.8 snget.8 snmail.8 snnewgroup.8 snntpd.8 \
snprimedb.8 snscan.8 sncancel.8 snsend.8 snstore.8 \ snprimedb.8 snscan.8 sncancel.8 snsend.8 snstore.8 \
sngetd.8 snsplit.8 sngetd.8 snsplit.8 snnewsq.8
all: cc-flags $(OBJS) $(AOBJS) libs $(PROGS) sed-cmd $(MANS) $(SCRIPTS) all: cc-flags $(OBJS) $(AOBJS) libs $(PROGS) dot-outgoing.ex sed-cmd $(MANS) $(SCRIPTS)
cc-flags: cc-flags:
echo ' -g -Wall -pedantic -O' >$@.t echo ' -g -Wall -pedantic -O' >$@.t
echo ' -I./lib' >>$@.t echo ' -I./lib' >>$@.t
...@@ -150,6 +150,8 @@ install: all #$(SNROOT) $(BINDIR) $(MANDIR)/man8 # commented out so make -n inst ...@@ -150,6 +150,8 @@ install: all #$(SNROOT) $(BINDIR) $(MANDIR)/man8 # commented out so make -n inst
-cd $(BINDIR); rm -f sncat; ln -s snscan sncat -cd $(BINDIR); rm -f sncat; ln -s snscan sncat
-cd $(BINDIR); rm -f sncancel; ln -s snscan sncancel -cd $(BINDIR); rm -f sncancel; ln -s snscan sncancel
-cd $(BINDIR); rm -f snstore; ln -s snsend snstore -cd $(BINDIR); rm -f snstore; ln -s snsend snstore
mv $(BINDIR)/snntpd $(BINDIR)/snntpd.bin
install debian/snntpd.wrapper $(BINDIR)/snntpd
spoolclean: spoolclean:
@echo -n "make $@ will wipe out your news spool! Sure? [y/n] " @echo -n "make $@ will wipe out your news spool! Sure? [y/n] "
......
...@@ -105,8 +105,10 @@ for art in $posts; do ...@@ -105,8 +105,10 @@ for art in $posts; do
if [ "x$CODE" != x240 ]; then if [ "x$CODE" != x240 ]; then
rmcr <$art; rmcr <$art;
# XXX Problem with LOGNAME if snget started by pppd # XXX Problem with LOGNAME if snget started by pppd
mail -s "Posting failed ($CODE $SAID)" ${NEWSMASTER:-${LOGNAME:-!!DEFAULT_ADMIN_EMAIL!!}} <$tmp || mail -s "Posting failed at $SERVER ($CODE $SAID)" ${NEWSMASTER:-${LOGNAME:-!!DEFAULT_ADMIN_EMAIL!!}} <$tmp ||
end "Can't run mail" end "Can't run mail"
else
echo "Article successfully posted at $SERVER."
fi fi
rm -f $art rm -f $art
done done
......
...@@ -76,10 +76,12 @@ done ...@@ -76,10 +76,12 @@ done
{ {
echo "X-sn-Newsgroups: $postable" echo "X-sn-Newsgroups: $postable"
test -r /etc/news/organization && \
echo Organization: `/bin/cat /etc/news/organization`
# VERIFIED_SENDER is inherited from the authenticating script that # VERIFIED_SENDER is inherited from the authenticating script that
# invoked snntpd, if any. # invoked snntpd, if any.
[ "x$VERIFIED_SENDER" = x ] || echo "Sender: $VERIFIED_SENDER" [ "x$VERIFIED_SENDER" = x ] || echo "Sender: $VERIFIED_SENDER"
cat /bin/cat
} | snsend -v || fail "Unable to post" } | snsend -v || fail "Unable to post"
echo "Posted to $postable" echo "Posted to $postable"
: Success : Success
......
sn for Debian
-------------
snntpd is now a shellscript since the tcpd of debian doesn't do
the extension language necessary to set an environment variable.
Added a simple snnewsq script which displays the current outgoing
queue.
-- Jorgen Schaefer <forcer@debian.org>, Fri, 15 Feb 2000 19:47:27 +0100
.TH HELLO 8
.SH NAME
HELLO \- perform initial conversation with a newsserver (used by sn news system)
.SH SYNOPSIS
.B HELLO
.SH DESCRIPTION
.B HELLO
is the program that gets executed for every newsserver by the
.I snget(8)
program. There is a connection to the newsserver, but nothing has been sent
or received yet. This program handles the initial contact. File descriptors
6 is used for data coming from the newsserver, and descriptor 7 is used for
data going to the newsserver.
This program is used by the sn news system.
You never have to use this program yourself. However, when a newsserver is
non-standard, you may have to modify a copy of it for that server.
Newsserver-specific copies should go into /var/spool/sn/.outgoing/HOST
.SH SEE ALSO
.B snget(8),
.B sn(8)
.TH POST 8
.SH NAME
POST \- Handle a part of posting messages (used by sn news system)
.SH SYNOPSIS
.B HELLO
.SH DESCRIPTION
.B POST
is the program that handles a part of posting messages to a newsserver.
It is executed by snntpd, after a POST command was sent by a newsreader.
.B snntpd
snntpd performs some checks, and runs
.B POST
to do some additional checks. If the message is considered postable by
POST, the actual posting is handled by
.B snsend.
This program is used by the sn news system. You probably never have to use this
program yourself.
.SH SEE ALSO
.B snntpd(8),
.B snsend(8)
.B sn(8)
sn (0.3.8-3) unstable; urgency=low
* Updated german translation, thanks to Eric Schanze (Closes: #281217)
* Upload sponsored.. well, i won't mention this again and again until
something changes here <eb>
-- Chris Niekel <chris@niekel.net> Sat, 4 Dec 2004 11:08:44 +0000
sn (0.3.8-2) unstable; urgency=low
* Don't let a .last-list file confuse snnewsq (Closes: #269626)
* Upload sponsored by Edelhard Becker <edelhard@debian.org>
-- Chris Niekel <chris@niekel.net> Thu, 2 Sep 2004 20:33:08 +0200
sn (0.3.8-1) unstable; urgency=low
* New upstream version, fixes message-id problem (Closes: #243297)
Note: upstream changed the name of HELLO and POST into
SNHELLO and SNPOST.
* Converted hyphens in manpage to minus-sign (lintian warning)
* Upload sponsored by Edelhard Becker <edelhard@debian.org>
-- Chris Niekel <chris@niekel.net> Sun, 15 Aug 2004 09:10:28 +0200
sn (0.3.6-4) unstable; urgency=low
* Require debhelper >=4.1.68 for building for dh_installppp
(Closes: #224216)
* Fix va_start/va_end mess, and missing parameters in code, so the
programs will run on ppc. (Thanks to Michael K. Edwards for help!)
* Upload sponsored by Edelhard Becker <edelhard@debian.org>
-- Chris Niekel <chris@niekel.net> Tue, 9 Dec 2003 17:44:52 +0100
sn (0.3.6-3) unstable; urgency=low
* Remove the debian.old directory, which I accidentally added.
* Add new ru.po translation, thanks to Ilgiz Kalmetev (Closes: #221826)
-- Chris Niekel <chris@niekel.net> Sat, 22 Nov 2003 13:34:25 +0100
sn (0.3.6-2) unstable; urgency=low
* Use a non-buggy dpkg-dev, so the build-depends are fine
* Write the debian paths in the install document.
* Upload sponsored by Edelhard Becker <edelhard@debian.org>
-- Chris Niekel <chris@niekel.net> Thu, 18 Sep 2003 08:30:18 +0200
sn (0.3.6-1) unstable; urgency=low
* New upstream release
* Convert to debhelper compatibility 4.
* Incorporate other suggestions by Andreas Metzler on debian-mentor
* Move templates.pot into the po/ directory (Closes: #209110)
-- Chris Niekel <chris@niekel.net> Fri, 22 Aug 2003 10:04:19 +0200
sn (0.3.5-2) unstable; urgency=low
* New maintainer (Closes: #206025)
* Fix postinst script so dash doesn't echo the '-e' on screen
(Closes: #202899)
* Acknowledge NMU (Closes: #190678)
* Switched to gettext for debconf templates, thanks to Michel Grentzinger
for the patch. Hopefully, Russian and German are still readable.
(Closes: #202941)
* Added french translation (Closes: #202942)
* Added manpage for HELLO (Closes: #93858), POST (Closes: #93859),
and lockf (Closes: #93860)
* Upon purge, delete the /var/spool/sn tree (with rm) (Closes: #189479)
-- Chris Niekel <chris@niekel.net> Fri, 22 Aug 2003 10:04:19 +0200
sn (0.3.5-1.1) unstable; urgency=low
* Non-maintainer upload
* Added ed to the Dependencies (Closes #190678)
-- Joachim Breitner <mail@joachim-breitner.de> Fri, 18 Jul 2003 09:56:09 +0200
sn (0.3.5-1) unstable; urgency=low
* New upstream release.
* control: Added german description.
* debian-config: Fixed typo. (Closes: #149697)
* postinst: Touch debian-config, someone had problems with it not
existing.
-- Jorgen Schaefer <forcer@debian.org> Sun, 8 Dec 2002 15:14:30 +0100
sn (0.3.4a-5) unstable; urgency=low
* Updated Standards-Version to 3.5.6.1
-- Jorgen Schaefer <forcer@debian.org> Sat, 27 Apr 2002 13:01:41 +0200
sn (0.3.4a-4) unstable; urgency=high
* $(SNROOT) shouldn't point to $(DESTDIR), also remove dependency on
install as well. (Closes: #144501)
-- Jorgen Schaefer <forcer@debian.org> Sat, 27 Apr 2002 12:06:52 +0200
sn (0.3.4a-3) unstable; urgency=high
* urgency=high - closing three important bugs of sn in testing...
* Depends: ed (Closes: #138540) This might have been the cause for
another bug. I'm closing that one too, the submitter doesn't
reply to my emails... (Closes: #127313)
* snmail now hopefully uses the right exit codes. Thanks to Rupa
Schomaker <rupa@rupa.com> for the patch! (Closes: #136509)
* Missed a call to cat in POST.in last time... (Closes: #143940)
* Added russian template file. Thanks to Ilgiz Kalmetev
<ilgiz@bashtelecom.ru>! (Closes: #137164)
-- Jorgen Schaefer <forcer@debian.org> Tue, 23 Apr 2002 11:59:00 +0200
sn (0.3.4a-2) unstable; urgency=low
* POST.in: Use /bin/cat instead of cat (Closes: #120988)
* cron.daily: Ignore lost+found entries (Closes: #121184)
* sn.init: Touch .noservice while rebuilding the index (Closes: #127650)
* snmail: Exit with EX_TEMPFAIL on erorr (Closes: #131344)
-- Jorgen Schaefer <forcer@debian.org> Sat, 16 Feb 2002 15:39:12 +0100
sn (0.3.4a-1) unstable; urgency=low
* New upstream release.
* Added patch from Patrik Rådman <patrik@infa.abo.fi> to suppress ugly
Terminated messages.
-- Jorgen Schaefer <forcer@debian.org> Tue, 13 Nov 2001 13:40:44 +0100
sn (0.3.3-6) unstable; urgency=low
* HELLO: Talk about "Article posted successfully" only when we actually
did post an article...
-- Jorgen Schaefer <forcer@debian.org> Fri, 31 Aug 2001 13:47:17 +0200
sn (0.3.3-5) unstable; urgency=low
* HELLO: Actually added the reason (thanks to Andras BALI)
* HELLO: Added "Article posted successfully" (thanks to Andras BALI)
-- Jorgen Schaefer <forcer@debian.org> Tue, 31 Jul 2001 13:44:43 +0200
sn (0.3.3-4) unstable; urgency=low
* debian/ip-down: Added || true so the script does not fail
anymore. (Closes: #93761)
* debian/sn.templates: Added german translation (Thanks to Sebastian
Feltel) (Closes: #93622)
* debian/config: New file - config script
* debian/postinst: Removed calls to db_input
* HELLO: added reason to "Posting failed" mail
-- Jorgen Schaefer <forcer@debian.org> Fri, 13 Apr 2001 18:37:44 +0200
sn (0.3.3-3) unstable; urgency=low
* snnewsq.in: Exclude password and username files from snnewsq scanning.
-- Jorgen Schaefer <forcer@debian.org> Fri, 2 Feb 2001 18:15:36 +0100
sn (0.3.3-2) unstable; urgency=low
* store.c: Exclude extern int writev(); on Alpha with glibc.
(Closes: #77261).
-- Jorgen Schaefer <forcer@debian.org> Fri, 1 Dec 2000 21:31:23 +0200
sn (0.3.3-1) unstable; urgency=low
* New upstream release.
* copyright: New upstream author, new source.
* Changed maintainer address to forcer@debian.org.
* Build-Depends: on libz-dev now instead of zlib1g-dev.
* sn.init: Don't discard snscan output.
-- Jorgen Schaefer <forcer@debian.org> Fri, 1 Dec 2000 01:01:23 +0200
sn (0.3.2-7) unstable; urgency=low
* /etc/cron.daily/sn is a conffile
* Depend on debconf
-- Jorgen 'forcer' Schaefer <forcer@mindless.com> Wed, 11 Oct 2000 14:39:50 +0200
sn (0.3.2-6) unstable; urgency=low
* /var/spool/sn/.outgoing should be writeable by root too...
-- Jorgen 'forcer' Schaefer <forcer@mindless.com> Fri, 15 Sep 2000 21:52:31 +0200
sn (0.3.2-5) unstable; urgency=low
* cron.daily: Only use $EXPIRETIME if no .expire found
* cron.daily: Don't expire =junk newsgroups
* postinst: Make sure that /var/spool/sn/.outgoing is writeable by news
* docs: add INSTALL, INSTALL.notes and TODO
* sn.init: DAEMON should be /usr/sbin/snntpd
* sn.init: snprimedb emits alot of irritating pseudo-errors, redirect to
/dev/null
* ipdown: new script. Kill still running snget processes, they hang.
* control: depend on psmisc because of killall in ipdown
* rules: install new ipdown script
* HELLO: added reason to the error mail
* snnewsq.in, snnewsq.8: new script and manpage
(thanks to Andras BALI <drewie@bigfoot.com> for all these)
* cron.daily: Time format allows multiple numbers now
(thanks to Andreas Fuchs <asf@acm.org>
-- Jorgen 'forcer' Schaefer <forcer@mindless.com> Fri, 15 Sep 2000 18:28:57 +0200
sn (0.3.2-4) unstable; urgency=low
* Fixed mistake in cron.daily, should be for f in * not for f in ./*
-- Jorgen Schaefer <forcer@mindless.com> Tue, 1 Aug 2000 03:29:24 +0200
sn (0.3.2-3) unstable; urgency=low
* Small mistake in cron.daily, also run the expire even if news shouldn't
be gotten through cron.
* Added build-depends for debhelper.
-- Jorgen Schaefer <forcer@mindless.com> Sat, 29 Jul 2000 21:50:37 +0200
sn (0.3.2-2) unstable; urgency=low
* New variable EXPIRETIME in etc/news/sn/debian-config. Thanks to
Andreas Fuchs <asf@acm.org>.
* postinst changed to not just overwrite debian-config, but modify it.
-- Jorgen Schaefer <forcer@mindless.com> Sat, 29 Jul 2000 20:41:47 +0200
sn (0.3.2-1) unstable; urgency=low
* New upstream release.
-- Jorgen Schaefer <forcer@mindless.com> Thu, 6 Apr 2000 00:13:37 +0200
sn (0.3.1-2) unstable; urgency=low
* Fixed typo in ip-up: debian-config not debian-conf
-- Jorgen Schaefer <forcer@mindless.com> Fri, 10 Mar 2000 04:02:59 +0100
sn (0.3.1-1) unstable; urgency=low
* Initial Release.
-- Jorgen Schaefer <forcer@mindless.com> Tue, 29 Feb 2000 10:11:31 +0100
#!/bin/sh -e
. /usr/share/debconf/confmodule
# Find good value for RUNFROM
if [ -f /etc/news/sn/debian-config ]
then
. /etc/news/sn/debian-config
fi
if [ -z "$RUNFROM" ]
then
db_get sn/runfrom
RUNFROM=$RET
fi
if [ ! -z "$RUNFROM" ]
then
db_set sn/runfrom "$RUNFROM"
fi
# Find good value for onlylocal
if grep -q "^#-- sn:" /etc/hosts.allow || grep -q "^#-- sn:" /etc/hosts.deny
then
db_set sn/onlylocal true
else
db_set sn/onlylocal false
fi
db_beginblock
db_input high sn/runfrom || true
db_input high sn/onlylocal || true
db_endblock
db_go
Source: sn
Section: news
Priority: optional
Maintainer: Chris Niekel <chris@niekel.net>
Build-Depends: zlib1g-dev, debhelper (>= 4.1.68)
Standards-Version: 3.6.1
Package: sn
Architecture: any
Provides: news-transport-system
Conflicts: news-transport-system
Depends: netbase, tcpd, mailx, smail | sendmail | mail-transport-agent, psmisc, ed, ${shlibs:Depends}, ${misc:Depends}
Description: Small NNTP server for leaf sites
sn is a small news system for small sites serving perhaps a few
dozen newsgroups, and with a slow connection to the internet.
It is similar to leafnode (ftp.troll.no, by Arnt Gulbrandsen).
The target user is a home or SOHO with a single modem connection
to the Internet, maybe running IP masq or similar, and serving a
few workstations.
This package was debianized by Jorgen Schaefer <forcer@mindless.com> on
Tue, 29 Feb 2000 10:11:31 +0100.
It was downloaded from http://www.iki.fi/patrik/sn/files/
Upstream Authors: Patrik Rdman <patrik@iki.fi>
Harold Tay <harold-sn@nb.com.sg>
Copyright:
This software is copyright (c) 1998-99 by Harold Tay.
You are free to distribute this software under the terms of
the GNU General Public License.
On Debian systems, the complete text of the GNU General Public
License can be found in /usr/share/common-licenses/GPL file.
#!/bin/sh
set -e
cd /var/spool/sn
EXPIRETIME=7d
test -f /etc/news/sn/debian-config && . /etc/news/sn/debian-config
for f in *
do
case $f in
=*)
# =junk or such junk
;;
lost+found)
# A whole mountpoint for news. Groovy. Ignore it.
;;
*)
if [ -f "$f/.expire" ]
then
/usr/sbin/snexpire "$f"
else
if echo $EXPIRETIME | egrep '^[0-9]+[hdwm]$' > /dev/null
then
/usr/sbin/snexpire -$EXPIRETIME $f
else
echo "EXPIRETIME is not set correctly. See /etc/news/sn/debian-config" >&2
fi
fi
;;
esac
done
if [ "$RUNFROM" = cron ]; then
/usr/sbin/snget >/dev/null 2>&1 &
fi
# How snget is run, manually, cron or ip-up
RUNFROM=manually
# The time for the expire. See snexpire(8)
EXPIRETIME=7d
# Set this to yes if you want to have a "Article posted successfully" report
POSTINGREPORT=no
usr/sbin
usr/share/man
usr/share/man/man8
var/spool/sn
var/spool/sn/.outgoing
etc/news/sn
etc/cron.daily
etc/ppp/ip-up.d
etc/ppp/ip-down.d