Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 1 | SUMMARY = "Phoronix Test Suite" |
| 2 | DESCRIPTION = "The Phoronix Test Suite is designed to carry out both qualitative \ |
| 3 | and quantitative benchmarks in a clean, reproducible, and easy-to-use manner." |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 4 | LICENSE = "GPL-3.0-only" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
| 6 | SECTION = "console/tests" |
| 7 | |
| 8 | SRC_URI = "http://www.phoronix-test-suite.com/releases/${BP}.tar.gz" |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 9 | SRC_URI[sha256sum] = "1f2092d536c0a3193efc53e4a50f3cee65c0ef1a78d31e5404f1c663fff7b7f4" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 10 | |
| 11 | S = "${WORKDIR}/phoronix-test-suite" |
| 12 | |
| 13 | inherit systemd allarch mime mime-xdg |
| 14 | |
| 15 | do_install() { |
| 16 | DESTDIR=${D} ./install-sh ${exec_prefix} |
| 17 | |
| 18 | if [ "${systemd_unitdir}" != "/usr/lib/systemd" ]; then |
| 19 | install -d ${D}/${systemd_unitdir}/system/ |
| 20 | mv ${D}/usr/lib/systemd/system/* ${D}/${systemd_unitdir}/system/ |
| 21 | rm -rf ${D}/usr/lib/ |
| 22 | fi |
| 23 | } |
| 24 | |
| 25 | # It is not advisable to enable these services by default since they can cause |
| 26 | # continual target reboots if they encounter network problems. |
| 27 | # |
| 28 | SYSTEMD_AUTO_ENABLE = "disable" |
| 29 | SYSTEMD_SERVICE:${PN} = "phoromatic-client.service phoromatic-server.service" |
| 30 | |
| 31 | RDEPENDS:${PN} += "bash python3-core php-cli util-linux-lscpu os-release lsb-release" |
| 32 | |
| 33 | FILES:${PN} += " \ |
| 34 | ${datadir}/phoronix-test-suite \ |
| 35 | ${datadir}/appdata/phoronix-test-suite.appdata.xml \ |
| 36 | ${datadir}/icons/hicolor/48x48/apps/phoronix-test-suite.png \ |
| 37 | ${datadir}/icons/hicolor/64x64/mimetypes/application-x-openbenchmarking.png \ |
| 38 | ${datadir}/mime/packages/openbenchmarking-mime.xml \ |
| 39 | ${systemd_unitdir}/* \ |
| 40 | " |