From: Gareth S B. <bes...@us...> - 2005-05-18 15:02:28
|
Update of /cvsroot/sblim/sfcb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9622 Modified Files: Makefile.am sfcbrepos.sh.in Added Files: interop.mof Log Message: added suport to autocreate root/interop repository for indication support Index: Makefile.am =================================================================== RCS file: /cvsroot/sblim/sfcb/Makefile.am,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- Makefile.am 2 May 2005 01:35:06 -0000 1.19 +++ Makefile.am 18 May 2005 15:02:16 -0000 1.20 @@ -194,6 +194,7 @@ test -d $(DESTDIR)$(sfcbstatedir)/stage/mofs || $(mkdir_p) $(DESTDIR)$(sfcbstatedir)/stage/mofs test -d $(DESTDIR)$(sfcbstatedir)/stage/regs || $(mkdir_p) $(DESTDIR)$(sfcbstatedir)/stage/regs $(INSTALL_DATA) $(srcdir)/default.reg $(DESTDIR)$(sfcbstatedir)/stage + $(INSTALL_DATA) $(srcdir)/interop.mof $(DESTDIR)$(sfcbstatedir)/stage test -d $(DESTDIR)$(sfcbdocdir) || $(mkdir_p) $(DESTDIR)$(sfcbdocdir) $(INSTALL_DATA) $(srcdir)/README $(srcdir)/AUTHORS $(srcdir)/COPYING $(DESTDIR)$(sfcbdocdir) $(INSTALL_DATA) $(srcdir)/doc/sfcb.html $(DESTDIR)$(sfcbdocdir) @@ -201,6 +202,7 @@ uninstall-local: rm -f $(DESTDIR)$(sysconfdir)/sfcb/sfcb.cfg rm -f $(DESTDIR)$(sfcbstatedir)/stage/default.reg + rm -f $(DESTDIR)$(sfcbstatedir)/stage/interop.mof rm -f $(DESTDIR)$(sfcbdocdir)/* -rmdir $(sysconfdir)/sfcb -rmdir $(sfcbdocdir) --- NEW FILE: interop.mof --- // // interop base classes for mofc/ // // // =================================================================== // dummy classes to get event classes loaded by mofc // =================================================================== class DMY_IndicationSubscription : CIM_IndicationSubscription { }; class DMY_IndicationFilter : CIM_IndicationFilter { }; class DMY_ProcessIndication : CIM_ProcessIndication { }; class DMY_InstCreation : CIM_InstCreation { }; class DMY_ListenerDestinationCIMXML : CIM_ListenerDestinationCIMXML { }; Index: sfcbrepos.sh.in =================================================================== RCS file: /cvsroot/sblim/sfcb/sfcbrepos.sh.in,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- sfcbrepos.sh.in 27 Apr 2005 17:48:29 -0000 1.8 +++ sfcbrepos.sh.in 18 May 2005 15:02:16 -0000 1.9 @@ -91,6 +91,7 @@ exit 1 fi fi + if [ -f $registrationdir/providerRegister ] then mv -f $registrationdir/providerRegister $registrationdir/providerRegister.previous @@ -100,13 +101,16 @@ exit 1 fi fi + mkdir -p $registrationdir/repository/root/cimv2 && + mkdir -p $registrationdir/repository/root/interop && cp $stagingdir/default.reg $registrationdir/providerRegister if [ $? != 0 ] then - echo "Failed to create default repository and registry" >&2 + echo "Failed to create default repositories and registry" >&2 exit 1 fi + if ls $stagingdir/regs/*.reg > /dev/null 2>&1 then if ! cat $stagingdir/regs/*.reg >> $registrationdir/providerRegister @@ -115,6 +119,7 @@ exit 1 fi fi + if ls $stagingdir/mofs/*.mof > /dev/null 2>&1 then if ! sfcbmof -o $registrationdir/repository/root/cimv2/classSchemas -I $cimschemadir -i CIM_Schema.mof $stagingdir/mofs/*.mof @@ -123,6 +128,14 @@ exit 1 fi fi + + # Setup interop class support + if ! sfcbmof -o $registrationdir/repository/root/interop/classSchemas -I $cimschemadir -i CIM_Schema.mof $stagingdir/interop.mof + then + echo Failed compiling interop MOF file. >&2 + exit 1 + fi + else echo Could not find required staging files. Please check your setup. >&2 exit 1 |