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>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On 11/01/2012 22:32, Randal L. Schwartz wrote:
>>>>>> "Jason" == Jason Helfman <jhelfman@e-e.com> writes:
> 
> Jason> Why not just point the PACKAGESITE to the Latest directory of the tree you
> Jason> want to install?
> 
> 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
.
./print
./pear
./archivers
./textproc
./net
./misc
./graphics
./mail
./All            <<--------****
./devel
./java
./security
./editors
./www
./ports-mgmt
./ftp
./converters
./python
./x11-toolkits
./x11
./Latest         <<---------****
./x11-fonts
./perl5
./deskutils
./tk
./net-im
./ipv6
./net-mgmt
./lang
./geography
./portmaster-download
./gnome
./dns
./databases
./sysutils
./math
./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@ ->
../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


-- 
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


[-- Attachment #2 --]
-----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-----
help

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