Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 2014 17:03:19 -0500
From:      "Matthew D. Fuller" <fullermd@over-yonder.net>
To:        Melvyn Sopacua <melvyn@magemana.nl>
Cc:        ports@freebsd.org, Kurt Jaeger <lists@opsec.eu>
Subject:   Re: Update php from 5.4 to 5.5 ?
Message-ID:  <20140618220319.GI86779@over-yonder.net>
In-Reply-To: <alpine.BSF.2.00.1406182147100.74551@fire.magemana.nl>
References:  <20140618110920.GI2586@home.opsec.eu> <20140618183324.GL2586@home.opsec.eu> <alpine.BSF.2.00.1406182147100.74551@fire.magemana.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 18, 2014 at 10:05:46PM +0200 I heard the voice of
Melvyn Sopacua, and lo! it spake thus:
> 
> You can do the following:
> pkg query -e '%o ~ */php5-*' '%o'| while read origin; do \
> new_origin=`echo ${origin} | sed -e 's/php5-/php55-/'`
> echo portmaster -o ${new_origin} ${origin}; done > update.sh

You could just use 'pkg set -o' on these instead to shuffle the origin
in the pkgdb, then just a regular round of
portmaster/portupgrade/whatever will look at versions in the new
place.  That's equivalent to how I've done such migrations in the past
with pkgog (creepy sed'ery through /var/db/pkg).


-- 
Matthew Fuller     (MF4839)   |  fullermd@over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.



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