Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2012 14:23:48 -0800
From:      Chuck Swiger <cswiger@mac.com>
To:        "Randal L. Schwartz" <merlyn@stonehenge.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: pkg_add -r and a local package repo
Message-ID:  <F77B4845-2A9E-4CE8-8E48-77F511B2389F@mac.com>
In-Reply-To: <86sjjloq0o.fsf@red.stonehenge.com>
References:  <86sjjloq0o.fsf@red.stonehenge.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 11, 2012, at 2:03 PM, Randal L. Schwartz wrote:
> First, it looks like pkg_add -r needs the full package name.  Is there
> any way to give it "zsh" instead of "zsh-4.3.15"?

Create a symlink from zsh-4.3.15.tbz to zsh.tbz on the package server.
You can also control this at the time of building the package via:

  www.freebsd.org/doc/en/books/porters-handbook/makefile-naming.html#AEN647

"5.2.4 LATEST_LINK

LATEST_LINK is used during package building to determine a shortened name to create links that can be used by pkg_add -r. This makes it possible to, for example, install the latest perl version by running pkg_add -r perl without knowing the exact version number. This name needs to be unique and obvious to users."

> Second, it looks like it won't install dependencies.  This is a problem.
> Can I get it to search and install dependencies somehow?

Does the package in question have its dependencies properly specified?

Regards,
-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F77B4845-2A9E-4CE8-8E48-77F511B2389F>