On Fri, Oct 10, 2014 at 11:37:24AM +0200 I heard the voice of
Mathieu Arnold, and lo! it spake thus:
>
> Easiest way to do it would be to remove php55-* and mod_php55-xxx
> and install their php56-* and mod_php56-xxx equivalents.
Pre-pkgng, I did it via creepy magic sed'ery in /var/db/pkg; change
the origins, then a regular portupgrade/portmaster will see the newer
versions and run with it. Post-pkgng, we can just use pkg set to
avoid some of the creepery.
I did the 55->56 on a machine about a month ago, and came up with the
below. It just spits out the commands, then I can eyeball to be sure
they're right and C&P into a term. Then check the 'pkg version',
should show all of them needing upgrades to 5.6.x.
-----8<------
#!/usr/bin/env perl
use strict;
use warnings;
# pkg query '%o' | grep php55 | $SELF
while(<STDIN>)
{
chomp;
my $old = $_;
(my $new = $_) =~ s/55/56/;
die "Couldn't find dir $new" unless -d "/usr/ports/$new";
print "pkg set -yo $old:$new\n";
}
-----8<------
--
Matthew Fuller (MF4839) | [email protected]
Systems/Network Administrator | http://www.over-yonder.net/~fullermd/
On the Internet, nobody can hear you scream.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"