Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2008 06:56:17 -0500
From:      Lowell Gilbert <freebsd-ports-local@be-well.ilk.org>
To:        hans@lambermont.dyndns.org (Hans Lambermont)
Cc:        c.mm@gmx.net, freebsd-ports@freebsd.org
Subject:   Re: create ports from list
Message-ID:  <44wsq0wyam.fsf@Lowell-Desk.lan>
In-Reply-To: <20080122184553.GD30918@leia.lambermont.dyndns.org> (Hans Lambermont's message of "Tue\, 22 Jan 2008 19\:45\:53 %2B0100")
References:  <20080122151037.316850@gmx.net> <20080122184553.GD30918@leia.lambermont.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
hans@lambermont.dyndns.org (Hans Lambermont) writes:

> c.mm@gmx.net wrote:
>
>> I have a server with round about 200 installed Ports. I need
>> to setup a second server with the same, but slightly newer,
>> ports recompiled from source.
>> 
>> Is there an easy way to crate a port list
>
> Use the Root and Leaf sections from 'portmaster -l'
> (ports-mgmt/portmaster) and skip the Trunk and Branch sections.

Or just take the output from pkg_info directly; portmaster will figure
out the dependencies on its own, so including the non-leaf ports is no
problem.  The other tools (e.g., portupgrade) will do the same thing.

>> with compile options
>
> I try to use ports.conf (ports-mgmt/portconf) for this, but it does not
> include the OPTIONS framework (/var/db/ports/*/options) .
>
> Maybe someone else can help further on this point, and

Seems like a one-liner of a shell script.  Maybe something like;
# cd /usr/ports; for portname in `cat /path/to/port/list` ; do (cd $portname; make config) ; done
(untested)

>> and feed a build command on the second server with it?
>
> on this one as well. (I use my own script portsinstall.sh for this, it
> uses a list like x11/xorg x11/kde3 devel/glib20 ...)

My one-liner assumes a similar list.

A brute force approach is to feed the whole list into portinstall (or
portmaster, etc.).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44wsq0wyam.fsf>