]> code.ossystems Code Review - openembedded-core.git/commitdiff
sysstat: Add PACKAGECONFIG[cron] for '--enable-install-cron' option
authorHaiqing Bai <Haiqing.Bai@windriver.com>
Thu, 16 May 2019 01:50:12 +0000 (09:50 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 May 2019 15:35:06 +0000 (16:35 +0100)
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>
meta/recipes-extended/sysstat/sysstat.inc

index 9228fc29c20653c107cfb7bd56f5507207fde414..7f4749f57147fc44b1838939a8a8cabb0cd9fcec 100644 (file)
@@ -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}"