From 5f6fd14df10e3f11ef628fbacdb1664c0c2e9194 Mon Sep 17 00:00:00 2001 From: jacob Date: Thu, 14 Jul 2005 21:10:04 +0000 Subject: [PATCH] add support for the snmp module. --- build/autoMakefile.am.toplevel | 4 ++-- build/autoconf/lustre-build.m4 | 18 ++++++++++++++++++ build/autogen.sh | 7 +++++++ build/buildcvs | 3 ++- build/lustre.spec.in | 7 ++++++- 5 files changed, 35 insertions(+), 4 deletions(-) diff --git a/build/autoMakefile.am.toplevel b/build/autoMakefile.am.toplevel index e42c725..5ecc7d1 100644 --- a/build/autoMakefile.am.toplevel +++ b/build/autoMakefile.am.toplevel @@ -1,7 +1,7 @@ AUTOMAKE_OPTIONS = foreign -SUBDIRS := . build @LIBSYSIO_SUBDIR@ portals lustre -DIST_SUBDIRS := build libsysio portals lustre +SUBDIRS := . build @LIBSYSIO_SUBDIR@ @SNMP_SUBDIR@ portals lustre +DIST_SUBDIRS := build @SNMP_DIST_SUBDIR@ libsysio portals lustre EXTRA_DIST := config.h.in diff --git a/build/autoconf/lustre-build.m4 b/build/autoconf/lustre-build.m4 index 8d0db0a..b2a516b 100644 --- a/build/autoconf/lustre-build.m4 +++ b/build/autoconf/lustre-build.m4 @@ -191,6 +191,16 @@ fi ]) # +# LB_PATH_SNMP +# +# check for in-tree snmp support +# +AC_DEFUN([LB_PATH_SNMP], +[LB_CHECK_FILE([$srcdir/snmp/lustre-snmp.c],[SNMP_DIST_SUBDIR="snmp"]) +AC_SUBST(SNMP_DIST_SUBDIR) +]) + +# # LB_CONFIG_MODULES # # Build kernel modules? @@ -444,6 +454,7 @@ LB_DARWIN_CONDITIONALS LP_CONDITIONALS LC_CONDITIONALS +LS_CONDITIONALS ]) # @@ -462,6 +473,7 @@ LB_PROG_CC LB_PATH_LIBSYSIO LB_PATH_CRAY_PORTALS +LB_PATH_SNMP LB_CONFIG_DOCS LB_CONFIG_UTILS @@ -474,6 +486,9 @@ LC_CONFIG_LIBLUSTRE LP_CONFIGURE LC_CONFIGURE +if test "$SNMP_DIST_SUBDIR" ; then + LS_CONFIGURE +fi LB_CONDITIONALS LB_CONFIG_HEADERS @@ -489,6 +504,9 @@ build/lustre.spec LP_CONFIG_FILES LC_CONFIG_FILES +if test "$SNMP_DIST_SUBDIR" ; then + LS_CONFIG_FILES +fi AC_SUBST(ac_configure_args) diff --git a/build/autogen.sh b/build/autogen.sh index 05be061..b27e0f9 100644 --- a/build/autogen.sh +++ b/build/autogen.sh @@ -78,6 +78,7 @@ check_version() { } echo "Checking for a complete tree..." +# required directories for dir in build portals lustre ; do if [ ! -d "$dir" ] ; then cat >&2 <lustre.files <>lustre.files echo '%attr(-, root, root) %{_libdir}/liblustre.so' >>lustre.files fi +if [ -d $RPM_BUILD_ROOT%{_libdir}/lustre/snmp ] ; then + echo '%attr(-, root, root) %{_libdir}/lustre/snmp' >>lustre.files + echo '%attr(-, root, root) %{_datadir}/lustre/snmp/mibs' >>lustre.files +fi + %files -f lustre.files %files modules -- 1.8.3.1