[OE-core] [V3][Oe-core][PATCH] sysstat: Add PACKAGECONFIG[cron] for '--enable-install-cron' option

Martin Hundebøll martin at geanix.com
Wed May 15 07:06:47 UTC 2019


Hi,

On 15/05/2019 08.42, Haiqing Bai wrote:
> 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 at windriver.com>
> ---
>   meta/recipes-extended/sysstat/sysstat.inc | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/recipes-extended/sysstat/sysstat.inc b/meta/recipes-extended/sysstat/sysstat.inc
> index 0bc7e14d36..79555e6cf3 100644
> --- a/meta/recipes-extended/sysstat/sysstat.inc
> +++ b/meta/recipes-extended/sysstat/sysstat.inc
> @@ -19,6 +19,7 @@ inherit autotools-brokensep gettext systemd
>   
>   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"
>   
> @@ -59,7 +60,6 @@ pkg_postinst_${PN} () {
>           fi
>   }
>   
> -
> -FILES_${PN} += "${libdir}/sa"
> +FILES_${PN} += "${libdir}/sa ${systemd_unitdir}/system/*"

You can use "${systemd_system_unitdir}" instead of 
"${systemd_unitdir}/system/". And also no need to append the asterisk.

// Martin


More information about the Openembedded-core mailing list