Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2005 23:11:55 +0800 (CST)
From:      Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/89197: [patch] let ``make update'' in /usr/ports use portsnap
Message-ID:  <20051117151155.90E4B2B@Seattle.tamama.org>
Resent-Message-ID: <200511171520.jAHFKE8E013387@freefall.freebsd.org>

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

>Number:         89197
>Category:       ports
>Synopsis:       [patch] let ``make update'' in /usr/ports use portsnap
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 17 15:20:14 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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