changeset 301:3b5b7f3fd71f noffle

[svn] initial debian/ upload
author godisch
date Fri, 14 Feb 2003 13:54:32 +0000
parents 994e9ab2c24f
children 4f4c233374ca
files debian/README.Debian debian/changelog debian/conf.debian debian/config debian/control debian/copyright debian/cron.d debian/cron.daily debian/gnus.el debian/init debian/ip-down debian/ip-up debian/linda debian/lintian debian/logcheck debian/noffle-cronfetch debian/noffle-cronfetch.8 debian/postinst debian/postrm debian/preinst debian/prerm debian/rules debian/slrn.sl debian/templates debian/templates.de debian/watch
diffstat 26 files changed, 1159 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/README.Debian	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,70 @@
+NOFFLE for Debian
+-----------------
+
+This is the first debian package of noffle, so be prepared for some rough
+edges. By all means, _please_ report any bugs you find! (and do so through
+the debian bug tracking system, http://bugs.debian.org/)
+
+The standard configuration is stored in /etc/news/noffle.conf, see the
+manpage for noffle.conf(5) for more info.
+
+IMPORTANT: Once it's been configured, you need to run the following steps
+before it will work properly:
+
+    noffle --query groups
+    noffle --query desc         (see note)
+    noffle --fetch
+
+The first fetches the list of available newsgroups from the server. The
+second fetches the descriptions of the newsgroups. This isn't required,
+but sometimes it can be useful to have those descriptions. The third
+actually fetches the articles the first time. After the first time, how
+articles can be fetched is decided by the "mode" (see next paragraph).
+
+Noffle on Debian can run in basically two "modes": via PPP and via cron.
+The difference is that in PPP mode, it goes online and fetches any
+requested articles when the PPP connection is made, whereas in cron mode
+it is always online and fetches articles every 30 minutes (edit
+/etc/cron.d/noffle to adjust). The mode is configured via
+/etc/default/noffle. Of course, the PPP mode can be misused to control
+the fetching by hand (i.e. by running "noffle --fetch").
+
+Every day (via cron.daily) an expire is done.
+
+ -- Paul Slootman <paul@debian.org>, Mon, 24 Sep 2001 19:55:36 +0200
+ -- Martin A. Godisch <godisch@tcs.inf.tu-dresden.de>  Sat, 04 Jan 2003 09:30:20 +0100
+
+
+Regarding security when authenticating to your NNTP server please keep
+two aspects in mind:
+
+1. Your username and password will be stored in plaintext two times on your
+   harddisk, readable by everyone at least in the group 'news'.
+2. Your username and password will be transmitted in plaintext over the wire.
+
+If you have an SSH account on a host which is authenticated to your NNTP
+server by itself, you may consider to open an SSH tunnel to that host and
+to use localhost as NNTP proxy for noffle. This tunnel can be created using
+some kind of
+
+  ssh -fNL 10119:remote.news.server:119 mylogin@remote.ssh.server
+
+in combination with SSH public key authentication, which yields
+
+  localhost:10119
+
+as "remote" NNTP server for noffle. Have a look at the SSH manuals for
+further information.
+
+ -- Martin A. Godisch <godisch@tcs.inf.tu-dresden.de>  Sat, 04 Jan 2003 09:30:20 +0100
+
+
+There are three low-traffic mailing lists concerning noffle, visit
+
+  http://lists.sourceforge.net/lists/listinfo/noffle-announce
+  http://lists.sourceforge.net/lists/listinfo/noffle-devel
+  http://lists.sourceforge.net/lists/listinfo/noffle-users
+
+if you are interested.
+
+ -- Martin A. Godisch <godisch@tcs.inf.tu-dresden.de>  Mon, 20 Jan 2003 16:20:58 +0100
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/changelog	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,142 @@
+noffle (1.1.4-1.cvs) unstable; urgency=low
+
+  * Merged debian/ into the upstream CVS tree, added some CVS ID tags.
+  * Updated debian/rules, incorporated manual patches.
+  * Added user mailing list address to package description.
+
+ -- Martin A. Godisch <godisch@tcs.inf.tu-dresden.de>  Fri, 14 Feb 2003 14:39:42 +0100
+
+noffle (1.1.4-1) unstable; urgency=medium
+
+  * New upstream release, fixes broken authentication, closes: #180708.
+  * Removed build-dependency on debhelper.
+
+ -- Martin A. Godisch <godisch@tcs.inf.tu-dresden.de>  Wed, 12 Feb 2003 12:26:30 +0100
+
+noffle (1.1.3-1) unstable; urgency=low
+
+  * New upstream release.
+  * Removed some patches which are now in the upstream source.
+  * Disabled MAINT_BUILD workarounds in debian/rules; they are
+    not needed, because we do not patch autotools files.
+
+ -- Martin A. Godisch <godisch@tcs.inf.tu-dresden.de>  Fri, 31 Jan 2003 21:09:00 +0100
+
+noffle (1.1.2-2) unstable; urgency=low
+
+  * Moved /etc/noffle.conf to /etc/news/noffle.conf, according to policy.
+    Updated manual pages to reflect the new location.
+  * Updated and fixed installation scripts.
+  * Updated debian/rules, debian/copyright, debian/README.Debian.
+  * Updated description for -g in docs/noffle.1.
+
+ -- Martin A. Godisch <godisch@tcs.inf.tu-dresden.de>  Wed, 29 Jan 2003 20:51:44 +0100
+
+noffle (1.1.2-1) unstable; urgency=low
+
+  * New maintainer upload, closes: #173756.
+  * New upstream release:
+    closes: #120175 (graceful handling of sudden disconnection),
+    closes: #166559 (filter crosspostings to gmane.spam.detected),
+    closes: #174882 (--help for ordinary users).
+  * Updated depends, recommends, suggests, provides, package description,
+    debhelper compatibility level, Debian standards version.
+  * Fixed possible strcpy() buffer overflows in src/configfile.c,
+    src/fetchlist.c, src/protocol.c, src/server.c, closes: #168128.
+  * Let noffle switch to news:news on startup when root is calling, prevents
+    root exploits and bad ownerships in the spool directory, e.g. when running
+    'noffle --query' as root. Removed 'su' in init and cron scripts according
+    to that change. Group-writeable spool directories are not longer needed.
+  * Let notification about failed posting preferably be sent to the Reply-To
+    address, closes: #156952.
+  * Fixed noffle homepage link, closes: #173743.
+  * Rewrote config scripts: removed Perl dependency, fixed script idempotency,
+    closes: #82462, #112225.
+  * Moved /etc/noffle/conf.debian to /etc/default/noffle, according to policy,
+    and /etc/noffle/conf to /etc/noffle.conf.
+  * Moved /var/spool/noffle/lock to /var/lock/noffle, so it will be cleaned on
+    system startup by /etc/init.d/bootmisc.sh.
+  * Deprecated /var/log/noffle, since cron.daily's output is logged by syslog
+    anyway, so syslog's news facility should be used instead.
+  * Added resource files for slrn and Emacs Gnus, taken from docs/NOTES.
+  * Removed INSTALL, noffle.lsm, and testing.txt from /usr/share/doc/noffle,
+    because they do not carry information useful to the end user.
+  * Added Lintian and Linda overrides to silence warning about news-owned
+    spool directories.
+  * Updated README.Debian.
+  * Added logcheck configuration and debian/watch.
+  * Thanks to Paul Slootman for sponsoring this package.
+
+ -- Martin A. Godisch <godisch@tcs.inf.tu-dresden.de>  Wed, 08 Jan 2003 13:22:10 +0100
+
+noffle (1.0.1-1) unstable; urgency=low
+
+  * New upstream release
+  * This version should fix occasional database corruption.
+  * Added German template translation; thanks to Sebastian Feltel
+    <sebastian @ feltel.de>. closes:#101011
+  * Clarified initial usage in README.Debian. This closes:#100759
+    but I think that the running as user "news" needs to be detected
+    int the app (also mentioned in the bug report).
+  * Clean up permissions of db files in the postinst, and also in the
+    cron.daily script. closes:#78835
+  * /etc/noffle/conf and /etc/noffle/conf.debian aren't marked as
+    conffiles anymore, as they are manipulated by scripts. And they
+    hardly ever will change anyway.
+  * Extract current values from config files (if they exist) and put those
+    into debconf in config script.
+
+ -- Paul Slootman <paul@debian.org>  Mon, 24 Sep 2001 19:17:48 +0200
+
+noffle (1.0pre8-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Paul Slootman <paul@debian.org>  Wed,  8 Nov 2000 09:55:38 +0100
+
+noffle (1.0pre7-4) unstable; urgency=low
+
+  * Added libgdbmg1-dev to Build-Depends.
+  * Removed check for mail and sort from configure.in.
+    The above two changes closes:#72398
+
+ -- Paul Slootman <paul@debian.org>  Tue, 26 Sep 2000 19:37:45 +0200
+
+noffle (1.0pre7-3) unstable; urgency=low
+
+  * Added Build-Depends (debhelper).
+  * Redirect savelog output to the bit bucket in the cron.daily script.
+    closes:#71210
+
+ -- Paul Slootman <paul@debian.org>  Tue,  5 Sep 2000 18:55:43 +0200
+
+noffle (1.0pre7-2) unstable; urgency=low
+
+  * Added debconf support. I'm proud of myself :-)
+  * Changed "LIST ACTIVE" command to just "LIST". Older servers don't
+    understand the ACTIVE bit. Thanks to Rene H. Larsen for the bug report,
+    complete with patch. Also forwarded upstream. closes:#70617
+  * Added --group MAIL to update-inetd command.
+
+ -- Paul Slootman <paul@debian.org>  Fri,  1 Sep 2000 21:00:11 +0200
+
+noffle (1.0pre7-1) unstable; urgency=low
+
+  * New upstream release
+  * First public version. Lots of tuning still needed.
+
+ -- Paul Slootman <paul@debian.org>  Wed, 26 Jul 2000 19:13:16 +0200
+
+noffle (1.0pre6-2) unstable; urgency=low
+
+  * First version with some real debian stuff (postinst etc.)
+
+ -- Paul Slootman <paul@debian.org>  Tue, 25 Jul 2000 22:03:34 +0200
+
+noffle (1.0pre6-1) unstable; urgency=low
+
+  * Initial Release.
+  * Only for experimentiing.
+
+ -- Paul Slootman <paul@debian.org>  Fri, 23 Jun 2000 12:00:59 +0200
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/conf.debian	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,17 @@
+# Debian specific NOFFLE configuration
+# See /etc/news/noffle.conf for the NOFFLE main configuration.
+
+# Please keep the following line!
+#
+NOFFLE=/usr/bin/noffle
+
+# The fetchmode may either be "ppp" or "cron", "ppp" means that
+# the fetch should be run in the ip-up part of ppp, "cron" means
+# that the fetch should be run periodically; this assumes a
+# permanent connection to the NNTP server (i.e. not dial-up).
+#
+NOFFLE_FETCHMODE=unconfigured
+
+# You won't find here NOFFLE_EXPIRELOGS any longer. NOFFLE logs
+# to syslog using the news facility. Have a look at your syslog
+# configuration, /etc/syslog.conf and /etc/cron.*/sysklogd instead.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/config	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,98 @@
+#!/bin/sh
+# $Id: config 434 2003-02-14 13:54:32Z godisch $
+
+set -e
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+server_config=/etc/news/noffle.conf
+debian_config=/etc/default/noffle
+
+# for backward compatibility = 1.1.2-1, since postinst is not run yet
+if [ ! -e $server_config -a -e /etc/noffle.conf ]; then
+	server_config=/etc/noffle.conf
+fi
+# for backward compatibility < 1.1.2-1
+if [ ! -e $server_config -a ! -e $debian_config -a -e /etc/noffle/conf ]; then
+	server_config=/etc/noffle/conf
+	debian_config=/etc/noffle/conf.debian
+fi
+
+# are we using debconf?
+db_input high noffle/debconf && db_go || :
+db_get noffle/debconf || RET=""
+[ "$RET" = false ] && exit 0
+
+# read server port value from inetd.conf
+port="`grep '[[:space:]]/usr/bin/noffle[[:space:]]' /etc/inetd.conf | sed 's/^#<off># //;s/[[:space:]].*//' 2> /dev/null`" || :
+if [ "$port" ]; then
+	# read port value from debconf db
+	db_get noffle/port || RET=""
+	# for upgrading from < 1.1.2
+	[ "$RET" = 119 ] && RET=nntp
+	# we need confirmation, if they differ
+	[ "$port" = "$RET" ] || db_fset noffle/port seen false || :
+	# write current port from inetd.conf into debconf db
+	[ "$port" = "${port#\#}" ] && db_set noffle/port "$port" || :
+fi
+
+# read server, username, password, maxfetch, default-expire from $server_config
+if [ -s "$server_config" ]; then
+	db_get noffle/server || RET=""
+	server="`grep '^server' $server_config | sed 's/^server[[:space:]]*//;s/[[:space:]].*//' 2> /dev/null`" || :
+	[ "$server" = "$RET" ] || db_fset noffle/server seen false || :
+	[ "$server" ] && db_set noffle/server "$server" || :
+
+	db_get noffle/username || RET=""
+	server="`grep '^server' $server_config | sed 's/^server[[:space:]]*//;s/[^[:space:]]*[[:space:]]*//;s/[[:space:]].*//' 2> /dev/null`" || :
+	[ "$username" = "$RET" ] || db_fset noffle/username seen false || :
+	[ "$username" ] && db_set noffle/username "$username" || :
+
+	db_get noffle/password || RET=""
+	server="`grep '^server' $server_config | sed 's/^server[[:space:]]*//;s/[^[:space:]]*[[:space:]]*//;s/[^[:space:]]*[[:space:]]*//;s/[[:space:]].*//' 2> /dev/null`" || :
+	[ "$password" = "$RET" ] || db_fset noffle/password seen false || :
+	[ "$password" ] && db_set noffle/password "$password" || :
+
+	db_get noffle/maxfetch || RET=""
+	maxfetch="`grep '^max-fetch' $server_config | sed 's/^max-fetch[[:space:]]*//' 2> /dev/null`" || :
+	[ "$maxfetch" = "$RET" ] || db_fset noffle/maxfetch seen false || :
+	[ "$maxfetch" ] && db_set noffle/maxfetch "$maxfetch" || :
+
+	db_get noffle/default-expire || RET=""
+	defexpire="`grep '^default-expire' $server_config | sed 's/^default-expire[[:space:]]*//' 2> /dev/null`" || :
+	[ "$defexpire" = "$RET" ] || db_fset noffle/defexpire seen false || :
+	[ "$defexpire" ] && db_set noffle/default-expire "$defexpire" || :
+fi
+
+# better storing ppp/cron than 'via dialup'/'via permanent connection',
+# since that's less language dependent in the debconf dialog
+if dpkg --compare-versions "$2" lt-nl 1.1.2; then
+	db_get noffle/fetchmode || RET=""
+	case "$RET" in
+		'via dialup') db_set noffle/fetchmode ppp || :;;
+		'via permanent connection') db_set noffle/fetchmode cron || :;;
+	esac
+fi
+
+# read NOFFLE_FETCHMODE from $debian_config
+[ -s "$debian_config" ] && . $debian_config
+[ "$NOFFLE_FETCHMODE" != ppp -a "$NOFFLE_FETCHMODE" != cron ] && \
+if [ -x /usr/sbin/pppd ]; then
+	NOFFLE_FETCHMODE=ppp
+else
+	NOFFLE_FETCHMODE=cron
+fi
+# do we need confirmation?
+db_get noffle/fetchmode || RET=""
+[ "$NOFFLE_FETCHMODE" = "$RET" ] || db_fset noffle/fetchmode seen false || :
+
+# input server port, parent server, username, password, fetchmode, maxfetch, default-expire
+db_input low noffle/port && db_go || :
+db_input high noffle/server && db_go || :
+db_input medium noffle/username && db_go || :
+db_input medium noffle/password && db_go || :
+db_input medium noffle/fetchmode && db_go || :
+db_input medium noffle/maxfetch && db_go || :
+db_input low noffle/default-expire && db_go || :
+
+exit 0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/control	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,21 @@
+Source: noffle
+Section: news
+Priority: optional
+Maintainer: Martin A. Godisch <godisch@tcs.inf.tu-dresden.de>
+Build-Depends: libgdbmg1-dev, debconf-utils
+Standards-Version: 3.5.8
+
+Package: noffle
+Architecture: any
+Depends: netkit-inetd | netbase (<< 4.0), exim-tls | mail-transport-agent, sysvinit (>= 2.80), debconf (>= 0.5), ${shlibs:Depends}
+Recommends: sysklogd | system-log-daemon
+Suggests: slrn | gnus | news-reader
+Provides: news-transport-system
+Description: offline news server
+ Noffle is a news server optimized for low speed dialup connection to the
+ internet and for few users. It allows reading news offline with many news
+ reader programs, even if they do not support offline reading by themselves.
+ .
+ It does for NNTP what WWWOFFLE does for HTTP. Noffle's upstream homepage
+ can be found at http://noffle.sourceforge.net/. There is also an end user
+ mailing list at http://lists.sourceforge.net/lists/listinfo/noffle-users.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/copyright	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,27 @@
+This package was debianized by Paul Slootman <paul@debian.org>
+on Fri, 23 Jun 2000 12:00:59 +0200. The current maintainer is
+Martin A. Godisch <godisch@tcs.inf.tu-dresden.de>.
+
+The current sources were downloaded from
+http://download.sourceforge.net/noffle/.
+
+Upstream maintainers:
+  Jim Hague <jim.hague@acm.org>
+  Markus Enzenberger <enz@users.sourceforge.net>
+
+  This program is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this program; if not, write to the Free Software
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in '/usr/share/common-licenses/GPL'.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/cron.d	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,5 @@
+# noffle cron.d file
+#
+# fetch requested articles periodically
+
+9,39 * * * * news [ -x /usr/sbin/noffle-cronfetch ] && /usr/sbin/noffle-cronfetch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/cron.daily	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,5 @@
+#!/bin/sh -e
+#
+# expire old articles, output will be logged to syslog
+
+[ -x /usr/bin/noffle ] && /usr/bin/noffle --expire > /dev/null 2>&1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/gnus.el	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,33 @@
+;; Customising Gnus for use with the NOFFLE news server
+;; 
+;;  tick and open article
+;;          for reading/marking for download
+;;   scroll article text circular
+;;          for avoiding automatic opening of next article
+;;       mark article as read and go to next line
+(defun my-gnus-summary-tick-and-open(n)
+  "Tick and open article, so that NOFFLE marks it for download" 
+  (interactive "p")
+  (gnus-summary-scroll-up n)
+  (gnus-summary-mark-article nil gnus-ticked-mark t)
+  )
+(defun my-gnus-summary-next-page(n)
+  "Next page of article, but do not open next article automatically"
+  (interactive "p")
+  (gnus-summary-next-page 10 t) ;; Call with argument `circular'.
+  )
+(defun my-gnus-summary-mark-read-next-line(n)
+  "Mark article as read and go to next line"
+  (interactive "p")
+  (gnus-summary-mark-article-as-read gnus-read-mark)
+  (next-line n)
+  )
+(defun my-gnus-summary-mode-hook ()
+  (define-key gnus-summary-mode-map "\r"
+    'my-gnus-summary-tick-and-open)
+  (define-key gnus-summary-mode-map " "
+    'my-gnus-summary-next-page)
+  (define-key gnus-summary-mode-map "d"
+    'my-gnus-summary-mark-read-next-line)
+  )
+(add-hook 'gnus-summary-mode-hook 'my-gnus-summary-mode-hook)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/init	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,43 @@
+#!/bin/sh
+# $Id: init 434 2003-02-14 13:54:32Z godisch $
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+NOFFLE=/usr/bin/noffle
+if [ -x /usr/sbin/pppd ]; then
+	NOFFLE_FETCHMODE="ppp"
+else
+	NOFFLE_FETCHMODE="cron"
+fi
+[ -f /etc/default/noffle ] && . /etc/default/noffle
+
+[ -x "$NOFFLE" ] || exit 0
+
+case "$1" in
+start)
+	echo "Initializing offline news server: noffle."
+	[ "$NOFFLE_FETCHMODE" = ppp  ] && $NOFFLE --offline
+	[ "$NOFFLE_FETCHMODE" = cron ] && $NOFFLE --online
+	;;
+stop)
+	echo "Stopping offline news server: noffle."
+	$NOFFLE --offline
+	;;
+online)
+	echo "Starting offline news server: noffle."
+	$NOFFLE --online
+	;;
+offline)
+	echo "Stopping offline news server: noffle."
+	$NOFFLE --offline
+	;;
+restart|force-reload)
+	$0 start
+	;;
+*)
+	echo "Usage: $0 {start|stop}" >&2
+	exit 1
+	;;
+esac
+
+exit 0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/ip-down	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# 'ppp' should be a sane default here
+NOFFLE_FETCHMODE=ppp
+[ -f /etc/default/noffle ] && . /etc/default/noffle
+
+[ -x /usr/bin/noffle -a "$NOFFLE_FETCHMODE" = ppp ] && /usr/bin/noffle --offline
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/ip-up	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# 'ppp' should be a sane default here
+NOFFLE_FETCHMODE=ppp
+[ -f /etc/default/noffle ] && . /etc/default/noffle
+
+[ -x /usr/bin/noffle -a "$NOFFLE_FETCHMODE" = ppp ] && (/usr/bin/noffle --online; nohup /usr/bin/noffle --fetch) &
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/linda	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,4 @@
+Tag: incorrect-file-perms
+Data: usr/bin/noffle
+
+Tag: non-standard-dir-perm
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/lintian	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,10 @@
+noffle: file-in-unusual-dir var/spool/noffle/lock
+noffle: non-standard-dir-perm var/lock/noffle/ 2755 != 0755
+noffle: non-standard-dir-perm var/spool/noffle/ 2755 != 0755
+noffle: non-standard-dir-perm var/spool/noffle/data/ 2755 != 0755
+noffle: non-standard-dir-perm var/spool/noffle/requested/ 2755 != 0755
+noffle: non-standard-dir-perm var/spool/noffle/outgoing/ 2755 != 0755
+noffle: non-standard-dir-perm var/spool/noffle/overview/ 2755 != 0755
+noffle: setuid-gid-binary usr/bin/noffle 6755 news/news
+# I wrote that test, it doesn't apply here, since no daemon is started.
+noffle: init-script-suggests-versioned-depends postinst
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/logcheck	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,17 @@
+/USR/SBIN/CRON\[[0-9]+\]: \(news\) CMD \(\[ -x /usr/sbin/noffle-cronfetch \] && /usr/sbin/noffle-cronfetch\)
+noffle\[[0-9]+\]: Fetch from .+
+noffle\[[0-9]+\]: Connected to .+
+noffle\[[0-9]+\]: Updating groupinfo
+noffle\[[0-9]+\]: Getting remote overviews .+ for group .+
+noffle\[[0-9]+\]: Added .+ .+
+noffle\[[0-9]+\]: [0-9]+ articles marked for download in .+
+noffle\[[0-9]+\]: No articles in .+
+noffle\[[0-9]+\]: No new articles in .+
+noffle\[[0-9]+\]: [0-9]+ TOTAL messages to download
+noffle\[[0-9]+\]: Retrieving article list
+noffle\[[0-9]+\]: \[[0-9]+/[0-9]+\] Retrieving .+
+noffle\[[0-9]+\]: Fetch from .+ finished
+noffle\[[0-9]+\]: Expiring articles
+noffle\[[0-9]+\]: [0-9]+ articles deleted, [0-9]+ left
+noffle\[[0-9]+\]: Expiring overviews not in database
+noffle\[[0-9]+\]: [0-9]+ overviews deleted from group .+, [0-9]+ left .+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/noffle-cronfetch	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,33 @@
+#!/bin/sh
+# $Id: noffle-cronfetch 434 2003-02-14 13:54:32Z godisch $
+#
+# noffle script to fetch articles, run from cron
+
+exec > /dev/null 2>&1
+
+LOCKFILE=/var/lock/noffle/noffle-cronfetch.pid
+NOFFLE=/usr/bin/noffle
+
+. /etc/default/noffle
+
+[ "$NOFFLE_FETCHMODE" = cron ] || exit 0
+
+if [ -f "$LOCKFILE" ]; then
+    # check if pid still exists
+    if kill -0 `cat $LOCKFILE`; then
+        logger -i -p news.info -t noffle-cronfetch -- "previous instance still running"
+        exit 0
+    fi
+    # false lock
+    logger -i -p news.warning -t noffle-cronfetch -- "removing stale lock $LOCKFILE"
+    rm -f $LOCKFILE
+fi
+
+trap 'rm -f $LOCKFILE' 0 1 2 15
+
+echo $$ > $LOCKFILE
+$NOFFLE --fetch 
+rm -f $LOCKFILE
+
+trap '' 0
+exit 0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/noffle-cronfetch.8	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,37 @@
+.TH NOFFLE-CRONFETCH 8 "January 2003" "The Debian Project" ""
+.
+.SH NAME
+.
+noffle-cronfetch \- script to fetch news with noffle via cron
+.
+.SH SYNOPSIS
+.
+.B noffle-cronfetch
+.
+.SH DESCRIPTION
+.
+.B noffle-cronfetch
+is not meant to be run by users directly.
+If noffle is configured to fetch news via a cronjob, this is the
+script that does it.
+.
+.SH OPTIONS
+.
+none
+.
+.SH FILES
+.
+.TP
+.B /etc/default/noffle
+.
+.SH SEE ALSO
+.
+.BR noffle (1),
+.BR noffle.conf (5),
+.BR cron (8),
+.BR crontab (1),
+.BR crontab (5)
+.
+.SH AUTHOR
+.
+Paul Slootman <paul@debian.org>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/postinst	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,114 @@
+#!/bin/sh
+# $Id: postinst 434 2003-02-14 13:54:32Z godisch $
+
+set -e
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+server_config=/etc/news/noffle.conf
+debian_config=/etc/default/noffle
+
+maxfetch_default=300
+defexpire_default=14
+
+case "$1" in
+configure)
+	if dpkg --compare-versions "$2" lt-nl 1.1.2-1; then
+		echo ""
+		echo "/etc/noffle/conf moved to $server_config, /etc/noffle/conf.debian"
+		echo "moved to $debian_config. /etc/noffle and /var/log/noffle are not"
+		echo "used any longer, you may remove them. noffle expiration logs are"
+		echo "still available through syslog."
+		echo ""
+		sleep 2
+		mv -f /etc/noffle/conf $server_config || :
+		mv -f /etc/noffle/conf.debian $debian_config || :
+		mv -f /etc/noffle/conf.old $server_config.old 2> /dev/null || :
+		mv -f /etc/noffle/conf.debian.old $debian_config.old 2> /dev/null || :
+		rmdir /etc/noffle || :
+	fi
+	if dpkg --compare-versions "$2" eq 1.1.2-1; then
+		# 1.1.2-1 was in unstable only, don't notify
+		mv -f /etc/noffle.conf $server_config || :
+		mv -f /etc/noffle.conf.old $server_config.old 2> /dev/null || :
+	fi
+	# if we are allowed to overwrite $server_config and $debian_config...
+	db_get noffle/debconf || RET=""
+	if [ "$RET" != false ]; then
+		db_get noffle/port || RET=""
+		port="$RET"
+		[ -z "$port" -o "$port" = 119 ] && port=nntp
+		# maybe disabled only, e.g. dpkg -r noffle
+		update-inetd --remove "/usr/bin/noffle -r" || :
+		update-inetd --group MAIL --add "$port\tstream\ttcp\tnowait\tnews\t/usr/sbin/tcpd /usr/bin/noffle -r"
+		db_get noffle/server || RET=""
+		server="$RET"
+		[ "$server" ] || server=news
+		db_get noffle/username || RET=""
+		username="$RET"
+		db_get noffle/password || RET=""
+		password="$RET"
+		db_get noffle/fetchmode || RET=""
+		fetchmode="$RET"
+		[ "$fetchmode" ] || if [ -x /usr/sbin/pppd ]; then
+			fetchmode=ppp
+		else
+			fetchmode=cron
+		fi
+		db_get noffle/maxfetch || RET=""
+		maxfetch="$RET"
+		[ "$maxfetch" ] || maxfetch="$maxfetch_default"
+		db_get noffle/default-expire || RET=""
+		defexpire="$RET"
+		[ "$defexpire" ] || defexpire="$defexpire_default"
+		# try to be idempotent
+		if [ ! -e $server_config.new -a ! -e $debian_config.new ]; then
+			# make some backup files
+			cmp -s $server_config $server_config.old || \
+				cp -pf $server_config $server_config.old 2> /dev/null || :
+			cmp -s $debian_config $debian_config.old || \
+				cp -pf $debian_config $debian_config.old 2> /dev/null || :
+		fi
+		# $server_config may contain sensitive information for NNTP authentication
+		umask 027
+		# we need to use sed instead of Perl to avoid another package dependency
+		cat /usr/share/noffle/noffle.conf | \
+			sed "s/^server[[:space:]].*/server $server $username $password/" | \
+			sed "s/^max-fetch[[:space:]].*/max-fetch $maxfetch/" | \
+			sed "s/^default-expire[[:space:]].*/default-expire $defexpire/" \
+			> $server_config.new
+		chgrp news $server_config.new
+		umask 022
+		cat /usr/share/noffle/conf.debian | \
+			sed "s/^NOFFLE_FETCHMODE=.*/NOFFLE_FETCHMODE=$fetchmode/" \
+			> $debian_config.new
+		mv -f $server_config.new $server_config
+		mv -f $debian_config.new $debian_config
+	fi
+	# sanity checks
+	chown -R news:news /var/lock/noffle /var/spool/noffle
+	chmod -R go-w /var/lock/noffle /var/spool/noffle
+	find /var/lock/noffle /var/spool/noffle -type d -print0 | xargs -0 chmod g+s
+	if [ -z "$2" ]; then
+		echo ""
+		echo "You need to query your parent NNTP server manually for a group overview"
+		echo "and descriptions. Have a look at /usr/share/doc/noffle/README.Debian for"
+		echo "information how to do this."
+		echo ""
+		sleep 2
+	fi
+	;;
+abort-upgrade|abort-remove|abort-deconfigure)
+	;;
+*)
+	echo "postinst called with unknown argument '$1'" >&2
+	exit 1
+	;;
+esac
+
+if [ -x /etc/init.d/noffle ]; then
+	update-rc.d noffle defaults > /dev/null
+	invoke-rc.d noffle start || :
+fi
+
+exit 0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/postrm	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,31 @@
+#!/bin/sh
+# $Id: postrm 434 2003-02-14 13:54:32Z godisch $
+
+set -e
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+server_config=/etc/news/noffle.conf
+debian_config=/etc/default/noffle
+
+case "$1" in
+purge)
+	update-inetd --remove "/usr/bin/noffle -r" || :
+	echo "Removing /var/spool/noffle and contents..."
+	rm -rf /etc/noffle \
+		/etc/noffle.conf /etc/noffle.conf.old \
+		$server_config $server_config.old \
+		$debian_config $debian_config.old \
+		/var/spool/noffle || :
+	update-rc.d noffle remove > /dev/null
+	db_purge
+	;;
+remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+	;;
+*)
+	echo "postrm called with unknown argument '$1'" >&2
+	exit 1
+	;;
+esac
+
+exit 0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/preinst	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,26 @@
+#!/bin/sh
+# $Id: preinst 434 2003-02-14 13:54:32Z godisch $
+
+set -e
+
+case "$1" in
+install|upgrade)
+	# this directory may still exist because of old lock files,
+	# make sure the symlink can be installed
+	if [ -d /var/spool/noffle/lock ]; then
+		if [ -d /var/lock/noffle ]; then
+			rm -rf /var/spool/noffle/lock || :
+		else
+			mv /var/spool/noffle/lock /var/lock/noffle || :
+		fi
+	fi
+	;;
+abort-upgrade)
+	;;
+*)
+	echo "preinst called with unknown argument '$1'" >&2
+	exit 1
+	;;
+esac
+
+exit 0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/prerm	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,25 @@
+#!/bin/sh
+# $Id: prerm 434 2003-02-14 13:54:32Z godisch $
+
+set -e
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+db_get noffle/port || RET=''
+port="$RET"
+[ -z "$port" -o "$port" = 119 ] && port=nntp
+
+case "$1" in
+remove|upgrade|deconfigure)
+	echo "Disabling inet.d entry for noffle..."
+	update-inetd --disable $port || :
+	;;
+failed-upgrade)
+	;;
+*)
+	echo "prerm called with unknown argument '$1'" >&2
+	exit 1
+	;;
+esac
+
+exit 0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/rules	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,162 @@
+#!/usr/bin/make -f
+# $Id: rules 434 2003-02-14 13:54:32Z godisch $
+
+#export MAINT_BUILD=1
+
+BUILDDIR = debian/noffle
+DEBDIR   = $(BUILDDIR)/DEBIAN
+DOCDIR   = $(BUILDDIR)/usr/share/doc/noffle
+SPOOLDIR = $(BUILDDIR)/var/spool/noffle
+MANDIR   = $(BUILDDIR)/usr/share/man
+
+testdir  = test -f src/noffle.c -a -f debian/rules
+testroot = test x`whoami` = xroot
+INSTALL  = install -o root -g root
+
+# FOR AUTOCONF 2.13 ONLY
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+	CONFFLAGS += $(DEB_HOST_GNU_TYPE)
+else
+	CONFFLAGS += --host $(DEB_BUILD_GNU_TYPE) --build $(DEB_HOST_GNU_TYPE)
+endif
+
+# FOR AUTOCONF 2.52 AND NEWER ONLY
+#ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+#	CONFFLAGS += --build $(DEB_HOST_GNU_TYPE)
+#else
+#	CONFFLAGS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+#endif
+
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+export CFLAGS
+
+ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	STRIP_FLAG =
+else
+	STRIP_FLAG = -s
+endif
+
+clean:
+	$(testdir)
+	-rm -f configure-stamp build-stamp debian/files debian/substvars
+#ifneq ($(MAINT_BUILD),1)
+#	# ---------- prevent automake etc. from being called
+#	# if you have changed anything, set MAINT_BUILD to 1
+#	touch configure.in && \
+#	touch Makefile.am docs/Makefile.am src/Makefile.am packages/Makefile.am packages/redhat/Makefile.am && \
+#	touch aclocal.m4   && \
+#	touch Makefile.in docs/Makefile.in src/Makefile.in packages/Makefile.in packages/redhat/Makefile.in && \
+#	touch configure    && \
+#	touch stamp-h.in config.h.in
+#	# ---------- endif
+#else
+#	aclocal
+#	autoconf
+#	autoheader
+#	automake
+#	-rm -f config.log
+#endif
+	-$(MAKE) -i distclean
+	-rm -rf debian/noffle
+
+configure: configure-stamp
+configure-stamp:
+	$(testdir)
+	./configure $(CONFFLAGS) --prefix=/usr --mandir=/usr/share/man --with-configfile=/etc/news/noffle.conf --with-usersfile=/etc/news/noffle.users --enable-auth=no
+	touch configure-stamp
+
+build: build-stamp
+build-stamp: configure
+	$(testdir)
+	$(MAKE)
+	touch build-stamp
+
+binary: binary-arch
+
+binary-indep:
+
+binary-arch: build
+	$(testdir)
+	$(testroot)
+	-rm -rf debian/noffle
+
+	# installing binaries
+	install -o news -g news -m 6755 -D $(STRIP_FLAG) src/noffle $(BUILDDIR)/usr/bin/noffle
+	$(INSTALL) -m 0755 -D debian/noffle-cronfetch $(BUILDDIR)/usr/sbin/noffle-cronfetch
+
+	# installing locking directory
+	$(INSTALL) -d $(BUILDDIR)/var/lock
+	install -o news -g news -m 2755 -d $(BUILDDIR)/var/lock/noffle
+
+	# installing spool directories
+	$(INSTALL) -d $(BUILDDIR)/var/spool
+	install -o news -g news -m 2755 -d $(SPOOLDIR)/data $(SPOOLDIR)/outgoing $(SPOOLDIR)/overview $(SPOOLDIR)/requested
+	ln -s ../../lock/noffle $(SPOOLDIR)/lock
+	chown news:news $(SPOOLDIR)/lock
+
+	# installing shared files
+	$(INSTALL) -m 0644 -D debian/linda        $(BUILDDIR)/usr/share/linda/overrides/noffle
+	$(INSTALL) -m 0644 -D debian/lintian      $(BUILDDIR)/usr/share/lintian/overrides/noffle
+	$(INSTALL) -m 0644 -D debian/conf.debian  $(BUILDDIR)/usr/share/noffle/conf.debian
+	$(INSTALL) -m 0644 -D noffle.conf.example $(BUILDDIR)/usr/share/noffle/noffle.conf
+	$(INSTALL) -m 0644 -D debian/slrn.sl      $(BUILDDIR)/usr/share/slrn/macros/noffle.sl
+	$(INSTALL) -m 0644 -D debian/gnus.el      $(BUILDDIR)/usr/share/emacs/site-lisp/gnus/noffle.el
+
+	# installing manuals
+	$(INSTALL) -d $(MANDIR)/man1 $(MANDIR)/man5
+	sed 's@/etc/noffle\.conf@/etc/news/noffle.conf@g' docs/noffle.1 > $(MANDIR)/man1/noffle.1
+	sed 's@/etc/noffle\.conf@/etc/news/noffle.conf@g' docs/noffle.conf.5 > $(MANDIR)/man5/noffle.conf.5
+	chown root:root $(MANDIR)/man1/noffle.1 $(MANDIR)/man5/noffle.conf.5
+	chmod 0644 $(MANDIR)/man1/noffle.1 $(MANDIR)/man5/noffle.conf.5
+	$(INSTALL) -m 0644 -D debian/noffle-cronfetch.8 $(MANDIR)/man8/noffle-cronfetch.8
+	find $(MANDIR) -type f -print0 | xargs -0 gzip -9
+
+	# installing documentation
+	$(INSTALL) -d $(DOCDIR)
+	$(INSTALL) -m 0644 AUTHORS NEWS TODO docs/FAQ docs/INTERNALS docs/NOTES $(DOCDIR)
+	find $(DOCDIR) -type f -size +8 -print0 | xargs -0 gzip -9
+	$(INSTALL) -m 0644 -D debian/changelog $(DOCDIR)/changelog.Debian
+	$(INSTALL) -m 0644 -D ChangeLog $(DOCDIR)/changelog
+	gzip -9 $(DOCDIR)/changelog $(DOCDIR)/changelog.Debian
+	$(INSTALL) -m 0644 debian/copyright $(DOCDIR)
+	$(INSTALL) -m 0644 debian/README.Debian $(DOCDIR)
+	ln -s ../../noffle $(DOCDIR)/examples
+
+	# installing config files
+	$(INSTALL) -d $(BUILDDIR)/etc/news $(BUILDDIR)/etc/default
+	$(INSTALL) -m 0644 -D debian/cron.d     $(BUILDDIR)/etc/cron.d/noffle
+	$(INSTALL) -m 0755 -D debian/cron.daily $(BUILDDIR)/etc/cron.daily/noffle
+	$(INSTALL) -m 0755 -D debian/init       $(BUILDDIR)/etc/init.d/noffle
+	$(INSTALL) -m 0755 -D debian/ip-up      $(BUILDDIR)/etc/ppp/ip-up.d/noffle
+	$(INSTALL) -m 0755 -D debian/ip-down    $(BUILDDIR)/etc/ppp/ip-down.d/noffle
+	$(INSTALL) -m 0644 -D debian/logcheck   $(BUILDDIR)/etc/logcheck/ignore.d.paranoid/noffle
+	$(INSTALL) -m 0644 -D debian/logcheck   $(BUILDDIR)/etc/logcheck/ignore.d.server/noffle
+	$(INSTALL) -m 0644 -D debian/logcheck   $(BUILDDIR)/etc/logcheck/ignore.d.workstation/noffle
+
+	# installing packaging information
+	$(INSTALL) -d $(DEBDIR)
+	$(INSTALL) -m 0755 debian/config   $(DEBDIR)
+	$(INSTALL) -m 0644 debian/control  $(DEBDIR)
+	$(INSTALL) -m 0755 debian/postinst $(DEBDIR)
+	$(INSTALL) -m 0755 debian/postrm   $(DEBDIR)
+	$(INSTALL) -m 0755 debian/preinst  $(DEBDIR)
+	$(INSTALL) -m 0755 debian/prerm    $(DEBDIR)
+	find $(BUILDDIR)/usr -type f -print0 | xargs -0 md5sum | sed 's@  debian/noffle/@  @' > $(DEBDIR)/md5sums
+	find $(BUILDDIR)/etc -type f | sed 's@^debian/noffle@@' | egrep -vx '/etc/default/noffle|/etc/news/noffle\.conf' > $(DEBDIR)/conffiles
+	debconf-mergetemplate debian/templates.?? debian/templates > $(DEBDIR)/templates
+	chown root:root $(DEBDIR)/md5sums $(DEBDIR)/conffiles $(DEBDIR)/templates
+	chmod 0644 $(DEBDIR)/md5sums $(DEBDIR)/conffiles $(DEBDIR)/templates
+
+	# building Debian package
+	dpkg-shlibdeps $(BUILDDIR)/usr/bin/noffle
+	dpkg-gencontrol -isp -pnoffle -P$(BUILDDIR)
+	dpkg --build $(BUILDDIR) ..
+
+	# binary target finished
+
+.PHONY: clean configure build binary binary-indep binary-arch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/slrn.sl	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,26 @@
+% SLRN script for better interplay with NOFFLE news server.
+% Redefines some keys for opening articles without modifying flags.
+define my_article_linedn()
+{
+  call ( "article_linedn" );
+  if (is_substr(extract_article_header("X-NOFFLE-Status"), "NOT_DOWNLOADED"))
+    set_header_flags( ( get_header_flags() | HEADER_READ ) xor HEADER_READ );
+  return;
+}
+define my_scroll_dn()
+{
+  call ( "scroll_dn" );
+  if (is_substr(extract_article_header("X-NOFFLE-Status"), "NOT_DOWNLOADED"))
+    set_header_flags( ( get_header_flags() | HEADER_READ ) xor HEADER_READ );
+  return;
+}
+define my_hide_article()
+{
+  call ( "hide_article" );
+  if (is_substr(extract_article_header("X-NOFFLE-Status"), "NOT_DOWNLOADED"))
+    set_header_flags( ( get_header_flags() | HEADER_READ ) xor HEADER_READ );
+  return;
+}
+definekey( "my_article_linedn", "\r", "article" );
+definekey( "my_scroll_dn", " ", "article" );
+definekey( "my_hide_article", "h", "article" );
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/templates	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,73 @@
+Template: noffle/debconf
+Type: boolean
+Default: yes
+Description: Manage noffle configuration using debconf?
+ I'm going to overwrite /etc/news/noffle.conf and /etc/default/noffle
+ with some defaults and your following answers, and will update
+ /etc/inetd.conf if you say 'yes' here.
+
+Template: noffle/port
+Type: string
+Default: 119
+Description: Please choose the port number noffle runs on
+ The default port number for NNTP is 119.
+ However, perhaps you want to run noffle alongside a normal
+ NNTP server; in that case, choose another number (above 1024,
+ I recommend 10119), and configure your news reader also to use
+ that port number.
+
+Template: noffle/server
+Type: string
+Default: news
+Description: Which parent NNTP server do you want to use?
+ Noffle expects to obtain its news from another NNTP server.
+ Enter the name of that server here.
+ .
+ If the server uses a non-standard port number for the NNTP
+ connection, please fill that in here as servername:portnumber
+
+Template: noffle/username
+Type: string
+Description: What is your username when accessing your parent NNTP server?
+ If you need to authenticate you may fill in your username on
+ your parent NNTP server; if not, just leave this field blank.
+ .
+ This is not the preferred way of authentication, since your password will
+ be transmitted in clear text. See README.Debian for more details.
+
+Template: noffle/password
+Type: password
+Description: What is your password when accessing your parent NNTP server?
+ If you need to authenticate you may fill in your password on
+ your parent NNTP server; if not, just leave this field blank.
+ Warning: This password will be saved in plaintext in
+ /etc/news/noffle.conf and in the debconf database!
+ .
+ This is not the preferred way of authentication, since your password will
+ be transmitted in clear text. See README.Debian for more details.
+
+Template: noffle/fetchmode
+Type: select
+Choices: ppp, cron
+Description: How is noffle supposed to fetch the articles?
+ If this is a dialup system, then noffle can be configured to
+ fetch articles when the PPP connection comes online. This is
+ done via scripts in /etc/ppp/ip-up.d/ and /etc/ppp/ip-down.d/.
+ If you have a permanent connection, noffle will assume it
+ can always access the NNTP server and a cron job will do.
+
+Template: noffle/maxfetch
+Type: string
+Default: 300
+Description: Fetch how many articles by default?
+ When noffle fetches articles, it will never fetch more than this
+ amount; if there are more, the oldest are discarded.
+
+Template: noffle/default-expire
+Type: string
+Default: 14
+Description: What should the default expire time (in days) be?
+ Noffle is configured to purge the local cache of articles older than
+ a certain limit. This parameter configures the minimum age of articles
+ to expire; this can be fine-tuned in /etc/news/noffle.conf if necessary.
+ Enter '0' to disable it.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/templates.de	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,125 @@
+Template: noffle/debconf
+Type: boolean
+Default: yes
+Description: Manage noffle configuration using debconf?
+ I'm going to overwrite /etc/news/noffle.conf and /etc/default/noffle
+ with some defaults and your following answers, and will update
+ /etc/inetd.conf if you say 'yes' here.
+Description-de: Soll noffle mittels debconf konfiguriert werden?
+ /etc/news/noffle.conf und /etc/default/noffle werden mit einigen
+ Standardwerten und Ihren folgenden Antworten überschrieben, und
+ /etc/inetd.conf wird aktualisert werden, wenn Sie dies bejahen.
+
+Template: noffle/port
+Type: string
+Default: 119
+Description: Please choose the port number noffle runs on
+ The default port number for NNTP is 119.
+ However, perhaps you want to run noffle alongside a normal
+ NNTP server; in that case, choose another number (above 1024,
+ I recommend 10119), and configure your news reader also to use
+ that port number.
+Description-de: Wählen Sie den Port für noffle.
+ Der Standardport für NNTP ist 119. Vielleicht möchten Sie
+ noffle auf einem anderen Port als den, den ein normaler
+ NNTP-Server benutzt, antworten lassen (z.B. über Port 1024,
+ vorgeschlagen wird Port 10119). Wählen Sie dazu den
+ Port aus und konfigurieren Sie Ihren Newsreader entsprechend.
+
+Template: noffle/server
+Type: string
+Default: news
+Description: Which parent NNTP server do you want to use?
+ Noffle expects to obtain its news from another NNTP server.
+ Enter the name of that server here.
+ .
+ If the server uses a non-standard port number for the NNTP
+ connection, please fill that in here as servername:portnumber
+Description-de: Von welchem Server sollen News bezogen werden?
+ Noffle lädt News von einem anderen übergeordneten Server.
+ Bitte geben Sie den Namen des Servers an.
+ .
+ Wenn der Server eine nicht standardmäßige Portnummer für NNTP
+ verwendet, dann geben Sie diese hier mit Servername:Portnummer an.
+
+Template: noffle/username
+Type: string
+Description: What is your username when accessing your parent NNTP server?
+ If you need to authenticate you may fill in your username on
+ your parent NNTP server; if not, just leave this field blank.
+ .
+ This is not the preferred way of authentication, since your password will
+ be transmitted in clear text. See README.Debian for more details.
+Description-de: Wie lautet Ihr Nutzername bei dem remote NNTP-Server?
+ Falls Sie sich bei dem remote NNTP-Server identifizieren müssen,
+ können Sie hier Ihren Nutzernamen eingeben; falls nicht, lassen
+ Sie dieses Eingabefeld leer.
+ .
+ Dies ist nicht die bevorzugte Methode der Identifikation, da Ihr
+ Paßwort in diesem Fall als Klartext übertragen wird. Beachten Sie
+ die Datei README.Debian für weitere Details hierzu.
+
+Template: noffle/password
+Type: password
+Description: What is your password when accessing your parent NNTP server?
+ If you need to authenticate you may fill in your password on
+ your parent NNTP server; if not, just leave this field blank.
+ Warning: This password will be saved in plaintext in
+ /etc/news/noffle.conf and in the debconf database!
+ .
+ This is not the preferred way of authentication, since your password will
+ be transmitted in clear text. See README.Debian for more details.
+Description-de: Wie lautet Ihr Paßwort bei dem remote NNTP-Server?
+ Falls Sie sich bei dem remote NNTP-Server identifizieren müssen,
+ können Sie hier Ihr Paßwort eingeben; falls nicht, lassen Sie
+ dieses Eingabefeld leer. Achtung: Dieses Paßwort wird als Klartext
+ in der Datei /etc/news/noffle.conf und der debconf-Datenbank abgelegt!
+ .
+ Dies ist nicht die bevorzugte Methode der Identifikation, da Ihr
+ Paßwort in diesem Fall als Klartext übertragen wird. Beachten Sie
+ die Datei README.Debian für weitere Details hierzu.
+
+Template: noffle/fetchmode
+Type: select
+Choices: ppp, cron
+Description: How is noffle supposed to fetch the articles?
+ If this is a dialup system, then noffle can be configured to
+ fetch articles when the PPP connection comes online. This is
+ done via scripts in /etc/ppp/ip-up.d/ and /etc/ppp/ip-down.d/.
+ If you have a permanent connection, noffle will assume it
+ can always access the NNTP server and a cron job will do.
+Choices-de: ppp, cron
+Description-de: Wie soll noffle News herunterladen?
+ Wenn dies ein Rechner mit Internet-Einwahl ist, dann kann
+ noffle so konfiguriert werden, das es News herunterlädt, wenn
+ eine PPP-Verbindung aufgebaut wurde. Dies geschieht durch
+ die Skripte in /etc/ppp/ip-up.d/ und /etc/ppp/ip-down.d/.
+ Wenn Sie eine permanente Verbindung haben, dann wird davon
+ ausgegangen, daß mittels CRON immer auf den Newsserver
+ zugegriffen werden kann.
+
+Template: noffle/maxfetch
+Type: string
+Default: 300
+Description: Fetch how many articles by default?
+ When noffle fetches articles, it will never fetch more than this
+ amount; if there are more, the oldest are discarded.
+Description-de: Wieviele Artikel sollen heruntergeladen werden?
+ Wenn noffle Artikel herunterlädt, dann lädt es nie mehr Artikel
+ als Sie hier angeben. Es werden immer die neueren Artikel
+ heruntergeladen.
+
+Template: noffle/default-expire
+Type: string
+Default: 14
+Description: What should the default expire time (in days) be?
+ Noffle is configured to purge the local cache of articles older than
+ a certain limit. This parameter configures the minimum age of articles
+ to expire; this can be fine-tuned in /etc/news/noffle.conf if necessary.
+ Enter '0' to disable it.
+Description-de: Wie lange soll die Verfallszeit (in Tagen) sein?
+ Noffle is so konfiguriert, dass es Artikel, die ein bestimmtes
+ Alter erreicht haben, gelöscht werden. Dieser Parameter bestimmt
+ das minimale Alter der Artikel. Die Feineinstellung dieser Angaben
+ kann bei Bedarf in der Datei /etc/news/noffle.conf erfolgen. Geben
+ Sie '0' ein, um hiervon keinen Gebrauch zu machen.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/watch	Fri Feb 14 13:54:32 2003 +0000
@@ -0,0 +1,1 @@
+http://download.sourceforge.net /noffle/ noffle-(.*)\\.tar\\.gz debian