diff -p1 -urN fence-agents-4.0.2-orig/fence/agents/brocade/Makefile.in fence-agents-4.0.2/fence/agents/brocade/Makefile.in
--- fence-agents-4.0.2-orig/fence/agents/brocade/Makefile.in 2013-11-04 17:27:27.400389591 +0100
+++ fence-agents-4.0.2/fence/agents/brocade/Makefile.in 2013-11-04 17:27:49.298515272 +0100
@@ -55,3 +55,3 @@ DIST_COMMON = $(srcdir)/Makefile.am $(sr
$(top_srcdir)/make/fencebuild.mk \
- $(top_srcdir)/make/fencemanperl.mk
+ $(top_srcdir)/make/fenceman.mk
subdir = fence/agents/brocade
@@ -243,3 +243,3 @@ MAINTAINERCLEANFILES = Makefile.in
TARGET = fence_brocade
-SRC = $(TARGET).pl
+SRC = $(TARGET).py
EXTRA_DIST = $(SRC)
@@ -250,3 +250,3 @@ all: all-am
.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/make/fencebuild.mk $(top_srcdir)/make/fencemanperl.mk $(am__configure_deps)
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/make/fencebuild.mk $(top_srcdir)/make/fenceman.mk $(am__configure_deps)
@for dep in $?; do \
@@ -271,3 +271,3 @@ Makefile: $(srcdir)/Makefile.in $(top_bu
esac;
-$(top_srcdir)/make/fencebuild.mk $(top_srcdir)/make/fencemanperl.mk:
+$(top_srcdir)/make/fencebuild.mk $(top_srcdir)/make/fenceman.mk:
@@ -550,3 +550,4 @@ $(TARGET): $(SRC)
set -e && \
- perl $(TARGET) -o metadata > .$@.tmp && \
+ PYTHONPATH=$(abs_srcdir)/../lib:$(abs_builddir)/../lib \
+ python $^ -o metadata > .$@.tmp && \
xsltproc $(top_srcdir)/fence/agents/lib/fence2man.xsl .$@.tmp > $@