+ printf '%s installing %s\n' $pkg $dir/$name
+
+ fhash=$(pkgfileinfo hash $path)
+ mode=$(pkgfileinfo mode $path)
+ ftype=$(pkgfileinfo filetype $path)
+ : ${owner:=$(pkgfileinfo username $path)}
+ : ${group:=$(pkgfileinfo groupname $path)}
+
+ # TODO if the file already exists, and is the correct
+ # hash or directory, do nothing
+