Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Apr 2002 03:48:22 +0200 (CEST)
From:      Matthias Andree <matthias.andree@web.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        brian@FreeBSD.org
Subject:   ports/37051: update port: news/leafnode 1.9.19 -> 1.9.21
Message-ID:  <20020414014822.69C061B248@emma1.emma.line.org>

next in thread | raw e-mail | index | archive | help

>Number:         37051
>Category:       ports
>Synopsis:       update port: news/leafnode 1.9.19 -> 1.9.21
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 13 19:00:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Andree
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
leafnode developer 
>Environment:
System: FreeBSD emma1.emma.line.org 4.5-RELEASE FreeBSD 4.5-RELEASE #1: Fri Feb 1 16:59:51 CET 2002 toor@emma1.emma.line.org:/usr/src/sys/compile/MA i386


	
>Description:

* 1.9.21, 2002-04-08
INCOMPATIBLE CHANGES:
- leafnode never fetches articles that would be expired right away as
  per the current expire/groupexpire settings. Add "clamp_maxage = 0" to
  your configuration to restore the old behaviour.

general:
- no longer segfaults when the groupinfo file is empty (when the
  upstream servers are all unreachable).
- gets time zone offset against GMT right.
- overview handling now detects when articles are removed from the
  "middle" of a group (i. e. which are not low or high water mark)

applyfilter:
- no longer trashes the article high water mark.

fetchnews:
- leafnode never fetches articles that would be expired right away as
  per the current expire/groupexpire settings.
- can recover state information from a SERVERINFO~ file left behind by a
  previous incomplete fetchnews run.
========================================================================
* 1.9.20, 2002-03-25
INCOMPATIBLE CHANGES:
- leafnode REQUIRES a valid fully qualified domain name now,
  localhost.localdomain is invalid! Fix your /etc/hosts if leafnode
  programs refuse to run.
- running leafnode without access control (such as tcpd from Wietse
  Venema's tcp_wrappers package or xinetd/tcpserver's native access
  control) is officially deprecated.
- leafnode no longer tries to post the article to all your servers, but
  only to one, to prevent moderators from getting posts to moderated
  groups more than once. Move your most reliable news servers first in
  the configuration file.

General:
- new locking scheme, prevents groupinfo corruption, the old locking
  scheme was totally ineffective
- manual pages now contain proper paths to programs or files
- pattern matching has been fixed
- no more timezone messups in logs or generated Date: headers (backport
  from 2.0beta)
- memory and file descriptor leaks have been fixed
- some more parts of NNTP chatter are subject to timeout handling
- the included PCRE package was updated to v3.5 (but better, get PCRE
  3.9 or newer and install that prior to configuring and installing
  leafnode)
- maintainer builds now need ./configure --enable-maintainer-mode.
  Results in faster compilation for end users.

fetchnews:
- can now safely post to NewsCache servers, 1.9.19 and older would
  discard all upstream posts to NewsCache servers because NewsCache lies
  about the availability of an article in STAT <Message-ID>. We use HEAD
  now. (workaround backported from leafnode 2.0beta)
- upstream posts are now deleted as soon as they have successfully been
  posted.
- fetchnews -P no longer segfaults
- SIGPIPE now updates groupinfo and overview information, it would kill
  fetchnews before.
- log port number in "connected to" log message
- Mark Brown's workaround to "no groups available" problem with
  authentication failures, but after authentication failures and fixing
  username/password in the configuration file, run fetchnews -f once

leafnode (nntpd):
- buffer underrun fixed when the command consisted only of whitespace.
  Bug fix by Ralf Wildenhues.
- log our and the peer's address (to hint someone he should really use
  tcpd or something similar, and to overcome "I did not order this news
  group" reports)
- now mark the correct article for download in delaybody mode if the
  news reader sends BODY or ARTICLE <message-id>. (only affects
  crossposted articles).
- XOVER 1- now works on pseudogroups
- XOVER -n is now supported (came for free with the previous fix ;)
- STAT/HEAD/BODY/ARTICLE with "current article pointer" now work for
  pseudo groups
- exits with 503 error message to the client if the own hostname is not
  configured properly

newsq:
- add a new -f option to show the failed.postings queue.

