diff options
Diffstat (limited to 'recipes-extended/ceph/ceph_14.2.3.bb')
| -rw-r--r-- | recipes-extended/ceph/ceph_14.2.3.bb | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/recipes-extended/ceph/ceph_14.2.3.bb b/recipes-extended/ceph/ceph_14.2.3.bb new file mode 100644 index 00000000..722efe39 --- /dev/null +++ b/recipes-extended/ceph/ceph_14.2.3.bb | |||
| @@ -0,0 +1,108 @@ | |||
| 1 | SUMMARY = "User space components of the Ceph file system" | ||
| 2 | LICENSE = "LGPLv2.1 & GPLv2 & Apache-2.0 & MIT" | ||
| 3 | LIC_FILES_CHKSUM = "file://COPYING-LGPL2.1;md5=fbc093901857fcd118f065f900982c24 \ | ||
| 4 | file://COPYING-GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
| 5 | file://COPYING;md5=601c21a554d728c3038ca292b83b8af0 \ | ||
| 6 | " | ||
| 7 | inherit cmake pythonnative python-dir systemd | ||
| 8 | # Disable python pybind support for ceph temporary, when corss compiling pybind, | ||
| 9 | # pybind mix cmake and python setup environment, would case a lot of errors. | ||
| 10 | |||
| 11 | SRC_URI = "http://download.ceph.com/tarballs/ceph-${PV}.tar.gz \ | ||
| 12 | file://0001-ceph-fix-build-errors-for-cross-compile.patch \ | ||
| 13 | file://ceph.conf \ | ||
| 14 | file://0001-rgw-add-executor-type-for-basic_waitable_timers.patch \ | ||
| 15 | file://0001-rgw-beast-handle_connection-takes-io_context.patch \ | ||
| 16 | " | ||
| 17 | SRC_URI[md5sum] = "e4a53270fba14bf34d0b4c2a2340042e" | ||
| 18 | SRC_URI[sha256sum] = "63d0eddab80f7bcdd4e9ac86d2b36c6cc8c9e2d34f20e8e426ff1620d66748dd" | ||
| 19 | |||
| 20 | DEPENDS = "boost bzip2 curl expat gperf-native \ | ||
| 21 | keyutils libaio libibverbs lz4 \ | ||
| 22 | nspr nss \ | ||
| 23 | oath openldap openssl \ | ||
| 24 | python python-cython-native rabbitmq-c rocksdb snappy udev \ | ||
| 25 | valgrind xfsprogs zlib \ | ||
| 26 | " | ||
| 27 | SYSTEMD_SERVICE_${PN} = " \ | ||
| 28 | ceph-radosgw@.service \ | ||
| 29 | ceph-radosgw.target \ | ||
| 30 | ceph-mon@.service \ | ||
| 31 | ceph-mon.target \ | ||
| 32 | ceph-mds@.service \ | ||
| 33 | ceph-mds.target \ | ||
| 34 | ceph-osd@.service \ | ||
| 35 | ceph-osd.target \ | ||
| 36 | ceph.target \ | ||
| 37 | ceph-rbd-mirror@.service \ | ||
| 38 | ceph-rbd-mirror.target \ | ||
| 39 | ceph-volume@.service \ | ||
| 40 | ceph-mgr@.service \ | ||
| 41 | ceph-mgr.target \ | ||
| 42 | ceph-crash.service \ | ||
| 43 | rbdmap.service \ | ||
| 44 | " | ||
| 45 | OECMAKE_GENERATOR = "Unix Makefiles" | ||
| 46 | |||
| 47 | EXTRA_OECMAKE = "-DWITH_MANPAGE=OFF \ | ||
| 48 | -DWITH_FUSE=OFF \ | ||
| 49 | -DWITH_SPDK=OFF \ | ||
| 50 | -DWITH_LEVELDB=OFF \ | ||
| 51 | -DWITH_LTTNG=OFF \ | ||
| 52 | -DWITH_BABELTRACE=OFF \ | ||
| 53 | -DWITH_TESTS=OFF \ | ||
| 54 | -DWITH_MGR=OFF \ | ||
| 55 | -DWITH_MGR_DASHBOARD_FRONTEND=OFF \ | ||
| 56 | -DWITH_SYSTEM_BOOST=ON \ | ||
| 57 | -DWITH_SYSTEM_ROCKSDB=ON \ | ||
| 58 | -DWITH_RDMA=OFF \ | ||
| 59 | -DWITH_RADOSGW_AMQP_ENDPOINT=OFF \ | ||
| 60 | " | ||
| 61 | |||
| 62 | do_configure_prepend () { | ||
| 63 | echo "set( CMAKE_SYSROOT \"${RECIPE_SYSROOT}\" )" >> ${WORKDIR}/toolchain.cmake | ||
| 64 | echo "set( CMAKE_DESTDIR \"${D}\" )" >> ${WORKDIR}/toolchain.cmake | ||
| 65 | echo "set( PYTHON_SITEPACKAGES_DIR \"${PYTHON_SITEPACKAGES_DIR}\" )" >> ${WORKDIR}/toolchain.cmake | ||
| 66 | } | ||
| 67 | |||
| 68 | do_install_append () { | ||
| 69 | sed -i -e 's:${WORKDIR}.*python2:${bindir}/python:' ${D}${bindir}/ceph | ||
| 70 | sed -i -e 's:${WORKDIR}.*python2:${bindir}/python:' ${D}${bindir}/ceph-crash | ||
| 71 | sed -i -e 's:${WORKDIR}.*python2:${bindir}/python:' ${D}${bindir}/ceph-volume | ||
| 72 | sed -i -e 's:${WORKDIR}.*python2:${bindir}/python:' ${D}${bindir}/ceph-volume-systemd | ||
| 73 | find ${D} -name SOURCES.txt | xargs sed -i -e 's:${WORKDIR}::' | ||
| 74 | install -d ${D}${sysconfdir}/ceph | ||
| 75 | install -m 644 ${WORKDIR}/ceph.conf ${D}${sysconfdir}/ceph/ | ||
| 76 | install -d ${D}${systemd_unitdir} | ||
| 77 | mv ${D}${libexecdir}/systemd/system ${D}${systemd_unitdir} | ||
| 78 | mv ${D}${libexecdir}/ceph/ceph-osd-prestart.sh ${D}${libdir}/ceph | ||
| 79 | mv ${D}${libexecdir}/ceph/ceph_common.sh ${D}${libdir}/ceph | ||
| 80 | # WITH_FUSE is set to OFF, remove ceph-fuse related units | ||
| 81 | rm ${D}${systemd_unitdir}/system/ceph-fuse.target ${D}${systemd_unitdir}/system/ceph-fuse@.service | ||
| 82 | } | ||
| 83 | |||
| 84 | FILES_${PN} += "\ | ||
| 85 | ${libdir}/rados-classes/*.so.* \ | ||
| 86 | ${libdir}/ceph/compressor/*.so \ | ||
| 87 | ${libdir}/rados-classes/*.so \ | ||
| 88 | ${libdir}/ceph/*.so \ | ||
| 89 | " | ||
| 90 | FILES_${PN}-python = "\ | ||
| 91 | ${PYTHON_SITEPACKAGES_DIR}/* \ | ||
| 92 | " | ||
| 93 | RDEPENDS_${PN} += "\ | ||
| 94 | python \ | ||
| 95 | python-misc \ | ||
| 96 | python-modules \ | ||
| 97 | python-prettytable \ | ||
| 98 | ${PN}-python \ | ||
| 99 | " | ||
| 100 | COMPATIBLE_HOST = "(x86_64).*" | ||
| 101 | PACKAGES += " \ | ||
| 102 | ${PN}-python \ | ||
| 103 | " | ||
| 104 | INSANE_SKIP_${PN}-python += "ldflags" | ||
| 105 | INSANE_SKIP_${PN} += "dev-so" | ||
| 106 | CCACHE_DISABLE = "1" | ||
| 107 | |||
| 108 | CVE_PRODUCT = "ceph ceph_storage ceph_storage_mon ceph_storage_osd" | ||
