Refactor

/cc @opscode-cookbooks/release-engineers 
So, Solaris package management is pretty fun. And by fun, I mean complicated:
https://github.com/opscode/chef/blob/master/lib/chef/platform/provider_mapping.rb#L337-L350

Solaris 10 and earlier use the pkgadd/pkgrm/pkginfo tools for managing SVR4 packages:
https://github.com/opscode/chef/blob/master/lib/chef/provider/package/solaris.rb

Solaris 11 switched to IPS packages (mostly) using the pkg command:
https://github.com/opscode/chef/blob/master/lib/chef/provider/package/ips.rb

But... they still kept the old package management tools around so you could still install old SVR4 packages: https://docs.oracle.com/cd/E23824_01/html/E24456/gljrb.html

Besides the official package repos, there are the community repos, but I think OpenCSW is the only one left at this point. OpenCSW has its own package manager, pkgutil, and installs everything in its own directory under /opt. There are a lot of packages that aren't in the official repositories, which are in OpenCSW (and I think vice-versa).