diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-09-17 11:38:46 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-18 08:53:10 +0100 |
| commit | b48000bba352b9c61d758fab9a3b0c11e5afa4c6 (patch) | |
| tree | ee3d79a24db8a7924c183006689888f567958ba8 /meta/recipes-extended/sysstat/sysstat.inc | |
| parent | 0be8df3e587e2efef6ad76be0439c4403f007c67 (diff) | |
| download | poky-b48000bba352b9c61d758fab9a3b0c11e5afa4c6.tar.gz | |
sysstat: merge .inc into .bb
(From OE-Core rev: 06fb5a80464c1cfbc7fd57da688d49a0edac5e98)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sysstat/sysstat.inc')
| -rw-r--r-- | meta/recipes-extended/sysstat/sysstat.inc | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/meta/recipes-extended/sysstat/sysstat.inc b/meta/recipes-extended/sysstat/sysstat.inc deleted file mode 100644 index 77337722ea..0000000000 --- a/meta/recipes-extended/sysstat/sysstat.inc +++ /dev/null | |||
| @@ -1,71 +0,0 @@ | |||
| 1 | SUMMARY = "System performance tools" | ||
| 2 | DESCRIPTION = "The sysstat utilities are a collection of performance monitoring tools for Linux." | ||
| 3 | HOMEPAGE = "http://sebastien.godard.pagesperso-orange.fr/" | ||
| 4 | LICENSE = "GPL-2.0-or-later" | ||
| 5 | SECTION = "console/utils" | ||
| 6 | |||
| 7 | SRC_URI = "http://pagesperso-orange.fr/sebastien.godard/${BP}.tar.xz \ | ||
| 8 | file://99_sysstat \ | ||
| 9 | file://sysstat.service \ | ||
| 10 | " | ||
| 11 | |||
| 12 | UPSTREAM_CHECK_URI = "http://sebastien.godard.pagesperso-orange.fr/download.html" | ||
| 13 | |||
| 14 | DEPENDS += "base-passwd" | ||
| 15 | |||
| 16 | # autotools-brokensep as this package doesn't use automake | ||
| 17 | inherit autotools-brokensep gettext systemd upstream-version-is-even | ||
| 18 | |||
| 19 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | ||
| 20 | PACKAGECONFIG[lm-sensors] = "--enable-sensors,--disable-sensors,lmsensors,lmsensors-libsensors" | ||
| 21 | PACKAGECONFIG[cron] = "--enable-install-cron --enable-copy-only,--disable-install-cron --disable-copy-only" | ||
| 22 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir}" | ||
| 23 | |||
| 24 | EXTRA_OECONF += "--disable-stripping" | ||
| 25 | |||
| 26 | SYSTEMD_PACKAGES = "${PN}" | ||
| 27 | SYSTEMD_SERVICE:${PN} = "sysstat.service" | ||
| 28 | SYSTEMD_AUTO_ENABLE = "enable" | ||
| 29 | |||
| 30 | do_configure:prepend() { | ||
| 31 | export sa_lib_dir=${libexecdir}/sa | ||
| 32 | } | ||
| 33 | |||
| 34 | do_install() { | ||
| 35 | autotools_do_install | ||
| 36 | |||
| 37 | # Don't version the documentation | ||
| 38 | mv ${D}${docdir}/${BP} ${D}${docdir}/${BPN} | ||
| 39 | |||
| 40 | # don't install /var/log/sa when populating rootfs. Do it through volatile | ||
| 41 | rm -rf ${D}/var | ||
| 42 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | ||
| 43 | install -d ${D}/etc/default/volatiles | ||
| 44 | install -m 0644 ${WORKDIR}/99_sysstat ${D}/etc/default/volatiles | ||
| 45 | fi | ||
| 46 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
| 47 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
| 48 | echo "d ${localstatedir}/log/sa - - - -" \ | ||
| 49 | > ${D}${sysconfdir}/tmpfiles.d/sysstat.conf | ||
| 50 | |||
| 51 | # Unless both cron and systemd are enabled, install our own | ||
| 52 | # systemd unit file. Otherwise the package will install one. | ||
| 53 | if ${@bb.utils.contains('PACKAGECONFIG', 'cron systemd', 'false', 'true', d)}; then | ||
| 54 | install -d ${D}${systemd_system_unitdir} | ||
| 55 | install -m 0644 ${WORKDIR}/sysstat.service ${D}${systemd_system_unitdir} | ||
| 56 | sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}${systemd_system_unitdir}/sysstat.service | ||
| 57 | fi | ||
| 58 | fi | ||
| 59 | } | ||
| 60 | |||
| 61 | pkg_postinst:${PN} () { | ||
| 62 | if [ ! -n "$D" ]; then | ||
| 63 | if [ -e /etc/init.d/populate-volatile.sh ]; then | ||
| 64 | /etc/init.d/populate-volatile.sh update | ||
| 65 | fi | ||
| 66 | fi | ||
| 67 | } | ||
| 68 | |||
| 69 | FILES:${PN} += "${systemd_system_unitdir} ${nonarch_base_libdir}/systemd" | ||
| 70 | |||
| 71 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
