Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Utility for modifying GPT disk partitioning" |
| 2 | DESCRIPTION = "GPT fdisk is a disk partitioning tool loosely modeled on Linux fdisk, but used for modifying GUID Partition Table (GPT) disks. The related FixParts utility fixes some common problems on Master Boot Record (MBR) disks." |
| 3 | |
| 4 | LICENSE = "GPLv2" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" |
| 6 | |
| 7 | DEPENDS = "util-linux" |
| 8 | |
| 9 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${PV}/${BP}.tar.gz" |
| 10 | SRC_URI[md5sum] = "5ecc3c44913bb6b53d3708d1ac7ac295" |
| 11 | SRC_URI[sha256sum] = "b663391a6876f19a3cd901d862423a16e2b5ceaa2f4a3b9bb681e64b9c7ba78d" |
| 12 | |
| 13 | UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/gptfdisk/files/gptfdisk/" |
| 14 | UPSTREAM_CHECK_REGEX = "/gptfdisk/(?P<pver>(\d+[\.\-_]*)+)/" |
| 15 | |
| 16 | EXTRA_OEMAKE = "'CC=${CC}' 'CXX=${CXX}' gdisk fixparts ${PACKAGECONFIG_CONFARGS}" |
| 17 | |
| 18 | PACKAGECONFIG ??= "ncurses popt" |
| 19 | PACKAGECONFIG[ncurses] = "cgdisk,,ncurses" |
| 20 | PACKAGECONFIG[popt] = "sgdisk,,popt" |
| 21 | |
| 22 | do_install() { |
| 23 | install -d ${D}${sbindir} |
| 24 | for f in cgdisk sgdisk; do |
| 25 | if [ -x $f ]; then |
| 26 | install -m 0755 $f ${D}${sbindir} |
| 27 | fi |
| 28 | done |
| 29 | install -m 0755 gdisk ${D}${sbindir} |
| 30 | install -m 0755 fixparts ${D}${sbindir} |
| 31 | } |
| 32 | |
| 33 | BBCLASSEXTEND = "native nativesdk" |