texpire:
- the man page has been finally fixed to document that we expire
  individual articles, not threads.

Changes which are more technical and less visible:
- article numbers are now unsigned long almost everywhere
- out-of-memory conditions detected properly
- non-exploitable buffer overruns fixed
- line reading function is rock solid now, no more getaline
  crashes
- mkstemp is now robust against broken implementations that
  do not look at the umask
- some tuning took place, some fprintf have been replaced by fputs
- mkstemp function updated from leafnode 2.0beta

* 1.9.19 and prior: see ChangeLog. A separate NEWS file was not kept.
	
>How-To-Repeat:
	
>Fix:

diff -Nur /usr/ports/news/leafnode/Makefile /root/leafnode/Makefile
--- /usr/ports/news/leafnode/Makefile	Sun Apr 14 01:40:50 2002
+++ /root/leafnode/Makefile	Sun Apr 14 03:25:09 2002
@@ -6,24 +6,37 @@
 #
 
 PORTNAME=	leafnode
-PORTVERSION=	1.9.19
+PORTVERSION=	1.9.21
 CATEGORIES=	news
 MASTER_SITES=	ftp://wpxx02.toxi.uni-wuerzburg.de/pub/ \
-                ftp://ftp.karlsruhe.org/pub/news/servers/leafnode/ \
-                ftp://ftp.stikman.com/pub/leafnode/ \
-                ftp://ftp.gigabell.net/pub/leafnode/ \
 		${MASTER_SITE_SUNSITE} \
+		ftp://ftp.karlsruhe.org/pub/news/servers/leafnode/ \
+		ftp://ftp.stikman.com/pub/leafnode/ \
+		ftp://ftp.gigabell.net/pub/leafnode/ \
 		http://www.Awfulhak.org/leafnode/
 MASTER_SITE_SUBDIR=	system/news/transport
+DISTNAME=	${PORTNAME}-${PORTVERSION}.rel
 
 MAINTAINER=	brian@FreeBSD.org
 
+LIB_DEPENDS=	pcre.0:${PORTSDIR}/devel/pcre
+
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--quiet
-MAKE_ARGS=	LOCKFILE=/var/spool/lock/news/fetchnews.lck \
-		LIBDIR=${PREFIX}/lib/leafnode
+CONFIGURE_ARGS=	--quiet --sysconfdir=${PREFIX}/etc/leafnode \
+		--with-lockfile=/var/spool/lock/news/leafnode.lck \
+		--with-spooldir=/var/spool/news
+MAKE_ARGS=
 MAN1=		newsq.1
-MAN7=		pcre.7
 MAN8=		fetchnews.8 applyfilter.8 leafnode.8 texpire.8 checkgroups.8
