From owner-svn-doc-head@FreeBSD.ORG Tue Feb 12 03:28:19 2013 Return-Path: Delivered-To: svn-doc-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CCDE7A50; Tue, 12 Feb 2013 03:28:19 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id A6B27F61; Tue, 12 Feb 2013 03:28:19 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1C3SJfq061757; Tue, 12 Feb 2013 03:28:19 GMT (envelope-from linimon@svn.freebsd.org) Received: (from linimon@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1C3SJDc061756; Tue, 12 Feb 2013 03:28:19 GMT (envelope-from linimon@svn.freebsd.org) Message-Id: <201302120328.r1C3SJDc061756@svn.freebsd.org> From: Mark Linimon Date: Tue, 12 Feb 2013 03:28:19 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r40954 - head/en_US.ISO8859-1/articles/portbuild X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2013 03:28:19 -0000 Author: linimon Date: Tue Feb 12 03:28:19 2013 New Revision: 40954 URL: http://svnweb.freebsd.org/changeset/doc/40954 Log: Collapse all the manual steps of "new architecture" into the addarch script. Modified: head/en_US.ISO8859-1/articles/portbuild/article.xml Modified: head/en_US.ISO8859-1/articles/portbuild/article.xml ============================================================================== --- head/en_US.ISO8859-1/articles/portbuild/article.xml Mon Feb 11 23:41:16 2013 (r40953) +++ head/en_US.ISO8859-1/articles/portbuild/article.xml Tue Feb 12 03:28:19 2013 (r40954) @@ -2273,51 +2273,25 @@ zfs destroy -r a/snap/src-o Steps necessary before <application>qmanager</application> is started - - The initial steps need to be done as - root. + The next steps are most easily done as user + portbuild. - - - If it has not already been done, create the - portbuild - user and group. - - - - mkdir /a/portbuild/arch - - - - Create a new zfs filesystem: - - &prompt.root; zfs create -o mountpoint=/a/portbuild/arch a/portbuild/arch - - - - &prompt.root; chown portbuild:portbuild /a/portbuild/arch; -&prompt.root; chmod 775 /a/portbuild/arch; -&prompt.root; cd /a/portbuild/arch - - - - Create the .ssh directory. - - - - The next steps are most easily done as user - portbuild. + The following assumes you have already run + mkportbuild. - Create an archive directory for buildlogs and errorlogs - under archive/. + As the portbuild user, run + + &prompt.user; /a/portbuild/admin/tools/addarch arch + + For each branch that will be supported, do the following: @@ -2361,8 +2335,10 @@ zfs destroy -r a/snap/src-o - Create a fresh portbuild.conf file - from one of the ones for another architecture. + Edit portbuild.conf + from one of the ones for another architecture. + addarch will have created a default + one for you. @@ -2372,16 +2348,6 @@ zfs destroy -r a/snap/src-o - &prompt.root; cd .ssh && ssh-keygen - - - - If desired, - edit the .ssh/config file for - convenience in using ssh. - - - If you need to create any tunnels: @@ -2400,7 +2366,7 @@ zfs destroy -r a/snap/src-o - Once again as root: + As srcbuild: @@ -2411,14 +2377,14 @@ zfs destroy -r a/snap/src-o Add the arch directory to - /a/portbuild/admin/scripts/zbackup and - /a/portbuild/admin/scripts/zexpire. + /a/portbuild/admin/scripts/zbackup. + (This is a hack and should go away.) - Add an appropriate arch entry for + Enable the appropriate arch entry for /a/portbuild/scripts/dologs to the portbuild crontab. (This is a hack and should go away.) @@ -2429,17 +2395,11 @@ zfs destroy -r a/snap/src-o Steps necessary after <application>qmanager</application> is started - Again as root: + Again as srcbuild: - Tell qmanager about the arch: - - python path/qmanager/qclient add_acl name=ports-arch uidlist=ports-arch gidlist=portbuild sense=1 - - - For each branch that will be supported, do the following: