On Fri, Sep 08, 2006 at 12:03:54PM +0200, Stefan wrote:
> Subject: ports management, update, flavors & co
>
> Hi,
>
> I have some basic questions about managing the ports tree.
>
> 1) Is the favoured way to upgrade the installed ports still like this:
> cd /usr/ports && make index
> cd /usr/ports/infrastructure/build && sh out-of-date
> I couldn't find any information about upgraden the ports. I found a
> lot of infos about updating the ports tree via cvs but not how to
> upgrade the installed ports when a new version comes out.
pkg_add -ui - since 3.9, at least.
> 2) Is it even possible to update only certain ports? Like you have a
> port xyz installed and you only want to update this specific port.
> Can you switch to /usr/ports/abc/xyz and do a "make update" to check
> if a new version is out?
Yes. You'd ideally use FETCH_PACKAGES.
Or pkg_add -ui, or pkg_add -r <newport>
> 3) Some time ago I used FreeBSD as my main server system and there
> you had to specify the compile options (in OpenBSD you say FLAVOR'S)
> in /etc/make.conf. There you could specify e.g. that the package xyz
> should be compiled with the option "no_x11". In OpenBSD you do this
> via "env FLAVOR=no_x11 make install". But what will happen when you
> upgrade the port? Then you won't specify the flavor again. How does
> the ports-system handle this?
> I tried something like this:
> /etc/mk.conf:
> .if ${.CURDIR:M*/net/jabberd*}
> FLAVOR=db
> .endif
> But this doesn't work the package will be compiled with the default
> flavors.
pkg_add jabberd-db will do the trick; otherwise, cd
`/usr/ports/net/jabberd && env FETCH_PACKAGES=yes make update' will do
what you want.
Joachim