I'm packaging kshutdown for Debian. The version 3.0 Beta 5 doesn't compile on our freebsd architectures. I tried to fix it by ifdef'ing the dbus parts in lock.cpp, but then, other dbus call failed. Sometimes they've got an extra define, sometimes they're just used if not on Windows, ...
The build logs can be found at https://buildd.debian.org/status/package.php?p=kshutdown&suite=sid .