The attached patch applied over current ebuild and the attached pamd file make pwauth's pamd file compatible with openpam (which doesn't use pam_stack.so and doesn't install in the same prefix the pam modules) and with amd64 no-lib32 profile (uses /lib64 instead of /lib). Dependency is moved to virtual/pam which requires sys-libs/pam-0.78, so a revbump is probably needed. I've also fixed sed syntax.
Created attachment 59301 [details, diff] Ebuild patch
Created attachment 59302 [details] pwauth.pam-include
In cvs now.