diff options
Diffstat (limited to 'meta-networking/recipes-support/cim-schema/cim-schema_2.40.0.bb')
-rw-r--r-- | meta-networking/recipes-support/cim-schema/cim-schema_2.40.0.bb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/cim-schema/cim-schema_2.40.0.bb b/meta-networking/recipes-support/cim-schema/cim-schema_2.40.0.bb new file mode 100644 index 000000000..ff6c29dc5 --- /dev/null +++ b/meta-networking/recipes-support/cim-schema/cim-schema_2.40.0.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | require cim-schema.inc | ||
2 | |||
3 | LICENSE = "DMTF" | ||
4 | |||
5 | SRC_URI = "http://dmtf.org/sites/default/files/cim/cim_schema_v2400/cim_schema_${PV}Final-MOFs.zip \ | ||
6 | file://LICENSE \ | ||
7 | " | ||
8 | SRC_URI[md5sum] = "a9bdf17c7374e3b5b7adeaac4842c4ad" | ||
9 | SRC_URI[sha256sum] = "dbfa3064ea427acd71a4bebbc172ca2dc44b0b09a6d83b0945b9ffa988a9058a" | ||
10 | LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=eecc6f71a56ff3caf17f15bf7aeac7b4" | ||
11 | |||
12 | do_unpack() { | ||
13 | unzip -q ${DL_DIR}/cim_schema_${PV}Final-MOFs.zip -d ${S} | ||
14 | cp -f ${FILE_DIRNAME}/files/LICENSE ${WORKDIR}/ | ||
15 | } | ||
16 | |||
17 | do_install() { | ||
18 | install -d -m 0755 ${D}${datadir}/mof/cimv${PV}/ | ||
19 | install -d -m 0755 ${D}${datadir}/doc/cim-schema-${PV} | ||
20 | install -m 644 ${WORKDIR}/LICENSE ${D}${datadir}/doc/cim-schema-${PV} | ||
21 | |||
22 | cp -a ${S}/* ${D}${datadir}/mof/cimv${PV}/ | ||
23 | for i in `find ${D}${datadir}/mof/cimv${PV} -name "*.mof"`; do | ||
24 | sed -i -e 's/\r//g' $i | ||
25 | done | ||
26 | ln -s cimv${PV} ${D}${datadir}/mof/cim-current | ||
27 | ln -s cim_schema_${PV}.mof ${D}${datadir}/mof/cim-current/CIM_Schema.mof | ||
28 | } | ||
29 | |||
30 | FILES_${PN} = "${datadir}/mof/* ${datadir}/doc/*" | ||
31 | FILES_${PN}-doc = "" | ||