SBLIM RPM Instrumentation README
--------------------------------

This instrumentation module is part of the SBLIM project 
(http://oss.software.ibm.com/developerworks/opensource/sblim) and
provides information about installed RPM packages and files related to 
the packages. 

NEW: support for RPM V4 is available via the command line interface.

The RPM instrumentation was originaly written to the Native Provider 
Interface (NPI) and now ported to CMPI.


Prerequisites
------------- 

- CIMOM
  * SNIA CIMOM (http://www.opengroup.org/snia-cimom)
    SBLIM cmpi-adapter module (please use always the latest version
    (http://oss.software.ibm.com/developerworks/projects/sblim))
  or
  * Pegasus version 2.3 or higher (http://www.opengroup.org/pegasus)
    CMPI interface part of Pegasus

- the SBLIM cmpi-base module
  * please use always the latest base version
    (http://oss.software.ibm.com/developerworks/projects/sblim)

- RPM 3.x developer files (headers, libraries). 
  * please check the makefile for pathes, etc. before you build


Build Instructions
------------------

- Edit setting.cmpi, choose the appropriate CIMOM and update path
  information, if necessary
- Invoke "make testfiles" to test for the preconditions
- Invoke "make all" to build the providers
- Invoke "make install" to install the provider libraries 
  into the CIMOM
- If still necessary load the MOF file mof/Linux_RpmPackage.mof 
  into the CIMOM repository, follow the instructions for the 
  resepctive CIMOM


The relevant files are
----------------------

CIM Schema
----------
mof/Linux_RpmPackage.mof

Instrumentation Libraries
-------------------------
cmpiOSBase_RpmPackageProvider.c
cmpiOSBase_RpmFileCheckProvider.c
cmpiOSBase_RpmAssociatedFileProvider.c

Utility Libraries
-----------------
cimrpm.c
cimrpmv3.c
cimrpmv4.c


TODOs
-----

- Add more CIM_Checks
- Add update (=install support)
- Extend for DEB format
- Try with other CIMOMs (currently tested with SNIA CIMOM and Pegasus)
- Need better build and install support for the various CIMOMs



