Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | require cim-schema.inc |
| 2 | |
| 3 | LICENSE = "DMTF" |
| 4 | |
| 5 | RCONFLICTS_${PN} = "cim-schema-final" |
| 6 | |
| 7 | SRC_URI = "http://dmtf.org/sites/default/files/cim/cim_schema_v2390/cim_schema_${PV}Experimental-MOFs.zip;subdir=${BPN}-${PV} \ |
| 8 | file://LICENSE \ |
| 9 | " |
| 10 | SRC_URI[md5sum] = "b82b31c609c6bcc69521829409f58ccc" |
| 11 | SRC_URI[sha256sum] = "ed2096ef1ea25d189a02bbc6603fed7a48297f2987f254265763a6eecb7fc870" |
| 12 | LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=eecc6f71a56ff3caf17f15bf7aeac7b4" |
| 13 | |
| 14 | do_install() { |
| 15 | install -d -m 0755 ${D}${datadir}/mof/cimv${PV}/ |
| 16 | install -d -m 0755 ${D}${datadir}/doc/cim-schema-${PV} |
| 17 | install -m 644 ${WORKDIR}/LICENSE ${D}${datadir}/doc/cim-schema-${PV} |
| 18 | |
| 19 | cp -R --no-dereference --preserve=mode,links -v ${S}/* ${D}${datadir}/mof/cimv${PV}/ |
| 20 | chown -R root:root ${D}${datadir}/mof/cimv${PV} |
| 21 | for i in `find ${D}${datadir}/mof/cimv${PV} -name "*.mof"`; do |
| 22 | sed -i -e 's/\r//g' $i |
| 23 | done |
| 24 | ln -s cimv${PV} ${D}${datadir}/mof/cim-current |
| 25 | ln -s cim_schema_${PV}.mof ${D}${datadir}/mof/cim-current/CIM_Schema.mof |
| 26 | } |
| 27 | |
| 28 | FILES_${PN} = "${datadir}/mof/* ${datadir}/doc/*" |
| 29 | FILES_${PN}-doc = "" |