summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaiqing Bai <Haiqing.Bai@windriver.com>2019-05-16 09:50:12 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-16 16:35:06 +0100
commit3ee977629331843cc811b6571d13fa02f5593a10 (patch)
tree3cef6b31e2f94545a03e075c4004fd7183534d6a
parentbec77f5d48055bd30ee69acb43d67c2d05180f7b (diff)
downloadopenembedded-core-contrib-3ee977629331843cc811b6571d13fa02f5593a10.tar.gz
sysstat: Add PACKAGECONFIG[cron] for '--enable-install-cron' option
If 'cron' is added into PACKAGECONFIG, for sysvinit, the related cron scripts will be installed; for systemd, the services of data collect and summary will be installed. Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/sysstat/sysstat.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-extended/sysstat/sysstat.inc b/meta/recipes-extended/sysstat/sysstat.inc
index 9228fc29c2..7f4749f571 100644
--- a/meta/recipes-extended/sysstat/sysstat.inc
+++ b/meta/recipes-extended/sysstat/sysstat.inc
@@ -18,6 +18,7 @@ inherit autotools-brokensep gettext systemd upstream-version-is-even
PACKAGECONFIG ??= ""
PACKAGECONFIG[lm-sensors] = "--enable-sensors,--disable-sensors,lmsensors,lmsensors-libsensors"
+PACKAGECONFIG[cron] = "--enable-install-cron --enable-copy-only,--disable-install-cron --disable-copy-only"
EXTRA_OECONF += "--disable-stripping"
@@ -58,7 +59,6 @@ pkg_postinst_${PN} () {
fi
}
-
-FILES_${PN} += "${libdir}/sa"
+FILES_${PN} += "${libdir}/sa ${systemd_system_unitdir}"
TARGET_CC_ARCH += "${LDFLAGS}"