Long-standing portupgrade vs. make config issue
Ian A. Tegebo
yontege at rescomp.berkeley.edu
Fri Jun 9 16:39:32 UTC 2006
On Thu, Jun 08, 2006 at 12:35:42PM -0400, Garance A Drosihn wrote:
> options. I do, at times, get prompted for the options
> of one port, answer that screen and walk away, only to
> later see that I was also prompted for the options of
> some other port.
You might want to check out a thread in freebsd-questions:
======================================================================
From: RW <list-freebsd-2004 at morbius.sent.com>
To: freebsd-questions at freebsd.org
Date: Mon, 27 Mar 2006 14:45:14 +0100
Subject: Re: ports and interactivity
...
> I want to do all the human work of evaluating options and
> making decisions up front
Try this:
--------------------------------------------------------------------------------------------
#!/bin/sh
# Get list of out-of-date ports
# This may take some time
plist=`pkg_version -ovl'<' |awk '{ print $1 }'`
# allow each out-of-date port to update it's config, and that of any new
# dependencies (dialog only runs when something has changed)
for port in $plist ; do
cd /usr/ports/${porg} && make config-recursive
done
======================================================================
I've modified this slightly to be:
----------------------------------------------------------------------
#!/bin/sh
origin=$1
PREFIX="/usr/ports"
echo Determing dependencies for $origin...
# You can change the target from 'all-depends-list' to:
# {build<para>ckage,run}-depends-list
path_list=$(cd ${PREFIX}/$origin; make all-depends-list)
for path in $path_list ; do
echo Configuring $(echo $path|sed "s#${PREFIX}/##")...
( cd $path ; sudo make config-recursive )
done
----------------------------------------------------------------------
--
Ian Tegebo
Residential Computing
University of California Berkeley
More information about the freebsd-ports
mailing list