diff options
Diffstat (limited to 'meta/recipes-extended/sysstat')
-rw-r--r-- | meta/recipes-extended/sysstat/sysstat/0001-configure.in-remove-check-for-chkconfig.patch | 10 | ||||
-rw-r--r-- | meta/recipes-extended/sysstat/sysstat_12.4.3.bb | 7 | ||||
-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 @@ | |||
1 | From 1590cc614aaf0fb81cd804414d6c9d5a9227352c Mon Sep 17 00:00:00 2001 | 1 | From 1590cc614aaf0fb81cd804414d6c9d5a9227352c Mon Sep 17 00:00:00 2001 |
2 | From: Wenlin Kang <wenlin.kang@windriver.com> | 2 | From: Wenlin Kang <wenlin.kang@windriver.com> |
3 | Date: Tue, 5 Nov 2019 16:16:44 +0800 | 3 | Date: Tue, 5 Nov 2019 16:16:44 +0800 |
4 | Subject: [PATCH] configure.in: remove check for chkconfig | 4 | Subject: [PATCH] configure.ac: remove check for chkconfig |
5 | 5 | ||
6 | chkconfig can't work on cross-platform, so should remove check for it. | 6 | chkconfig 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 | ||
10 | Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com> | 10 | Signed-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 | ||
15 | diff --git a/configure.in b/configure.in | 15 | diff --git a/configure.ac b/configure.ac |
16 | index 48b9a31..cedeb43 100644 | 16 | index 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 @@ | |||
1 | require sysstat.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=a23a74b3f4caf9616230789d94217acb" | ||
4 | |||
5 | SRC_URI += "file://0001-configure.in-remove-check-for-chkconfig.patch" | ||
6 | |||
7 | SRC_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 @@ | |||
1 | SUMMARY = "System performance tools" | 1 | SUMMARY = "System performance tools" |
2 | DESCRIPTION = "The sysstat utilities are a collection of performance monitoring tools for Linux." | 2 | DESCRIPTION = "The sysstat utilities are a collection of performance monitoring tools for Linux." |
3 | HOMEPAGE = "http://sebastien.godard.pagesperso-orange.fr/" | 3 | HOMEPAGE = "https://sysstat.github.io/" |
4 | LICENSE = "GPLv2+" | 4 | LICENSE = "GPL-2.0-or-later" |
5 | SECTION = "console/utils" | 5 | SECTION = "console/utils" |
6 | 6 | ||
7 | SRC_URI = "http://pagesperso-orange.fr/sebastien.godard/${BP}.tar.xz \ | 7 | SRC_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 | ||
12 | UPSTREAM_CHECK_URI = "http://sebastien.godard.pagesperso-orange.fr/download.html" | 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=a23a74b3f4caf9616230789d94217acb" |
14 | |||
15 | SRCREV = "2d7682f26f42cef9127b123e319349b330c4ab8f" | ||
16 | S = "${WORKDIR}/git" | ||
13 | 17 | ||
14 | DEPENDS += "base-passwd" | 18 | DEPENDS += "base-passwd" |
15 | 19 | ||
16 | # autotools-brokensep as this package doesn't use automake | 20 | # autotools-brokensep as this package doesn't use automake |
17 | inherit autotools-brokensep gettext systemd upstream-version-is-even | 21 | inherit autotools-brokensep gettext systemd |
18 | 22 | ||
19 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | 23 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
20 | PACKAGECONFIG[lm-sensors] = "--enable-sensors,--disable-sensors,lmsensors,lmsensors-libsensors" | 24 | PACKAGECONFIG[lm-sensors] = "--enable-sensors,--disable-sensors,lmsensors,lmsensors-libsensors" |
@@ -23,7 +27,11 @@ PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir}" | |||
23 | 27 | ||
24 | EXTRA_OECONF += "--disable-stripping" | 28 | EXTRA_OECONF += "--disable-stripping" |
25 | 29 | ||
26 | do_configure_prepend() { | 30 | SYSTEMD_PACKAGES = "${PN}" |
31 | SYSTEMD_SERVICE:${PN} = "sysstat.service" | ||
32 | SYSTEMD_AUTO_ENABLE = "enable" | ||
33 | |||
34 | do_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 | ||
57 | pkg_postinst_${PN} () { | 65 | pkg_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 | ||
65 | FILES_${PN} += "${systemd_system_unitdir} ${nonarch_base_libdir}/systemd" | 73 | FILES:${PN} += " \ |
74 | ${systemd_system_unitdir} \ | ||
75 | ${nonarch_base_libdir}/systemd \ | ||
76 | ${nonarch_libdir}/tmpfiles.d \ | ||
77 | " | ||
66 | 78 | ||
67 | TARGET_CC_ARCH += "${LDFLAGS}" | 79 | TARGET_CC_ARCH += "${LDFLAGS}" |
80 | |||