copy of http://hg.linux-ha.org/glue/