Subject: pkg/15311: Mistake in pkgsrc/news/trn/Makefile
To: None <gnats-bugs@gnats.netbsd.org>
From: David Rankin <drankin@bohemians.lexington.ky.us>
List: netbsd-bugs
Date: 01/20/2002 06:27:51
>Number:         15311
>Category:       pkg
>Synopsis:       Mistake in pkgsrc/news/trn/Makefile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 20 03:28:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     David Rankin
>Release:        pkgsrc current as of 19JAN2001
>Organization:
Bohemians Unincorporated
>Environment:
	
System: NetBSD hilda 1.4.1 NetBSD 1.4.1 (HILDA) #0: Thu Feb 10 12:16:21 EST 2000 root@hilda:/usr/src/sys/arch/i386/compile/HILDA i386


>Description:
	The Makefile of news/trn does an .if USE_INN == YES, but doesn't
	include bsd.prefs.mk to pick up the variable change. The attached
	patch file fixes this.
>How-To-Repeat:
	See above.
>Fix:

--- Makefile.orig	Sun Jan 20 06:17:42 2002
+++ Makefile	Sun Jan 20 06:18:29 2002
@@ -2,6 +2,7 @@
 
 DISTNAME=		trn4-test74
 PKGNAME=		trn-4.74
+PKGVERSION=		1
 CATEGORIES=		news
 MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=trn/} \
 			ftp://trn.sourceforge.net/pub/trn/
@@ -12,13 +13,13 @@
 
 LICENSE=		trn-license
 
+.include "../../mk/bsd.prefs.mk"
+
 .if defined(USE_INN) && ${USE_INN} == YES
 DEPENDS=		inn>=2.2:../inn
 .else
 DEPENDS=		nntpclnt-1.6.1:../nntpclnt
 .endif
-
-.include "../../mk/bsd.prefs.mk"
 
 # TRN_HOSTBITS determines the number of "name segments" (x.y.z.com), counting
 # from right to left, that TRN will match to allow cancels, with 0 requiring
>Release-Note:
>Audit-Trail:
>Unformatted: