From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Nov 17 15:20:15 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBD0A16A41F for ; Thu, 17 Nov 2005 15:20:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BC6343D4C for ; Thu, 17 Nov 2005 15:20:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jAHFKEH1013389 for ; Thu, 17 Nov 2005 15:20:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAHFKE8E013387; Thu, 17 Nov 2005 15:20:14 GMT (envelope-from gnats) Resent-Date: Thu, 17 Nov 2005 15:20:14 GMT Resent-Message-Id: <200511171520.jAHFKE8E013387@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jui-Nan Lin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18F4516A434 for ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/89197: [patch] let ``make update'' in /usr/ports use portsnap X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jui-Nan Lin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2005 15:20:15 -0000 >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: