Please add use flag ( configure option) and provide pam files to support PAM autorization on MariaDB vi pam plugin. More info : https://kb.askmonty.org/en/pam-authentication-plugin/
The auth_pam.so plugin is already built with the current mariadb ebuilds if pam can be found and USE="-minimal" The PAM configuration appears to be up to the user, so there is no file to push out for that, but I did note the web page in the post-install notes. @mysql-bugs: I have a patch queued in my repo. It solves the automagic on virtual/pam. This is a trivial change so I will push a patch out soon if no other bugs are solved in the next day or so.
Fix is now InOverlay (mysql)
Fix is also in Portage http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/mysql-v2.eclass?r1=1.23&r2=1.24 http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/mysql-cmake.eclass?r1=1.13&r2=1.14 http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/mysql-autotools.eclass?r1=1.14&r2=1.15
InCVS