summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sysstat/sysstat.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/sysstat/sysstat.inc')
-rw-r--r--meta/recipes-extended/sysstat/sysstat.inc8
1 files changed, 2 insertions, 6 deletions
diff --git a/meta/recipes-extended/sysstat/sysstat.inc b/meta/recipes-extended/sysstat/sysstat.inc
index 4e29721666..9085fcfe74 100644
--- a/meta/recipes-extended/sysstat/sysstat.inc
+++ b/meta/recipes-extended/sysstat/sysstat.inc
@@ -6,7 +6,6 @@ SECTION = "console/utils"
6 6
7SRC_URI = "http://pagesperso-orange.fr/sebastien.godard/sysstat-${PV}.tar.xz \ 7SRC_URI = "http://pagesperso-orange.fr/sebastien.godard/sysstat-${PV}.tar.xz \
8 file://99_sysstat \ 8 file://99_sysstat \
9 file://sysstat.service \
10 " 9 "
11 10
12UPSTREAM_CHECK_URI = "http://sebastien.godard.pagesperso-orange.fr/download.html" 11UPSTREAM_CHECK_URI = "http://sebastien.godard.pagesperso-orange.fr/download.html"
@@ -17,9 +16,10 @@ DEPENDS += "base-passwd"
17# autotools-brokensep as this package doesn't use automake 16# autotools-brokensep as this package doesn't use automake
18inherit autotools-brokensep gettext systemd upstream-version-is-even 17inherit autotools-brokensep gettext systemd upstream-version-is-even
19 18
20PACKAGECONFIG ??= "" 19PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
21PACKAGECONFIG[lm-sensors] = "--enable-sensors,--disable-sensors,lmsensors,lmsensors-libsensors" 20PACKAGECONFIG[lm-sensors] = "--enable-sensors,--disable-sensors,lmsensors,lmsensors-libsensors"
22PACKAGECONFIG[cron] = "--enable-install-cron --enable-copy-only,--disable-install-cron --disable-copy-only" 21PACKAGECONFIG[cron] = "--enable-install-cron --enable-copy-only,--disable-install-cron --disable-copy-only"
22PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir}"
23 23
24EXTRA_OECONF += "--disable-stripping" 24EXTRA_OECONF += "--disable-stripping"
25 25
@@ -45,10 +45,6 @@ do_install() {
45 echo "d ${localstatedir}/log/sa - - - -" \ 45 echo "d ${localstatedir}/log/sa - - - -" \
46 > ${D}${sysconfdir}/tmpfiles.d/sysstat.conf 46 > ${D}${sysconfdir}/tmpfiles.d/sysstat.conf
47 fi 47 fi
48
49 install -d ${D}${systemd_unitdir}/system
50 install -m 0644 ${WORKDIR}/sysstat.service ${D}${systemd_unitdir}/system
51 sed -i -e 's#@LIBDIR@#${libdir}#g' ${D}${systemd_unitdir}/system/sysstat.service
52} 48}
53 49
54pkg_postinst_${PN} () { 50pkg_postinst_${PN} () {