From owner-cvs-all@FreeBSD.ORG Fri Aug 8 16:24:05 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7AC81065670; Fri, 8 Aug 2008 16:24:05 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 97ABF8FC13; Fri, 8 Aug 2008 16:24:05 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m78GO5Vk087870; Fri, 8 Aug 2008 16:24:05 GMT (envelope-from kris@repoman.freebsd.org) Received: (from kris@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m78GO5fD087869; Fri, 8 Aug 2008 16:24:05 GMT (envelope-from kris) Message-Id: <200808081624.m78GO5fD087869@repoman.freebsd.org> From: Kris Kennaway Date: Fri, 8 Aug 2008 16:24:05 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/Tools/portbuild/scripts build X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2008 16:24:05 -0000 kris 2008-08-08 16:24:05 UTC FreeBSD ports repository Modified files: Tools/portbuild/scripts build Log: Add a new script for performing high-level administration of a build. list : lists available builds clone : creates a new build by cloning a previous one portsupdate : update a ports tree to the latest ZFS snapshot srcupdate : update a src tree to the latest ZFS snapshot cleanup : clean up or remove a build on the clients destroy : remove a build on the server There is some trickiness here in that various commands either expect to run as root, or expect to run as a ports-* user. For the latter case we can easily use su to proxy as the ports user when running as root; for the former we use the buildproxy to validate and re-execute the command as root. Revision Changes Path 1.2 +489 -511 ports/Tools/portbuild/scripts/build