Please add support in drbd for managing cluster-related configure flags, or find a way to support Pacemaker clusters. Versions older than drbd-8.3.2 are already stabled on gentoo and do not have full upstream support for this (see url) so could be ignored. You should turn on --with-pacemaker for OpenAIS/Pacemaker (aka "heartbeat 3") clusters, and --with-heartbeat (aka "heartbeat 2") for Heartbeat-2.0.x clusters. Relevant ebuilds are already in portage for heartbeat2 (sys-cluster/heartbeat and friends) and in scarabeus overlay for pacemaker clusters (sys-cluster/pacemaker and friends). There should be no reason whatsoever to turn on both configure options at the same time, but it shouldn't harm either: they should just affect which files gets installed. Turning on both of them could be an easy way to support pacemaker clusters. Heartbeat-2 clusters are no more developed by upstream and the future will be only about pacemaker clusters (see http://www.linux-ha.org/ )
I modified the current drbd-8.3.6 ebuild enabling both --with-heartbeat (was already on) and --with-pacemaker (was off), the latter will add this files: /usr/lib/drbd/crm-fence-peer.sh /usr/lib/drbd/crm-unfence-peer.sh /usr/lib/ocf/resource.d/linbit/drbd there are no other differences that I know of. First tests shows drbd is running fine on my system (with a running pacemaker cluster).
Fixed in 8.3.8 +*drbd-8.3.8 (26 Jun 2010) + + 26 Jun 2010; Kacper Kowalik <xarthisius@gentoo.org> +drbd-8.3.8.ebuild, + metadata.xml: + Version bump +