1SUMMARY = "Tools of dm-thin device-mapper" 2DESCRIPTION = "A suite of tools for manipulating the metadata of the dm-thin device-mapper target." 3HOMEPAGE = "https://github.com/jthornber/thin-provisioning-tools" 4LICENSE = "GPL-3.0-only" 5SECTION = "devel" 6 7LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" 8S = "${WORKDIR}/git" 9 10SRC_URI = " \ 11 git://github.com/jthornber/thin-provisioning-tools;branch=main;protocol=https \ 12 " 13 14SRCREV = "116c05345bed5fe727992c3458311606d5443ff6" 15UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" 16 17inherit cargo cargo-update-recipe-crates 18 19require ${BPN}-crates.inc 20require ${BPN}-git-crates.inc 21 22do_install:append() { 23 install -d ${D}${sbindir} 24 mv ${D}${bindir}/pdata_tools ${D}${sbindir}/pdata_tools 25 rmdir --ignore-fail-on-non-empty ${D}${bindir} 26 27 for tool in cache_check \ 28 cache_dump \ 29 cache_metadata_size \ 30 cache_repair \ 31 cache_restore \ 32 cache_writeback \ 33 thin_check \ 34 thin_delta \ 35 thin_dump \ 36 thin_ls \ 37 thin_metadata_size \ 38 thin_metadata_pack \ 39 thin_metadata_unpack \ 40 thin_repair \ 41 thin_restore \ 42 thin_rmap \ 43 thin_shrink \ 44 thin_trim \ 45 era_check \ 46 era_dump \ 47 era_invalidate \ 48 era_repair \ 49 era_restore; do 50 ln -sf pdata_tools ${D}${sbindir}/$tool 51 done 52} 53