[Cook-2154] Add SmartOS to openjdk recipe

This fixes the package naming for SmartOS as well as making it possible to pre-accept the license agreement that pkgsrc would otherwise ask for interactively.

I also noticed a bug in the default attributes, where "jdk_version" is used instead of node attributes.