diff options
author | Dave Cobbley <david.j.cobbley@linux.intel.com> | 2018-08-14 20:05:37 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-08-23 04:26:31 +0300 |
commit | eb8dc40360f0cfef56fb6947cc817a547d6d9bc6 (patch) | |
tree | de291a73dc37168da6370e2cf16c347d1eba9df8 /meta-openembedded/meta-oe/recipes-support/atop/atop_2.2.3.bb | |
parent | 9c3cf826d853102535ead04cebc2d6023eff3032 (diff) | |
download | openbmc-eb8dc40360f0cfef56fb6947cc817a547d6d9bc6.tar.xz |
[Subtree] Removing import-layers directory
As part of the move to subtrees, need to bring all the import layers
content to the top level.
Change-Id: I4a163d10898cbc6e11c27f776f60e1a470049d8f
Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-openembedded/meta-oe/recipes-support/atop/atop_2.2.3.bb')
-rw-r--r-- | meta-openembedded/meta-oe/recipes-support/atop/atop_2.2.3.bb | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/meta-openembedded/meta-oe/recipes-support/atop/atop_2.2.3.bb b/meta-openembedded/meta-oe/recipes-support/atop/atop_2.2.3.bb new file mode 100644 index 000000000..1ab9e7cf9 --- /dev/null +++ b/meta-openembedded/meta-oe/recipes-support/atop/atop_2.2.3.bb @@ -0,0 +1,63 @@ +SUMMARY = "Monitor for system resources and process activity" +DESCRIPTION = "Atop is an ASCII full-screen performance monitor for Linux that \ +is capable of reporting the activity of all processes (even if processes have \ +finished during the interval), daily logging of system and process activity for \ +long-term analysis, highlighting overloaded system resources by using colors, \ +etc. At regular intervals, it shows system-level activity related to the CPU, \ +memory, swap, disks (including LVM) and network layers, and for every process \ +(and thread) it shows e.g. the CPU utilization, memory growth, disk \ +utilization, priority, username, state, and exit code." +HOMEPAGE = "http://www.atoptool.nl" +SECTION = "console/utils" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" + +DEPENDS = "ncurses zlib" + +ATOP_VER = "${@'-'.join(d.getVar('PV').rsplit('.', 1))}" + +SRC_URI = " \ + http://www.atoptool.nl/download/${BPN}-${ATOP_VER}.tar.gz \ + ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://volatiles.atop.conf', 'file://volatiles.99_atop', d)} \ + file://0001-include-missing-header-files.patch \ + file://remove-bashisms.patch \ + file://fix-permissions.patch \ + file://sysvinit-implement-status.patch \ +" + +SRC_URI[md5sum] = "034dc1544f2ec4e4d2c739d320dc326d" +SRC_URI[sha256sum] = "c785b8a2355be28b3de6b58a8ea4c4fcab8fadeaa57a99afeb03c66fac8e055d" + +S = "${WORKDIR}/${BPN}-${ATOP_VER}" + +do_compile() { + oe_runmake all +} + +do_install() { + if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then + make DESTDIR=${D} VERS=${ATOP_VER} SYSDPATH=${systemd_system_unitdir} \ + PMPATHD=${systemd_unitdir}/system-sleep systemdinstall + install -d ${D}${sysconfdir}/tmpfiles.d + install -m 644 ${WORKDIR}/volatiles.atop.conf ${D}${sysconfdir}/tmpfiles.d/atop.conf + rm -f ${D}${systemd_system_unitdir}/atopacct.service + else + make DESTDIR=${D} VERS=${ATOP_VER} sysvinstall + install -d ${D}${sysconfdir}/default/volatiles + install -m 644 ${WORKDIR}/volatiles.99_atop ${D}${sysconfdir}/default/volatiles/99_atop + rm -f ${D}${sysconfdir}/init.d/atopacct + fi + + # remove atopacct related files + rm -rf ${D}${sbindir} ${D}${mandir}/man8 +} + +inherit systemd + +SYSTEMD_SERVICE_${PN} = "atop.service" +SYSTEMD_AUTO_ENABLE = "disable" + +FILES_${PN} += "${systemd_unitdir}/system-sleep" + +RDEPENDS_${PN} = "procps" |