From owner-freebsd-ports@FreeBSD.ORG Mon Feb 13 18:31:55 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5B471065673; Mon, 13 Feb 2012 18:31:54 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (mail1.sourcehosting.net [74.205.51.45]) by mx1.freebsd.org (Postfix) with ESMTP id BADDD8FC12; Mon, 13 Feb 2012 18:31:54 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=imac.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.73 (FreeBSD)) (envelope-from ) id 1Rx0gp-000Ibf-Fm; Mon, 13 Feb 2012 13:31:54 -0500 Received: from imac.entropy.prv (localhost [127.0.0.1]) by imac.entropy.prv (Postfix) with ESMTP id 186CEDE52F8; Mon, 13 Feb 2012 13:31:51 -0500 (EST) Message-ID: <4F395716.5030406@FreeBSD.org> Date: Mon, 13 Feb 2012 13:31:50 -0500 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.26) Gecko/20120129 Lightning/1.0b2 Thunderbird/3.1.18 MIME-Version: 1.0 To: Doug Barton References: <4F359E19.1040509@FreeBSD.org> <4F35A4BA.8050305@FreeBSD.org> In-Reply-To: <4F35A4BA.8050305@FreeBSD.org> X-Enigmail-Version: 1.1.1 OpenPGP: id=1C940290 X-SA-Exim-Connect-IP: 68.189.245.235 X-SA-Exim-Mail-From: glarkin@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.sourcehosting.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_RP_RNBL, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC,TVD_RCVD_IP autolearn=no version=3.3.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail1.sourcehosting.net) Cc: freebsd-ports Subject: Re: Portmaster binary package upgrade question X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 18:31:55 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2/10/12 6:14 PM, Doug Barton wrote: > On 02/10/2012 14:45, Greg Larkin wrote: >> Hi folks, >> >> I'm in the midst of building a system to use Tinderbox and FreeBSD jails >> to keep them up to date as new port updates are committed to the tree. >> >> I created some meta-ports in /usr/ports/local/misc to record >> dependencies and be able to install one top-level port that pulls in all >> other required ports. >> >> I'm now testing the ability to run an upgrade with portmaster once a new >> package set is built, and I'm using this command: >> >> pkgtester# env INDEXDIR=/tmp >> MASTER_SITE_INDEX=http://pkgbuilder.shn.prv/tb/packages/8.2-FreeBSD-SHN-201202101009/Latest/ >> PACKAGESITE=http://pkgbuilder.shn.prv/tb/packages/8.2-FreeBSD-SHN-201202101009/Latest/ > > You probably want to put these in a portmaster rc file. Also to avoid > code duplication you can set the first then use > PACKAGESITE=$MASTER_SITE_INDEX. The /Latest is going to get stripped off > anyway. And are you really putting your INDEX file in /Latest/ ?? Ok, will do. INDEX landed in Latest for the time being, but I'll move it to the correct place once I tighten up the scripts. > >> portmaster -PP -v --update-if-newer > > The --update-if-newer flag is only useful if you're feeding portmaster a > list of ports, some of which are already up to date. That flag doesn't apply to any calculated dependencies of the port specified on the command line, then? > >> --index-only server-web\* >> >> ===>>> Currently installed version: server-web-0.201202071358 >> ===>>> Port directory: /usr/ports/local/misc/server-web > > You can't do 5 levels of port directories. Either leave out the category > below local, or name the categories local-misc, local-foo, local-bar, etc. > > > hth, > > Doug > Do you mean that portmaster doesn't support 5 level port directories, or they don't work with the ports tree infrastructure? I've had good luck following this guide: http://marc.info/?l=freebsd-ports&m=117761097231712, but I had to make changes to bsd.port.mk (PRs filed) to get some parts working. I found portshaker today, and that looks useful for managing ports tree overlays, too. Thank you, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEUEARECAAYFAk85VxYACgkQ0sRouByUApDpzwCgly2r8RUbNBadVgo4zc0764js j8oAl3/ZGb6Mql9ESgLU3qQZg5WECQE= =EN1O -----END PGP SIGNATURE-----