diff options
8 files changed, 0 insertions, 364 deletions
diff --git a/meta-oe/recipes-support/openwbem/openwbem/checkserverkey b/meta-oe/recipes-support/openwbem/openwbem/checkserverkey deleted file mode 100644 index bcfa361010..0000000000 --- a/meta-oe/recipes-support/openwbem/openwbem/checkserverkey +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | if [ ! -f "/etc/openwbem/serverkey.pem" ]; then | ||
| 4 | if [ -f "/etc/ssl/servercerts/servercert.pem" \ | ||
| 5 | -a -f "/etc/ssl/servercerts/serverkey.pem" ]; then | ||
| 6 | echo "Using common server certificate /etc/ssl/servercerts/servercert.pem" | ||
| 7 | ln -s /etc/ssl/servercerts/server{cert,key}.pem /etc/openwbem/ | ||
| 8 | else | ||
| 9 | echo "FAILED: Starting OpenWBEM server" | ||
| 10 | echo "There is no ssl server key available for OpenWBEM server to use." | ||
| 11 | echo -e "Please generate one with the following script and start the OpenWBEM service again:\n" | ||
| 12 | echo "##################################" | ||
| 13 | echo "/etc/openwbem/owgencert" | ||
| 14 | echo "=================================" | ||
| 15 | |||
| 16 | echo "NOTE: The script uses /dev/random device for generating some random bits while generating the server key." | ||
| 17 | echo " If this takes too long, you can replace the value of \"RANDFILE\" in /etc/openwsman/ssleay.cnf with /dev/urandom. Please understand the implications" | ||
| 18 | exit 1 | ||
| 19 | fi | ||
| 20 | fi | ||
diff --git a/meta-oe/recipes-support/openwbem/openwbem/loadmof.sh b/meta-oe/recipes-support/openwbem/openwbem/loadmof.sh deleted file mode 100644 index dd87811a37..0000000000 --- a/meta-oe/recipes-support/openwbem/openwbem/loadmof.sh +++ /dev/null | |||
| @@ -1,118 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # options: | ||
| 4 | # loadmof.sh <MOF_PATH> <NAMESPACE> <FILES> | ||
| 5 | # | ||
| 6 | # - or - | ||
| 7 | # | ||
| 8 | # options: | ||
| 9 | # loadmof.sh -n <NAMESPACE> <FILES> [...] | ||
| 10 | # | ||
| 11 | # The former is preserved for compatibility with Pegasus and | ||
| 12 | # sblim providers. The latter is preferred. If $1 is "-n", | ||
| 13 | # the latter code path is executed. Otherwise the former is | ||
| 14 | # executed. | ||
| 15 | |||
| 16 | if [ "x$1" != "x-n" -a "x$1" != "x-v" ]; then | ||
| 17 | # OLD STYLE | ||
| 18 | if [ -f "/etc/init.d/owcimomd" ]; then | ||
| 19 | /etc/init.d/owcimomd status 1>&2 > /dev/null | ||
| 20 | if [ $? = "0" ]; then | ||
| 21 | CIMOM_RUNNING="true" | ||
| 22 | else | ||
| 23 | CIMOM_RUNNING="false" | ||
| 24 | fi | ||
| 25 | else | ||
| 26 | exit 1 | ||
| 27 | fi | ||
| 28 | if [ "$YAST_IS_RUNNING" = "instsys" ]; then | ||
| 29 | CIMOM_RUNNING="false" | ||
| 30 | fi | ||
| 31 | |||
| 32 | CIMOM=$1 | ||
| 33 | shift | ||
| 34 | case "$CIMOM" in | ||
| 35 | pegasus) | ||
| 36 | exit 0 | ||
| 37 | ;; | ||
| 38 | esac | ||
| 39 | MOF_PATH=$1 | ||
| 40 | shift | ||
| 41 | NS=$1 | ||
| 42 | shift | ||
| 43 | |||
| 44 | REPOSITORY="/var/lib/openwbem" | ||
| 45 | #tmp_dir=`mktemp -d -p /tmp openwbem.XXXXXX` | ||
| 46 | case "$CIMOM_RUNNING" in | ||
| 47 | true|false) | ||
| 48 | while [ "$#" -gt 0 ] | ||
| 49 | do | ||
| 50 | echo "Loading $MOF_PATH/$1" | ||
| 51 | #sed "s/cmpi:/cmpi::/g" $MOF_PATH/$1 > $tmp_dir/$1 | ||
| 52 | /usr/bin/owmofc -c -n $NS -d $REPOSITORY $MOF_PATH/$1 > /dev/null 2>&1 | ||
| 53 | shift | ||
| 54 | done | ||
| 55 | ;; | ||
| 56 | esac | ||
| 57 | #rm -rf $tmp_dir | ||
| 58 | # END OLD STYLE | ||
| 59 | |||
| 60 | else | ||
| 61 | # NEW STYLE | ||
| 62 | if [ "x$3" = "x" ]; then | ||
| 63 | echo "Usage: $0 -n <NAMESPACE> <FILES> [...]" | ||
| 64 | exit 1 | ||
| 65 | fi | ||
| 66 | |||
| 67 | if [ "x$1" = "x-v" ]; then | ||
| 68 | VERBOSE=1 | ||
| 69 | shift | ||
| 70 | fi | ||
| 71 | |||
| 72 | # get rid of "-n" arg | ||
| 73 | shift | ||
| 74 | |||
| 75 | NS="$1" | ||
| 76 | |||
| 77 | shift | ||
| 78 | |||
| 79 | DBDIR=/var/lib/openwbem | ||
| 80 | LOGFILE=$DBDIR/loadmof.log | ||
| 81 | CIMOM_INIT=/etc/init.d/owcimomd | ||
| 82 | if [ "$YAST_IS_RUNNING" != "instsys" ] ; then | ||
| 83 | $CIMOM_INIT status > /dev/null 2>&1 | ||
| 84 | CIMOM_RUNNING=$? | ||
| 85 | fi | ||
| 86 | if [ "x$CIMOM_RUNNING" = "x0" ]; then | ||
| 87 | $CIMOM_INIT stop > /dev/null 2>&1 | ||
| 88 | fi | ||
| 89 | bkpdir=$DBDIR/backup-$$ | ||
| 90 | mkdir $bkpdir | ||
| 91 | cp -a $DBDIR/*.{dat,ndx,lock} $bkpdir/ | ||
| 92 | rm -f $LOGFILE.9 | ||
| 93 | for i in 8 7 6 5 4 3 2 1 0; do | ||
| 94 | let newI=$i+1 | ||
| 95 | if [ -f $LOGFILE.$i ]; then | ||
| 96 | mv $LOGFILE.$i $LOGFILE.$newI | ||
| 97 | fi | ||
| 98 | done | ||
| 99 | if [ -f $LOGFILE ]; then | ||
| 100 | mv $LOGFILE $LOGFILE.0 | ||
| 101 | fi | ||
| 102 | if [ "x$VERBOSE" = "x1" ]; then | ||
| 103 | /usr/bin/owmofc -c -n $NS -d $DBDIR -s /usr/share/mof/cim-current "$@" 2>&1 | tee $LOGFILE | ||
| 104 | else | ||
| 105 | /usr/bin/owmofc -c -n $NS -d $DBDIR -s /usr/share/mof/cim-current "$@" > $LOGFILE 2>&1 | ||
| 106 | fi | ||
| 107 | RVAL=$? | ||
| 108 | if [ "x$RVAL" != "x0" ]; then | ||
| 109 | echo "MOF import failed! Check $LOGFILE for details." | ||
| 110 | mv $bkpdir/* $DBDIR/ | ||
| 111 | fi | ||
| 112 | rm -rf $bkpdir | ||
| 113 | if [ "x$CIMOM_RUNNING" = "x0" ]; then | ||
| 114 | $CIMOM_INIT start > /dev/null 2>&1 | ||
| 115 | fi | ||
| 116 | exit $RVAL | ||
| 117 | fi | ||
| 118 | |||
diff --git a/meta-oe/recipes-support/openwbem/openwbem/novell-openwbem-root-acl.mof b/meta-oe/recipes-support/openwbem/openwbem/novell-openwbem-root-acl.mof deleted file mode 100644 index c9970c79e9..0000000000 --- a/meta-oe/recipes-support/openwbem/openwbem/novell-openwbem-root-acl.mof +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | #pragma namespace("root/security") | ||
| 2 | |||
| 3 | instance of OpenWBEM_NamespaceACL | ||
| 4 | { | ||
| 5 | nspace = "root"; | ||
| 6 | capability = ""; | ||
| 7 | }; | ||
| 8 | |||
| 9 | instance of OpenWBEM_NamespaceACL | ||
| 10 | { | ||
| 11 | nspace = "root/cimv2"; | ||
| 12 | capability = ""; | ||
| 13 | }; | ||
| 14 | |||
| 15 | instance of OpenWBEM_UserACL | ||
| 16 | { | ||
| 17 | nspace = "root/cimv2"; | ||
| 18 | username = "root"; | ||
| 19 | capability = "rw"; | ||
| 20 | }; | ||
| 21 | |||
diff --git a/meta-oe/recipes-support/openwbem/openwbem/openwbem-etc_pam.d_openwbem b/meta-oe/recipes-support/openwbem/openwbem/openwbem-etc_pam.d_openwbem deleted file mode 100644 index b3785aa49d..0000000000 --- a/meta-oe/recipes-support/openwbem/openwbem/openwbem-etc_pam.d_openwbem +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | #%PAM-1.0 | ||
| 2 | auth required pam_unix2.so nullok | ||
| 3 | auth required pam_nologin.so | ||
| 4 | account required pam_unix2.so | ||
| 5 | password required pam_pwcheck.so nullok | ||
| 6 | password required pam_unix2.so nullok use_first_pass use_authtok | ||
| 7 | session required pam_unix2.so none | ||
diff --git a/meta-oe/recipes-support/openwbem/openwbem/openwbem-owcimomd.init b/meta-oe/recipes-support/openwbem/openwbem/openwbem-owcimomd.init deleted file mode 100644 index 47fa8a7c67..0000000000 --- a/meta-oe/recipes-support/openwbem/openwbem/openwbem-owcimomd.init +++ /dev/null | |||
| @@ -1,131 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | ### BEGIN INIT INFO | ||
| 4 | # Provides: owcimomd | ||
| 5 | # Required-Start: $network | ||
| 6 | # Required-Stop: $network | ||
| 7 | # Default-Start: 2 3 4 5 | ||
| 8 | # Default-Stop: 0 1 6 | ||
| 9 | # Short-Description: OpenWBEM CIMOM Daemon | ||
| 10 | # Description: owcimomd | ||
| 11 | # Start/Stop the OpenWBEM CIMOM Daemon | ||
| 12 | ### END INIT INFO | ||
| 13 | # | ||
| 14 | # | ||
| 15 | # chkconfig: 2345 36 64 | ||
| 16 | # description: OpenWBEM CIMOM Daemon | ||
| 17 | # processname: owcimomd | ||
| 18 | |||
| 19 | NAME=owcimomd | ||
| 20 | DAEMON=/usr/sbin/$NAME | ||
| 21 | OPTIONS= | ||
| 22 | PIDFILE=/var/run/$NAME.pid | ||
| 23 | |||
| 24 | if [ $EUID != 0 ]; then | ||
| 25 | echo "This script must be run as root." | ||
| 26 | exit 1; | ||
| 27 | fi | ||
| 28 | |||
| 29 | if [ "$DESCRIPTIVE" = "" ]; then | ||
| 30 | DESCRIPTIVE="OpenWBEM CIMOM Daemon" | ||
| 31 | fi | ||
| 32 | |||
| 33 | lockfile=${SVIlock:-/var/lock/subsys/$NAME} | ||
| 34 | |||
| 35 | [ -x $DAEMON ] || exit 0 | ||
| 36 | |||
| 37 | # See how we were called. | ||
| 38 | . /etc/init.d/functions | ||
| 39 | |||
| 40 | start() { | ||
| 41 | if [ ! -f "/etc/openwbem/serverkey.pem" ]; then | ||
| 42 | if [ -f "/etc/ssl/servercerts/servercert.pem" \ | ||
| 43 | -a -f "/etc/ssl/servercerts/serverkey.pem" ]; then | ||
| 44 | echo "Using common server certificate /etc/ssl/servercerts/servercert.pem" | ||
| 45 | ln -s /etc/ssl/servercerts/server{cert,key}.pem /etc/openwbem/ | ||
| 46 | else | ||
| 47 | echo "Generating OpenWBEM server public certificate and private key" | ||
| 48 | FQDN=`hostname --fqdn` | ||
| 49 | if [ "x${FQDN}" = "x" ]; then | ||
| 50 | FQDN=localhost.localdomain | ||
| 51 | fi | ||
| 52 | cat << EOF | sh /etc/openwbem/owgencert > /dev/null 2>&1 | ||
| 53 | -- | ||
| 54 | SomeState | ||
| 55 | SomeCity | ||
| 56 | SomeOrganization | ||
| 57 | SomeOrganizationalUnit | ||
| 58 | ${FQDN} | ||
| 59 | root@${FQDN} | ||
| 60 | EOF | ||
| 61 | fi | ||
| 62 | fi | ||
| 63 | |||
| 64 | # Start daemons. | ||
| 65 | echo -n "Starting the $DESCRIPTIVE" | ||
| 66 | daemon $DAEMON $OPTIONS > /dev/null 2>&1 | ||
| 67 | RETVAL=$? | ||
| 68 | |||
| 69 | if [ $RETVAL -eq 0 ]; then | ||
| 70 | touch $lockfile | ||
| 71 | success | ||
| 72 | fi | ||
| 73 | |||
| 74 | echo | ||
| 75 | return $RETVAL | ||
| 76 | } | ||
| 77 | |||
| 78 | stop() { | ||
| 79 | # Stop daemons. | ||
| 80 | echo -n "Shutting down $DESCRIPTIVE" | ||
| 81 | killproc $DAEMON | ||
| 82 | RETVAL=$? | ||
| 83 | |||
| 84 | if [ $RETVAL -eq 0 ]; then | ||
| 85 | rm -f $lockfile | ||
| 86 | success | ||
| 87 | else | ||
| 88 | failure | ||
| 89 | fi | ||
| 90 | echo | ||
| 91 | return $RETVAL | ||
| 92 | } | ||
| 93 | |||
| 94 | restart() { | ||
| 95 | stop | ||
| 96 | start | ||
| 97 | } | ||
| 98 | |||
| 99 | case "$1" in | ||
| 100 | start) | ||
| 101 | start | ||
| 102 | ;; | ||
| 103 | |||
| 104 | stop) | ||
| 105 | stop | ||
| 106 | ;; | ||
| 107 | |||
| 108 | restart|force-reload) | ||
| 109 | restart | ||
| 110 | ;; | ||
| 111 | |||
| 112 | reload) | ||
| 113 | echo -n "Reload service $DESCRIPTIVE" | ||
| 114 | killproc -p $PIDFILE -HUP $DAEMON | ||
| 115 | RETVAL=$? | ||
| 116 | echo | ||
| 117 | exit $RETVAL | ||
| 118 | ;; | ||
| 119 | |||
| 120 | status) | ||
| 121 | echo -n "Checking for service $DESCRIPTIVE" | ||
| 122 | status $DAEMON | ||
| 123 | RETVAL=$? | ||
| 124 | exit $RETVAL | ||
| 125 | ;; | ||
| 126 | |||
| 127 | *) | ||
| 128 | echo "Usage: $0 {restart|start|stop|reload|force-reload|status}" | ||
| 129 | esac | ||
| 130 | |||
| 131 | exit $RETVAL | ||
diff --git a/meta-oe/recipes-support/openwbem/openwbem/openwbem-rpmlintrc b/meta-oe/recipes-support/openwbem/openwbem/openwbem-rpmlintrc deleted file mode 100644 index 785e32aaa6..0000000000 --- a/meta-oe/recipes-support/openwbem/openwbem/openwbem-rpmlintrc +++ /dev/null | |||
| @@ -1,2 +0,0 @@ | |||
| 1 | addFilter("devel-file-in-non-devel-package .*/lib.*\.so") | ||
| 2 | |||
diff --git a/meta-oe/recipes-support/openwbem/openwbem/owcimomd.service b/meta-oe/recipes-support/openwbem/openwbem/owcimomd.service deleted file mode 100644 index c6694b7196..0000000000 --- a/meta-oe/recipes-support/openwbem/openwbem/owcimomd.service +++ /dev/null | |||
| @@ -1,12 +0,0 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=Web Based Enterprise Management (WBEM) Implementation | ||
| 3 | After=syslog.target | ||
| 4 | |||
| 5 | [Service] | ||
| 6 | Type=forking | ||
| 7 | ExecStart=/usr/sbin/owcimomd | ||
| 8 | ExecStartPre=/etc/openwbem/checkserverkey | ||
| 9 | PIDFile=/var/run/owcimomd.pid | ||
| 10 | |||
| 11 | [Install] | ||
| 12 | WantedBy=multi-user.target | ||
diff --git a/meta-oe/recipes-support/openwbem/openwbem/rmmof.sh b/meta-oe/recipes-support/openwbem/openwbem/rmmof.sh deleted file mode 100644 index a495415be5..0000000000 --- a/meta-oe/recipes-support/openwbem/openwbem/rmmof.sh +++ /dev/null | |||
| @@ -1,53 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # options: | ||
| 4 | # rmmof.sh <MOF_PATH> <NAMESPACE> <FILES> | ||
| 5 | # | ||
| 6 | # - or - | ||
| 7 | # | ||
| 8 | # options: | ||
| 9 | # loadmof.sh -n <NAMESPACE> <FILES> [...] | ||
| 10 | # | ||
| 11 | # The former is preserved for compatibility with Pegasus and | ||
| 12 | # sblim providers. The latter is preferred. If $1 is "-n", | ||
| 13 | # the latter code path is executed. Otherwise the former is | ||
| 14 | # executed. | ||
| 15 | |||
| 16 | if [ "x$3" = "x" ]; then | ||
| 17 | echo "Usage: $0 -n <NAMESPACE> <FILES> [...]" | ||
| 18 | exit 1 | ||
| 19 | fi | ||
| 20 | |||
| 21 | # get rid of "-n" arg | ||
| 22 | shift | ||
| 23 | |||
| 24 | NS="$1" | ||
| 25 | |||
| 26 | shift | ||
| 27 | |||
| 28 | DBDIR=/var/lib/openwbem | ||
| 29 | CIMOM_INIT=/etc/init.d/owcimomd | ||
| 30 | if [ "$YAST_IS_RUNNING" != "instsys" ] ; then | ||
| 31 | $CIMOM_INIT status | ||
| 32 | CIMOM_RUNNING=$? | ||
| 33 | fi | ||
| 34 | if [ "x$CIMOM_RUNNING" = "x0" ]; then | ||
| 35 | $CIMOM_INIT stop | ||
| 36 | fi | ||
| 37 | bkpdir=/tmp/owrep.bkp-$$ | ||
| 38 | mkdir $bkpdir | ||
| 39 | cp -a $DBDIR $bkpdir/ | ||
| 40 | echo "Compiling MOF files" | ||
| 41 | /usr/bin/owmofc -r -n $NS -d $DBDIR "$@" > /dev/null 2>&1 | ||
| 42 | RVAL=$? | ||
| 43 | if [ "x$RVAL" != "x0" ]; then | ||
| 44 | echo "MOF import failed!" | ||
| 45 | rm -rf $DBDIR | ||
| 46 | mv $bkpdir/openwbem $DBDIR | ||
| 47 | fi | ||
| 48 | rm -rf $bkpdir | ||
| 49 | if [ "x$CIMOM_RUNNING" = "x0" ]; then | ||
| 50 | $CIMOM_INIT start | ||
| 51 | fi | ||
| 52 | exit $RVAL | ||
| 53 | |||
