Skip to contentSkip to conversation

sysstat: Add PACKAGECONFIG[cron] for '--enable-install-cron' option

PATCH Superseded Haiqing Bai 2 participants 3 messages May 15, 2019 – May 16, 2019

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 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.

---
 meta/recipes-extended/sysstat/sysstat.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-extended/sysstat/sysstat.inc +2 -2
index 0bc7e14d36..79555e6cf3 100644
@@ -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/*"
 
 TARGET_CC_ARCH += "${LDFLAGS}"
Signature · 1 line
2.18.1
#1 lore raw

Hi,

Quoted 22 lines · Haiqing Bai

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.

---
  meta/recipes-extended/sysstat/sysstat.inc | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-extended/sysstat/sysstat.inc +1 -0
index 0bc7e14d36..79555e6cf3 100644
@@ -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"
 

meta/recipes-extended/sysstat/sysstat.inc pkg_postinst_${PN} () { · line 63

Quoted 6 lines
meta/recipes-extended/sysstat/sysstat.inc +1 -2
@@ -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

#2 lore raw

Thanks, will update in new rr.

-----Original Message-----
From: Martin Hundebøll [mailto:[email protected]]
Sent: 2019年5月15日 15:07
To: Bai, Haiqing; [email protected]; [email protected]
Subject: Re: [OE-core] [V3][Oe-core][PATCH] sysstat: Add PACKAGECONFIG[cron] for '--enable-install-cron' option

Hi,

Quoted 22 lines · Haiqing Bai

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.

---
  meta/recipes-extended/sysstat/sysstat.inc | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-extended/sysstat/sysstat.inc +1 -0
index 0bc7e14d36..79555e6cf3 100644
@@ -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"
 

meta/recipes-extended/sysstat/sysstat.inc pkg_postinst_${PN} () { · line 63

Quoted 6 lines
meta/recipes-extended/sysstat/sysstat.inc +1 -2
@@ -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