From root@strike.velocet.net  Tue May 23 19:50:11 2000
Return-Path: <root@strike.velocet.net>
Received: from sabre.velocet.net (sabre.velocet.net [198.96.118.66])
	by hub.freebsd.org (Postfix) with ESMTP id D8A1F37B764
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 23 May 2000 19:50:10 -0700 (PDT)
	(envelope-from root@strike.velocet.net)
Received: by sabre.velocet.net (Postfix, from userid 66)
	id A8656137FC1; Tue, 23 May 2000 22:50:05 -0400 (EDT)
Received: (from root@localhost)
	by strike.velocet.net (8.9.3/8.9.2) id WAA31917;
	Tue, 23 May 2000 22:43:26 -0400 (EDT)
	(envelope-from root)
Message-Id: <200005240243.WAA31917@strike.velocet.net>
Date: Tue, 23 May 2000 22:43:26 -0400 (EDT)
From: dgilbert@velocet.ca
Sender: root@strike.velocet.net
Reply-To: dgilbert@velocet.ca
To: FreeBSD-gnats-submit@freebsd.org
Subject: Make building of lpr optional
X-Send-Pr-Version: 3.2

>Number:         18787
>Category:       bin
>Synopsis:       To facilitate the use of LPRng, it would help if lpr didn't re-assert itself
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    hoek
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 23 20:00:01 PDT 2000
>Closed-Date:    Wed May 31 14:38:50 PDT 2000
>Last-Modified:  Wed May 31 14:40:23 PDT 2000
>Originator:     David Gilbert
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
Velocet Communications
>Environment:

4.0-STABLE build tree

>Description:

It is inconvenient that lpr continues to reassert itself when we're
using LPRng.  This patch is similar to the NO_SENDMAIL build flag

>How-To-Repeat:

make world

>Fix:

I think this is sufficient.  Works here :).

--- etc/defaults/make.conf.orig	Tue May 23 22:37:39 2000
+++ etc/defaults/make.conf	Tue May 23 22:37:44 2000
@@ -44,6 +44,7 @@
 #NO_OPENSSH=	true	# do not build OpenSSH
 #NO_OPENSSL=	true	# do not build OpenSSL (implies NO_OPENSSH)
 #NO_SENDMAIL=	true	# do not build sendmail and related programs
+#NO_LPR=	true	# do not build lpr and related programs
 #NO_X=		true	# do not compile in XWindows support (e.g. doscmd)
 #NOCRYPT=	true	# do not build any crypto code
 #NODESCRYPTLINKS=true	# do not replace libcrypt -> libscrypt links
--- usr.sbin/Makefile.orig	Tue May 23 22:35:33 2000
+++ usr.sbin/Makefile	Tue May 23 22:36:36 2000
@@ -41,7 +41,6 @@
 	kbdmap \
 	kernbb \
 	keyserv \
-	lpr \
 	manctl \
 	memcontrol \
 	mergemaster \
@@ -127,6 +126,10 @@
 	ndc \
 	nslookup \
 	nsupdate
+.endif
+
+.if !defined(NO_LPR)
+SUBDIR+=lpr
 .endif
 
 .if !defined(NO_MAILWRAPPER)


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->hoek 
Responsible-Changed-By: hoek 
Responsible-Changed-When: Tue May 30 23:14:50 PDT 2000 
Responsible-Changed-Why:  
Do'n the make world thing. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=18787 
State-Changed-From-To: open->closed 
State-Changed-By: hoek 
State-Changed-When: Wed May 31 14:38:50 PDT 2000 
State-Changed-Why:  
Slightly modified patch applied (ordered lists shall remain 
ordered).  Merge pending.  Feel free to remind me if I forget... 

Thanks! 

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