It should probably just use pamd_mimic system-auth to use the system-auth stack. Currently the pam.d file will break for instance when pam_cracklib is not built at all (it is optional).
+*perdition-1.18 (15 Jun 2011) + + 15 Jun 2011; Eray Aslan <eras@gentoo.org> +perdition-1.18.ebuild: + Version bump. Fix pam.d file - bug #261687. Add berkdb USE flag - bug + #322207. +