From jnlin@Seattle.tamama.org  Thu Nov 17 15:11:57 2005
Return-Path: <jnlin@Seattle.tamama.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 18F4516A434
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 17 Nov 2005 15:11:57 +0000 (GMT)
	(envelope-from jnlin@Seattle.tamama.org)
Received: from Seattle.tamama.org (r21902.csie.nctu.edu.tw [140.113.214.12])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A137043D4C
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 17 Nov 2005 15:11:56 +0000 (GMT)
	(envelope-from jnlin@Seattle.tamama.org)
Received: by Seattle.tamama.org (Postfix, from userid 1001)
	id 90E4B2B; Thu, 17 Nov 2005 23:11:55 +0800 (CST)
Message-Id: <20051117151155.90E4B2B@Seattle.tamama.org>
Date: Thu, 17 Nov 2005 23:11:55 +0800 (CST)
From: Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
Reply-To: Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] let ``make update'' in /usr/ports use portsnap
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         89197
>Category:       ports
>Synopsis:       [patch] let ``make update'' in /usr/ports use portsnap
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    portmgr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 17 15:20:14 GMT 2005
>Closed-Date:    Sun Dec 25 22:44:56 GMT 2005
>Last-Modified:  Sun Dec 25 22:44:56 GMT 2005
>Originator:     Jui-Nan Lin
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD Seattle.tamama.org 5.4-STABLE FreeBSD 5.4-STABLE #3: Thu Nov 17 16:14:12 CST 2005 toor@Seattle.tamama.org:/usr/obj/usr/src/sys/KERNEL i386


	
>Description:
	Suggested typing ``make update'' in /usr/ports use portsnap to 
	update the ports tree, if I defined ``PORTSNAP_UPDATE'' in 
	/etc/make.conf .
	
>How-To-Repeat:
	no
	
>Fix:

	

--- Makefile.diff begins here ---
--- /usr/ports/Makefile.old	Tue Nov  8 21:32:54 2005
+++ /usr/ports/Makefile	Thu Nov 17 17:47:34 2005
@@ -134,11 +134,18 @@
 
 CVS?= cvs
 SUP?= cvsup
+PORTSNAP?= portsnap
+
 .if defined(SUPHOST)
 SUPFLAGS+=	-h ${SUPHOST}
 .endif
 update:
-.if defined(SUP_UPDATE) && defined(PORTSSUPFILE)
+.if defined(PORTSNAP_UPDATE)
+	@echo "--------------------------------------------------------------"
+	@echo ">>> Running ${PORTSNAP}"
+	@echo "--------------------------------------------------------------"
+	@${PORTSNAP} fetch && @${PORTSNAP} update 
+.elif defined(SUP_UPDATE) && defined(PORTSSUPFILE)
 	@echo "--------------------------------------------------------------"
 	@echo ">>> Running ${SUP}"
 	@echo "--------------------------------------------------------------"
--- Makefile.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->portmgr 
Responsible-Changed-By: mnag 
Responsible-Changed-When: Thu Nov 17 18:04:31 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=89197 

Note added manually: a patch with a parameterization is in ports/89281.
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Dec 25 22:43:11 UTC 2005 
State-Changed-Why:  
We are currently testing the patch in ports/89281 on the cluster, which 
is a slight superset of this patch.  But thanks for the submission. 

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