From owner-freebsd-questions@FreeBSD.ORG Wed Jan 11 22:52:59 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22FB7106566B for ; Wed, 11 Jan 2012 22:52:59 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 7B6348FC0A for ; Wed, 11 Jan 2012 22:52:58 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q0BMqsnN002241 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 11 Jan 2012 22:52:55 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: OpenDKIM Filter v2.4.1 smtp.infracaninophile.co.uk q0BMqsnN002241 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1326322375; bh=0Dvq/ivX9vXi2E0mfZy3MzMHXM1pysCwFfWKGbN1ddU=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc; b=nFh5yKj8pV6XmnwdQi3lKCN7XNXZ8EudIyCQKpba0R+/Jydh6QDcdzgq5ISoinQ8/ kKcdMmiRjy00s6kCEzbRvbhOmHgqTCvtdvuiRtrVpnyphqwEgfELgi0B8xxaWELAj1 NRDD8dRT2xZ7LxfljE4Ocuxahubi976uw1IXP14Q= Message-ID: <4F0E12C0.6040104@infracaninophile.co.uk> Date: Wed, 11 Jan 2012 22:52:48 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <86sjjloq0o.fsf@red.stonehenge.com> <20120111222924.GA76679@dormouse.experts-exchange.com> <86obu9oop4.fsf@red.stonehenge.com> In-Reply-To: <86obu9oop4.fsf@red.stonehenge.com> X-Enigmail-Version: 1.3.4 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB7006A16910698151802198F" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Subject: Re: pkg_add -r and a local package repo X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2012 22:52:59 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB7006A16910698151802198F Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 11/01/2012 22:32, Randal L. Schwartz wrote: >>>>>> "Jason" =3D=3D Jason Helfman writes: >=20 > Jason> Why not just point the PACKAGESITE to the Latest directory of th= e tree you > Jason> want to install? >=20 > I am, but it has zsh-4.3.15.tbz and not zsh.tbz, so I have to pkg_add -= r > "zsh-4.3.15", and that's the annoying part. What's the directory structure like in your PACKAGESITE ? If it's the standard layout obtained eg. by creating /usr/ports/packages then the following sort of structure should be automatically created: % cd /usr/ports/packages % find . -type d =2E =2E/print =2E/pear =2E/archivers =2E/textproc =2E/net =2E/misc =2E/graphics =2E/mail =2E/All <<--------**** =2E/devel =2E/java =2E/security =2E/editors =2E/www =2E/ports-mgmt =2E/ftp =2E/converters =2E/python =2E/x11-toolkits =2E/x11 =2E/Latest <<---------**** =2E/x11-fonts =2E/perl5 =2E/deskutils =2E/tk =2E/net-im =2E/ipv6 =2E/net-mgmt =2E/lang =2E/geography =2E/portmaster-download =2E/gnome =2E/dns =2E/databases =2E/sysutils =2E/math =2E/audio viz. directories mirroring each port category (created when you build a package from a port in one of those categories) plus the two indicated extras. (Well, and the one portmaster uses for its backups.) 'All' just contains a copy of every package you build. 'Latest' however contains links to the latest version of each package, like so: % ls -1 ap* ap22-mod_perl2.tbz@ apache22.tbz@ apg.tbz@ apr-ipv6-devrandom-db48-pgsql90.tbz@ apr-ipv6-devrandom-db48-pgsql91.tbz@ where... % ls -l apache22.tbz lrwxr-xr-x 1 root wheel 24 Dec 23 17:51 apache22.tbz@ -> =2E./All/apache-2.2.21.tbz This is what the LATEST_LINK variable mentioned earlier in the thread is all about. Point PACKAGESITE at the /usr/ports/packages/Latest and it should work as you require. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enigB7006A16910698151802198F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8OEsYACgkQ8Mjk52CukIyc9QCeOUwdOKGWkBQCgx8AeXbBEWK1 cPUAnjQy3U+nWqavBSK6qnml0cPfy+xp =2VOM -----END PGP SIGNATURE----- --------------enigB7006A16910698151802198F--