--- sn-0.3.8.orig/store.c +++ sn-0.3.8/store.c @@ -51,7 +51,11 @@ #endif extern int rename (const char *old, const char *new); + +/* Already defined in a glibc-supplied header on Alpha (forcer@debian.org) */ +#if !defined(__alpha) && !defined(__GLIBC__) extern ssize_t writev(); /* Slackware 4 needs this */ +#endif struct storeobj { char *filename; --- sn-0.3.8.orig/snprimedb.8.in +++ sn-0.3.8/snprimedb.8.in @@ -3,7 +3,7 @@ snprimedb \- feed the sn database. .SH SYNOPSIS .B snprimedb -.RB [- i ] +.RB [\- i ] (no arguments) .br .SH DESCRIPTION @@ -21,7 +21,7 @@ .BR snscan . If the option -.RB - i +.RB \- i is given, simply initialize the database files if they do not exist, and exit. @@ -80,5 +80,5 @@ .TP .RI !!SNROOT!! /.newsgroup to attach an integer identifier to each newsgroup name. -This file is a human-readable flat text file. +This file is a human\-readable flat text file. --- sn-0.3.8.orig/snscan.8.in +++ sn-0.3.8/snscan.8.in @@ -20,10 +20,10 @@ .IR articlespec ... .br .IR options : -.RI [- n ] -.RI [- s +.RI [\- n ] +.RI [\- s .IR since ] -.RI [- o +.RI [\- o .IR outputfile ] .br .SH DESCRIPTION @@ -67,7 +67,7 @@ .I range is .br -.IR serial [-[ toserial ]] +.IR serial [\-[ toserial ]] .br (where .I toserial @@ -87,7 +87,7 @@ .B Specify by articles message ID Here .I articlespec is -.RI - i +.RI \- i .IR id ... .br where each @@ -96,7 +96,7 @@ .SH OPTIONS .TP -.RB - n +.RB \- n This option weeds out articles that are aliases. If an article is crossposted, there will be an original copy, the others will be aliases to it. @@ -104,7 +104,7 @@ the original copy. .TP -.IB - s since +.IB \- s since This option weeds out articles that were obtained before .IR since . .I since @@ -119,7 +119,7 @@ can be any non-digit character. .TP -.IB - o outputfile +.IB \- o outputfile Write output to .I outputfile instead of descriptor 1. Sometimes you just don't feel like using @@ -134,11 +134,11 @@ Display information on article 4, and also articles 12 to the most recent article, from linux.lemmings. .TP -sncat -n -s 1998/4/1 linux.lemmings +sncat \-n \-s 1998/4/1 linux.lemmings Display all articles that are not aliases, and which were entered after April 1 1998, from linux.lemmings. .TP -snscan -i '123@myhost' +snscan \-i '123@myhost' Display information on the article whose ID is .BR <123@myhost> , in whichever newsgroup it is found. --- sn-0.3.8.orig/snget.8.in +++ sn-0.3.8/snget.8.in @@ -10,11 +10,11 @@ .RI [ options ] .br .IR options : -.RI [- d ] -.RI [- h\ Bps ] -.RI [- p\ nparallel ] -.RI [- c\ depth ] -.RI [- m\ max ] +.RI [\- d ] +.RI [\- h\ Bps ] +.RI [\- p\ nparallel ] +.RI [\- c\ depth ] +.RI [\- m\ max ] .SH DESCRIPTION .B snget @@ -54,7 +54,7 @@ .SH OPTIONS .TP -.RI - d +.RI \- d Enable verbosity, may be specified multiple times. This option is also propagated to .B snfetch @@ -62,13 +62,13 @@ .BR snstore . .TP -.RI - p\ nparallel +.RI \- p\ nparallel Attempt to fetch for .I nparallel newsgroups at once. Default is 4, maximum is 8. .TP -.RI - h\ Bps +.RI \- h\ Bps Throttle the sum of bandwidth used by all .BR snfetch es to @@ -80,14 +80,14 @@ from hogging the network. By default there is no throttling. .TP -.RI - c\ depth +.RI \- c\ depth .I depth is passed to .B snfetch as the depth of the command pipeline. .TP -.RI - m\ max +.RI \- m\ max The very first time contacting the news server, retrieve no more than .I max @@ -98,7 +98,7 @@ .BR snfetch (8)). .TP -.RI - t\ timeout +.RI \- t\ timeout This option is not documented because it is ignored and will disappear in a future release. See .B .timeout @@ -150,14 +150,14 @@ .TP .B SIGUSR1 If -.RI - h\ Bps +.RI \- h\ Bps was specified, .I Bps is halved, else is ignored. .TP .B SIGUSR2 If -.RI - h\ Bps +.RI \- h\ Bps was specified, .I Bps is doubled, else is ignored. --- sn-0.3.8.orig/SNPOST.in +++ sn-0.3.8/SNPOST.in @@ -76,10 +76,12 @@ { 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 # invoked snntpd, if any. [ "x$VERIFIED_SENDER" = x ] || echo "Sender: $VERIFIED_SENDER" - cat + /bin/cat } | snsend -v || fail "Unable to post" echo "Posted to $postable" : Success --- sn-0.3.8.orig/patch-stamp +++ sn-0.3.8/patch-stamp @@ -0,0 +1,2 @@ +Patches applied in the Debian version of : + --- sn-0.3.8.orig/snnewsq.in +++ sn-0.3.8/snnewsq.in @@ -0,0 +1,34 @@ +#!/bin/sh + +# news queue statistics for sn +# by Andras BALI +# modified by Jorgen Schaefer + +SNSPOOL=${SNROOT:-!!SNROOT!!} + +for i in $SNSPOOL/.outgoing/*; do + if [ "$i" == "$SNSPOOL/.outgoing/*" ] + then + echo "Can't read from $SNSPOOL/.outgoing/, exiting." + break + fi + servername=$(basename $i | cut -d: -f1) + files=$(find $i/ -type f -not -name .lock \ + -not -name .last-list \ + -not -name password \ + -not -name username) + if [ -z "$files" ]; then + echo No outgoing articles for $servername + else + NUM=$(echo "$files" | wc -l | tr -d ' ') + if [ $NUM -eq 1 ]; then ARTICLES=article ; else ARTICLES=articles ; fi + echo $NUM outgoing $ARTICLES for $servername: + k=1 + echo "$files" | while read j; do + echo -n "-> $k. "; grep "Newsgroups: " $j | head -1 + echo -n " "; grep "Subject: " $j | head -1 + echo -n " "; grep "Date: " $j | head -1 + k=$((k + 1)) + done + fi +done --- sn-0.3.8.orig/snmail.c +++ sn-0.3.8/snmail.c @@ -43,6 +43,7 @@ #include #include #include +#include int debug = 0; @@ -55,7 +56,7 @@ struct b references = { 0, }; struct readln input = { 0, }; -void memerr (void) { fail(2, "No memory"); } +void memerr (void) { fail(EX_OSERR, "No memory"); } /* * Construct a References: line @@ -192,7 +193,7 @@ return 0; } -void usage (void) { fail(1, "Usage:%s [-scanv] [listname [prefix]]", progname); } +void usage (void) { fail(EX_USAGE, "Usage:%s [-scanv] [listname [prefix]]", progname); } int main (int argc, char **argv) { @@ -210,7 +211,7 @@ parameters(FALSE); if (-1 == chdir(snroot)) - FAIL(2, "Can't chdir(%s):%m", snroot); + FAIL(EX_TEMPFAIL, "Can't chdir(%s):%m", snroot); newsgroup = 0; s = 1; @@ -229,7 +230,7 @@ default: usage(); } if (s >= sizeof (storeopts)) - fail(1, "Too many options"); + fail(EX_USAGE, "Too many options"); } if (opt_ind < argc) newsgroup = argv[opt_ind++]; @@ -240,14 +241,14 @@ } if (-1 == readln_ready(0, 0, &input)) - FAIL(2, "readln_ready:%m"); + FAIL(EX_OSERR, "readln_ready:%m"); if (storepid != 0) { char *args[3]; storeopts[s] = '\0'; - args[0] = "snstore"; + args[0] = "/usr/sbin/snstore"; i = 1; if (s > 1) { @@ -257,7 +258,7 @@ args[i] = 0; set_path_var(); if ((storepid = cmdopen(args, 0, &fd)) <= 0) - fail(2, "Can't exec snstore:%m?"); + fail(EX_OSERR, "Can't exec snstore:%m?"); } else fd = 1; @@ -266,8 +267,8 @@ switch (unfold(&input, switchline)) { case 0: _exit(0); - case -1: fail(2, "Read or memory error:%m"); - case -2: case -3: fail(3, "Bad message format"); + case -1: fail(EX_TEMPFAIL, "Read or memory error:%m"); + case -2: case -3: fail(EX_DATAERR, "Bad message format"); } if (references.buf == NULL && in_reply_to != NULL) { @@ -276,7 +277,7 @@ } if (!newsgroup) if (!(newsgroup = suffix)) - FAIL(1, "No newsgroup specified"); + FAIL(EX_NOUSER, "No newsgroup specified"); i = strlen(newsgroup) + strlen(prefix); if (!(fullnewsgroup = malloc(i + 1))) --- sn-0.3.8.orig/INSTALL.run +++ sn-0.3.8/INSTALL.run @@ -3,6 +3,8 @@ file INSTALL. "SNROOT" and "PREFIX" refer to values as you have set in the Makefile. +For Debian, SNROOT=/var/spool/sn and PREFIX=/usr + In the following, remember that (almost) every file and directory 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 @@ -19,12 +21,12 @@ If you leave out the news server address, the newsgroup will get created as a local one. (You can tell a global group by 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. Each newsgroup has at most one upstream feed. 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-password >password $ chmod 600 username password @@ -40,7 +42,7 @@ it connects. "Optionally" because these lists are usually very 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 "mail me@myhost" with any other shell command that will read @@ -78,7 +80,7 @@ The example access control policy here is to permit reading and 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 - 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 here is determined by the POSTING_OK environment variable. @@ -101,22 +103,22 @@ #!/bin/sh # snntpd needs to find snstore if it is to accept news postings. # Replace PREFIX with the real value of PREFIX from the Makefile. - PATH=PREFIX/sbin:$PATH + PATH=/usr/sbin:$PATH export PATH # Enable posting? Can also do this from /etc/hosts.allow POSTING_OK=1; export POSTING_OK # yes # No: unset POSTING_OK # 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: - # PREFIX/sbin/snntpd 2>>/where/you/want/the/snntpd.log + # /usr/sbin/snntpd 2>>/where/you/want/the/snntpd.log # End of wrapper script. In /etc/inetd.conf, insert a line: 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. Hup inetd and run your newsreader. The news spool can be read @@ -138,9 +140,9 @@ man 1 tcprules for more on this file. Run a command similar to one of the following, and place 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 \ snntpd logger -p news.info & @@ -150,18 +152,18 @@ man tcpserver(1). 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: - 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). 5) You can fetch news automatically whenever you dial up. If you're 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, use the -h option to snget (see the man page) to throttle @@ -172,7 +174,7 @@ 6) Tuning. After some days or weeks of use, you can start tuning 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. You can also say '2w' for 2 weeks, or '1m' for one month. @@ -183,7 +185,7 @@ you can enable compression on selected newsgroups, which by now 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 for compression. Old articles won't be touched. Compression and @@ -194,12 +196,12 @@ 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, but permits new articles from it's upstream host. Effectively alt.usenet.noise.noise.noise becomes readonly to users. See the - PREFIX/sbin/SNPOST script. + /usr/sbin/SNPOST script. man snntpd(8). @@ -208,11 +210,11 @@ In one of your system rc scripts, after the filesystems have been mounted and fsck has been run, execute the following: - cd SNROOT + cd /var/spool/sn rm .newsgroup .table .chain find . -type f -name "+*" -exec rm -f {} \; - PREFIX/sbin/snprimedb -i - PREFIX/sbin/snscan -n * | PREFIX/sbin/snprimedb; + /usr/sbin/snprimedb -i + /usr/sbin/snscan -n * | /usr/sbin/snprimedb; This ensures that sn's ID database is in sync with the news spool. --- sn-0.3.8.orig/snmail.8.in +++ sn-0.3.8/snmail.8.in @@ -3,7 +3,7 @@ snmail \- mail-to-news filter .SH SYNOPSIS .B snmail -.RI [- sP ] +.RI [\- sP ] .RI [ listname .RI [ prefix ]] .br @@ -62,13 +62,13 @@ .SH OPTIONS .TP -.RI - s +.RI \- s Pipe output to .B snstore directly, do not write to standard output. This is so the exit status is not lost in a shell pipeline. If you use this flag, it is also a good idea to also use -.RI - c +.RI \- c (tell .B snstore to check if article already exists). @@ -78,10 +78,10 @@ also accepts options intended for .BR snstore , viz. -.RI - c , -.RI - v , +.RI \- c , +.RI \- v , and -.RI - n , +.RI \- n , and these are passed on uninterpreted. .SH ARGUMENTS @@ -143,7 +143,7 @@ .TP .B PATH If -.RI - s +.RI \- s was specified, determines where to look for .BR snstore , before looking in !!BINDIR!!. --- sn-0.3.8.orig/snexpire.8.in +++ sn-0.3.8/snexpire.8.in @@ -5,10 +5,10 @@ system. .SH SYNOPSIS .B snexpire -.RI [- v ] -.RI [- exp ] +.RI [\- v ] +.RI [\- exp ] .IR newsgroup -.RI [[- exp ] +.RI [[\- exp ] .IR newsgroup ]... .br .SH DESCRIPTION @@ -27,8 +27,8 @@ .BR snexpire . .SH OPTIONS -.tp -.RB - v +.TP +.RB \- v Output a line for each article expired. The format of this line is the same as for .BR snscan . @@ -37,7 +37,7 @@ expires all .IR newsgroup s named on the command line. Each newsgroup may be preceded by -.RI - exp +.RI \- exp to control the expiration age. .I exp is of the form @@ -47,12 +47,12 @@ is a number, followed by one of the characters .IR h , d , w , m , y representing hours, days, weeks, months and years. The default for -.RI - exp +.RI \- exp is a compile-time fixed. Each -.RI [- exp ] +.RI [\- exp ] applies to the next newsgroup only, any newsgroups after that one get default treatment unless overridden by another -.RI [- exp ]. +.RI [\- exp ]. .SH FILES MODIFIED .RI !!SNROOT!!/ newsgroup /.times, @@ -72,6 +72,6 @@ If this exists, its contents are taken to be .I exp if not overridden by -.RI - exp +.RI \- exp on the command line. --- sn-0.3.8.orig/snntpd.8.in +++ sn-0.3.8/snntpd.8.in @@ -3,9 +3,9 @@ snntpd \- small news server .SH SYNOPSIS .B snntpd -.RI [- t\ timeout ] -.RI [- P ] -.RI [- S ] +.RI [\- t\ timeout ] +.RI [\- P ] +.RI [\- S ] .RI [ logger ...] .br .SH DESCRIPTION @@ -28,18 +28,18 @@ .SH OPTIONS .TP -.RI - t\ timeout +.RI \- t\ timeout specifies how long .B snntpd should wait for input before it gives up and exits. .I timeout is in seconds and defaults to 600. .TP -.RI - P +.RI \- P .B snntpd includes it's pid in log output. .TP -.RI - S +.RI \- S Suppress NNTP greeting on startup. This is useful if you want to perform authentication before running .BR snntpd , --- sn-0.3.8.orig/snsplit.8.in +++ sn-0.3.8/snsplit.8.in @@ -3,8 +3,8 @@ snsplit \- split an article stream into individual articles .SH SYNOPSIS .B snsplit -.RI [- r ] -.RI [ field ...\ -] +.RI [\- r ] +.RI [ field ...\ \-] .IR prog ... .br .SH DESCRIPTION @@ -35,7 +35,7 @@ aborts. .TP -.IR field ...- +.IR field ...\- are optional header field names. If these are specified, the value of the first header field of that name will be exported into the environment. This @@ -46,7 +46,7 @@ .SH OPTIONS .TP -.RB - r +.RB \- r Expect input articles in rnews batch format instead. .SH ENVIRONMENT --- sn-0.3.8.orig/snsend.8.in +++ sn-0.3.8/snsend.8.in @@ -6,10 +6,10 @@ .SH SYNOPSIS .B snsend -.RI [- rvcna ] +.RI [\- rvcna ] .br .B snstore -.RI [- rvcna ] +.RI [\- rvcna ] .SH DESCRIPTION .B snsend @@ -126,20 +126,20 @@ equally. .TP -.RB - r +.RB \- r The article stream is in rnews batch format, rather than wire format. Only the .B #! rnews form is understood. .TP -.RB - c +.RB \- c If an article already exists in the local newsgroup it is destined for, don't store it there. For .BR snsend , this option has no effect on newsgroups that are not local. .TP -.RB - a +.RB \- a (Aliases not allowed.) When storing to multiple local newsgroups, do not alias subsequent copies to the first, instead, make a copy. Aliasing saves disk @@ -147,11 +147,11 @@ This option has no effect on newsgroups that are not local. .TP -.RB - n +.RB \- n Don't actually do anything with the article, just dump it back onto descriptor 1. .TP -.RB - v +.RB \- v For each article stored in each newsgroup, output a line to descriptor 1 similar to what .B snscan --- sn-0.3.8.orig/sndelgroup.8.in +++ sn-0.3.8/sndelgroup.8.in @@ -12,7 +12,7 @@ after removing the article ID entries in the sn database. Do not use the shell command .br -rm -rf +rm \-rf .RI !!SNROOT!!/ newsgroup .br because that will leave unreclaimed garbage in the database. --- sn-0.3.8.orig/Makefile +++ sn-0.3.8/Makefile @@ -15,12 +15,12 @@ #PREFIX =/home/patrik/stow/sn-current ## Where the news spool will be -SNROOT =/var/spool/news +SNROOT =/var/spool/sn #SNROOT =/home/patrik/spool/news ## Where to send mail for the admin if neither the NEWSMASTER nor ## the LOGNAME environment variable is set -DEFAULT_ADMIN_EMAIL =newsmaster +DEFAULT_ADMIN_EMAIL =postmaster # # OS-specific settings. Uncomment only one section below. @@ -45,8 +45,8 @@ CC =gcc LD =gcc -BINDIR =$(PREFIX)/sbin -MANDIR =$(PREFIX)/man +BINDIR =$(DESTDIR)/usr/sbin +MANDIR =$(DESTDIR)/usr/share/man # # You can stop editing here. @@ -63,14 +63,14 @@ BINS =snprimedb snntpd snfetch snexpire snsend \ snmail snget sngetd snscan sndumpdb \ snnewgroup sndelgroup snlockf snsplit -SCRIPTS =dot-outgoing.ex SNHELLO SNPOST +SCRIPTS =SNHELLO SNPOST snnewsq PROGS =$(BINS) $(SCRIPTS) MANS =sn.8 sncat.8 sndelgroup.8 sndumpdb.8 snexpire.8 \ snfetch.8 snget.8 snmail.8 snnewgroup.8 snntpd.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: echo ' -g -Wall -pedantic -O' >$@.t echo ' -I./lib' >>$@.t @@ -150,6 +150,8 @@ -cd $(BINDIR); rm -f sncat; ln -s snscan sncat -cd $(BINDIR); rm -f sncancel; ln -s snscan sncancel -cd $(BINDIR); rm -f snstore; ln -s snsend snstore + mv $(BINDIR)/snntpd $(BINDIR)/snntpd.bin + install debian/snntpd.wrapper $(BINDIR)/snntpd spoolclean: @echo -n "make $@ will wipe out your news spool! Sure? [y/n] " --- sn-0.3.8.orig/snfetch.8.in +++ sn-0.3.8/snfetch.8.in @@ -3,9 +3,9 @@ snfetch \- fetch articles. .SH SYNOPSIS .B snfetch -.RI [- r ] -.RI [- t\ timeout ] -.RI [- c\ depth ] +.RI [\- r ] +.RI [\- t\ timeout ] +.RI [\- c\ depth ] .IR group\ [ serial \ [ max ]] .br .SH DESCRIPTION @@ -47,7 +47,7 @@ .SH OPTIONS .TP -.RI - t\ timeout +.RI \- t\ timeout .B snfetch will wait only .I timeout @@ -55,14 +55,14 @@ respond. .TP -.RI - r +.RI \- r Output in news batch format instead. All articles will take the .B #! rnews form only, even if there is just one article, all lines end in bare linefeed, and dot-unquoting is performed. .TP -.RI - c\ depth +.RI \- c\ depth Employ a command pipeline of depth .IR depth . NNTP command pipelining is not officially sanctioned, so by default --- sn-0.3.8.orig/snnewsq.8.in +++ sn-0.3.8/snnewsq.8.in @@ -0,0 +1,19 @@ +.TH snnewsq,v!!VERSION!! 8 "Andras BALI" "N.B." \" -*- nroff -*- +.SH NAME +snnewsq \- show a list of outgoing news articles +.SH SYNOPSIS +.B snnewsq +(no arguments) +.br +.SH DESCRIPTION +.B snnewsq +shows a list of outgoing news articles in the +.B sn +spool (in no particular order) + +.SH ENVIRONMENT VARIABLES +.TP +.B SNROOT +If this is set and is not empty, the value is used in place of +.BR !!SNROOT!! , +the default news spool directory. --- sn-0.3.8.orig/SNHELLO.in +++ sn-0.3.8/SNHELLO.in @@ -105,8 +105,10 @@ if [ "x$CODE" != x240 ]; then rmcr <$art; # 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" + else + echo "Article successfully posted at $SERVER." fi rm -f $art done --- sn-0.3.8.orig/sn.8.in +++ sn-0.3.8/sn.8.in @@ -54,7 +54,7 @@ .B sn has been tested only against Linux ver. 2.0. It makes heavy use of mmap(2) in MAP_SHARED and MAP_WRITE mode, so it won't work on -pre-1.3.45 or so. I (harold-sn@nb.com.sg) am interested in bug +pre-1.3.45 or so. I (harold\-sn@nb.com.sg) am interested in bug reports, comments, and suggestions. .SH NEWS SPOOL STRUCTURE @@ -119,7 +119,7 @@ aren't running or scheduled to do so. Then run .br -cd !!SNROOT!!; snscan -n * |snprimedb +cd !!SNROOT!!; snscan \-n * |snprimedb .br This will recreate the ID database. @@ -213,14 +213,14 @@ .B Options .B sn programs take -.RI - d +.RI \- d to enable verbose messages (may be repeated), and -.RI - V , +.RI \- V , which displays the version and exits. Where a network timeout is appropriate, this is specified with -.RI - t\ timeout , +.RI \- t\ timeout , in seconds. -.RI - P +.RI \- P indicates the pid should be included in any status output. Other options are possible. --- sn-0.3.8.orig/debian/compat +++ sn-0.3.8/debian/compat @@ -0,0 +1 @@ +5 --- sn-0.3.8.orig/debian/sn.manpages +++ sn-0.3.8/debian/sn.manpages @@ -0,0 +1,3 @@ +debian/SNHELLO.8 +debian/SNPOST.8 +debian/snlockf.8 --- sn-0.3.8.orig/debian/postrm +++ sn-0.3.8/debian/postrm @@ -0,0 +1,59 @@ +#! /bin/sh +# postrm script for sn +# +# see: dh_installdeb(1) + +set -e + +SNROOT=/var/spool/sn + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see /usr/doc/packaging-manual/ + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + if which update-inetd >/dev/null 2>&1 ; then + update-inetd --group NEWS --remove 'nntp stream tcp nowait news.news /usr/sbin/tcpd /usr/sbin/snntpd logger -p news.info' + fi +esac + +case "$1" in + purge) + if [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge || true + fi + + if grep -q '#-- sn begin' /etc/hosts.deny 2>/dev/null; then + cp /etc/hosts.deny /etc/hosts.deny.new + sed -e '/#-- sn begin/,/#-- sn end/d' \ + /etc/hosts.deny + rm -f /etc/hosts.deny.new + fi + if grep -q '#-- sn begin' /etc/hosts.allow 2>/dev/null; then + cp /etc/hosts.allow /etc/hosts.allow.new + sed -e '/#-- sn begin/,/#-- sn end/d' \ + /etc/hosts.allow + rm -f /etc/hosts.allow.new + fi + rm -f /var/spool/sn/.fifo + rm -rf /var/spool/sn + rm /etc/news/sn/debian-config + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + + --- sn-0.3.8.orig/debian/config +++ sn-0.3.8/debian/config @@ -0,0 +1,34 @@ +#!/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 + --- sn-0.3.8.orig/debian/sn.templates +++ sn-0.3.8/debian/sn.templates @@ -0,0 +1,24 @@ +Template: sn/runfrom +Type: select +_Choices: cron, ip-up, manually +Default: cron +_Description: sn should run from: + The scripts provided with the package support several ways to run snget + (the program to fetch new news): + . + cron -- The program will be executed daily by cron -- useful e.g + for permanent connections; + ip-up -- The program will called from ip-up, that is, when your + computer makes a connection -- useful for e.g. dialup + connections; + manually -- The program will never be called, you have to call it + manually to get new news (just type snget as root). + +Template: sn/onlylocal +Type: boolean +Default: true +_Description: Should sn only accept connections from localhost? + sn is a small newsserver, intended mainly to be run for single user + systems. On such systems, it's better to have sn only answer connections + from localhost. If you intend to use sn from multiple machines, refuse + here. --- sn-0.3.8.orig/debian/copyright +++ sn-0.3.8/debian/copyright @@ -0,0 +1,17 @@ +This package was debianized by Jorgen Schaefer on +Tue, 29 Feb 2000 10:11:31 +0100. + +It was downloaded from http://www.iki.fi/patrik/sn/files/ + +Upstream Authors: Patrik Rådman + Harold Tay + +Copyright: +This software is copyright (c) 1998-99 by Harold Tay. + (c) 2000 Patrik Rådman + +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. --- sn-0.3.8.orig/debian/postinst +++ sn-0.3.8/debian/postinst @@ -0,0 +1,106 @@ +#! /bin/sh +# postinst script for sn +# +# see: dh_installdeb(1) + +set -e + +SNROOT=/var/spool/sn + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + test -d $SNROOT || mkdir -p $SNROOT + . /usr/share/debconf/confmodule + db_get sn/onlylocal || true + + if [ "$RET" = true ] ; then + if ! grep -q '#-- sn begin' /etc/hosts.deny 2>/dev/null; then + echo '#-- sn begin' >> /etc/hosts.deny + echo 'snntpd: ALL' >> /etc/hosts.deny + echo '#-- sn end' >> /etc/hosts.deny + fi + if ! grep -q '#-- sn begin' /etc/hosts.allow 2>/dev/null; then + echo '#-- sn begin' >> /etc/hosts.allow + echo "snntpd: 127.0.0.1" >> /etc/hosts.allow + echo '#-- sn end' >> /etc/hosts.allow + fi + else + if grep -q '#-- sn begin' /etc/hosts.deny 2>/dev/null + then + cp /etc/hosts.deny /etc/hosts.deny.new + sed -e '/#-- sn begin/,/#-- sn end/d' \ + /etc/hosts.deny + rm -f /etc/hosts.deny.new + fi + if grep -q '#-- sn begin' /etc/hosts.allow 2>/dev/null + then + cp /etc/hosts.allow /etc/hosts.allow.new + sed -e '/#-- sn begin/,/#-- sn end/d' \ + /etc/hosts.allow + rm -f /etc/hosts.allow.new + fi + fi + + update-inetd --group NEWS --add 'nntp stream tcp nowait news.news /usr/sbin/tcpd /usr/sbin/snntpd logger -p news.info' + chown news:news /var/spool/sn/ + chown news:news /var/spool/sn/.outgoing + chmod 770 /var/spool/sn/.outgoing + test -e /var/spool/sn/.fifo || mkfifo /var/spool/sn/.fifo + + db_get sn/runfrom || true + if ! test -f /etc/news/sn/debian-config ; then + cat >/etc/news/sn/debian-config <<__EOT__ +# How snget is run, manually, cron or ip-up +RUNFROM=manually +# +# Please note that the variable EXPIRETIME has been removed +# from this file. You can set the default value for your +# expire time in the file /etc/cron.daily/sn. +# See snexpire(8) for details. +# +# Set this to yes if you want to have a "Article posted successfully" report +POSTINGREPORT=no +__EOT__ + chmod 644 /etc/news/sn/debian-config + fi + # manually, cron or ip-up + + printf ",s/RUNFROM=.*/RUNFROM=$RET/\nw\n" \ + | ed /etc/news/sn/debian-config 2>/dev/null + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- sn-0.3.8.orig/debian/SNHELLO.8 +++ sn-0.3.8/debian/SNHELLO.8 @@ -0,0 +1,24 @@ +.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) + --- sn-0.3.8.orig/debian/watch +++ sn-0.3.8/debian/watch @@ -0,0 +1,6 @@ +# watch control file for uscan +# Run 'uscan --verbose' in the top directory. + +version=2 + +http://www.iki.fi/patrik/sn/files/sn-(.*).tar.(gz|bz2) debian uupdate --- sn-0.3.8.orig/debian/ppp.ip-up +++ sn-0.3.8/debian/ppp.ip-up @@ -0,0 +1,5 @@ +#!/bin/sh +. /etc/news/sn/debian-config +if [ "$RUNFROM" = "ip-up" ]; then + /usr/sbin/snget 2>&1 >/dev/null & +fi --- sn-0.3.8.orig/debian/snlockf.8 +++ sn-0.3.8/debian/snlockf.8 @@ -0,0 +1,15 @@ +.TH lockf 8 +.SH NAME +lockf \- lock files from within shell-scripts (used by sn news system) +.SH SYNOPSIS +.B lockf +.SH DESCRIPTION +.B lockf +can be used to lock files from within shell-scripts. Filedescriptor 3 is +always locked, and the lock remains until the process is killed. +The process-id is written to standard output, as to facilitate killing the +process. + +It is used by the sn news system. +.SH SEE ALSO +.B sn(8) --- sn-0.3.8.orig/debian/snntpd.wrapper +++ sn-0.3.8/debian/snntpd.wrapper @@ -0,0 +1,3 @@ +#!/bin/sh +export POSTING_OK=1 +exec /usr/sbin/snntpd.bin $@ --- sn-0.3.8.orig/debian/regenerate-indices +++ sn-0.3.8/debian/regenerate-indices @@ -0,0 +1,14 @@ +#! /bin/sh + +set -e + +echo -n "Regenerating the indices in /var/spool/sn ... " +cd /var/spool/sn +touch .noservice +pkill -HUP snntpd.bin +rm -f .newsgroup .table .chain +find . -type f -name "+*" -exec rm -f {} \; +/usr/sbin/snprimedb -i +/usr/sbin/snscan -n * | /usr/sbin/snprimedb +rm -f .noservice +echo "done." --- sn-0.3.8.orig/debian/cron.daily +++ sn-0.3.8/debian/cron.daily @@ -0,0 +1,38 @@ +#!/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 + ;; + \*) + # empty spool dir + ;; + 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]+[hdwmy]$' > /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 --- sn-0.3.8.orig/debian/rules +++ sn-0.3.8/debian/rules @@ -0,0 +1,68 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + $(MAKE) install DESTDIR=$(CURDIR)/debian/sn + dh_installppp + ln -s snntpd.8.gz debian/sn/usr/share/man/man8/snntpd.bin.8.gz + mkdir -p debian/sn/usr/share/lintian/overrides/ + install -m 644 debian/lintian-overrides debian/sn/usr/share/lintian/overrides/sn + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdebconf + dh_installdocs + chmod 755 debian/regenerate-indices + dh_installexamples dot-outgoing.ex debian/regenerate-indices + dh_installinit + dh_installcron + dh_installman + dh_installchangelogs CHANGES + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install patch unpatch clean1 --- sn-0.3.8.orig/debian/lintian-overrides +++ sn-0.3.8/debian/lintian-overrides @@ -0,0 +1,3 @@ +package-contains-upstream-install-documentation usr/share/doc/sn/INSTALL.run.gz +package-contains-upstream-install-documentation usr/share/doc/sn/INSTALL.notes.gz + --- sn-0.3.8.orig/debian/changelog +++ sn-0.3.8/debian/changelog @@ -0,0 +1,330 @@ +sn (0.3.8-8) unstable; urgency=low + + * New maintainer (Closes: #380422) + * Fixed lowercased formatting directive snexpire.8. Thanks, lintian! + * Moved spool cleanup code to example script (Closes: #400663) + + -- Hilko Bengen Thu, 08 May 2008 00:52:52 +0200 + +sn (0.3.8-7) unstable; urgency=low + + * QA upload. + + Set maintainer to Debian QA Group. + * Acknowledge NMUs. + * Move DH_COMPAT to debian/compat and set to 5. + * Debconf traslations: + + Spanish updated. (Closes: #413783). + + Russion updated. (Closes: #414084). + + Portuguese translation. (Closes: #415531). + + Dutch translation. (Closes: #450969). + * Add depends for openbsd-inetd | inet-superserver. + * Convert copyright file to UTF-8. + * Remove unused commands from rules. + * Bump debhelper build-dep to 5. + * Bump standards version to 3.7.3. + + -- Barry deFreese Thu, 24 Jan 2008 07:38:28 -0500 + +sn (0.3.8-6.1) unstable; urgency=low + + * Non-maintainer upload to fix longstanding l10n issues + * Debconf translations: + - French updated. Closes: #385471 + - Czech updated. Closes: #389187 + + -- Christian Perrier Mon, 15 Jan 2007 23:27:47 +0100 + +sn (0.3.8-6) unstable; urgency=low + + * Check for the existence of update-inetd in postrm (Closes: 398542) + Thanks to Andreas Henriksson for the patch. + * Updated German translation by Erik Schanze (Closes: 399272) + + + -- Chris Niekel Thu, 16 Nov 2006 09:39:59 +0100 + +sn (0.3.8-5.1) unstable; urgency=low + + * NMU + * /etc/news/sn/debian-config no longer a conffile (Closes: 386620) + + -- Florian M. Weps Tue, 10 Oct 2006 16:46:31 +0200 + +sn (0.3.8-5) unstable; urgency=low + + * Expiretime was doubly defined, in /etc/cron.daily/sn and debian-config. + Remove it from the second. (Closes: #380240) + * Add Vietnamese translation, thanks to Clytie Siddall (Closes: #318600) + * Add Swedish translation, thanks to Daniel Nylander (Closes: #336902) + * Fix lintian warnings whenever possible. + * If newsspool is empty, cron.daily generates an error. Prevent that. + (reported in ubuntu). + * Upgrade to policy 3.7.2, no changes made based on the checklist. + + -- Chris Niekel Sat, 19 Aug 2006 21:31:16 +0200 + +sn (0.3.8-4) unstable; urgency=low + + * Add Czech translation, thanks to Miroslav Kure (Closes: #298321) + * Allow year-based expire in cron.daily, since snexpire allows it. + Thanks to Derrick Karpo. + + -- Chris Niekel Wed, 20 Apr 2005 21:11:02 +0200 + +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 + + -- Chris Niekel 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 + + -- Chris Niekel 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 + + -- Chris Niekel 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 + + -- Chris Niekel 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 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 + + -- Chris Niekel 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 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 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 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 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 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 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 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 + ! (Closes: #137164) + + -- Jorgen Schaefer 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 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 to suppress ugly + Terminated messages. + + -- Jorgen Schaefer 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 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 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 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 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 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 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 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 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 for all these) + * cron.daily: Time format allows multiple numbers now + (thanks to Andreas Fuchs + + -- Jorgen 'forcer' Schaefer 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 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 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 . + * postinst changed to not just overwrite debian-config, but modify it. + + -- Jorgen Schaefer Sat, 29 Jul 2000 20:41:47 +0200 + +sn (0.3.2-1) unstable; urgency=low + + * New upstream release. + + -- Jorgen Schaefer 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 Fri, 10 Mar 2000 04:02:59 +0100 + +sn (0.3.1-1) unstable; urgency=low + + * Initial Release. + + -- Jorgen Schaefer Tue, 29 Feb 2000 10:11:31 +0100 --- sn-0.3.8.orig/debian/control +++ sn-0.3.8/debian/control @@ -0,0 +1,19 @@ +Source: sn +Section: news +Priority: optional +Maintainer: Hilko Bengen +Build-Depends: zlib1g-dev, debhelper (>= 5.0.0) +Standards-Version: 3.7.3 + +Package: sn +Architecture: any +Provides: news-transport-system +Conflicts: news-transport-system +Depends: netbase, tcpd, mailx, smail | sendmail | mail-transport-agent, psmisc, ed, openbsd-inetd | inet-superserver, ${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. --- sn-0.3.8.orig/debian/docs +++ sn-0.3.8/debian/docs @@ -0,0 +1,5 @@ +README +README.files +INSTALL.run +INSTALL.notes +TODO --- sn-0.3.8.orig/debian/source.lintian-overrides +++ sn-0.3.8/debian/source.lintian-overrides @@ -0,0 +1 @@ +package-contains-upstream-install-documentation usr/share/doc/sn/INSTALL.notes.gz --- sn-0.3.8.orig/debian/dirs +++ sn-0.3.8/debian/dirs @@ -0,0 +1,9 @@ +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 --- sn-0.3.8.orig/debian/SNPOST.8 +++ sn-0.3.8/debian/SNPOST.8 @@ -0,0 +1,25 @@ +.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.orig/debian/NEWS +++ sn-0.3.8/debian/NEWS @@ -0,0 +1,23 @@ +sn (0.3.8-8) unstable; urgency=low + + * Previous versions of the sn package used to recreate the indices on + every reboot. Since this can be quite a time-consuming task that is + only needed when this data has been corrupted, the init script has + been removed. + + A script with this functionality that may be run by the administrator + is provided in /usr/share/doc/sn/examples/regenerate-indices. + + -- Hilko Bengen Thu, 08 May 2008 00:45:14 +0200 + +sn (0.3.1-1?) unstable; urgency=low + + [ moved from README.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 Fri, 15 Feb 2000 19:47:27 +0100 --- sn-0.3.8.orig/debian/ppp.ip-down +++ sn-0.3.8/debian/ppp.ip-down @@ -0,0 +1,2 @@ +#!/bin/sh +/usr/bin/killall -9 snget >/dev/null 2>&1 || true --- sn-0.3.8.orig/debian/po/nl.po +++ sn-0.3.8/debian/po/nl.po @@ -0,0 +1,69 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE 'S COPYRIGHT HOLDER +# This file is distributed under the same license as the package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: sn\n" +"Report-Msgid-Bugs-To: chris@niekel.net\n" +"POT-Creation-Date: 2006-08-19 22:07+0200\n" +"PO-Revision-Date: 2007-10-26 19:15+0100\n" +"Last-Translator: Bart Cornelis \n" +"Language-Team: debian-l10n-dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Dutch\n" + +#. Type: select +#. Choices +#: ../sn.templates:1001 +msgid "cron, ip-up, manually" +msgstr "cron, ip-up, handmatig" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "sn should run from:" +msgstr "Hoe wordt sn opgestart:" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "The scripts provided with the package support several ways to run snget (the program to fetch new news):" +msgstr "De door dit pakket voorziene scripts ondersteunen verschillende manieren om snget (het programma dat nieuws ophaalt) uit te voeren." + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +" cron -- The program will be executed daily by cron -- useful e.g\n" +" for permanent connections;\n" +" ip-up -- The program will called from ip-up, that is, when your\n" +" computer makes a connection -- useful for e.g. dialup\n" +" connections;\n" +" manually -- The program will never be called, you have to call it\n" +" manually to get new news (just type snget as root)." +msgstr "" +" cron -- Het programma wordt dagelijks door cron uitgevoerd\n" +" Handig als u een vaste verbinding heeft.\n" +" ip-up -- Het programma wordt door ip-up opgestart telkens\n" +" wanneer uw computer een verbinding maakt.\n" +" Handig voor inbelverbindingen.\n" +"handmatig -- Het programma wordt enkel uitgevoerd wanneer\n" +" u het handmatig aanroept (door het commando\n" +" 'snget' als root uit te voeren)." + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "Should sn only accept connections from localhost?" +msgstr "Wilt u dat sn enkel verbindingen van de lokale machine aanvaardt?" + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "sn is a small newsserver, intended mainly to be run for single user systems. On such systems, it's better to have sn only answer connections from localhost. If you intend to use sn from multiple machines, refuse here." +msgstr "sn is een kleine nieuwsserver bedoelt voor ééngebruiker-systemen. Op zo'n systemen is het aan te raden om sn enkel verbindingen van de locale machine te laten aanvaarden. Als u van plan bent om sn vanaf verschillende machines te gebruiken dient u hier te weigeren." + --- sn-0.3.8.orig/debian/po/es.po +++ sn-0.3.8/debian/po/es.po @@ -0,0 +1,104 @@ +# sn translation to spanish +# Copyright (C) 2007 Free Software Foundation, Inc. +# This file is distributed under the same license as the package. +# +# Changes: +# - Initial translation +# Manuel Porras Peralta , 2007 +# +# +# Traductores, si no conoce el formato PO, merece la pena leer la +# documentación de gettext, especialmente las secciones dedicadas a este +# formato, por ejemplo ejecutando: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Equipo de traducción al español, por favor lean antes de traducir +# los siguientes documentos: +# +# - El proyecto de traducción de Debian al español +# http://www.debian.org/intl/spanish/ +# especialmente las notas y normas de traducción en +# http://www.debian.org/intl/spanish/notas +# +# - La guía de traducción de po's de debconf: +# /usr/share/doc/po-debconf/README-trans +# o http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Si tiene dudas o consultas sobre esta traducción consulte con el último +# traductor (campo Last-Translator) y ponga en copia a la lista de +# traducción de Debian al español () + +msgid "" +msgstr "" +"Project-Id-Version: sn\n" +"Report-Msgid-Bugs-To: chris@niekel.net\n" +"POT-Creation-Date: 2006-08-19 22:07+0200\n" +"PO-Revision-Date: 2007-02-25 01:37+0100\n" +"Last-Translator: Manuel Porras Peralta «Venturi» \n" +"Language-Team: Debian Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Choices +#: ../sn.templates:1001 +msgid "cron, ip-up, manually" +msgstr "cron, ip-up, manual" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "sn should run from:" +msgstr "sn debería ejecutarse desde:" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +"The scripts provided with the package support several ways to run snget (the " +"program to fetch new news):" +msgstr "" +"Los scripts incluidos con el paquete permiten muchas formas de ejecutar " +"snget (el programa para obtener noticias nuevas):" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +" cron -- The program will be executed daily by cron -- useful e.g\n" +" for permanent connections;\n" +" ip-up -- The program will called from ip-up, that is, when your\n" +" computer makes a connection -- useful for e.g. dialup\n" +" connections;\n" +" manually -- The program will never be called, you have to call it\n" +" manually to get new news (just type snget as root)." +msgstr "" +" cron -- Cron ejecutará diariamente el programa -- útil por ejemplo\n" +" para conexiones permanentes;\n" +" ip-up -- Ip-up ejecutará el programa, esto es, cuando su ordenador\n" +" realice una conexión -- útil por ejemplo con conexiones\n" +" telefónicas;\n" +" manual -- No se llamará nunca al programa, tiene que ejecutarlo\n" +" manualmente para conseguir las nuevas noticias (sólo tiene\n" +" que ejecutar snget como root)." + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "Should sn only accept connections from localhost?" +msgstr "¿Debería aceptar sn solamente conexiones desde el equipo local?" + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "" +"sn is a small newsserver, intended mainly to be run for single user " +"systems. On such systems, it's better to have sn only answer connections " +"from localhost. If you intend to use sn from multiple machines, refuse here." +msgstr "" +"sn es un servidor de noticias modesto, orientado principalmente para " +"ejecutarse en sistemas monousuario. En estos sistemas, es mejor tener sn sólo " +"para responder a conexiones desde el equipo local. Conteste que no aquí si " +"pretende usar sn desde varios equipos." --- sn-0.3.8.orig/debian/po/POTFILES.in +++ sn-0.3.8/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] sn.templates --- sn-0.3.8.orig/debian/po/pt.po +++ sn-0.3.8/debian/po/pt.po @@ -0,0 +1,75 @@ +# Portuguese translation of sn's debconf messages. +# Copyright (C) 2007 +# This file is distributed under the same license as the sn package. +# Luísa Lourenço , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: sn 0.3.8-6.1\n" +"Report-Msgid-Bugs-To: chris@niekel.net\n" +"POT-Creation-Date: 2006-08-19 22:07+0200\n" +"PO-Revision-Date: 2007-03-19 15:11+0000\n" +"Last-Translator: Luísa Lourenço \n" +"Language-Team: Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Choices +#: ../sn.templates:1001 +msgid "cron, ip-up, manually" +msgstr "cron, ip-up, manualmente" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "sn should run from:" +msgstr "sn deve correr a partir de:" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +"The scripts provided with the package support several ways to run snget (the " +"program to fetch new news):" +msgstr "" +"Os scripts providenciados pelo pacote suportam várias maneiras de executar o snget " +"(o programa para obter novas noticias):" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +" cron -- The program will be executed daily by cron -- useful e.g\n" +" for permanent connections;\n" +" ip-up -- The program will called from ip-up, that is, when your\n" +" computer makes a connection -- useful for e.g. dialup\n" +" connections;\n" +" manually -- The program will never be called, you have to call it\n" +" manually to get new news (just type snget as root)." +msgstr "" +" cron -- O programa irá ser executado diariamente pelo cron -- útil p.e.\n" +" para conexões permanentes;\n" +" ip-up -- O programa irá ser invocado a partir do ip-up, isto é, quando o seu\n" +" computador conecta -- útil para p.e. conexões dial-up;\n" +" manually -- O programa nunca será invocado, terá que o invocar manualmente\n" +" para obter novas noticias (escreva snget como root)." + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "Should sn only accept connections from localhost?" +msgstr "Deve o sn só aceitar conexões da máquina local?" + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "" +"sn is a small newsserver, intended mainly to be run for single user " +"systems. On such systems, it's better to have sn only answer connections " +"from localhost. If you intend to use sn from multiple machines, refuse here." +msgstr "" +"O sn é um pequeno servidor de noticias, feito principalmente para ser executado " +"em sistemas de utilizador único. Em tais sistemas, é melhor ter o sn só a aceitar " +"conexões da máquina local. Se pretender usar o sn em várias máquinas, recuse aqui." --- sn-0.3.8.orig/debian/po/cs.po +++ sn-0.3.8/debian/po/cs.po @@ -0,0 +1,83 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: sn\n" +"Report-Msgid-Bugs-To: chris@niekel.net\n" +"POT-Creation-Date: 2006-08-19 22:07+0200\n" +"PO-Revision-Date: 2006-09-24 14:30+0200\n" +"Last-Translator: Miroslav Kure \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Choices +#: ../sn.templates:1001 +msgid "cron, ip-up, manually" +msgstr "cron, ip-up, ručně" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "sn should run from:" +msgstr "sn se má spouštět z:" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +"The scripts provided with the package support several ways to run snget (the " +"program to fetch new news):" +msgstr "" +"Skripty v tomto balíčku podporují několik možností, jak se má snget (program " +"pro stahování news příspěvků) spouštět:" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +" cron -- The program will be executed daily by cron -- useful e.g\n" +" for permanent connections;\n" +" ip-up -- The program will called from ip-up, that is, when your\n" +" computer makes a connection -- useful for e.g. dialup\n" +" connections;\n" +" manually -- The program will never be called, you have to call it\n" +" manually to get new news (just type snget as root)." +msgstr "" +" cron -- Program se bude spouštět z cronu každý den -- vhodné pro\n" +" trvalé připojení\n" +" ip-up -- Program se bude spouštět z ip-up, tj. vždy, když se počítač\n" +" připojí -- vhodné pro vytáčené připojení\n" +" ručně -- Program se nebude spouštět automaticky, pro stáhnutí\n" +" příspěvků budete muset jako root spustit příkaz snget." + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "Should sn only accept connections from localhost?" +msgstr "Má sn přijímat spojení pouze z lokálního počítače?" + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "" +"sn is a small newsserver, intended mainly to be run for single user " +"systems. On such systems, it's better to have sn only answer connections " +"from localhost. If you intend to use sn from multiple machines, refuse here." +msgstr "" +"sn je malý news server zamýšlený pro jednouživatelské systémy a právě pro " +"tyto systémy je lepší, aby sn odpovídal pouze na dotazy z lokálního " +"počítače. Chcete-li však sn používat z více počítačů, odpovězte záporně." --- sn-0.3.8.orig/debian/po/fr.po +++ sn-0.3.8/debian/po/fr.po @@ -0,0 +1,90 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: sn_0.3.8-5\n" +"Report-Msgid-Bugs-To: chris@niekel.net\n" +"POT-Creation-Date: 2006-08-19 22:07+0200\n" +"PO-Revision-Date: 2006-08-27 10:33+0200\n" +"Last-Translator: Michel Grentzinger \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Choices +#: ../sn.templates:1001 +msgid "cron, ip-up, manually" +msgstr "cron, ip-up, manuellement" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "sn should run from:" +msgstr "Mthode de dmarrage de sn:" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +"The scripts provided with the package support several ways to run snget (the " +"program to fetch new news):" +msgstr "" +"Il est possible de lancer snget (le programme de rcupration des nouvelles) " +"de plusieurs manires diffrentes:" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +" cron -- The program will be executed daily by cron -- useful e.g\n" +" for permanent connections;\n" +" ip-up -- The program will called from ip-up, that is, when your\n" +" computer makes a connection -- useful for e.g. dialup\n" +" connections;\n" +" manually -- The program will never be called, you have to call it\n" +" manually to get new news (just type snget as root)." +msgstr "" +" - cron : le programme sera excut quotidiennement par\n" +" cron. Cela est utile par ex. pour les connexions\n" +" permanentes;\n" +" - ip-up : le programme sera appel depuis ip-up, c.--d.\n" +" lorsque votre ordinateur tablit une connexion.\n" +" Cela est utile pour les connexions par modem;\n" +" - manuellement: le programme n'est jamais lanc, vous devez le\n" +" lancer vous-mme afin de rcuprer les dernires\n" +" nouvelles. Vous devez alors utiliser la commande\n" +" snget avec les privilges du superutilisateur." + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "Should sn only accept connections from localhost?" +msgstr "Sn doit-il accepter uniquement les connexions depuis l'hte local?" + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "" +"sn is a small newsserver, intended mainly to be run for single user " +"systems. On such systems, it's better to have sn only answer connections " +"from localhost. If you intend to use sn from multiple machines, refuse here." +msgstr "" +"Sn est un petit serveur de nouvelles, conu pour fonctionner sur les " +"systmes ayant un seul utilisateur. Sur de tels systmes, il est prfrable " +"que sn rponde seulement aux connexions depuis l'hte local (localhost). " +"Ne choisissez pas cette option si vous avez l'intention d'utiliser sn depuis " +"plusieurs machines." + +#~ msgid "How do you want sn to be run?" +#~ msgstr "De quelle faon souhaitez-vous que sn soit lanc?" --- sn-0.3.8.orig/debian/po/sv.po +++ sn-0.3.8/debian/po/sv.po @@ -0,0 +1,92 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: sn 0.3.8-4\n" +"Report-Msgid-Bugs-To: chris@niekel.net\n" +"POT-Creation-Date: 2006-08-19 22:07+0200\n" +"PO-Revision-Date: 2005-11-01 18:28+0100\n" +"Last-Translator: Daniel Nylander \n" +"Language-Team: Swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: swe\n" +"X-Poedit-Country: swe\n" + +#. Type: select +#. Choices +#: ../sn.templates:1001 +msgid "cron, ip-up, manually" +msgstr "cron, ip-up, manuellt" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "sn should run from:" +msgstr "" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +"The scripts provided with the package support several ways to run snget (the " +"program to fetch new news):" +msgstr "" +"Skripten som kommer med paketet har std fr att starta snget p flera stt " +"(programmet fr att hmta nya nyhetsgrupper):" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +" cron -- The program will be executed daily by cron -- useful e.g\n" +" for permanent connections;\n" +" ip-up -- The program will called from ip-up, that is, when your\n" +" computer makes a connection -- useful for e.g. dialup\n" +" connections;\n" +" manually -- The program will never be called, you have to call it\n" +" manually to get new news (just type snget as root)." +msgstr "" +" cron -- Programmet kommer att startas dagligen ay cron -- anvndbart\n" +" om du har en permanent anslutning;\n" +" ip-up -- Programmet kommer att kallas upp frn ip-up som r nr\n" +" din dator kopplar upp en frbindelse -- anvndbart fr " +"exempelvis\n" +" uppringd frbindelse;\n" +" manuellt -- Programmet kommer aldrig att kallas upp, du mste kalla\n" +" upp det manuellt fr att hmta nya nyhetsgrupper\n" +" (bara att starta \"snget\" som root)." + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "Should sn only accept connections from localhost?" +msgstr "Ska sn bara tillta anslutningar frn localhost?" + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "" +"sn is a small newsserver, intended mainly to be run for single user " +"systems. On such systems, it's better to have sn only answer connections " +"from localhost. If you intend to use sn from multiple machines, refuse here." +msgstr "" +"sn r en liten nyhetsgruppserver som r tnkt att kras fr en-" +"anvndarsystem. P sdana system r det bttre att ha sn bara att svara p " +"anslutningar frn localhost. Om du tnker anvnda sn frn ett flertal " +"maskiner, vgra hr." + +#~ msgid "How do you want sn to be run?" +#~ msgstr "Hur vill du att sn ska startas?" --- sn-0.3.8.orig/debian/po/vi.po +++ sn-0.3.8/debian/po/vi.po @@ -0,0 +1,81 @@ +# Vietnamese translation for sn. +# Copyright © 2005 Free Software Foundation, Inc. +# Clytie Siddall , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: sn 0.3.8-4\n" +"Report-Msgid-Bugs-To: chris@niekel.net\n" +"POT-Creation-Date: 2006-08-19 22:07+0200\n" +"PO-Revision-Date: 2005-07-16 22:29+0930\n" +"Last-Translator: Clytie Siddall \n" +"Language-Team: Vietnamese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0\n" +"X-Generator: LocFactoryEditor 1.2.2\n" + +#. Type: select +#. Choices +#: ../sn.templates:1001 +msgid "cron, ip-up, manually" +msgstr "cộng việc định kỷ, ip-up, thủ công" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "sn should run from:" +msgstr "" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +"The scripts provided with the package support several ways to run snget (the " +"program to fetch new news):" +msgstr "" +"Những tập lệnh được cung cấp với gói có hỗ trợ cài cách chạy snget (chương " +"trình gọi tin tức):" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +" cron -- The program will be executed daily by cron -- useful e.g\n" +" for permanent connections;\n" +" ip-up -- The program will called from ip-up, that is, when your\n" +" computer makes a connection -- useful for e.g. dialup\n" +" connections;\n" +" manually -- The program will never be called, you have to call it\n" +" manually to get new news (just type snget as root)." +msgstr "" +" • cộng việc định kỷ — trình cron sẽ thực hiện chương trình này hàng ngày " +"(có ích nếu bạn có kết nối đến Mạng suốt)\n" +" • ip-up — ip-up sẽ gọi chương trình này, tức là khi máy này kết nối (có ích " +"nếu bạn quay số để kết nối đến Mạng)\n" +" • thủ công — bạn cần phải tự chạy chương trình này để gọi tin tức: chỉ đơn " +"giản hãy gõ «snget» với tư cách người chủ (root)." + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "Should sn only accept connections from localhost?" +msgstr "" +"Trình sn nên chấp nhận sự kết nối chỉ từ máy địa phương (localhost) không?" + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "" +"sn is a small newsserver, intended mainly to be run for single user " +"systems. On such systems, it's better to have sn only answer connections " +"from localhost. If you intend to use sn from multiple machines, refuse here." +msgstr "" +"Trình sn là một trình phục vụ tin tức nhỏ, được định chính là chạy trong hệ " +"thống người dùng đơn. Trong hệ thống như vậy, tốt hơn để lập trình sn trả " +"lời chỉ sự kết nối từ localhost. Nếu bạn định sử dụng trình sn từ nhiều máy " +"khác, hãy từ chối tại đây." + +#~ msgid "How do you want sn to be run?" +#~ msgstr "Bạn có muốn chạy sn như thế nào?" --- sn-0.3.8.orig/debian/po/templates.pot +++ sn-0.3.8/debian/po/templates.pot @@ -0,0 +1,65 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: chris@niekel.net\n" +"POT-Creation-Date: 2006-08-19 22:07+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Choices +#: ../sn.templates:1001 +msgid "cron, ip-up, manually" +msgstr "" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "sn should run from:" +msgstr "" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +"The scripts provided with the package support several ways to run snget (the " +"program to fetch new news):" +msgstr "" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +" cron -- The program will be executed daily by cron -- useful e.g\n" +" for permanent connections;\n" +" ip-up -- The program will called from ip-up, that is, when your\n" +" computer makes a connection -- useful for e.g. dialup\n" +" connections;\n" +" manually -- The program will never be called, you have to call it\n" +" manually to get new news (just type snget as root)." +msgstr "" + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "Should sn only accept connections from localhost?" +msgstr "" + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "" +"sn is a small newsserver, intended mainly to be run for single user " +"systems. On such systems, it's better to have sn only answer connections " +"from localhost. If you intend to use sn from multiple machines, refuse here." +msgstr "" --- sn-0.3.8.orig/debian/po/de.po +++ sn-0.3.8/debian/po/de.po @@ -0,0 +1,88 @@ +# translation of sn_0.3.8-5.1_de.po to German +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans# +# Developers do not need to manually edit POT or PO files. +# +# Erik Schanze , 2004-2006. +msgid "" +msgstr "" +"Project-Id-Version: sn_0.3.8-5.1_de\n" +"Report-Msgid-Bugs-To: sn@packages.debian.org\n" +"POT-Creation-Date: 2006-08-19 22:07+0200\n" +"PO-Revision-Date: 2006-11-18 23:24+0100\n" +"Last-Translator: Erik Schanze \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: select +#. Choices +#: ../sn.templates:1001 +msgid "cron, ip-up, manually" +msgstr "cron, ip-up, manuell" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "sn should run from:" +msgstr "Sn soll gestartet werden von:" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +"The scripts provided with the package support several ways to run snget (the " +"program to fetch new news):" +msgstr "" +"Die Skripte in diesem Paket unterstützen mehrere Arten des Starts " +"von Snget (Programm zum Abrufen neuer Nachrichten):" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +" cron -- The program will be executed daily by cron -- useful e.g\n" +" for permanent connections;\n" +" ip-up -- The program will called from ip-up, that is, when your\n" +" computer makes a connection -- useful for e.g. dialup\n" +" connections;\n" +" manually -- The program will never be called, you have to call it\n" +" manually to get new news (just type snget as root)." +msgstr "" +" cron -- Das Programm wird durch Cron jeden Tag aufgerufen - nützlich\n" +" für permanente Internetverbindungen;\n" +" ip-up -- Das Programm wird über Ip-up gestartet; das heißt, jedesmal\n" +" wenn Sie eine Internetverbindung herstellen - nützlich für\n" +" Einwahlverbindungen\n" +" manuell -- Das Programm wird nur dann ausgeführt, wenn Sie es als \n" +" Benutzer Root durch Eingabe von snget starten." + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "Should sn only accept connections from localhost?" +msgstr "Soll Sn nur Verbindungen vom lokalen Rechner annehmen?" + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "" +"sn is a small newsserver, intended mainly to be run for single user " +"systems. On such systems, it's better to have sn only answer connections " +"from localhost. If you intend to use sn from multiple machines, refuse here." +msgstr "" +"Sn ist ein kleiner Newsserver, gedacht für Einzelbenutzersysteme. " +"Auf solchen Systemen ist es besser, wenn Sn nur Verbindungen vom " +"lokalen Rechner annimmt. Wenn Sn für mehrere Rechner laufen soll, " +"müssen Sie hier ablehnen." + --- sn-0.3.8.orig/debian/po/ru.po +++ sn-0.3.8/debian/po/ru.po @@ -0,0 +1,90 @@ +# translation of sn_0.3.8-6.1_ru.po to Russian +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# Yuriy Talakan' , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: sn_0.3.8-6.1_ru\n" +"Report-Msgid-Bugs-To: chris@niekel.net\n" +"POT-Creation-Date: 2006-08-19 22:07+0200\n" +"PO-Revision-Date: 2007-03-09 11:51+0900\n" +"Last-Translator: Yuriy Talakan' \n" +"Language-Team: Russian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=KOI8-R\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.9.1\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. Type: select +#. Choices +#: ../sn.templates:1001 +msgid "cron, ip-up, manually" +msgstr "cron, ip-up, " + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "sn should run from:" +msgstr "sn :" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +"The scripts provided with the package support several ways to run snget (the " +"program to fetch new news):" +msgstr "" +", , snget " +"( ):" + +#. Type: select +#. Description +#: ../sn.templates:1002 +msgid "" +" cron -- The program will be executed daily by cron -- useful e.g\n" +" for permanent connections;\n" +" ip-up -- The program will called from ip-up, that is, when your\n" +" computer makes a connection -- useful for e.g. dialup\n" +" connections;\n" +" manually -- The program will never be called, you have to call it\n" +" manually to get new news (just type snget as root)." +msgstr "" +" cron -- cron -- ,\n" +" , .\n" +" ip-up -- ip-up, \n" +" -- , , \n" +" -- , \n" +" , ( \n" +" snget root)" + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "Should sn only accept connections from localhost?" +msgstr " sn ?" + +#. Type: boolean +#. Description +#: ../sn.templates:2001 +msgid "" +"sn is a small newsserver, intended mainly to be run for single user " +"systems. On such systems, it's better to have sn only answer connections " +"from localhost. If you intend to use sn from multiple machines, refuse here." +msgstr "" +"sn - , " +". , sn " +" . sn " +", ." + --- sn-0.3.8.orig/lib/format.c +++ sn-0.3.8/lib/format.c @@ -82,8 +82,10 @@ int formats (char *buf, int size, char *fmt, ...) { va_list ap; + int r; va_start(ap, fmt); - return formatv(buf, size, fmt, ap); + r = formatv(buf, size, fmt, ap); va_end(ap); + return r; } --- sn-0.3.8.orig/lib/Makefile +++ sn-0.3.8/lib/Makefile @@ -2,7 +2,7 @@ stuff.a: set -e; for i in *.c; \ - do $(CC) -c -O $$i -o `basename $$i .c`.o; done + do $(CC) -c -g $$i -o `basename $$i .c`.o; done ar rc stuff.a *.o ranlib stuff.a libstuff.a: stuff.a