painful process.. php53/etc

Michael Scheidell scheidell at FreeBSD.org
Fri Jun 22 17:10:59 UTC 2012



On 6/22/12 12:22 PM, Matthew D. Fuller wrote:
> You'd have to -o anything that moved.  Which in this case, would be
> php5-everything; probably nothing else though.
>
>
this is easier:  didn't need to touch anything, no port, no pkg, didn't 
need to compile anything

update ports tree, then: (dont try this at home, we are trained 
professionals on a test track):
get rid of anything that you accidentally updated to php5 (5.4)
grep php5-*-5.4 /var/db/pkg/*
grep php5-5.4 /var/db/pkg/*


#!/bin/sh
cd /var/db/pkg || exit
tar -zcvf /var/tmp/pkg.tgz ./

a=`ls -d php5-5.3* | cut -f2 -d '-'`
mv php5-${a}/ php53-${a}/

a=`ls -d php5-*-5.3* | cut -f2,3 -d '-'`
for x in $a; do
mv php5-${x} php53-${x}
done

sed -i '' -e 's/php5-5.3/php53-5.3/g' */*
sed -i '' -e '/php5-*-5.3/s/php5-/php53-/g' */*


THEN, update php5-gd.

-- 
Michael Scheidell, CTO
 >*| * SECNAP Network Security Corporation
d: +1.561.948.2259
w: http://people.freebsd.org/~scheidell


More information about the freebsd-ports mailing list