+
+post-install:
+.if !defined(NOPORTDOCS)
+		${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
+		for i in ChangeLog CREDITS FAQ INSTALL NEWS README \
+			 README.FIRST TODO ; do \
+		  ${INSTALL_MAN} ${WRKSRC}/$$i \
+			${PREFIX}/share/doc/${PORTNAME} ; done
+.endif
+		${CAT} pkg-message
 
 .include <bsd.port.mk>
diff -Nur /usr/ports/news/leafnode/distinfo /root/leafnode/distinfo
--- /usr/ports/news/leafnode/distinfo	Thu Aug 23 13:24:57 2001
+++ /root/leafnode/distinfo	Sun Apr 14 02:52:03 2002
@@ -1 +1 @@
-MD5 (leafnode-1.9.19.tar.gz) = dc7b33592283b92ba45ba38ae75e024e
+MD5 (leafnode-1.9.21.rel.tar.gz) = a0f34cd1b83db2f058700ecd42f77981
diff -Nur /usr/ports/news/leafnode/files/patch-ag /root/leafnode/files/patch-ag
--- /usr/ports/news/leafnode/files/patch-ag	Mon Feb  7 08:00:31 2000
+++ /root/leafnode/files/patch-ag	Thu Jan  1 01:00:00 1970
@@ -1,12 +0,0 @@
---- Makefile.in.orig	Mon Dec 13 12:15:08 1999
-+++ Makefile.in	Sun Feb  6 19:52:22 2000
-@@ -19,7 +19,8 @@
- # Flags
- DEBUG  = -g
- STRIP  = -s
--CFLAGS = -I. @DEFS@ @GCC_FLAGS@ $(DEBUG)
-+CFLAGS ?= -O2
-+CFLAGS += -I. @DEFS@ @GCC_FLAGS@ $(DEBUG)
- LIBS   = @LIBS@
- 
- # Directories and Paths
diff -Nur /usr/ports/news/leafnode/leafnode-1.9.19-to-21.diff /root/leafnode/leafnode-1.9.19-to-21.diff
--- /usr/ports/news/leafnode/leafnode-1.9.19-to-21.diff	Thu Jan  1 01:00:00 1970
+++ /root/leafnode/leafnode-1.9.19-to-21.diff	Sun Apr 14 03:39:13 2002
@@ -0,0 +1,71 @@
+diff -Nur /usr/ports/news/leafnode/Makefile /root/leafnode/Makefile
+--- /usr/ports/news/leafnode/Makefile	Sun Apr 14 01:40:50 2002
++++ /root/leafnode/Makefile	Sun Apr 14 03:25:09 2002
+@@ -6,24 +6,37 @@
+ #
+ 
+ PORTNAME=	leafnode
+-PORTVERSION=	1.9.19
++PORTVERSION=	1.9.21
+ CATEGORIES=	news
+ MASTER_SITES=	ftp://wpxx02.toxi.uni-wuerzburg.de/pub/ \
+-                ftp://ftp.karlsruhe.org/pub/news/servers/leafnode/ \
+-                ftp://ftp.stikman.com/pub/leafnode/ \
+-                ftp://ftp.gigabell.net/pub/leafnode/ \
+ 		${MASTER_SITE_SUNSITE} \
++		ftp://ftp.karlsruhe.org/pub/news/servers/leafnode/ \
++		ftp://ftp.stikman.com/pub/leafnode/ \
++		ftp://ftp.gigabell.net/pub/leafnode/ \
+ 		http://www.Awfulhak.org/leafnode/
+ MASTER_SITE_SUBDIR=	system/news/transport
++DISTNAME=	${PORTNAME}-${PORTVERSION}.rel
+ 
+ MAINTAINER=	brian@FreeBSD.org
+ 
++LIB_DEPENDS=	pcre.0:${PORTSDIR}/devel/pcre
++
+ GNU_CONFIGURE=	yes
+-CONFIGURE_ARGS=	--quiet
+-MAKE_ARGS=	LOCKFILE=/var/spool/lock/news/fetchnews.lck \
+-		LIBDIR=${PREFIX}/lib/leafnode
++CONFIGURE_ARGS=	--quiet --sysconfdir=${PREFIX}/etc/leafnode \
++		--with-lockfile=/var/spool/lock/news/leafnode.lck \
++		--with-spooldir=/var/spool/news
++MAKE_ARGS=
+ MAN1=		newsq.1
+-MAN7=		pcre.7
+ MAN8=		fetchnews.8 applyfilter.8 leafnode.8 texpire.8 checkgroups.8
++
++post-install:
++.if !defined(NOPORTDOCS)
++		${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
++		for i in ChangeLog CREDITS FAQ INSTALL NEWS README \
++			 README.FIRST TODO ; do \
++		  ${INSTALL_MAN} ${WRKSRC}/$$i \
++			${PREFIX}/share/doc/${PORTNAME} ; done
++.endif
++		${CAT} pkg-message
+ 
+ .include <bsd.port.mk>
+diff -Nur /usr/ports/news/leafnode/distinfo /root/leafnode/distinfo
+--- /usr/ports/news/leafnode/distinfo	Thu Aug 23 13:24:57 2001
++++ /root/leafnode/distinfo	Sun Apr 14 02:52:03 2002
+@@ -1 +1 @@
+-MD5 (leafnode-1.9.19.tar.gz) = dc7b33592283b92ba45ba38ae75e024e
++MD5 (leafnode-1.9.21.rel.tar.gz) = a0f34cd1b83db2f058700ecd42f77981
+diff -Nur /usr/ports/news/leafnode/files/patch-ag /root/leafnode/files/patch-ag
+--- /usr/ports/news/leafnode/files/patch-ag	Mon Feb  7 08:00:31 2000
++++ /root/leafnode/files/patch-ag	Thu Jan  1 01:00:00 1970
+@@ -1,12 +0,0 @@
+---- Makefile.in.orig	Mon Dec 13 12:15:08 1999
+-+++ Makefile.in	Sun Feb  6 19:52:22 2000
+-@@ -19,7 +19,8 @@
+- # Flags
+- DEBUG  = -g
+- STRIP  = -s
+--CFLAGS = -I. @DEFS@ @GCC_FLAGS@ $(DEBUG)
+-+CFLAGS ?= -O2
+-+CFLAGS += -I. @DEFS@ @GCC_FLAGS@ $(DEBUG)
+- LIBS   = @LIBS@
+- 
+- # Directories and Paths
diff -Nur /usr/ports/news/leafnode/pkg-descr /root/leafnode/pkg-descr
--- /usr/ports/news/leafnode/pkg-descr	Mon Mar 22 02:25:42 1999
+++ /root/leafnode/pkg-descr	Sun Apr 14 02:55:06 2002
@@ -1,6 +1,5 @@
-Leafnode v1.4 is a simple NNTP server designed for small sites.
+Leafnode v1.9 is a simple NNTP store & forward proxy designed for
+small sites.
 
 It "learns" which newsgroups should be downloaded based on what's
 accessed.
-
-It expires based on threads rather than articles.
diff -Nur /usr/ports/news/leafnode/pkg-install /root/leafnode/pkg-install
--- /usr/ports/news/leafnode/pkg-install	Mon Mar 22 02:25:42 1999
+++ /root/leafnode/pkg-install	Sun Apr 14 03:26:34 2002
@@ -1,8 +1,6 @@
-#! /bin/sh
-
 SPOOLDIR=${VAR:=/var}/spool/news
-LOCKFILE=$VAR/spool/lock/news/fetch.lck
-LIBDIR=${PREFIX:=/usr/local}/lib/leafnode
+LOCKFILE=$VAR/spool/lock/news/leafnode.lck
+LIBDIR=${PREFIX}/etc/leafnode
 
 mkdir -p `dirname $LOCKFILE`
 mkdir -p $SPOOLDIR $LIBDIR
diff -Nur /usr/ports/news/leafnode/pkg-message /root/leafnode/pkg-message
--- /usr/ports/news/leafnode/pkg-message	Thu Jan  1 01:00:00 1970
+++ /root/leafnode/pkg-message	Sun Apr 14 03:18:05 2002
@@ -0,0 +1,4 @@
+To finalize the leafnode install, proceed as follows:
+
+1. read ${PREFIX}/share/doc/leafnode/INSTALL, starting at item #5.
+2. read ${PREFIX}/share/doc/leafnode/README, mind the incompatible changes!
diff -Nur /usr/ports/news/leafnode/pkg-plist /root/leafnode/pkg-plist
--- /usr/ports/news/leafnode/pkg-plist	Thu Dec 30 04:28:34 1999
+++ /root/leafnode/pkg-plist	Sun Apr 14 03:26:43 2002
@@ -1,8 +1,17 @@
 bin/newsq
-lib/leafnode/config.example
+etc/leafnode/config.example
 sbin/leafnode
 sbin/fetchnews
 sbin/texpire
 sbin/checkgroups
 sbin/applyfilter
-@dirrm lib/leafnode
+@dirrm etc/leafnode
+%%PORTDOCS%%share/doc/leafnode/ChangeLog
+%%PORTDOCS%%share/doc/leafnode/CREDITS
+%%PORTDOCS%%share/doc/leafnode/FAQ
+%%PORTDOCS%%share/doc/leafnode/INSTALL
+%%PORTDOCS%%share/doc/leafnode/NEWS
+%%PORTDOCS%%share/doc/leafnode/README
+%%PORTDOCS%%share/doc/leafnode/README.FIRST
+%%PORTDOCS%%share/doc/leafnode/TODO
+%%PORTDOCS%%@dirrm share/doc/leafnode
	


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020414014822.69C061B248>