[indiana-discuss] how to create a fully functional mirror of pkg.opensolaris.org
vinz meier
vm at digicomp.ch
Fri Feb 6 13:02:49 PST 2009
hello
as I've been trying to get a working IPS mirror including the metadata for quite some time, I thought I would post it how to do it if someone needs to do this as well
mkdir pkg
cd pkg
pkgrecv -s http://pkg.opensolaris.org -n > opensol.index
for i in `cat opensol.index`; do pkgrecv -s http://pkg.opensolaris.org $i; done
for i in `cat opensol.index`
do
pkg=`echo $i|awk -F/ '{print $2}' |awk -F@ '{print $1}'`
echo import $pkg $i
trans=`pkgsend -s http://localhost:10000 open $i`
$trans
pkgsend -s http://localhost:10000 include -d $pkg $pkg/manifest
pkgsend -s http://localhost:10000 close
done
credits go to Karthik S S for the fetching part
regards
vinz
--
This message posted from opensolaris.org
More information about the indiana-discuss
mailing list