From a contributed pull request: https://github.com/cfengine/masterfiles/pull/1504
In the package module: pkgsrc read -r -u 0 is used.
-u 0 doesn't work on Solaris or NetBSD. Because of this the pkgsrc modules doesn't work on these platforms.
-u 0 dictates to read from STDIN, that is the default. Becuase of this is harmless to remove the -u 0 parameter. I have tested in Solaris 11 using the pkgsrc module.