From matthias.andree@gmx.de  Wed May 21 18:26:07 2003
Return-Path: <matthias.andree@gmx.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 92BF437B477
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 21 May 2003 18:26:06 -0700 (PDT)
Received: from mail.dt.e-technik.uni-dortmund.de (krusty.dt.E-Technik.Uni-Dortmund.DE [129.217.163.1])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 97BCB43FB1
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 21 May 2003 18:26:03 -0700 (PDT)
	(envelope-from matthias.andree@gmx.de)
Received: from m2a2.dyndns.org (krusty.dt.e-technik.uni-dortmund.de [129.217.163.1])
	by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id 5AE99A381D
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 May 2003 03:26:02 +0200 (CEST)
Received: from libertas.emma.line.org (libertas.emma.line.org [192.168.0.2])
	by merlin.emma.line.org (Postfix) with ESMTP
	id 4F44786C76; Thu, 22 May 2003 03:26:00 +0200 (CEST)
Received: from emma by libertas.emma.line.org with local (Exim 3.36 #1)
	id 19IeqF-0001JW-00; Thu, 22 May 2003 03:25:59 +0200
Message-Id: <E19IeqF-0001JW-00@libertas.emma.line.org>
Date: Thu, 22 May 2003 03:25:59 +0200
From: Matthias Andree <matthias.andree@gmx.de>
Reply-To: Matthias Andree <matthias.andree@gmx.de>
To: FreeBSD-gnats-submit@freebsd.org
Subject: serious maintainer update port: news/leafnode 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         52550
>Category:       ports
>Synopsis:       serious maintainer update port: news/leafnode
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 21 18:30:14 PDT 2003
>Closed-Date:    Wed May 21 22:01:00 PDT 2003
>Last-Modified:  Wed May 21 22:01:00 PDT 2003
>Originator:     Matthias Andree
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD libertas.emma.line.org 4.8-STABLE FreeBSD 4.8-STABLE #31: Thu May 22 02:37:05 CEST 2003 toor@libertas.emma.line.org:/usr/src/sys/compile/LIBERTAS i386


	
>Description:
This upstream update incorporates a fix for a very long standing bug,
that leafnode never noticed when the user had unsubscribed from a news group.

Please commit before 5.1 ports freeze.

This contains PR # ports/52523, original description:
This patch cleans up the port a bit, uses variables rather than hard coded path
components, prints information on the spool directory, and will generate
pkg-message according to the actual spool directory to give proper
uninstallation info.

NOTE TO COMMITTER: please make sure pkg-message is removed from the source
directory; there is now a source file, files/pkg-message.in, that is run
through sed.
	
>How-To-Repeat:
	
>Fix:

diff -Nur /usr/ports/news/leafnode/Makefile /root/leafnode/Makefile
--- /usr/ports/news/leafnode/Makefile	Thu May  8 17:46:05 2003
+++ /root/leafnode/Makefile	Thu May 22 03:14:23 2003
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	leafnode
-PORTVERSION=	1.9.40
+PORTVERSION=	1.9.41
 CATEGORIES=	news ipv6
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:S/$/:sourceforge/} \
 		http://www.dt.e-technik.uni-dortmund.de/~ma/${PORTNAME}/ \
@@ -18,7 +18,7 @@
 DISTNAME=	${PORTNAME}-${PORTVERSION}.rel
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:sourceforge,sunsite,DEFAULT
 
-MAINTAINER=	matthias.andree@web.de
+MAINTAINER=	matthias.andree@gmx.de
 COMMENT=	NNTP package for offline news caching and reading
 
 LIB_DEPENDS=	pcre.0:${PORTSDIR}/devel/pcre
@@ -31,32 +31,42 @@
 
 USE_BZIP2=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--quiet --prefix=${PREFIX} --sysconfdir=${PREFIX}/etc/leafnode \
+CONFIGURE_ARGS=	--prefix=${PREFIX} --sysconfdir=${PREFIX}/etc/leafnode \
 		--with-lockfile=${LEAFNODE_SPOOLDIR}/leaf.node/lock.file \
 		--with-spooldir=${LEAFNODE_SPOOLDIR} --with-ipv6
 CONFIGURE_TARGET=    --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 MAKE_ARGS=
 MAN1=		leafnode-version.1 newsq.1
 MAN8=		applyfilter.8 checkgroups.8 fetchnews.8 leafnode.8 texpire.8
