Currently cups is using a pam_stack-using pamd file. This makes it incompatible with openpam. The attached patch, applied over current ebuild, makes possible to use include notation for pamd file so that it works fine on openpam (so G/FBSD), but moves the dependency over virtual/pam (so at least sys-libs/pam 0.78). It also uses the pam eclass which is still not in tree (see the dependency bug), as the pamd_mimic_system function is quite useful in this case to avoid having the file there. Editing the ebuild I also made the amd64 patch unconditional as it should work fine on x86 and other archs, too; I removed the virtual/libc dependency; I used newinitd to install the rc6 file; I also changed the two sed lines to a single sed call (quicker). Probably this would require a revision bump because of the change in deps. Thanks, Diego
Created attachment 59266 [details, diff] Ebuild patch
fixed in -r3