meta-openembedded/meta-oe/recipes-benchmark/bonnie/bonnie++_2.00a.bb
Yi Zhao 82371d6b24
bonnie++: add UPSTREAM_CHECK_URI
Add UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX to check the correct
latest stable verison.

Before the patch:
$ devtool latest-version bonnie++
INFO: Current version: 2.00a
INFO: Latest version: 1.04

After the patch:
$ devtool latest-version bonnie++
INFO: Current version: 2.00a
INFO: Latest version: 2.00a

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-12 09:38:57 -08:00

37 lines
1.1 KiB
BlitzBasic

SUMMARY = "Tests large file IO and creation/deletion of small files"
HOMEPAGE = "https://doc.coker.com.au/projects/bonnie/"
SECTION = "benchmark/tests"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://copyright.txt;md5=cd4dde95a6b9d122f0a9150ae9cc3ee0"
SRC_URI = "\
http://www.coker.com.au/bonnie++/${BPN}-${PV}.tgz \
file://fix-configure-lfs.patch \
file://fix-csv2html-data.patch \
file://makefile-use-link-for-helper.patch \
"
SRC_URI[sha256sum] = "a8d33bbd81bc7eb559ce5bf6e584b9b53faea39ccfb4ae92e58f27257e468f0e"
UPSTREAM_CHECK_URI = "https://doc.coker.com.au/projects/bonnie/"
UPSTREAM_CHECK_REGEX = "bonnie\+\+-(?P<pver>\d+(\.\d+)+[a-z]?).tgz"
# force lfs to skip configure's check, because we are cross-building
PACKAGECONFIG ?= "lfs"
PACKAGECONFIG[lfs] = "--enable-lfs,--disable-lfs"
inherit autotools
EXTRA_OECONF += "--disable-stripping"
EXTRA_OEMAKE += "-I ${S} VPATH=${S}"
CXXFLAGS += "-I ${S}"
do_install() {
oe_runmake eprefix='${D}${exec_prefix}' install-bin
}
PACKAGE_BEFORE_PN += "${PN}-scripts"
FILES:${PN}-scripts = "${bindir}/bon_csv2*"
RDEPENDS:${PN}-scripts += "perl"