pkgname=`echo $file | sed -e "s:\/var\/db\/pkg\/::" -e "s:\/CONTENTS::"`
totals=`cat $file|grep "obj"|awk '{ print $2 }' | sed "s/ /\\ /" | xargs du -scb | grep total | cut -f 1`
totals=`cat $file|grep "obj"|awk '{ print $2 }' | sed "s/ /\\ /" | xargs -r du -scb | grep total | cut -f 1`
size=0
for i in $totals ; do