summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-admin/omsa/Manifest41
-rw-r--r--app-admin/omsa/files/4.5/80openmanage1
-rw-r--r--app-admin/omsa/files/4.5/builddriver.sh124
-rw-r--r--app-admin/omsa/files/4.5/confd-dellomsa-daemons10
-rw-r--r--app-admin/omsa/files/4.5/dcddks-2.6.14.patch31
-rw-r--r--app-admin/omsa/files/4.5/dellomsa-daemons148
-rw-r--r--app-admin/omsa/files/4.5/dellomsa-drivers138
-rw-r--r--app-admin/omsa/files/4.5/omreg.cfg36
-rw-r--r--app-admin/omsa/files/4.5/omsa-4.5-hapi.patch213
-rw-r--r--app-admin/omsa/files/digest-omsa-4.56
-rw-r--r--app-admin/omsa/omsa-4.5.ebuild522
11 files changed, 1270 insertions, 0 deletions
diff --git a/app-admin/omsa/Manifest b/app-admin/omsa/Manifest
new file mode 100644
index 0000000..2282d08
--- /dev/null
+++ b/app-admin/omsa/Manifest
@@ -0,0 +1,41 @@
+AUX 4.5/80openmanage 241 RMD160 0a915d2bc2ca2915f375f85a68614d2782002813 SHA1 700bde21c9a6004908f9856cb89cc38326958101 SHA256 7bb82134aead66c77b3cfc1b8328f7445eab9c8cdd86cc1da85f248def70b7aa
+MD5 a94243ebcb94537426adef2addbde42b files/4.5/80openmanage 241
+RMD160 0a915d2bc2ca2915f375f85a68614d2782002813 files/4.5/80openmanage 241
+SHA256 7bb82134aead66c77b3cfc1b8328f7445eab9c8cdd86cc1da85f248def70b7aa files/4.5/80openmanage 241
+AUX 4.5/builddriver.sh 3870 RMD160 de2a8bc118082b9653f2fc492ff5ce5974c8256d SHA1 b55cf0ae2701907b84998c0c4ca9dcf0d331dd96 SHA256 75b3544a93ea0b42e663721868b5ad0a0079177f6125d92a4826e96d3943094a
+MD5 708c8f7fcb88c3d3c248c6668c28fe28 files/4.5/builddriver.sh 3870
+RMD160 de2a8bc118082b9653f2fc492ff5ce5974c8256d files/4.5/builddriver.sh 3870
+SHA256 75b3544a93ea0b42e663721868b5ad0a0079177f6125d92a4826e96d3943094a files/4.5/builddriver.sh 3870
+AUX 4.5/confd-dellomsa-daemons 179 RMD160 124f4ef150137e87750272404f05197b824c0a92 SHA1 8792a25a87d46f487fb93a732fbad4a8016a15cd SHA256 54746d1a7210d8b3d36919776e6f2eabed217806edd477a197d8f444d4ca580b
+MD5 dc3778d075679c37da002a6662d6b00f files/4.5/confd-dellomsa-daemons 179
+RMD160 124f4ef150137e87750272404f05197b824c0a92 files/4.5/confd-dellomsa-daemons 179
+SHA256 54746d1a7210d8b3d36919776e6f2eabed217806edd477a197d8f444d4ca580b files/4.5/confd-dellomsa-daemons 179
+AUX 4.5/dcddks-2.6.14.patch 576 RMD160 3026bac681bde82c6020118e9bad565f73b66e05 SHA1 234d9f1fff86d9d5e6f714170a297124c929c733 SHA256 4f970c0d99d7bd7be702e9f88f097f96b9b6b593622662cfe8ffd51fad2cc9ae
+MD5 8818dbfd13002540e6714bf06987b3b1 files/4.5/dcddks-2.6.14.patch 576
+RMD160 3026bac681bde82c6020118e9bad565f73b66e05 files/4.5/dcddks-2.6.14.patch 576
+SHA256 4f970c0d99d7bd7be702e9f88f097f96b9b6b593622662cfe8ffd51fad2cc9ae files/4.5/dcddks-2.6.14.patch 576
+AUX 4.5/dellomsa-daemons 3782 RMD160 fa48e4f2feace076f5b40be0657cf64e6cd9b10b SHA1 3659c1539201e9c9f51e751700543f10bae61bd2 SHA256 fed247ac0dcbbb1fb620da796968e97291013d3f030860dfad0827b5992c0f6f
+MD5 834f66aa7c0c086f596cd28e1540eb4a files/4.5/dellomsa-daemons 3782
+RMD160 fa48e4f2feace076f5b40be0657cf64e6cd9b10b files/4.5/dellomsa-daemons 3782
+SHA256 fed247ac0dcbbb1fb620da796968e97291013d3f030860dfad0827b5992c0f6f files/4.5/dellomsa-daemons 3782
+AUX 4.5/dellomsa-drivers 4407 RMD160 344fb27f5043bfa97fa3eafb449702ce3740e347 SHA1 b8abe26a0bcf9821d66420ab6d7b5c79b56f1b1a SHA256 267df46cf2ad9c3fcc2e5badc661eca86ee3add402ac305f8715a1d0a845a5fb
+MD5 6c80e2eab283a6650b55401d0899e170 files/4.5/dellomsa-drivers 4407
+RMD160 344fb27f5043bfa97fa3eafb449702ce3740e347 files/4.5/dellomsa-drivers 4407
+SHA256 267df46cf2ad9c3fcc2e5badc661eca86ee3add402ac305f8715a1d0a845a5fb files/4.5/dellomsa-drivers 4407
+AUX 4.5/omreg.cfg 1979 RMD160 fe7b0fbd7df49226ea8dc2fdacc4db8bd43cdff7 SHA1 9e2cd82891a7c3b3c012257ab072ee219cf10aba SHA256 54ebb6c619f6f003981f031fd2f3a38f9d87c8ec891d92875810f707a1578f33
+MD5 bfef0ac4c4ebe294a6938f98f918bb81 files/4.5/omreg.cfg 1979
+RMD160 fe7b0fbd7df49226ea8dc2fdacc4db8bd43cdff7 files/4.5/omreg.cfg 1979
+SHA256 54ebb6c619f6f003981f031fd2f3a38f9d87c8ec891d92875810f707a1578f33 files/4.5/omreg.cfg 1979
+AUX 4.5/omsa-4.5-hapi.patch 5515 RMD160 73f97251e6d9edbcde038f44fe4adfa95d8f22d1 SHA1 7f9b539745d2c386162f2cb88c4ef5437739a95a SHA256 0be33dcb48e2b7416a81fe64de72c201776aa1ced0e5438bd7d12a4c479b5ee3
+MD5 e5afc0a8a63e2fc43daab7de8f9b3228 files/4.5/omsa-4.5-hapi.patch 5515
+RMD160 73f97251e6d9edbcde038f44fe4adfa95d8f22d1 files/4.5/omsa-4.5-hapi.patch 5515
+SHA256 0be33dcb48e2b7416a81fe64de72c201776aa1ced0e5438bd7d12a4c479b5ee3 files/4.5/omsa-4.5-hapi.patch 5515
+DIST OMI-SrvAdmin-Dell-Web-LX-450-32-335_A00.tar.gz 66024553 RMD160 4d3eb0addbf5b2b92975790b78859528a88a9e3b SHA1 2f38dd57f005ce66ec8bb297ef539fa1c879e096 SHA256 0e59a04060c956270a3ec7a6ea8ec203b430d39330b7da588b8880559606e22e
+DIST compat-libstdc++-296-2.96-132.fc4.i386.rpm 178657 RMD160 a0111e5024bc9f80de0ed74976ad35a021211cce SHA1 845f40d01d93733ccce6cfd1dbc01e0912ae4c18 SHA256 0f4d0394c4f746bfc6418e8fd6b46a496f742a16d4bb96589cbe56b4975f94fd
+EBUILD omsa-4.5.ebuild 24050 RMD160 d595e5f950b0b3135489ab7645d9a9afd919538f SHA1 484d05a0d907c10aceadec44d00913d414ef51ef SHA256 f2e884ae52a9099c7a835938d74cfb4020049ed9bb0804a8b567895fb15464e7
+MD5 cd736bb6dd366862aeeaed6cd44c2f03 omsa-4.5.ebuild 24050
+RMD160 d595e5f950b0b3135489ab7645d9a9afd919538f omsa-4.5.ebuild 24050
+SHA256 f2e884ae52a9099c7a835938d74cfb4020049ed9bb0804a8b567895fb15464e7 omsa-4.5.ebuild 24050
+MD5 60ea96417e8fa789ddb09327a174574b files/digest-omsa-4.5 632
+RMD160 702ba89f07468e76c32164cef91334d2a7d9ffa4 files/digest-omsa-4.5 632
+SHA256 1b10b8caa10086908be9e465aa94f12c973f0eb2b09369bd8afed7282b5c7193 files/digest-omsa-4.5 632
diff --git a/app-admin/omsa/files/4.5/80openmanage b/app-admin/omsa/files/4.5/80openmanage
new file mode 100644
index 0000000..2a9ff76
--- /dev/null
+++ b/app-admin/omsa/files/4.5/80openmanage
@@ -0,0 +1 @@
+LDPATH=/opt/dell/srvadmin/dataeng/bin:/opt/dell/srvadmin/hapi/bin:/opt/dell/srvadmin/oma/bin:/opt/dell/srvadmin/omsa/bin:/opt/dell/srvadmin/shared/bin:/opt/dell/srvadmin/sm:/opt/dell/srvadmin/sm/dellvl:/usr/X11R6/lib:/opt/dell/srvadmin/lib/
diff --git a/app-admin/omsa/files/4.5/builddriver.sh b/app-admin/omsa/files/4.5/builddriver.sh
new file mode 100644
index 0000000..b0e5701
--- /dev/null
+++ b/app-admin/omsa/files/4.5/builddriver.sh
@@ -0,0 +1,124 @@
+#!/bin/sh
+
+# Wouter Coppens <wouter.coppens@dedigate.com>
+
+if [ "$1" = "" ]; then
+ echo "USAGE: `basename $0` <kernelsrcdir>"
+ exit 1
+fi
+KERNELDIR=$1
+
+MODULE_LIST="dcdbas dcdesm dcdipm dcdtvm"
+
+# Let's find the install path
+if [ ! -f /etc/omreg.cfg ]; then
+ echo "ERROR: File /etc/omreg.cfg is missing"
+ exit 1
+fi
+HAPI_INSTALL_PATH=`grep hapi.installpath /etc/omreg.cfg | cut -d = -f2`
+if [ ! -d ${HAPI_INSTALL_PATH} ]; then
+ echo "ERROR: hapi install path cannot be found"
+ exit 1
+fi
+
+# check that gcc is new enough
+GCC_VER=`gcc -dumpversion 2>/dev/null`
+if [ $? != 0 ]; then
+ echo "ERROR: GCC not found"
+ exit 1
+fi
+# Use gcc version to determine which precompiled objects to use
+GCC_MAJORVER=`echo ${GCC_VER} | sed "s/\..*//"`
+GCC_MINORVER=`echo ${GCC_VER} | sed "s/.\.//" | sed "s/\..*//"`
+if [ ${GCC_MAJORVER} -lt 3 ]; then
+ DKS_OBJ_SUBDIR="objgcc296"
+elif [ ${GCC_MAJORVER} -eq 3 ] && [ ${GCC_MINORVER} -lt 3 ]; then
+ DKS_OBJ_SUBDIR="objgcc32"
+else
+ DKS_OBJ_SUBDIR="objgcc34"
+fi
+
+# TODO: find out proc_arch:
+# For now it only works for x86
+PROC_ARCH="x86"
+if [ -f "${HAPI_INSTALL_PATH}/bin/dchcfg64" ]; then
+ BIT_SIZE="64"
+else
+ BIT_SIZE="32"
+fi
+
+
+# Kernel settings
+if [ ! -d $KERNELDIR ]; then
+ echo "ERROR: ${KERNELDIR} does not exist or is not directory"
+ exit 1
+fi
+if [ -f $KERNELDIR/Makefile ]; then
+ KERNEL_VERSION=`head -n3 $KERNELDIR/Makefile | grep VERSION | cut -d = -f 2`
+ KERNEL_PATCHLEVEL=`head -n3 $KERNELDIR/Makefile | grep PATCHLEVEL | cut -d = -f 2`
+ KERNEL_SUBLEVEL=`head -n3 $KERNELDIR/Makefile | grep SUBLEVEL | cut -d = -f 2`
+ if [ ${KERNEL_VERSION} -gt 2 ]; then
+ LOC_KERNEL_IS_GT_2_4=1
+ elif [ ${KERNEL_VERSION} -eq 2 ] && [ ${KERNEL_PATCHLEVEL} -gt 4 ]; then
+ LOC_KERNEL_IS_GT_2_4=1
+ else
+ echo "ERROR: Only kernels starting at 2.6 are supported"
+ exit 1
+ fi
+fi
+if [ ! -f $KERNELDIR/.config ]; then
+ echo "ERROR: Kernel in ${KERNELDIR} does not have .config"
+ exit 1
+fi
+# check that given kernel has CONFIG_REGPARM enabled
+RETVAL=`grep -q CONFIG_REGPARM $KERNELDIR/.config`
+if [ $? -eq 0 ]; then
+ echo -n "CONFIG_REGPARM found: "
+ RETVAL=`grep -q CONFIG_REGPARM=y $KERNELDIR/.config`
+ if [ $? -eq 0 ]; then
+ echo "enabled, compiling drivers."
+ else
+ echo "disabled, not compiling drivers."
+ exit 0
+ fi
+else
+ echo "ERROR: CONFIG_REGPARM option not found in .config?"
+ exit 1
+fi
+
+# Set up DKS path variables HAPI_INSTALL_PATH
+DKS_INSTALL_BASE_DIR="${HAPI_INSTALL_PATH}/drivers"
+DKS_VARDATA_BASE_DIR="${DKS_INSTALL_BASE_DIR}/${PROC_ARCH}/dks"
+
+# compile the drivers
+
+mkdir -p /tmp/buildtmp.$$
+
+# Prepare common
+cp -a ${DKS_VARDATA_BASE_DIR}/common /tmp/buildtmp.$$
+# if kernel >= 2.6.14, we need to patch the common files
+if [ ${KERNEL_VERSION} -eq 2 ] && [ ${KERNEL_PATCHLEVEL} -eq 6 ] && [ ${KERNEL_SUBLEVEL} -gt 13 ]; then
+ cd /tmp/buildtmp.$$
+ patch -p0 < ${HAPI_INSTALL_PATH}/bin/dcddks-2.6.14.patch
+fi
+for MODULE in ${MODULE_LIST}; do
+ rm -rf /tmp/buildtmp.$$/${MODULE}
+ mkdir -p /tmp/buildtmp.$$/${MODULE}
+ # Make links to common files
+ cd /tmp/buildtmp.$$/common
+ for FILE in `ls *.c *.h`; do
+ ln -sf /tmp/buildtmp.$$/common/${FILE} /tmp/buildtmp.$$/${MODULE}/${FILE}
+ done
+ #Copy file to the DKS build directory
+ cp -fp ${DKS_VARDATA_BASE_DIR}/${MODULE}/*.mak /tmp/buildtmp.$$/${MODULE}
+ cp -fp ${DKS_VARDATA_BASE_DIR}/${MODULE}/${DKS_OBJ_SUBDIR}/* /tmp/buildtmp.$$/${MODULE}
+ mv -f /tmp/buildtmp.$$/${MODULE}/*.mak /tmp/buildtmp.$$/${MODULE}/Makefile
+ # Start compiling
+ (
+ cd /tmp/buildtmp.$$/${MODULE}
+ make -C ${KERNELDIR} SUBDIRS=${PWD} KERNEL_IS_GT_2_4=${LOC_KERNEL_IS_GT_2_4} modules
+ make -C ${KERNELDIR} SUBDIRS=${PWD} KERNEL_IS_GT_2_4=1 modules_install
+ )
+done
+
+rm -rf buildtmp.$$
diff --git a/app-admin/omsa/files/4.5/confd-dellomsa-daemons b/app-admin/omsa/files/4.5/confd-dellomsa-daemons
new file mode 100644
index 0000000..4e85df7
--- /dev/null
+++ b/app-admin/omsa/files/4.5/confd-dellomsa-daemons
@@ -0,0 +1,10 @@
+# dellomsa-daemons
+#
+# Dell OMSA daemons startup script
+#
+DATAENG_ENABLED=yes
+EVENTD_ENABLED=yes
+SNMP_ENABLED=yes
+RACSVC_ENABLED=no
+OMSAD_ENABLED=yes
+OMAWSD_ENABLED=yes
diff --git a/app-admin/omsa/files/4.5/dcddks-2.6.14.patch b/app-admin/omsa/files/4.5/dcddks-2.6.14.patch
new file mode 100644
index 0000000..4711d76
--- /dev/null
+++ b/app-admin/omsa/files/4.5/dcddks-2.6.14.patch
@@ -0,0 +1,31 @@
+diff -Naur common/dcddks.c common.new/dcddks.c
+--- common/dcddks.c 2005-09-19 18:12:06.000000000 +0200
++++ common.new/dcddks.c 2005-11-16 10:18:24.000000000 +0100
+@@ -572,11 +572,11 @@
+ int size)
+ {
+ int result;
+- result = verify_area(
++ result = (access_ok(
+ VERIFY_WRITE,
+ arg,
+ size
+- );
++ ) ? 0 : -EFAULT);
+ return result;
+ } // esm_verify_area_write
+
+@@ -589,11 +589,11 @@
+ int size)
+ {
+ int result;
+- result = verify_area(
++ result = (access_ok(
+ cmd_in,
+ arg,
+ size
+- );
++ ) ? 0 : -EFAULT);
+ return result;
+ } // esm_verify_area
+
diff --git a/app-admin/omsa/files/4.5/dellomsa-daemons b/app-admin/omsa/files/4.5/dellomsa-daemons
new file mode 100644
index 0000000..4684773
--- /dev/null
+++ b/app-admin/omsa/files/4.5/dellomsa-daemons
@@ -0,0 +1,148 @@
+#!/sbin/runscript
+#
+# dellomsa-daemons
+#
+# Dell OMSA daemons startup script
+#
+# This script takes care of starting OMSA daemons:
+# - data engine
+# - instrumentation (event syslog'ing) service
+# - OM common services
+# - racsvc
+# - snmp service
+# - omawsd (TODO, have to figure out how to get it working)
+#
+
+BITS=32
+## Source any dependent configuration here and set variables
+##
+# omsad
+. /etc/sysconfig/omsad.src
+OMSAD=${PROGRAM_PATH}/${PROGRAM_BIN}${BITS}
+# OMSAD doesn't create pid file
+# This directory is needed for OMSA. It should contain libstdc++2
+# from Redhat.
+RH_LIBS=${INSTALL_ROOT}/rh-libs
+
+# omawsd
+. /etc/sysconfig/omawsd.src
+OMAWSD=${INSTALL_ROOT}/iws/bin/linux/omaws${BITS}
+# OMAWSD does create pid file, but TODO
+
+
+DCSTORD=${INSTALL_ROOT}/dataeng/bin/dcstor${BITS}d
+DCEVTD=${INSTALL_ROOT}/dataeng/bin/dcevt${BITS}d
+DCSNMPD=${INSTALL_ROOT}/dataeng/bin/dcsnmp${BITS}d
+#RACSVC=${INSTALL_ROOT}/rac/bin/racsvc
+
+# ...and the pid files
+DCSTORD_PIDFILE=/var/run/dcstor${BITS}d.pid
+DCEVTD_PIDFILE=/var/run/dcevt${BITS}d.pid
+DCSNMPD_PIDFILE=/var/run/dcsnmp${BITS}d.pid
+#RACSVC_PIDFILE=/var/run/.dracsvc
+
+#export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${RH_LIBS}:${INSTALL_ROOT}/shared/bin/:${INSTALL_ROOT}/dataeng/bin/
+
+depend() {
+ use logger net dellomsa-drivers
+}
+
+checkconfig() {
+ if [ ! -d ${INSTALL_ROOT} ]; then
+ eerror "Directory ${INSTALL_ROOT} does not exist"
+ return 1
+ fi
+ if [ ! -x ${DCSTORD} ]; then
+ eerror "File ${DCSTORD} does not exist"
+ return 1
+ fi
+ if [ ! -x ${DCEVTD} ]; then
+ eerror "File ${DCEVTD} does not exist"
+ return 1
+ fi
+ if [ ! -x ${INSTALL_ROOT}/omil/prereqcheck/sysreport ]; then
+ eerror "File ${INSTALL_ROOT}/omil/prereqcheck/sysreport does not exist"
+ return 1
+ fi
+}
+
+start(){
+ checkconfig || return 1
+ if ["${DATAENG_ENABLE}" =="yes" ]; then
+
+ einfo "Starting Systems Management Data Engine"
+ ebegin "Starting dcstor${BITS}d"
+ start-stop-daemon --start --quiet --exec ${DCSTORD} \
+ --pidfile ${DCSTORD_PIDFILE}
+ eend $?
+
+ # start dcevt(32|64)d, but only if it's enabled
+ if [ "$EVENTD_ENABLED" == "yes" ]; then
+ ebegin "Starting dcevt${BITS}d"
+ start-stop-daemon --start --quiet --exec ${DCEVTD} \
+ --pidfile ${DCEVTD_PIDFILE}
+ eend $?
+ fi
+
+ # start dcsnmp(32|64)d, but only if it's enabled
+ if [ "${SNMP_ENABLED}" == "yes" ]; then
+ ebegin "Starting dcsnmp${BITS}d"
+ start-stop-daemon --start --quiet --exec ${DCSNMPD} \
+ --pidfile ${DCSNMPD_PIDFILE}
+ eend $?
+ fi
+
+ # start omsad(32|64), but only if it's enabled
+ if [ "${OMSAD_ENABLED}" == "yes" ]; then
+ ebegin "Starting OM Common Services"
+ start-stop-daemon --start --quiet --exec ${OMSAD}
+ eend $?
+ fi
+
+ # start omawsd, but only if it's enabled
+ if [ "${OMAWSD_ENABLED}" == "yes" ]; then
+ ebegin "Starting Secure Port Server"
+ ${OMAWSD} -run
+ eend $?
+ fi
+
+
+ fi
+}
+
+stop() {
+ if ["${DATAENG_ENABLE}" =="yes" ]; then
+ einfo "Stopping Systems Management Data Engine"
+
+ if [ "${OMAWSD_ENABLED}" == "yes" ]; then
+ ebegin "Stopping Secure Port Server"
+ start-stop-daemon --stop --quiet --exec ${OMAWSD}
+ eend $?
+ fi
+
+ if [ "${OMSAD_ENABLED}" == "yes" ]; then
+ ebegin "Stopping OM Common Services"
+ start-stop-daemon --stop --quiet --exec ${OMSAD}
+ eend $?
+ fi
+
+ if [ "${SNMP_ENABLED}" == "yes" ]; then
+ ebegin "Stopping dcsnmp${BITS}d"
+ start-stop-daemon --stop --quiet --exec ${DCSNMPD} \
+ --pidfile ${DCSNMPD_PIDFILE}
+ eend $?
+ fi
+
+ if [ "$EVENTD_ENABLED" == "yes" ]; then
+ ebegin "Stopping dcevt${BITS}d"
+ start-stop-daemon --stop --quiet --exec ${DCEVTD} \
+ --pidfile ${DCEVTD_PIDFILE}
+ eend $?
+ fi
+
+ ebegin "Stopping dcstor${BITS}d"
+ start-stop-daemon --stop --quiet --exec ${DCSTORD} \
+ --pidfile ${DCSTORD_PIDFILE}
+ eend $?
+ fi
+}
diff --git a/app-admin/omsa/files/4.5/dellomsa-drivers b/app-admin/omsa/files/4.5/dellomsa-drivers
new file mode 100644
index 0000000..7efc15a
--- /dev/null
+++ b/app-admin/omsa/files/4.5/dellomsa-drivers
@@ -0,0 +1,138 @@
+#!/sbin/runscript
+#
+# dellomsa-drivers
+#
+# Dell OMSA driver module loading script
+#
+# This script takes care of loading correct driver modules
+# (if available) for the OpenManage Server Administrator.
+# It checks that the server really is Dell and finds out
+# which environment driver to load (dcdesm/dcdtvm/dcdipm).
+# Module "dcdbas" is the base module and is always loaded.
+# This script also creates necessary devices nodes in /dev.
+#
+
+OMSADIR=/opt/dell/srvadmin
+
+depend() {
+ use logger net
+}
+
+checkconfig() {
+ if [ ! -d ${OMSADIR} ]; then
+ eerror "Directory ${OMSADIR} does not exist"
+ return 1
+ fi
+ if [ ! -x ${OMSADIR}/hapi/bin/dchcfg32 ]; then
+ eerror "File ${OMSADIR}/hapi/bin/dchcfg32 does not exist"
+ return 1
+ fi
+ if [ ! -x ${OMSADIR}/omil/prereqcheck/sysreport ]; then
+ eerror "File ${OMSADIR}/omil/prereqcheck/sysreport does not exist"
+ return 1
+ fi
+}
+
+checkmodules() {
+ # check that the system is Dell (output contains "System ID" if Dell)
+ ${OMSADIR}/omil/prereqcheck/sysreport | grep -q "System ID" && true
+ if [ $? -ne 0 ]; then
+ eerror "Non-Dell system, not loading drivers."
+ return 1
+ fi
+
+ # get the running kernel version
+ KVER=`/bin/uname -r`
+
+ # check that the modules exist
+ MODULESMISSING=0
+ MODULES="dcdbas dcdtvm dcdesm dcdipm"
+ for MODULE in ${MODULES}; do
+ if [ ! -f /lib/modules/${KVER}/extra/${MODULE}.ko ]; then
+ # some of the modules are missing
+ eerror "driver modules unavailable for ${KVER}"
+ return 1
+ fi
+ done
+}
+
+loadmodules() {
+ ebegin "Loading base dell module"
+ # first load the base module "dcdbas"
+ /sbin/modprobe dcdbas
+ eend $?
+
+ # check that dcdbas is now listed in /proc/devices
+ grep -q dcdbas /proc/devices && true
+ if [ $? -ne 0 ]; then
+ eerror "Error! Something is really wrong: dcdbas module was loaded"
+ eerror "successfully, but dcdbas is not listed in /proc/devices!"
+ return 1
+ fi
+
+ # re-create required device nodes in /dev
+
+ # base device node is always re-created
+ EsmBASDevMAJOR=`grep dcdbas /proc/devices | awk '{print $1}'`
+ if [ -e /dev/EsmBASDev0 ]; then # /dev/EsmBASDev exists
+ rm -f /dev/EsmBASDev0
+ fi
+ mknod -m 0600 /dev/EsmBASDev0 c ${EsmBASDevMAJOR} 0
+ ln -sf /dev/EsmBASDev0 /dev/EsmBASDev
+
+ # find out which environment module to use (dcdesm|dcdtvm|dcdipm)
+ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${OMSADIR}/hapi/bin/
+ ${OMSADIR}/hapi/bin/dchcfg32 command=getsystype >/dev/null 2>&1 && true
+ case "$?" in
+ 1) # TVM
+ ebegin "Loading [TVM]"
+ /sbin/modprobe dcdtvm
+ EsmTVMDevMAJOR=`grep dcdtvm /proc/devices | awk '{print $1}'`
+ if [ -e /dev/EsmTVMDev0 ]; then # /dev/EsmTVMDev exists
+ rm -f /dev/EsmTVMDev0
+ fi
+ mknod -m 0600 /dev/EsmTVMDev0 c ${EsmTVMDevMAJOR} 0
+ ln -sf /dev/EsmTVMDev0 /dev/EsmTVMDev
+ eend $?
+ ;;
+ 2) # ESM
+ ebegin "Loading [ESM]"
+ /sbin/modprobe dcdesm
+ EsmESMDevMAJOR=`grep dcdesm /proc/devices | awk '{print $1}'`
+ if [ -e /dev/EsmESM2Dev0 ]; then # /dev/EsmESM2Dev exists
+ rm -f /dev/EsmESM2Dev0
+ fi
+ mknod -m 0600 /dev/EsmESM2Dev0 c ${EsmESMDevMAJOR} 0
+ ln -sf /dev/EsmESM2Dev0 /dev/EsmESM2Dev
+ eend $?
+ ;;
+ 4) # IPMI
+ ebegin "Loading [IPMI]"
+ /sbin/modprobe dcdipm
+ EsmIPMDevMAJOR=`grep dcdipm /proc/devices | awk '{print $1}'`
+ if [ -e /dev/EsmIPMDev0 ]; then # /dev/EsmIPMDev exists
+ rm -f /dev/EsmIPMDev0
+ fi
+ mknod -m 0600 /dev/EsmIPMDev0 c ${EsmIPMDevMAJOR} 0
+ ln -sf /dev/EsmIPMDev0 /dev/EsmIPMDev
+ eend $?
+ ;;
+ *) # unknown or none
+ einfo "unknown env. platform, env. driver not loaded."
+ ;;
+ esac
+}
+start(){
+ checkconfig || return 1
+ checkmodules || return 1
+ loadmodules
+}
+
+stop() {
+ ebegin "Unloading dell drivers"
+ /sbin/rmmod dcdtvm >/dev/null 2>&1 && true
+ /sbin/rmmod dcdesm >/dev/null 2>&1 && true
+ /sbin/rmmod dcdipm >/dev/null 2>&1 && true
+ /sbin/rmmod dcdbas >/dev/null 2>&1 && true
+ eend $?
+}
diff --git a/app-admin/omsa/files/4.5/omreg.cfg b/app-admin/omsa/files/4.5/omreg.cfg
new file mode 100644
index 0000000..03ce8fe
--- /dev/null
+++ b/app-admin/omsa/files/4.5/omreg.cfg
@@ -0,0 +1,36 @@
+Instrumentation.configtool=/opt/dell/srvadmin/omsa/bin/dcicfg32
+Instrumentation.installpath=/opt/dell/srvadmin/omsa
+Instrumentation.logpath=/opt/dell/srvadmin/omsa
+Instrumentation.vardatapath=/opt/dell/srvadmin/omsa
+OMDataEngine.configtool=/opt/dell/srvadmin/dataeng/bin/dcecfg32
+OMDataEngine.installpath=/opt/dell/srvadmin/dataeng
+OMDataEngine.logpath=/opt/dell/srvadmin/dataeng
+OMDataEngine.startsnmpd=true
+OMDataEngine.vardatapath=/opt/dell/srvadmin/dataeng
+hapi.configtool=/opt/dell/srvadmin/hapi/bin/dchcfg32
+hapi.installpath=/opt/dell/srvadmin/hapi
+hapi.vardatapath=/opt/dell/srvadmin/hapi
+ldconf.path.optdellsrvadmindataengbin.rcount=1
+ldconf.path.optdellsrvadminhapibin.rcount=1
+ldconf.path.optdellsrvadminomabin.rcount=3
+ldconf.path.optdellsrvadminomsabin.rcount=1
+ldconf.path.optdellsrvadminsharedbin.rcount=2
+ldconf.path.optdellsrvadminsm.rcount=1
+ldconf.path.optdellsrvadminsmdellvl.rcount=1
+openmanage.8gsyslistfile=/opt/dell/srvadmin/omil/prereqcheck/8gsyslist.txt
+openmanage.archtype=32
+openmanage.funcs=/opt/dell/srvadmin/omil/prereqcheck/Funcs.sh
+openmanage.iws.installpath=/opt/dell/srvadmin
+openmanage.jre.installpath=/opt/dell/srvadmin
+openmanage.omacore.clireg.old.ini=/opt/dell/srvadmin/omil/supportfiles/ini/old.ini
+openmanage.omacore.clireg.omacore.ini=/opt/dell/srvadmin/omil/supportfiles/ini/omacore.ini
+openmanage.omacore.clireg.omhip.ini=/opt/dell/srvadmin/omil/supportfiles/ini/omhip.ini
+openmanage.omacore.clireg.storage.ini=/opt/dell/srvadmin/omil/supportfiles/ini/storage.ini
+openmanage.omacore.installpath=/opt/dell/srvadmin
+openmanage.omhip.installpath=/opt/dell/srvadmin
+openmanage.omilcore.installpath=/opt/dell/srvadmin
+openmanage.storage.installpath=/opt/dell/srvadmin
+openmanage.sysidchkutlpath=/opt/dell/srvadmin/omil/prereqcheck/sysreport
+openmanage.syslistfile=/opt/dell/srvadmin/omil/prereqcheck/syslist.txt
+suptlib.installpath=/opt/dell/srvadmin/shared
+suptlib.vardatapath=/opt/dell/srvadmin/shared
diff --git a/app-admin/omsa/files/4.5/omsa-4.5-hapi.patch b/app-admin/omsa/files/4.5/omsa-4.5-hapi.patch
new file mode 100644
index 0000000..8897335
--- /dev/null
+++ b/app-admin/omsa/files/4.5/omsa-4.5-hapi.patch
@@ -0,0 +1,213 @@
+diff -Naur hapi/drivers/x86/dks/dcdbas/dcdbas.mak hapi.new/drivers/x86/dks/dcdbas/dcdbas.mak
+--- hapi/drivers/x86/dks/dcdbas/dcdbas.mak 2005-11-16 09:19:57.000000000 +0100
++++ hapi.new/drivers/x86/dks/dcdbas/dcdbas.mak 2005-11-16 10:30:19.000000000 +0100
+@@ -41,13 +41,45 @@
+ EXTRA_CFLAGS += -I $(SUBDIRS)
+
+ $(MOD_OBJS_VARNAME) := \
+- $(MOD_DKSCOMPILED_OBJS)
++ $(MOD_DKSCOMPILED_OBJS) $(MOD_PRECOMPILED_OBJS)
+
+ obj-m := $(MOD_BINNAME_O)
+
+ dkslink:
+ $(LD) -r -o $(MOD_NAME).ko $(MOD_NAME).mod.o $(MOD_DKSCOMPILED_OBJS) $(MOD_PRECOMPILED_OBJS)
+
++src ?= .
++obj ?= .
++
++$(obj)/basapm.o:
++ echo "Precompiled object."
++$(obj)/biosintf.o:
++ echo "Precompiled object."
++$(obj)/callintf.o:
++ echo "Precompiled object."
++$(obj)/cmos.o:
++ echo "Precompiled object."
++$(obj)/dcdbasmain.o:
++ echo "Precompiled object."
++$(obj)/dcdmain.o:
++ echo "Precompiled object."
++$(obj)/devsupt.o:
++ echo "Precompiled object."
++$(obj)/drvioctl.o:
++ echo "Precompiled object."
++$(obj)/drvsupt.o:
++ echo "Precompiled object."
++$(obj)/esmiocts.o:
++ echo "Precompiled object."
++$(obj)/memintf.o:
++ echo "Precompiled object."
++$(obj)/pci.o:
++ echo "Precompiled object."
++$(obj)/smbios.o:
++ echo "Precompiled object."
++$(obj)/smbiossupt.o:
++ echo "Precompiled object."
++
+ endif
+
+ sinclude $(TOPDIR)/Rules.make
+diff -Naur hapi/drivers/x86/dks/dcdesm/dcdesm.mak hapi.new/drivers/x86/dks/dcdesm/dcdesm.mak
+--- hapi/drivers/x86/dks/dcdesm/dcdesm.mak 2005-11-16 09:19:57.000000000 +0100
++++ hapi.new/drivers/x86/dks/dcdesm/dcdesm.mak 2005-11-16 10:30:48.000000000 +0100
+@@ -40,10 +40,40 @@
+ EXTRA_CFLAGS += -I $(SUBDIRS)
+
+ $(MOD_OBJS_VARNAME) := \
+- $(MOD_DKSCOMPILED_OBJS)
++ $(MOD_DKSCOMPILED_OBJS) $(MOD_PRECOMPILED_OBJS)
+
+ obj-m := $(MOD_BINNAME_O)
+
++src ?= .
++obj ?= .
++
++$(obj)/dcdesmisr.o:
++ echo "Precompiled object."
++$(obj)/dcdesmmain.o:
++ echo "Precompiled object."
++$(obj)/dcdmain.o:
++ echo "Precompiled object."
++$(obj)/devint.o:
++ echo "Precompiled object."
++$(obj)/devsupt.o:
++ echo "Precompiled object."
++$(obj)/devtmr.o:
++ echo "Precompiled object."
++$(obj)/drvioctl.o:
++ echo "Precompiled object."
++$(obj)/drvsupt.o:
++ echo "Precompiled object."
++$(obj)/esm2.o:
++ echo "Precompiled object."
++$(obj)/esmiocts.o:
++ echo "Precompiled object."
++$(obj)/memintf.o:
++ echo "Precompiled object."
++$(obj)/smbiossupt.o:
++ echo "Precompiled object."
++$(obj)/timer.o:
++ echo "Precompiled object."
++
+ dkslink:
+ $(LD) -r -o $(MOD_NAME).ko $(MOD_NAME).mod.o $(MOD_DKSCOMPILED_OBJS) $(MOD_PRECOMPILED_OBJS)
+
+diff -Naur hapi/drivers/x86/dks/dcdipm/dcdipm.mak hapi.new/drivers/x86/dks/dcdipm/dcdipm.mak
+--- hapi/drivers/x86/dks/dcdipm/dcdipm.mak 2005-11-16 09:19:57.000000000 +0100
++++ hapi.new/drivers/x86/dks/dcdipm/dcdipm.mak 2005-11-16 10:31:12.000000000 +0100
+@@ -45,10 +45,50 @@
+ EXTRA_CFLAGS += -I $(SUBDIRS)
+
+ $(MOD_OBJS_VARNAME) := \
+- $(MOD_DKSCOMPILED_OBJS)
++ $(MOD_DKSCOMPILED_OBJS) $(MOD_PRECOMPILED_OBJS)
+
+ obj-m := $(MOD_BINNAME_O)
+
++src ?= .
++obj ?= .
++
++$(obj)/bt.o:
++ echo "Precompiled object."
++$(obj)/dcdipmisr.o:
++ echo "Precompiled object."
++$(obj)/dcdipmmain.o:
++ echo "Precompiled object."
++$(obj)/dcdipmmisc.o:
++ echo "Precompiled object."
++$(obj)/dcdmain.o:
++ echo "Precompiled object."
++$(obj)/devint.o:
++ echo "Precompiled object."
++$(obj)/devsupt.o:
++ echo "Precompiled object."
++$(obj)/devtmr.o:
++ echo "Precompiled object."
++$(obj)/drvioctl.o:
++ echo "Precompiled object."
++$(obj)/drvsupt.o:
++ echo "Precompiled object."
++$(obj)/esmiocts.o:
++ echo "Precompiled object."
++$(obj)/ipmi.o:
++ echo "Precompiled object."
++$(obj)/kcs.o:
++ echo "Precompiled object."
++$(obj)/memintf.o:
++ echo "Precompiled object."
++$(obj)/platsupt.o:
++ echo "Precompiled object."
++$(obj)/smbiossupt.o:
++ echo "Precompiled object."
++$(obj)/smic.o:
++ echo "Precompiled object."
++$(obj)/timer.o:
++ echo "Precompiled object."
++
+ dkslink:
+ $(LD) -r -o $(MOD_NAME).ko $(MOD_NAME).mod.o $(MOD_DKSCOMPILED_OBJS) $(MOD_PRECOMPILED_OBJS)
+
+diff -Naur hapi/drivers/x86/dks/dcdtvm/dcdtvm.mak hapi.new/drivers/x86/dks/dcdtvm/dcdtvm.mak
+--- hapi/drivers/x86/dks/dcdtvm/dcdtvm.mak 2005-11-16 09:19:57.000000000 +0100
++++ hapi.new/drivers/x86/dks/dcdtvm/dcdtvm.mak 2005-11-16 10:31:41.000000000 +0100
+@@ -49,10 +49,58 @@
+ EXTRA_CFLAGS += -I $(SUBDIRS)
+
+ $(MOD_OBJS_VARNAME) := \
+- $(MOD_DKSCOMPILED_OBJS)
++ $(MOD_DKSCOMPILED_OBJS) $(MOD_PRECOMPILED_OBJS)
+
+ obj-m := $(MOD_BINNAME_O)
+
++src ?= .
++obj ?= .
++
++$(obj)/apm.o:
++ echo "Precompiled object."
++$(obj)/bladeI2c.o:
++ echo "Precompiled object."
++$(obj)/cmos.o:
++ echo "Precompiled object."
++$(obj)/csb5.o:
++ echo "Precompiled object."
++$(obj)/dcdmain.o:
++ echo "Precompiled object."
++$(obj)/dcdtvmmain.o:
++ echo "Precompiled object."
++$(obj)/devsupt.o:
++ echo "Precompiled object."
++$(obj)/devtmr.o:
++ echo "Precompiled object."
++$(obj)/drvioctl.o:
++ echo "Precompiled object."
++$(obj)/drvsupt.o:
++ echo "Precompiled object."
++$(obj)/esmiocts.o:
++ echo "Precompiled object."
++$(obj)/memintf.o:
++ echo "Precompiled object."
++$(obj)/pci.o:
++ echo "Precompiled object."
++$(obj)/piix4.o:
++ echo "Precompiled object."
++$(obj)/rosb4.o:
++ echo "Precompiled object."
++$(obj)/smbiossupt.o:
++ echo "Precompiled object."
++$(obj)/timer.o:
++ echo "Precompiled object."
++$(obj)/tvm.o:
++ echo "Precompiled object."
++$(obj)/tvm3.o:
++ echo "Precompiled object."
++$(obj)/tvm4.o:
++ echo "Precompiled object."
++$(obj)/tvm5.o:
++ echo "Precompiled object."
++$(obj)/tvm6.o:
++ echo "Precompiled object."
++
+ dkslink:
+ $(LD) -r -o $(MOD_NAME).ko $(MOD_NAME).mod.o $(MOD_DKSCOMPILED_OBJS) $(MOD_PRECOMPILED_OBJS)
+
diff --git a/app-admin/omsa/files/digest-omsa-4.5 b/app-admin/omsa/files/digest-omsa-4.5
new file mode 100644
index 0000000..2bb48c9
--- /dev/null
+++ b/app-admin/omsa/files/digest-omsa-4.5
@@ -0,0 +1,6 @@
+MD5 ffbbead8daa9d2664533bdd18d7b4d13 OMI-SrvAdmin-Dell-Web-LX-450-32-335_A00.tar.gz 66024553
+RMD160 4d3eb0addbf5b2b92975790b78859528a88a9e3b OMI-SrvAdmin-Dell-Web-LX-450-32-335_A00.tar.gz 66024553
+SHA256 0e59a04060c956270a3ec7a6ea8ec203b430d39330b7da588b8880559606e22e OMI-SrvAdmin-Dell-Web-LX-450-32-335_A00.tar.gz 66024553
+MD5 3f002b614c92079a32a30eaa721aba58 compat-libstdc++-296-2.96-132.fc4.i386.rpm 178657
+RMD160 a0111e5024bc9f80de0ed74976ad35a021211cce compat-libstdc++-296-2.96-132.fc4.i386.rpm 178657
+SHA256 0f4d0394c4f746bfc6418e8fd6b46a496f742a16d4bb96589cbe56b4975f94fd compat-libstdc++-296-2.96-132.fc4.i386.rpm 178657
diff --git a/app-admin/omsa/omsa-4.5.ebuild b/app-admin/omsa/omsa-4.5.ebuild
new file mode 100644
index 0000000..4bf07a7
--- /dev/null
+++ b/app-admin/omsa/omsa-4.5.ebuild
@@ -0,0 +1,522 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+#
+# author: Wouter Coppens <wouter.coppens@dedigate.com>
+#
+# thanks a lot to Pauli Borodulin <pauli.borodulin@uta.fi> for writing the
+# openmanage stuff on Debian
+#
+inherit eutils rpm toolchain-funcs
+
+DESCRIPTION="Dell Openmanage"
+HOMEPAGE="http://www1.us.dell.com/content/topics/global.aspx/solutions/en/openmanage?c=us&cs=555&l=en&s=biz"
+SRC_BASE="450-32-335_A00"
+LIBSTDC="296-2.96-132.fc4"
+EXEVERSION="5.3.0.4531"
+SRC_PACK="OMI-SrvAdmin-Dell-Web-LX-${SRC_BASE}.tar.gz"
+SRC_PACK_LIBSTDC="compat-libstdc++-${LIBSTDC}.i386.rpm"
+SRC_URI="ftp://ftp.dell.com/sysman/${SRC_PACK} ftp://rpmfind.net/linux/0/fedora/core/4/i386/os/Fedora/RPMS/${SRC_PACK_LIBSTDC}"
+RPM_INSTALL_PREFIX="/opt/dell/srvadmin"
+
+LICENSE="Dell"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+RESTRICT=""
+
+RDEPEND="virtual/libc"
+
+# Procmail is needed, because the bios update depends on it
+DEPEND="${RDEPEND}
+ mail-filter/procmail
+ >=app-arch/rpm-3.0.6"
+
+pkg_setup() {
+ # Binary x86 package
+ has_multilib_profile && ABI="x86"
+}
+
+src_unpack() {
+ unpack ${SRC_PACK}
+ for d in srvadmin-base add-diagnostics add-storageservices add-webserver
+ do
+ cd ${WORKDIR}/linux/custom/${d}
+ for x in *.rpm
+ do
+ rpm_unpack ${WORKDIR}/linux/custom/${d}/${x}
+ rm -f ${WORKDIR}/linux/custom/${d}/${x}
+ done
+ done
+ # patching the drivers
+ cd ${WORKDIR}/linux/custom/srvadmin-base/opt/dell/srvadmin
+ epatch "${FILESDIR}"/${PVR}/${P}-hapi.patch
+
+ # extract compat-libstdc
+ cd ${WORKDIR}/linux/custom
+ rpm_unpack ${DISTDIR}/${SRC_PACK_LIBSTDC}
+}
+
+src_compile() {
+ einfo "Fixing permissions..."
+ for d in srvadmin-base add-diagnostics add-storageservices add-webserver
+ do
+ chown -R root:0 ${WORKDIR}/linux/custom/${d} || die
+ done
+}
+
+src_install() {
+ # install all files
+ for d in srvadmin-base add-diagnostics add-storageservices add-webserver
+ do
+ cd ${WORKDIR}/linux/custom/${d}/${RPM_INSTALL_PREFIX}
+ find . -print | cpio -pmud --quiet ${D}/${RPM_INSTALL_PREFIX} 2> /dev/null
+ done
+
+ # install compat-libstdc
+ dodir ${RPM_INSTALL_PREFIX}/lib
+ cd ${WORKDIR}/linux/custom/usr
+ find lib -print | cpio -pmud --quiet ${D}/${RPM_INSTALL_PREFIX} 2> /dev/null
+
+ # openmanage environment
+ insinto /etc/env.d
+ doins ${FILESDIR}/${PVR}/80openmanage
+
+ # init.d scripts
+ insinto /etc/conf.d
+ newexe ${FILESDIR}/${PVR}/confd-dellomsa-daemons dellomsa-daemons
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/${PVR}/dellomsa-drivers dellomsa-drivers
+ newexe ${FILESDIR}/${PVR}/dellomsa-daemons dellomsa-daemons
+
+ # create symbolic link
+ dodir /etc/sysconfig
+ dosym ${RPM_INSTALL_PREFIX}/iws/bin/linux/omawsd.src /etc/sysconfig/omawsd.src
+ dosym ${RPM_INSTALL_PREFIX}/oma/bin/omsad.src /etc/sysconfig/omsad.src
+ dosym ${RPM_INSTALL_PREFIX} /etc/openmanage
+ dosym ${RPM_INSTALL_PREFIX} /etc/delloma.d
+ dosym ${RPM_INSTALL_PREFIX}/oma/bin/omconfig.sh /usr/bin/omconfig
+ dosym ${RPM_INSTALL_PREFIX}/oma/bin/omreport.sh /usr/bin/omreport
+ dosym ${RPM_INSTALL_PREFIX}/oma/bin/omhelp.sh /usr/bin/omhelp
+ dosym ${RPM_INSTALL_PREFIX}/oma/bin/omexec.sh /usr/bin/omexec
+ dosym ${RPM_INSTALL_PREFIX}/oldiags/bin/omdiag.sh /usr/bin/omdiag
+ # Create links to pci.ids
+ dodir /usr/share/hwdata
+ dosym /usr/share/misc/pci.ids /usr/share/hwdata/pci.ids
+ dosym /usr/share/hwdata/pci.ids /usr/share/pci.ids
+
+ # install builddriver script
+ exeinto ${RPM_INSTALL_PREFIX}/hapi/bin
+ newexe ${FILESDIR}/${PVR}/builddriver.sh builddriver.sh
+ insinto ${RPM_INSTALL_PREFIX}/hapi/bin
+ doins ${FILESDIR}/${PVR}/dcddks-2.6.14.patch dcddks-2.6.14.patch
+}
+
+pkg_postinst() {
+ einfo ""
+ einfo "Execute the following command when you want to setup the initial environment."
+ einfo "emerge --config =${PF}"
+ einfo ""
+}
+
+pkg_config() {
+
+ # Following line is needed, otherwise it gives always the following
+ # error: UNINSTALL: file is not found
+ export OMIIGNORESYSID="Y"
+
+ # TODO
+ einfo "Please ignore warning about:"
+ einfo "sh: /etc/init.d/dataeng: No such file or directory"
+ einfo
+
+ # srvadmin-omilcore
+ FUNCS="${RPM_INSTALL_PREFIX}/omil/prereqcheck/Funcs.sh"
+ # patch FUNCS
+ sed -ie 's/root.root/root:root/' ${FUNCS}
+ . ${FUNCS}
+ CreateShadowFuncs "srvadmin-omilcore" "${RPM_INSTALL_PREFIX}" "${FUNCS}"
+
+ # create the omreg.cfg file
+ if [ -f "/etc/omreg.cfg" ]; then
+ # if it exist, we'll delete it anyway and create a new one
+ rm -f /etc/omreg.cfg
+ fi
+ touch /etc/omreg.cfg && chmod 664 /etc/omreg.cfg && chown root:root /etc/omreg.cfg
+
+ # Update omreg.cfg with latest values
+ UpdateRegPair /etc/omreg.cfg "" "openmanage.funcs=${FUNCS}"
+ UpdateRegPair /etc/omreg.cfg "${RPM_INSTALL_PREFIX}" openmanage.omilcore.installpath= openmanage.sysidchkutlpath=omil/prereqcheck/sysreport openmanage.syslistfile=omil/prereqcheck/syslist.txt openmanage.8gsyslistfile=omil/prereqcheck/8gsyslist.txt openmanage.funcs=omil/prereqcheck/Funcs.sh
+ UpdateRegPair /etc/omreg.cfg "" openmanage.archtype=32
+
+ ##########################################################################
+ # Adding the prerequisite checks for OMILCORE
+ # These checks will warn the user or fail if certain
+ # conditions are not met
+ ############################################################################
+ ExitIfBadSysId /etc/omreg.cfg openmanage.sysidchkutlpathopenmanage.syslistfile srvadmin-omilcore UNINSTALL
+
+ #srvadmin-deng
+ FUNCS=`grep -i "^openmanage.funcs=" /etc/omreg.cfg | sed 's#^[^=]*=##'`
+ . ${FUNCS}
+ # System ID check
+ ExitIfBadSysId /etc/omreg.cfg openmanage.sysidchkutlpath openmanage.syslistfile srvadmin-deng
+ # Remove any mutex files that might exist
+ # We want to clean up any mutex files on an upgrade
+ rm -f ${RPM_INSTALL_PREFIX}/shared/.ipc/.dcsupmtx*
+ ExitOnRelocCheck /etc/omreg.cfg openmanage.omilcore.installpath srvadmin-omilcore "${RPM_INSTALL_PREFIX}" /opt/dell/srvadmin srvadmin-deng
+ CreateShadowFuncs "srvadmin-deng" "${RPM_INSTALL_PREFIX}" "${FUNCS}"
+ # update omreg file with latest values
+ UpdateRegPair /etc/omreg.cfg "${RPM_INSTALL_PREFIX}" OMDataEngine.installpath=dataeng OMDataEngine.logpath=dataeng OMDataEngine.vardatapath=dataeng OMDataEngine.configtool=dataeng/bin/dcecfg32 suptlib.installpath=shared suptlib.vardatapath=shared
+ if [ -n "${DISABLESNMPD}" ]; then
+ UpdateRegPair /etc/omreg.cfg "" OMDataEngine.startsnmpd=false
+ else
+ UpdateRegPair /etc/omreg.cfg "" OMDataEngine.startsnmpd=true
+ fi
+ # INI file handling
+ # Copy "dynamic" Ini files from "ini/new" dir to "ini" dir
+ cp ${RPM_INSTALL_PREFIX}/dataeng/ini/new/*dy*.ini ${RPM_INSTALL_PREFIX}/dataeng/ini/
+ chmod 664 ${RPM_INSTALL_PREFIX}/dataeng/ini/*dy*.ini
+ # create suptlib, ipc dir and files
+ if [ ! -d ${RPM_INSTALL_PREFIX}/shared/.ipc ];
+ then
+ mkdir ${RPM_INSTALL_PREFIX}/shared/.ipc
+ chmod 711 ${RPM_INSTALL_PREFIX}/shared/.ipc
+ fi
+ # IPC file
+ if [ ! -f ${RPM_INSTALL_PREFIX}/shared/.ipc/.sharedipc ];
+ then
+ touch ${RPM_INSTALL_PREFIX}/shared/.ipc/.sharedipc
+ chmod 666 ${RPM_INSTALL_PREFIX}/shared/.ipc/.sharedipc
+ fi
+ # IPC INI file
+ if [ ! -f ${RPM_INSTALL_PREFIX}/shared/.ipc/.lxsuptIPCini ];
+ then
+ touch ${RPM_INSTALL_PREFIX}/shared/.ipc/.lxsuptIPCini
+ chmod 660 ${RPM_INSTALL_PREFIX}/shared/.ipc/.lxsuptIPCini
+ fi
+ # Register Ndx
+ LOC_DENG_CONFIGTOOL=${RPM_INSTALL_PREFIX}/dataeng/bin/dcecfg32
+ if [ ! -z "${LOC_DENG_CONFIGTOOL}" ] && [ -x ${LOC_DENG_CONFIGTOOL} ];
+ then
+ ${LOC_DENG_CONFIGTOOL} command=adddareg prefix=de product=OMDataEngine enable=true
+ ${LOC_DENG_CONFIGTOOL} command=enablesnmp >/dev/null
+ fi
+ # remove any omclean version file
+ RemoveRegPair /etc/omversion.cfg dataengine.version
+
+ #srvadmin-omacore
+ FUNCS=`grep -i "^openmanage.funcs=" /etc/omreg.cfg | sed 's#^[^=]*=##'`
+ . ${FUNCS}
+ CreateShadowFuncs "srvadmin-omacore" "${RPM_INSTALL_PREFIX}" "${FUNCS}"
+
+ # Update omreg.cfg with latest values
+ UpdateRegPair /etc/omreg.cfg "${RPM_INSTALL_PREFIX}" openmanage.omacore.installpath=
+ # /etc/pam.d authentication
+ cp -f ${RPM_INSTALL_PREFIX}/omauth /etc/pam.d
+ chmod 755 /etc/pam.d/omauth
+ # create the content for omsad.src
+ echo >${RPM_INSTALL_PREFIX}/oma/bin/omsad.src
+ echo "export PROGRAM_NAME='OM Common Services'" >>${RPM_INSTALL_PREFIX}/oma/bin/omsad.src
+ echo "export INSTALL_ROOT=${RPM_INSTALL_PREFIX}" >>${RPM_INSTALL_PREFIX}/oma/bin/omsad.src
+ echo "export PROGRAM_PATH=\$INSTALL_ROOT/oma/bin" >>${RPM_INSTALL_PREFIX}/oma/bin/omsad.src
+ echo "export PROGRAM_BIN=omsad" >>${RPM_INSTALL_PREFIX}/oma/bin/omsad.src
+ echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:${RPM_INSTALL_PREFIX}/oma/bin/" >>${RPM_INSTALL_PREFIX}/oma/bin/omsad.src
+ # expand OpenManage install path in omprv32.ini
+ FixPath /etc/omreg.cfg oma/ini/omprv32.ini openmanage.omacore.installpath srvadmin-omacore "${RPM_INSTALL_PREFIX}" replace_om_omacore_path
+ # CLI Registration
+ OMINSTPATHVALUE=`GetRegVal /etc/omreg.cfg openmanage.omilcore.installpath`
+ CLIREGUTIL=${OMINSTPATHVALUE}/omil/tools/cli_ini_modifier.sh
+ $CLIREGUTIL ${OMINSTPATHVALUE}/omil/supportfiles/ini/omacore.ini add
+ # Register cm snmp mib with the Data Engine
+ if [ "i386" != "ia64" ]; then
+ DCECFG=`GetRegVal /etc/omreg.cfg OMDataEngine.configtool`
+ if [ ! -z "${DCECFG}" ] && [ -x ${DCECFG} ]; then
+ CMMIB_CMD="command=addmpialias update=TRUE startuptype=automatic"
+ CMMIB_DFUNC="dispatchfn=DELLCM32_SMMIBImplementerDispatch"
+ CMMIB_DNAME="Inventory Collector SNMP MIB Implementor"
+ ${DCECFG} ${CMMIB_CMD} aliasname="dellcm32" pathfname="${RPM_INSTALL_PREFIX}/oma/bin/libinvmib32.so" ${CMMIB_DFUNC} displayname="${CMMIB_DNAME}"
+ fi
+ fi
+
+ # srvadmin-jre
+ CreateShadowFuncs "srvadmin-jre" "${RPM_INSTALL_PREFIX}" "${FUNCS}"
+ # There is no .bin file in 64 version
+ umask 022
+ ${RPM_INSTALL_PREFIX}/jre/jre.sh ${RPM_INSTALL_PREFIX}/jre
+ FixPath /etc/omreg.cfg oma/ini/omprv32.ini openmanage.omacore.installpath srvadmin-jre "${RPM_INSTALL_PREFIX}" replace_om_jre_path
+ UpdateRegPair /etc/omreg.cfg "${RPM_INSTALL_PREFIX}" openmanage.jre.installpath=
+
+ # srvadmin-odf
+ CreateShadowFuncs "srvadmin-odf" "${RPM_INSTALL_PREFIX}" "${FUNCS}"
+ # update omprvXX.ini file
+ FixPath /etc/omreg.cfg oma/ini/omprv32.ini openmanage.omacore.installpath srvadmin-odf "${RPM_INSTALL_PREFIX}" replace_om_odf_path
+
+ # srvadmin-hapi
+ CreateShadowFuncs "srvadmin-hapi" "${RPM_INSTALL_PREFIX}" "${FUNCS}"
+ # update omreg file with latest values
+ UpdateRegPair /etc/omreg.cfg "${RPM_INSTALL_PREFIX}" hapi.installpath=hapi hapi.vardatapath=hapi hapi.configtool=hapi/bin/dchcfg32
+ # HAPI IPC dir setup
+ LOC_HAPI_VARDATAIPC_PATH="${RPM_INSTALL_PREFIX}/hapi/.ipc"
+ if [ ! -e ${LOC_HAPI_VARDATAIPC_PATH} ];
+ then
+ mkdir ${LOC_HAPI_VARDATAIPC_PATH}
+ fi
+ chmod 711 ${LOC_HAPI_VARDATAIPC_PATH}
+
+ # srvadmin-isvc
+ CreateShadowFuncs "srvadmin-isvc" "${RPM_INSTALL_PREFIX}" "${FUNCS}"
+ # update omreg file with latest values
+ UpdateRegPair /etc/omreg.cfg "${RPM_INSTALL_PREFIX}" Instrumentation.installpath=omsa Instrumentation.logpath=omsa Instrumentation.vardatapath=omsa Instrumentation.configtool=omsa/bin/dcicfg32
+ # Copy "dynamic" Ini files from "ini/new" dir to "ini" dir
+ cp ${RPM_INSTALL_PREFIX}/omsa/ini/new/*dy*.ini ${RPM_INSTALL_PREFIX}/omsa/ini
+ # Modify the permissions on the ini files
+ chmod 664 ${RPM_INSTALL_PREFIX}/omsa/ini/*dy*.ini
+
+ # Register Ndx info with the Data Engine.
+ DCECFG=`GetRegVal /etc/omreg.cfg OMDataEngine.configtool`
+ if [ ! -z "${DCECFG}" ] && [ -x ${DCECFG} ];
+ then
+ ${DCECFG} command=adddareg prefix=is product=Instrumentation enable=true
+ # common for all
+ LOC_ISVC_BINPATH=${RPM_INSTALL_PREFIX}/omsa/bin
+ # dc-isep
+ CMD_ISEP="command=addepialias update=TRUE startuptype=automatic"
+ DCISEP_DPFUNC=DCISEP32_SMEventImplementerDispatch
+ DCISEP_DNAME="Instrumentation Service Event Plugin Implementer"
+ ${DCECFG} ${CMD_ISEP} aliasname=dcisep32 pathfname="${LOC_ISVC_BINPATH}/libdcisep32.soa" dispatchfn=${DCISEP_DPFUNC} displayname="${DCISEP_DNAME}"
+ # dc-snis
+ CMD_SNIS="command=addmpialias update=TRUE startuptype=automatic"
+ DCSNIS_DPFUNC=DCSNIS32_SMMIBImplementerDispatch
+ DCSNIS_DNAME="Instrumentation Service SNMP MIB Implementer"
+ ${DCECFG} ${CMD_SNIS} aliasname=dcsnis32 pathfname="${LOC_ISVC_BINPATH}/libdcsnis32.so" dispatchfn=${DCSNIS_DPFUNC} displayname="${DCSNIS_DNAME}"
+ # dphw-adpt
+ CMD_ADPT="command=addpopalias update=TRUE startuptype=automatic"
+ DCADPT_DPFUNC=DCADPT32_SMPopulatorDispatch
+ DCADPT_DNAME="Adapter Data Populator"
+ ${DCECFG} ${CMD_ADPT} aliasname=dcadpt32 pathfname="${LOC_ISVC_BINPATH}/libdcadpt32.so" dispatchfn=${DCADPT_DPFUNC} displayname="${DCADPT_DNAME}"
+ # ESM2 data populator is only supported on 32-bit systems
+ # dphw-esm2
+ CMD_ESM2="command=addpopalias update=TRUE startuptype=automatic"
+ DCESMP_DPFUNC=DCESMP32_SMPopulatorDispatch
+ DCESMP_DNAME="ESM2 Data Populator"
+ ${DCECFG} ${CMD_ESM2} aliasname=dcesmp32 pathfname="${LOC_ISVC_BINPATH}/libdcesmp32.so" dispatchfn=${DCESMP_DPFUNC} displayname="${DCESMP_DNAME}"
+ # dphw-iemp
+ CMD_IEMP="command=addpopalias update=TRUE startuptype=automatic"
+ DCIEMP_DPFUNC=DCIEMP32_SMPopulatorDispatch
+ DCIEMP_DNAME="IPMI Emergency Management Port Data Populator"
+ ${DCECFG} ${CMD_IEMP} aliasname=dciemp32 pathfname="${LOC_ISVC_BINPATH}/libdciemp32.so" dispatchfn=${DCIEMP_DPFUNC} displayname="${DCIEMP_DNAME}"
+ # dphw-ienv
+ CMD_IENV="command=addpopalias update=TRUE startuptype=automatic"
+ DCIENV_DPFUNC=DCIENV32_SMPopulatorDispatch
+ DCIENV_DNAME="IPMI Environmental Data Populator"
+ ${DCECFG} ${CMD_IENV} aliasname=dcienv32 pathfname="${LOC_ISVC_BINPATH}/libdcienv32.so" dispatchfn=${DCIENV_DPFUNC} displayname="${DCIENV_DNAME}"
+ # dphw-ipmi09
+ CMD_IPMIP9="command=addpopalias update=TRUE startuptype=automatic"
+ DCIPMI9_DPFUNC=DCIPM932_SMPopulatorDispatch
+ DCIPMI9_DNAME="IPMI 0.9 Data Populator"
+ ${DCECFG} ${CMD_IPMIP9} aliasname=dcipm932 pathfname="${LOC_ISVC_BINPATH}/libdcipm932.so" dispatchfn=${DCIPMI9_DPFUNC} displayname="${DCIPMI9_DNAME}"
+ # dphw-ipmi10
+ CMD_IPMIP10="command=addpopalias update=TRUE startuptype=automatic"
+ DCIPMI10_DPFUNC=DCIP1032_SMPopulatorDispatch
+ DCIPMI10_DNAME="IPMI 1.0 Data Populator"
+ ${DCECFG} ${CMD_IPMIP10} aliasname=dcip1032 pathfname="${LOC_ISVC_BINPATH}/libdcip1032.so" dispatchfn=${DCIPMI10_DPFUNC} displayname="${DCIPMI10_DNAME}"
+ # dphw-sbp
+ CMD_SBP="command=addpopalias update=TRUE startuptype=automatic"
+ DCSBP_DPFUNC=DCSBPP32_SMPopulatorDispatch
+ DCSBP_DNAME="SMBIOS Probe Data Populator"
+ ${DCECFG} ${CMD_SBP} aliasname=dcsbpp32 pathfname="${LOC_ISVC_BINPATH}/libdcsbpp32.so" dispatchfn=${DCSBP_DPFUNC} displayname="${DCSBP_DNAME}"
+ # TVM data populator is only supported on 32-bit systems
+ # dphw-tvm
+ CMD_TVM="command=addpopalias update=TRUE startuptype=automatic"
+ DCTVM_DPFUNC=DCTVM32_SMPopulatorDispatch
+ DCTVM_DNAME="TVM Data Populator"
+ ${DCECFG} ${CMD_TVM} aliasname=dctvm32 pathfname="${LOC_ISVC_BINPATH}/libdctvm32.so" dispatchfn=${DCTVM_DPFUNC} displayname="${DCTVM_DNAME}"
+ # dphw-wfm
+ CMD_WFM="command=addpopalias update=TRUE startuptype=automatic"
+ DCWFM_DPFUNC=DCWFM32_SMPopulatorDispatch
+ DCWFM_DNAME="Wired for Management Data Populator"
+ ${DCECFG} ${CMD_WFM} aliasname=dcwfm32 pathfname="${LOC_ISVC_BINPATH}/libdcwfm32.so" dispatchfn=${DCWFM_DPFUNC} displayname="${DCWFM_DNAME}"
+ # dpmisc
+ CMD_MISC="command=addpopalias update=TRUE startuptype=automatic"
+ DCCOOP_DPFUNC=DCCOOP32_SMPopulatorDispatch
+ DCCOOP_DNAME="Cost of Ownership Data Populator"
+ DCLRA_DPFUNC=DCLRA32_SMPopulatorDispatch
+ DCLRA_DNAME="Local Response Agent Data Populator"
+ DCOSP_DPFUNC=DCOSP32_SMPopulatorDispatch
+ DCOSP_DNAME="Operating System Data Populator"
+ DCSECP_DPFUNC=DCSECP32_SMPopulatorDispatch
+ DCSECP_DNAME="Security Data Populator"
+ DCIFRU_DPFUNC=DCIFRU32_SMPopulatorDispatch
+ DCIFRU_DNAME="IPMI Field Replaceable Unit Data Populator"
+ ${DCECFG} ${CMD_MISC} aliasname=dccoop32 pathfname="${LOC_ISVC_BINPATH}/libdccoop32.so" dispatchfn=${DCCOOP_DPFUNC} displayname="${DCCOOP_DNAME}"
+ ${DCECFG} ${CMD_MISC} aliasname=dclra32I pathfname="${LOC_ISVC_BINPATH}/libdclra32.so" dispatchfn=${DCLRA_DPFUNC} displayname="${DCLRA_DNAME}"
+ ${DCECFG} ${CMD_MISC} aliasname=dcosp32 pathfname="${LOC_ISVC_BINPATH}/libdcosp32.so" dispatchfn=${DCOSP_DPFUNC} displayname="${DCOSP_DNAME}"
+ ${DCECFG} ${CMD_MISC} aliasname=dcsecp32 pathfname="${LOC_ISVC_BINPATH}/libdcsecp32.so" dispatchfn=${DCSECP_DPFUNC} displayname="${DCSECP_DNAME}"
+ ${DCECFG} ${CMD_MISC} aliasname=dcifru32 pathfname="${LOC_ISVC_BINPATH}/libdcifru32.so" dispatchfn=${DCIFRU_DPFUNC} displayname="${DCIFRU_DNAME}"
+ fi
+
+ # srvadmin-cm
+ CreateShadowFuncs "srvadmin-cm" "${RPM_INSTALL_PREFIX}" "${FUNCS}"
+
+ # srvadmin-iws
+ CreateShadowFuncs "srvadmin-iws" "${RPM_INSTALL_PREFIX}" "${FUNCS}"
+ # expand iws install path in omprv32.ini
+ FixPath /etc/omreg.cfg oma/ini/omprv32.ini openmanage.omacore.installpath srvadmin-iws "${RPM_INSTALL_PREFIX}" replace_om_iws_path
+ # create the web server src file with the following content
+ echo >${RPM_INSTALL_PREFIX}/iws/bin/linux/omawsd.src
+ echo "export PROGRAM_NAME='Secure Port Server'" >>${RPM_INSTALL_PREFIX}/iws/bin/linux/omawsd.src
+ echo "export INSTALL_ROOT=${RPM_INSTALL_PREFIX}" >>${RPM_INSTALL_PREFIX}/iws/bin/linux/omawsd.src
+ echo "sLibPath=\`grep omalibrarypath ${OMACOREINSTALPATH}/oma/ini/omprv32.ini\`" >>${RPM_INSTALL_PREFIX}/iws/bin/linux/omawsd.src
+ echo "sLibPath=\${sLibPath/omalibrarypath=/}" >>${RPM_INSTALL_PREFIX}/iws/bin/linux/omawsd.src
+ echo "sLibPath=\${sLibPath//,/:}" >>${RPM_INSTALL_PREFIX}/iws/bin/linux/omawsd.src
+ echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$sLibPath" >>${RPM_INSTALL_PREFIX}/iws/bin/linux/omawsd.src
+
+ # Update omreg.cfg with latest values
+ UpdateRegPair /etc/omreg.cfg "${RPM_INSTALL_PREFIX}" openmanage.iws.installpath=
+
+ # srvadmin-old
+ CreateShadowFuncs "srvadmin-old" "${RPM_INSTALL_PREFIX}" "${FUNCS}"
+ # Expand diags install path in omprv32.ini
+ FixPath /etc/omreg.cfg oma/ini/omprv32.ini openmanage.omacore.installpath srvadmin-old "${RPM_INSTALL_PREFIX}" replace_om_diags_path
+
+ # Expand <installdir> tag in lib/DiagnosticEngine.properties
+ FILE=${RPM_INSTALL_PREFIX}/oldiags/lib/DiagnosticEngine.properties
+ sed "s#<installdir>#${RPM_INSTALL_PREFIX}#g" ${FILE} > ${FILE}.tmp &&
+ cat ${FILE}.tmp > ${FILE}
+ rm -f ${FILE}.tmp
+ # Expand <installdir> tag in lib/DiagController.properties
+ FILE=${RPM_INSTALL_PREFIX}/oldiags/lib/DiagController.properties
+ sed "s#<installdir>#${RPM_INSTALL_PREFIX}#g" ${FILE} > ${FILE}.tmp &&
+ cat ${FILE}.tmp > ${FILE}
+ rm -f ${FILE}.tmp
+ # Expand <installdir> tag in bin/diagctrl.cfg
+ FILE=${RPM_INSTALL_PREFIX}/oldiags/bin/diagctrl.cfg
+ sed "s#<installdir>#${RPM_INSTALL_PREFIX}#g" ${FILE} > ${FILE}.tmp &&
+ cat ${FILE}.tmp > ${FILE}
+ rm -f ${FILE}.tmp
+ # Expand <systemid> tag in DiagnosticEngine.properties
+ # read the location of utilities from omreg file
+ SYSIDCHECKPATH=`GetRegVal /etc/omreg.cfg openmanage.sysidchkutlpath`
+ # Check for the system id by getting the path to the system id util,
+ # getting the sys id, and grepping it from the sys id list
+ SYSID=`${SYSIDCHECKPATH} | grep "System ID" | sed 's#^.*0x##; s#[[:space:]].*$##'`
+ FILE=${RPM_INSTALL_PREFIX}/oldiags/bin/diagctrl.cfg
+ sed "s#<systemid>#$SYSID#g" ${FILE} > ${FILE}.tmp &&
+ cat ${FILE}.tmp > ${FILE}
+ rm -f ${FILE}.tmp
+ # Grep for the MachineID
+ DellMachineID=`GetRegVal ${RPM_INSTALL_PREFIX}/oldiags/bin/diagctrl.cfg MachineId`
+ # OMSA CLI Registration
+ OMINSTPATHVALUE=`GetRegVal /etc/omreg.cfg openmanage.omilcore.installpath`
+ CLIREGUTIL=${OMINSTPATHVALUE}/omil/tools/cli_ini_modifier.sh
+ $CLIREGUTIL ${OMINSTPATHVALUE}/omil/supportfiles/ini/old.ini add
+
+ # srvadmin-storage
+ CreateShadowFuncs "srvadmin-storage" "${RPM_INSTALL_PREFIX}" "${FUNCS}"
+ # Update omreg.cfg with latest values
+ UpdateRegPair /etc/omreg.cfg "${RPM_INSTALL_PREFIX}" openmanage.storage.installpath=
+ # get omacore install path from omreg.cfg and
+ # expand storage install path in omprv32.ini
+ FixPath /etc/omreg.cfg oma/ini/omprv32.ini openmanage.omacore.installpath srvadmin-storage "${RPM_INSTALL_PREFIX}" replace_om_storage_path
+ # CLI Registration
+ OMINSTPATHVALUE=`GetRegVal /etc/omreg.cfg openmanage.omilcore.installpath`
+ CLIREGUTIL=${OMINSTPATHVALUE}/omil/tools/cli_ini_modifier.sh
+ $CLIREGUTIL ${OMINSTPATHVALUE}/omil/supportfiles/ini/storage.ini add
+ # Register with DataEngine
+ DCECFG=`GetRegVal /etc/omreg.cfg OMDataEngine.configtool`
+ if [ -z "$DCECFG" -o ! -x "$DCECFG" ]; then
+ echo "WARNING: srvadmin-storage configuration not performed;"
+ echo "'/etc/omreg.cfg' is missing or damaged."
+ else
+ # configure Storage Services MIB Implementor
+ $DCECFG command=addmpialias \
+ update=TRUE \
+ startuptype=automatic \
+ aliasname=ssimp \
+ pathfname="${RPM_INSTALL_PREFIX}/sm/libssimp32.so" \
+ dispatchfn=OMSSIMP32_SMMIBImplementerDispatch \
+ displayname="OMSM_SNMP_IMPLEMENTER"
+ # configure Storage Services OM Data Populator
+ $DCECFG command=addpopalias \
+ update=TRUE \
+ startuptype=automatic \
+ aliasname=ral32 \
+ pathfname="${RPM_INSTALL_PREFIX}/sm/libral32.so" \
+ dispatchfn=RAL_SMPopulatorDispatch \
+ displayname="OMSM_POPULATOR_IMPLEMENTER"
+ # configure event logging
+ $DCECFG command=addepialias \
+ update=TRUE \
+ startuptype=automatic \
+ aliasname=dcsipe32 \
+ pathfname="${RPM_INSTALL_PREFIX}/sm/libdcsipe32.so" \
+ dispatchfn=DCSIPE32_SMEventImplementerDispatch \
+ displayname="OMSM_EVENT_IMPLEMENTER"
+ fi
+ # Create /etc/dellinst.cfg
+ # TODO: this should be removed and appropriate code
+ # should be added to read the install location from
+ # /etc/omreg.cfg
+ touch /etc/dellinst.cfg
+ chmod 644 /etc/dellinst.cfg
+ echo "omss.installpath=${RPM_INSTALL_PREFIX}" >> /etc/dellinst.cfg
+ chmod 644 /etc/dellinst.cfg
+
+ # srvadmin-omhip
+ CreateShadowFuncs "srvadmin-omhip" "${RPM_INSTALL_PREFIX}" "${FUNCS}"
+ # get omacore install path from omreg.cfg and
+ # expand omhip install path in omprv32.ini
+ FixPath /etc/omreg.cfg oma/ini/omprv32.ini openmanage.omacore.installpath srvadmin-omhip "${RPM_INSTALL_PREFIX}" replace_om_hip_path
+ # OMSA CLI Registration
+ OMINSTPATHVALUE=`GetRegVal /etc/omreg.cfg openmanage.omilcore.installpath`
+ CLIREGUTIL=${OMINSTPATHVALUE}/omil/tools/cli_ini_modifier.sh
+ $CLIREGUTIL ${OMINSTPATHVALUE}/omil/supportfiles/ini/omhip.ini add
+ # Update omreg.cfg with latest values
+ UpdateRegPair /etc/omreg.cfg "${RPM_INSTALL_PREFIX}" openmanage.omhip.installpath=
+
+ # srvadmin-storage
+ CreateShadowFuncs "srvadmin-storage" "${RPM_INSTALL_PREFIX}" "${FUNCS}"
+ # Update omreg.cfg with latest values
+ UpdateRegPair /etc/omreg.cfg "${RPM_INSTALL_PREFIX}" openmanage.storage.installpath=
+ # get omacore install path from omreg.cfg and
+ # expand storage install path in omprv32.ini
+ FixPath /etc/omreg.cfg oma/ini/omprv32.ini openmanage.omacore.installpath srvadmin-storage "${RPM_INSTALL_PREFIX}" replace_om_storage_path
+ OMINSTPATHVALUE=`GetRegVal /etc/omreg.cfg openmanage.omilcore.installpath`
+ CLIREGUTIL=${OMINSTPATHVALUE}/omil/tools/cli_ini_modifier.sh
+ $CLIREGUTIL ${OMINSTPATHVALUE}/omil/supportfiles/ini/storage.ini add
+ # Register with DataEngine
+ DCECFG=`GetRegVal /etc/omreg.cfg OMDataEngine.configtool`
+ if [ -z "$DCECFG" -o ! -x "$DCECFG" ]; then
+ echo "WARNING: srvadmin-storage configuration not performed;"
+ echo "'/etc/omreg.cfg' is missing or damaged."
+ else
+ # configure Storage Services MIB Implementor
+ $DCECFG command=addmpialias \
+ update=TRUE \
+ startuptype=automatic \
+ aliasname=ssimp \
+ pathfname="${RPM_INSTALL_PREFIX}/sm/libssimp32.so" \
+ dispatchfn=OMSSIMP32_SMMIBImplementerDispatch \
+ displayname="OMSM_SNMP_IMPLEMENTER"
+
+ # configure Storage Services OM Data Populator
+ $DCECFG command=addpopalias \
+ update=TRUE \
+ startuptype=automatic \
+ aliasname=ral32 \
+ pathfname="${RPM_INSTALL_PREFIX}/sm/libral32.so" \
+ dispatchfn=RAL_SMPopulatorDispatch \
+ displayname="OMSM_POPULATOR_IMPLEMENTER"
+
+ # configure event logging
+ $DCECFG command=addepialias \
+ update=TRUE \
+ startuptype=automatic \
+ aliasname=dcsipe32 \
+ pathfname="${RPM_INSTALL_PREFIX}/sm/libdcsipe32.so" \
+ dispatchfn=DCSIPE32_SMEventImplementerDispatch \
+ displayname="OMSM_EVENT_IMPLEMENTER"
+ fi
+
+ einfo "Done."
+}