Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2012 22:52:48 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: pkg_add -r and a local package repo
Message-ID:  <4F0E12C0.6040104@infracaninophile.co.uk>
In-Reply-To: <86obu9oop4.fsf@red.stonehenge.com>
References:  <86sjjloq0o.fsf@red.stonehenge.com> <F77B4845-2A9E-4CE8-8E48-77F511B2389F@mac.com> <20120111222924.GA76679@dormouse.experts-exchange.com> <86obu9oop4.fsf@red.stonehenge.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhelfman@e-e.com> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F0E12C0.6040104>