+PKGMESSAGE=	${WRKSRC}/pkg-message
+
+pre-configure:
+		@${ECHO}
+		@${ECHO} "------------------------------------------------------------------------"
+		@${ECHO} "This port will use ${LEAFNODE_SPOOLDIR} as spool directory."
+		@${ECHO} "Use LEAFNODE_SPOOLDIR=d to specify d as spool directory."
+		@${ECHO} "------------------------------------------------------------------------"
+		@${ECHO}
 
 post-install:
 		${INSTALL_PROGRAM} ${WRKSRC}/quickmkdir ${PREFIX}/sbin/
 		${INSTALL_SCRIPT} ${WRKSRC}/setup-daemontools.sh ${PREFIX}/sbin/
 .if !defined(NOPORTDOCS)
-		${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
+		${MKDIR} ${DOCSDIR}
 		for i in ChangeLog COPYING CREDITS FAQ.txt FAQ.pdf FAQ.html \
 			 INSTALL NEWS README \
 			 README-FQDN README-FQDN.html README-daemontools \
 			 README.FIRST TODO leafnode.cron.daily ; do \
-		  ${INSTALL_MAN} ${WRKSRC}/$$i \
-			${PREFIX}/share/doc/${PORTNAME} ; done
-		${MKDIR} ${PREFIX}/share/doc/${PORTNAME}/doc_german
+		  ${INSTALL_MAN} ${WRKSRC}/$$i ${DOCSDIR} ; \
+		done
+		${MKDIR} ${DOCSDIR}/doc_german
 		for i in INSTALL_de LIESMICH-daemontools README \
 			README_de newsq.1 ${MAN8} ; do \
 		  ${INSTALL_MAN} ${WRKSRC}/doc_german/$$i \
-			${PREFIX}/share/doc/${PORTNAME}/doc_german ; done
+			${DOCSDIR}/doc_german ; done
 .endif
-		${CAT} pkg-message
+		@${SED} 's}%%DOCSDIR%%}${DOCSDIR}}g' ${FILESDIR}/pkg-message.in >${PKGMESSAGE}
+		${CAT} ${PKGMESSAGE}
 		PKG_PREFIX=${PREFIX} SPOOLDIR=${LEAFNODE_SPOOLDIR} \
 			${SH} pkg-install ${PORTNAME} POST-INSTALL
 
diff -Nur /usr/ports/news/leafnode/distinfo /root/leafnode/distinfo
--- /usr/ports/news/leafnode/distinfo	Thu May  8 17:46:05 2003
+++ /root/leafnode/distinfo	Thu May 22 03:14:58 2003
@@ -1 +1 @@
-MD5 (leafnode-1.9.40.rel.tar.bz2) = a1d2c1c6eab5c06b370a1000a3acdd5c
+MD5 (leafnode-1.9.41.rel.tar.bz2) = 51d6585c5a7b9661741a18b28d36de87
diff -Nur /usr/ports/news/leafnode/files/pkg-message.in /root/leafnode/files/pkg-message.in
--- /usr/ports/news/leafnode/files/pkg-message.in	Thu Jan  1 01:00:00 1970
+++ /root/leafnode/files/pkg-message.in	Wed May 21 12:21:31 2003
@@ -0,0 +1,5 @@
+To finalize the leafnode install, proceed as follows:
+
+1. read %%DOCSDIR%%/INSTALL, starting at item #5.
+2. read %%DOCSDIR%%/NEWS, mind the incompatible changes!
+3. read %%DOCSDIR%%/README, mind the incompatible changes!
diff -Nur /usr/ports/news/leafnode/pkg-message /root/leafnode/pkg-message
--- /usr/ports/news/leafnode/pkg-message	Fri Aug 23 17:19:12 2002
+++ /root/leafnode/pkg-message	Thu Jan  1 01:00:00 1970
@@ -1,5 +0,0 @@
-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/NEWS, mind the incompatible changes!
-3. read ${PREFIX}/share/doc/leafnode/README, mind the incompatible changes!
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: foxfair 
State-Changed-When: Wed May 21 22:00:02 PDT 2003 
State-Changed-Why:  
I hear ya, commit and close PR. 
(note: I leave pkg-message empty as well, if you really wanna remove it 
from ports tree, let me know) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=52550 
>Unformatted:
