Skip to contentSkip to conversation

Cluster Project branch, RHEL5, updated. cmirror_1_1_15-28-g3183d50

Cluster-devel [email protected] 1 participant 1 message Mar 31, 2008

lore
Share & tools
lore
#0 lore raw

This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Cluster Project".

http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=3183d505bd43e6d981686b86e97e92eea0f85341

The branch, RHEL5 has been updated

       via  3183d505bd43e6d981686b86e97e92eea0f85341 (commit)
       via  618d11c7da095abc619790ab1043dc841050d7a7 (commit)
      from  c1b276c491b0d6e625035b5063532abc3ce23ca4 (commit)

Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.

- Log ----------------------------------------------------------------- commit 3183d505bd43e6d981686b86e97e92eea0f85341

Author: Chris Feist <[email protected]>
Date:   Fri Mar 28 14:57:46 2008 -0500

Added apc_snmp to the main Makefile in the agents directory to make sure it is included in the build. (bz#438905)

commit 618d11c7da095abc619790ab1043dc841050d7a7

Author: jparsons <[email protected]>
Date:   Fri Mar 28 03:21:55 2008 -0400

Adds APC snmp fence agent into distribution.

This commit includes fence_apc_snmp in the fence package, and also places the apc mib file in /usr/share/snmp/mibs.

-----------------------------------------------------------------------

Summary of changes:

 fence/agents/Makefile                          |    3 +
 fence/agents/{apc => apc_snmp}/Makefile        |   12 +-
 fence/agents/apc_snmp/fence_apc_snmp.py        |  463 ++++++++++++++++++++++++
 fence/agents/{apc => apc_snmp}/powernet369.mib |    0 
 fence/configure                                |    7 +
 fence/make/defines.mk.input                    |    4 +
 6 files changed, 486 insertions(+), 3 deletions(-)
 copy fence/agents/{apc => apc_snmp}/Makefile (86%)
 create mode 100755 fence/agents/apc_snmp/fence_apc_snmp.py
 copy fence/agents/{apc => apc_snmp}/powernet369.mib (100%)
fence/agents/Makefile +3 -0
index 37147cb..c41aedd 100644
@@ -16,6 +16,7 @@ include ${top_srcdir}/make/defines.mk
 
 all:
 	${MAKE} -C apc all
+	${MAKE} -C apc_snmp all
 	${MAKE} -C bladecenter all
 	${MAKE} -C brocade all
 	${MAKE} -C bullpap all
@@ -41,6 +42,7 @@ all:
 
 install: all
 	${MAKE} -C apc install
+	${MAKE} -C apc_snmp install
 	${MAKE} -C bladecenter install
 	${MAKE} -C brocade install
 	${MAKE} -C bullpap install
@@ -66,6 +68,7 @@ install: all
 
 clean:
 	${MAKE} -C apc clean
+	${MAKE} -C apc_snmp clean
 	${MAKE} -C bladecenter clean
 	${MAKE} -C brocade clean
 	${MAKE} -C bullpap clean
fence/agents/apc_snmp/Makefile renamed from fence/agents/apc/Makefile +9 -3
similarity index 86%
copy from fence/agents/apc/Makefile
copy to fence/agents/apc_snmp/Makefile
index c33350a..29a0df7 100644
@@ -11,15 +11,16 @@
 ###############################################################################
 ###############################################################################
 
-SOURCE= fence_apc.py
-TARGET= fence_apc
+SOURCE= fence_apc_snmp.py
+TARGET= fence_apc_snmp
+RESOURCE= powernet369.mib
 
 top_srcdir=../..
 include ${top_srcdir}/make/defines.mk
 
 all: $(TARGET)
 
-fence_apc: fence_apc.py
+fence_apc_snmp: fence_apc_snmp.py
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
@@ -34,5 +35,10 @@ install: all
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+	if [ ! -d ${mibdir} ]; then \
+		install -d ${mibdir}; \
+	fi
+	install -m755 ${RESOURCE} ${mibdir}
+
 clean:
 	rm -f $(TARGET)
fence/agents/apc_snmp/fence_apc_snmp.py new file +463 -0

463 lines not on this page · raw message

fence/agents/apc_snmp/powernet369.mib renamed from fence/agents/apc/powernet369.mib +0 -0
similarity index 100%
copy from fence/agents/apc/powernet369.mib
copy to fence/agents/apc_snmp/powernet369.mib
fence/configure +7 -0
index 97d27e1..c40d098 100755
@@ -33,6 +33,7 @@ $ret = 0;
 	mandir  => \$mandir,
 	prefix => \$prefix,
 	sbindir => \$sbindir,
+	mibdir => \$mibdir,
 	initdir => \$initdir,
 	enable_xen => \$enable_xen,
 	verbose => \$verbose
@@ -49,6 +50,7 @@ $err = &GetOptions (\%options,
 		    'mandir=s',
 		    'prefix=s',
 		    'sbindir=s',
+		    'mibdir=s',
 		    'initdir=s',
 		    'sharedir=s',
 		    'enable_xen',
@@ -75,6 +77,7 @@ if ($help || !$err) {
   print "--mandir=\tthe base directory for man pages.  (Default: /usr/share/man)\n";
   print "--prefix=\tthe base directory to install into.  (Default: /)\n";
   print "--sbindir=\tthe base directory for system binaries.  (Default: /sbin)\n";
+  print "--mibdir=\tthe base directory for snmp MIB files.  (Default: /usr/share/snmp/mibs)\n";
   print "--initdir=\tthe base directory for init scripts.  (Default: /etc/init.d)\n";
   print "--sharedir=\tthe base directory for misc cluster files.  (Default: /usr/share/cluster)\n";
   print "--enable_xen\t\tEnable building of Xen-specific pieces\n";
@@ -108,6 +111,9 @@ if (!$mandir) {
 if (!$sbindir) {
   $sbindir="${prefix}/sbin";
 }
+if (!$mibdir) {
+  $mibdir="${prefix}/usr/share/snmp/mibs";
+}
 if (!$initdir) {
   $initdir="${prefix}/etc/init.d";
 }
@@ -135,6 +141,7 @@ while (<IFILE>) {
   $_ =~ s/\@CCSLIBDIR\@/$ccslibdir/;
   $_ =~ s/\@MANDIR\@/$mandir/;
   $_ =~ s/\@SBINDIR\@/$sbindir/;
+  $_ =~ s/\@MIBDIR\@/$mibdir/;
   $_ =~ s/\@INITDIR\@/$initdir/;
   $_ =~ s/\@SHAREDIR\@/$sharedir/;
   $_ =~ s/\@ENABLE_XEN\@/$enable_xen/;
fence/make/defines.mk.input +4 -0
index d19acf2..b270dea 100644
@@ -22,6 +22,10 @@ ccsincdir ?= ${DESTDIR}@CCSINCDIR@
 enable_xen ?= @ENABLE_XEN@
 initdir ?= ${DESTDIR}/@INITDIR@
 
+# MIB directory used by apc snmp agent
+mibdir ?= ${DESTDIR}/@MIBDIR@
+
+
 # Where's the kernel?
 KERNEL_SRC = @KERNEL_SRC@
 

hooks/post-receive
--
Cluster Project