diff options
Diffstat (limited to 'meta/recipes-extended/sysstat/sysstat.inc')
-rw-r--r-- | meta/recipes-extended/sysstat/sysstat.inc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/meta/recipes-extended/sysstat/sysstat.inc b/meta/recipes-extended/sysstat/sysstat.inc index 40630070d8..5c761fa693 100644 --- a/meta/recipes-extended/sysstat/sysstat.inc +++ b/meta/recipes-extended/sysstat/sysstat.inc | |||
@@ -6,15 +6,20 @@ SECTION = "console/utils" | |||
6 | 6 | ||
7 | SRC_URI = "http://pagesperso-orange.fr/sebastien.godard/sysstat-${PV}.tar.xz \ | 7 | SRC_URI = "http://pagesperso-orange.fr/sebastien.godard/sysstat-${PV}.tar.xz \ |
8 | file://99_sysstat \ | 8 | file://99_sysstat \ |
9 | file://sysstat.service \ | ||
9 | " | 10 | " |
10 | 11 | ||
11 | DEPENDS += "base-passwd" | 12 | DEPENDS += "base-passwd" |
12 | 13 | ||
13 | inherit autotools-brokensep gettext | 14 | inherit autotools-brokensep gettext systemd |
14 | 15 | ||
15 | EXTRA_OECONF += "--disable-sensors" | 16 | EXTRA_OECONF += "--disable-sensors" |
16 | EXTRA_OEMAKE += 'LFLAGS=""' | 17 | EXTRA_OEMAKE += 'LFLAGS=""' |
17 | 18 | ||
19 | SYSTEMD_PACKAGES = "${PN}" | ||
20 | SYSTEMD_SERVICE_${PN} = "sysstat.service" | ||
21 | SYSTEMD_AUTO_ENABLE = "enable" | ||
22 | |||
18 | do_configure_prepend() { | 23 | do_configure_prepend() { |
19 | export sa_lib_dir=${libdir}/sa | 24 | export sa_lib_dir=${libdir}/sa |
20 | } | 25 | } |
@@ -27,6 +32,10 @@ do_install() { | |||
27 | rm -rf ${D}/var | 32 | rm -rf ${D}/var |
28 | install -d ${D}/etc/default/volatiles | 33 | install -d ${D}/etc/default/volatiles |
29 | install -m 0644 ${WORKDIR}/99_sysstat ${D}/etc/default/volatiles | 34 | install -m 0644 ${WORKDIR}/99_sysstat ${D}/etc/default/volatiles |
35 | |||
36 | install -d ${D}${systemd_unitdir}/system | ||
37 | install -m 0644 ${WORKDIR}/sysstat.service ${D}${systemd_unitdir}/system | ||
38 | sed -i -e 's#@LIBDIR@#${libdir}#g' ${D}${systemd_unitdir}/system/sysstat.service | ||
30 | } | 39 | } |
31 | 40 | ||
32 | pkg_postinst_${PN} () { | 41 | pkg_postinst_${PN} () { |