summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sysstat
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/sysstat')
-rw-r--r--meta/recipes-extended/sysstat/sysstat/0001-configure.in-remove-check-for-chkconfig.patch10
-rw-r--r--meta/recipes-extended/sysstat/sysstat_12.4.3.bb7
-rw-r--r--meta/recipes-extended/sysstat/sysstat_12.7.5.bb (renamed from meta/recipes-extended/sysstat/sysstat.inc)41
3 files changed, 32 insertions, 26 deletions
diff --git a/meta/recipes-extended/sysstat/sysstat/0001-configure.in-remove-check-for-chkconfig.patch b/meta/recipes-extended/sysstat/sysstat/0001-configure.in-remove-check-for-chkconfig.patch
index 4067bb983b..84383f955f 100644
--- a/meta/recipes-extended/sysstat/sysstat/0001-configure.in-remove-check-for-chkconfig.patch
+++ b/meta/recipes-extended/sysstat/sysstat/0001-configure.in-remove-check-for-chkconfig.patch
@@ -1,7 +1,7 @@
1From 1590cc614aaf0fb81cd804414d6c9d5a9227352c Mon Sep 17 00:00:00 2001 1From 1590cc614aaf0fb81cd804414d6c9d5a9227352c Mon Sep 17 00:00:00 2001
2From: Wenlin Kang <wenlin.kang@windriver.com> 2From: Wenlin Kang <wenlin.kang@windriver.com>
3Date: Tue, 5 Nov 2019 16:16:44 +0800 3Date: Tue, 5 Nov 2019 16:16:44 +0800
4Subject: [PATCH] configure.in: remove check for chkconfig 4Subject: [PATCH] configure.ac: remove check for chkconfig
5 5
6chkconfig can't work on cross-platform, so should remove check for it. 6chkconfig can't work on cross-platform, so should remove check for it.
7 7
@@ -9,13 +9,13 @@ Upstream-Status: Inappropriate [ embedded specific ]
9 9
10Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com> 10Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
11--- 11---
12 configure.in | 3 ++- 12 configure.ac | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-) 13 1 file changed, 2 insertions(+), 1 deletion(-)
14 14
15diff --git a/configure.in b/configure.in 15diff --git a/configure.ac b/configure.ac
16index 48b9a31..cedeb43 100644 16index 48b9a31..cedeb43 100644
17--- a/configure.in 17--- a/configure.ac
18+++ b/configure.in 18+++ b/configure.ac
19@@ -42,7 +42,8 @@ AC_SUBST(VER_JSON) 19@@ -42,7 +42,8 @@ AC_SUBST(VER_JSON)
20 AC_SUBST(VER_XML) 20 AC_SUBST(VER_XML)
21 21
diff --git a/meta/recipes-extended/sysstat/sysstat_12.4.3.bb b/meta/recipes-extended/sysstat/sysstat_12.4.3.bb
deleted file mode 100644
index 5a27de439f..0000000000
--- a/meta/recipes-extended/sysstat/sysstat_12.4.3.bb
+++ /dev/null
@@ -1,7 +0,0 @@
1require sysstat.inc
2
3LIC_FILES_CHKSUM = "file://COPYING;md5=a23a74b3f4caf9616230789d94217acb"
4
5SRC_URI += "file://0001-configure.in-remove-check-for-chkconfig.patch"
6
7SRC_URI[sha256sum] = "ae432431f45aacbcabacfbbe129e2505e215cafa9ce996d7550c6091a46f0bfd"
diff --git a/meta/recipes-extended/sysstat/sysstat.inc b/meta/recipes-extended/sysstat/sysstat_12.7.5.bb
index e5e134c038..d598d5366f 100644
--- a/meta/recipes-extended/sysstat/sysstat.inc
+++ b/meta/recipes-extended/sysstat/sysstat_12.7.5.bb
@@ -1,20 +1,24 @@
1SUMMARY = "System performance tools" 1SUMMARY = "System performance tools"
2DESCRIPTION = "The sysstat utilities are a collection of performance monitoring tools for Linux." 2DESCRIPTION = "The sysstat utilities are a collection of performance monitoring tools for Linux."
3HOMEPAGE = "http://sebastien.godard.pagesperso-orange.fr/" 3HOMEPAGE = "https://sysstat.github.io/"
4LICENSE = "GPLv2+" 4LICENSE = "GPL-2.0-or-later"
5SECTION = "console/utils" 5SECTION = "console/utils"
6 6
7SRC_URI = "http://pagesperso-orange.fr/sebastien.godard/${BP}.tar.xz \ 7SRC_URI = "git://github.com/sysstat/sysstat.git;protocol=https;branch=master \
8 file://99_sysstat \ 8 file://99_sysstat \
9 file://sysstat.service \ 9 file://sysstat.service \
10 file://0001-configure.in-remove-check-for-chkconfig.patch \
10 " 11 "
11 12
12UPSTREAM_CHECK_URI = "http://sebastien.godard.pagesperso-orange.fr/download.html" 13LIC_FILES_CHKSUM = "file://COPYING;md5=a23a74b3f4caf9616230789d94217acb"
14
15SRCREV = "2d7682f26f42cef9127b123e319349b330c4ab8f"
16S = "${WORKDIR}/git"
13 17
14DEPENDS += "base-passwd" 18DEPENDS += "base-passwd"
15 19
16# autotools-brokensep as this package doesn't use automake 20# autotools-brokensep as this package doesn't use automake
17inherit autotools-brokensep gettext systemd upstream-version-is-even 21inherit autotools-brokensep gettext systemd
18 22
19PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" 23PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
20PACKAGECONFIG[lm-sensors] = "--enable-sensors,--disable-sensors,lmsensors,lmsensors-libsensors" 24PACKAGECONFIG[lm-sensors] = "--enable-sensors,--disable-sensors,lmsensors,lmsensors-libsensors"
@@ -23,7 +27,11 @@ PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir}"
23 27
24EXTRA_OECONF += "--disable-stripping" 28EXTRA_OECONF += "--disable-stripping"
25 29
26do_configure_prepend() { 30SYSTEMD_PACKAGES = "${PN}"
31SYSTEMD_SERVICE:${PN} = "sysstat.service"
32SYSTEMD_AUTO_ENABLE = "enable"
33
34do_configure:prepend() {
27 export sa_lib_dir=${libexecdir}/sa 35 export sa_lib_dir=${libexecdir}/sa
28} 36}
29 37
@@ -37,24 +45,24 @@ do_install() {
37 rm -rf ${D}/var 45 rm -rf ${D}/var
38 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then 46 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
39 install -d ${D}/etc/default/volatiles 47 install -d ${D}/etc/default/volatiles
40 install -m 0644 ${WORKDIR}/99_sysstat ${D}/etc/default/volatiles 48 install -m 0644 ${UNPACKDIR}/99_sysstat ${D}/etc/default/volatiles
41 fi 49 fi
42 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then 50 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
43 install -d ${D}${sysconfdir}/tmpfiles.d 51 install -d ${D}${nonarch_libdir}/tmpfiles.d
44 echo "d ${localstatedir}/log/sa - - - -" \ 52 echo "d ${localstatedir}/log/sa - - - -" \
45 > ${D}${sysconfdir}/tmpfiles.d/sysstat.conf 53 > ${D}${nonarch_libdir}/tmpfiles.d/sysstat.conf
46 54
47 # Unless both cron and systemd are enabled, install our own 55 # Unless both cron and systemd are enabled, install our own
48 # systemd unit file. Otherwise the package will install one. 56 # systemd unit file. Otherwise the package will install one.
49 if ${@bb.utils.contains('PACKAGECONFIG', 'cron systemd', 'false', 'true', d)}; then 57 if ${@bb.utils.contains('PACKAGECONFIG', 'cron systemd', 'false', 'true', d)}; then
50 install -d ${D}${systemd_unitdir}/system 58 install -d ${D}${systemd_system_unitdir}
51 install -m 0644 ${WORKDIR}/sysstat.service ${D}${systemd_unitdir}/system 59 install -m 0644 ${UNPACKDIR}/sysstat.service ${D}${systemd_system_unitdir}
52 sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}${systemd_unitdir}/system/sysstat.service 60 sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}${systemd_system_unitdir}/sysstat.service
53 fi 61 fi
54 fi 62 fi
55} 63}
56 64
57pkg_postinst_${PN} () { 65pkg_postinst:${PN} () {
58 if [ ! -n "$D" ]; then 66 if [ ! -n "$D" ]; then
59 if [ -e /etc/init.d/populate-volatile.sh ]; then 67 if [ -e /etc/init.d/populate-volatile.sh ]; then
60 /etc/init.d/populate-volatile.sh update 68 /etc/init.d/populate-volatile.sh update
@@ -62,6 +70,11 @@ pkg_postinst_${PN} () {
62 fi 70 fi
63} 71}
64 72
65FILES_${PN} += "${systemd_system_unitdir} ${nonarch_base_libdir}/systemd" 73FILES:${PN} += " \
74 ${systemd_system_unitdir} \
75 ${nonarch_base_libdir}/systemd \
76 ${nonarch_libdir}/tmpfiles.d \
77"
66 78
67TARGET_CC_ARCH += "${LDFLAGS}" 79TARGET_CC_ARCH += "${LDFLAGS}"
80