I'm the Debian Maintainer for pam-pgsql and received a bug report that pam-pgsql cannot be built on Debian GNU/kFreeBSD the attached patch fixes this issue. Please apply this patch to the git tree for the next release. The original bug report is at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=544586
Regards
Jan Dittberner
Patch for FTBFS on GNU/kFreeBSD
I think this should be fixed with the buildsystem rewrite I made ( http://gitorious.org/~flameeyes/pam-pgsql/flameeyes-pam-pgsql ) as that does no longer try to guess where to install from the OS but rather from the used PAM implementation.