diff options
author | Li xin <lixin.fnst@cn.fujitsu.com> | 2015-06-12 14:13:40 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-03 12:43:24 +0100 |
commit | 2e7e720cff745f9338217bfc9076451e34941268 (patch) | |
tree | e326b4fd0552d054270db6f191daa4aca3fdca51 /meta/recipes-extended/sysstat/sysstat.inc | |
parent | 1031ae366032cee95f573853586e8f00b9c8493a (diff) | |
download | poky-2e7e720cff745f9338217bfc9076451e34941268.tar.gz |
sysstat: add systemd service files
Add sysstat.service to support systemd systems.
(From OE-Core rev: 3278af2266a078351a4f614c79bfbea2514566a1)
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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} () { |