summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2019-05-10 14:55:13 +0300
committerKhem Raj <raj.khem@gmail.com>2019-05-10 14:07:54 -0700
commita62d13566161c99693c037d5b27f31cd25551cc8 (patch)
tree3f4f876631e21795a79d13efd949253b628b03bd
parent1fe22ef16d3d539a43eaf7916a6a33fdc47adab6 (diff)
downloadmeta-openembedded-a62d13566161c99693c037d5b27f31cd25551cc8.tar.gz
openwbem: Remove stale files of recipe removed 2 years ago
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/openwbem/openwbem/checkserverkey20
-rw-r--r--meta-oe/recipes-support/openwbem/openwbem/loadmof.sh118
-rw-r--r--meta-oe/recipes-support/openwbem/openwbem/novell-openwbem-root-acl.mof21
-rw-r--r--meta-oe/recipes-support/openwbem/openwbem/openwbem-etc_pam.d_openwbem7
-rw-r--r--meta-oe/recipes-support/openwbem/openwbem/openwbem-owcimomd.init131
-rw-r--r--meta-oe/recipes-support/openwbem/openwbem/openwbem-rpmlintrc2
-rw-r--r--meta-oe/recipes-support/openwbem/openwbem/owcimomd.service12
-rw-r--r--meta-oe/recipes-support/openwbem/openwbem/rmmof.sh53
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
3if [ ! -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
20fi
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
16if [ "x$1" != "x-n" -a "x$1" != "x-v" ]; then
17# OLD STYLE
18if [ -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
25else
26 exit 1
27fi
28if [ "$YAST_IS_RUNNING" = "instsys" ]; then
29 CIMOM_RUNNING="false"
30fi
31
32CIMOM=$1
33shift
34case "$CIMOM" in
35 pegasus)
36 exit 0
37 ;;
38esac
39MOF_PATH=$1
40shift
41NS=$1
42shift
43
44REPOSITORY="/var/lib/openwbem"
45#tmp_dir=`mktemp -d -p /tmp openwbem.XXXXXX`
46case "$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 ;;
56esac
57#rm -rf $tmp_dir
58# END OLD STYLE
59
60else
61# NEW STYLE
62if [ "x$3" = "x" ]; then
63 echo "Usage: $0 -n <NAMESPACE> <FILES> [...]"
64 exit 1
65fi
66
67if [ "x$1" = "x-v" ]; then
68 VERBOSE=1
69 shift
70fi
71
72# get rid of "-n" arg
73shift
74
75NS="$1"
76
77shift
78
79DBDIR=/var/lib/openwbem
80LOGFILE=$DBDIR/loadmof.log
81CIMOM_INIT=/etc/init.d/owcimomd
82if [ "$YAST_IS_RUNNING" != "instsys" ] ; then
83 $CIMOM_INIT status > /dev/null 2>&1
84 CIMOM_RUNNING=$?
85fi
86if [ "x$CIMOM_RUNNING" = "x0" ]; then
87 $CIMOM_INIT stop > /dev/null 2>&1
88fi
89bkpdir=$DBDIR/backup-$$
90mkdir $bkpdir
91cp -a $DBDIR/*.{dat,ndx,lock} $bkpdir/
92rm -f $LOGFILE.9
93for 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
98done
99if [ -f $LOGFILE ]; then
100 mv $LOGFILE $LOGFILE.0
101fi
102if [ "x$VERBOSE" = "x1" ]; then
103 /usr/bin/owmofc -c -n $NS -d $DBDIR -s /usr/share/mof/cim-current "$@" 2>&1 | tee $LOGFILE
104else
105 /usr/bin/owmofc -c -n $NS -d $DBDIR -s /usr/share/mof/cim-current "$@" > $LOGFILE 2>&1
106fi
107RVAL=$?
108if [ "x$RVAL" != "x0" ]; then
109 echo "MOF import failed! Check $LOGFILE for details."
110 mv $bkpdir/* $DBDIR/
111fi
112rm -rf $bkpdir
113if [ "x$CIMOM_RUNNING" = "x0" ]; then
114 $CIMOM_INIT start > /dev/null 2>&1
115fi
116exit $RVAL
117fi
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
3instance of OpenWBEM_NamespaceACL
4{
5 nspace = "root";
6 capability = "";
7};
8
9instance of OpenWBEM_NamespaceACL
10{
11 nspace = "root/cimv2";
12 capability = "";
13};
14
15instance 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
2auth required pam_unix2.so nullok
3auth required pam_nologin.so
4account required pam_unix2.so
5password required pam_pwcheck.so nullok
6password required pam_unix2.so nullok use_first_pass use_authtok
7session 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
19NAME=owcimomd
20DAEMON=/usr/sbin/$NAME
21OPTIONS=
22PIDFILE=/var/run/$NAME.pid
23
24if [ $EUID != 0 ]; then
25 echo "This script must be run as root."
26 exit 1;
27fi
28
29if [ "$DESCRIPTIVE" = "" ]; then
30 DESCRIPTIVE="OpenWBEM CIMOM Daemon"
31fi
32
33lockfile=${SVIlock:-/var/lock/subsys/$NAME}
34
35[ -x $DAEMON ] || exit 0
36
37# See how we were called.
38. /etc/init.d/functions
39
40start() {
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
52cat << EOF | sh /etc/openwbem/owgencert > /dev/null 2>&1
53--
54SomeState
55SomeCity
56SomeOrganization
57SomeOrganizationalUnit
58${FQDN}
59root@${FQDN}
60EOF
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
78stop() {
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
94restart() {
95 stop
96 start
97}
98
99case "$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}"
129esac
130
131exit $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 @@
1addFilter("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]
2Description=Web Based Enterprise Management (WBEM) Implementation
3After=syslog.target
4
5[Service]
6Type=forking
7ExecStart=/usr/sbin/owcimomd
8ExecStartPre=/etc/openwbem/checkserverkey
9PIDFile=/var/run/owcimomd.pid
10
11[Install]
12WantedBy=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
16if [ "x$3" = "x" ]; then
17 echo "Usage: $0 -n <NAMESPACE> <FILES> [...]"
18 exit 1
19fi
20
21# get rid of "-n" arg
22shift
23
24NS="$1"
25
26shift
27
28DBDIR=/var/lib/openwbem
29CIMOM_INIT=/etc/init.d/owcimomd
30if [ "$YAST_IS_RUNNING" != "instsys" ] ; then
31 $CIMOM_INIT status
32 CIMOM_RUNNING=$?
33fi
34if [ "x$CIMOM_RUNNING" = "x0" ]; then
35 $CIMOM_INIT stop
36fi
37bkpdir=/tmp/owrep.bkp-$$
38mkdir $bkpdir
39cp -a $DBDIR $bkpdir/
40echo "Compiling MOF files"
41/usr/bin/owmofc -r -n $NS -d $DBDIR "$@" > /dev/null 2>&1
42RVAL=$?
43if [ "x$RVAL" != "x0" ]; then
44 echo "MOF import failed!"
45 rm -rf $DBDIR
46 mv $bkpdir/openwbem $DBDIR
47fi
48rm -rf $bkpdir
49if [ "x$CIMOM_RUNNING" = "x0" ]; then
50 $CIMOM_INIT start
51fi
52exit $RVAL
53