diff options
| author | Khem Raj <raj.khem@gmail.com> | 2013-02-13 17:25:35 +0000 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-12 18:49:55 +0200 |
| commit | 313f0ae25925caead4f588695ac9c9bcf00b2755 (patch) | |
| tree | 1c167bd3cecfa253e438fefd045db110e2fa4cad /meta-systemd/meta-networking | |
| parent | 0afa2a51d2720ed1d6c06aaef17bd90248ef650e (diff) | |
| download | meta-openembedded-313f0ae25925caead4f588695ac9c9bcf00b2755.tar.gz | |
meta-systemd: Append ${PN} to SYSTEMD_SERVICE
When using systemd class from OE-Core we also need
to install the units explicitly.
systemd packages ending with -systemd are consumed
and now provided by package proper.
MJ: fix RPROVIDES_PN = PN-systemd in entrance
MJ: add RPROVIDES for ntp*-systemd in ntp
MJ: the same for wpa-supplicant
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-systemd/meta-networking')
4 files changed, 25 insertions, 10 deletions
diff --git a/meta-systemd/meta-networking/recipes-daemons/autofs/autofs_5.0.7.bbappend b/meta-systemd/meta-networking/recipes-daemons/autofs/autofs_5.0.7.bbappend index 3d318fb3be..f6792f13d1 100644 --- a/meta-systemd/meta-networking/recipes-daemons/autofs/autofs_5.0.7.bbappend +++ b/meta-systemd/meta-networking/recipes-daemons/autofs/autofs_5.0.7.bbappend | |||
| @@ -2,5 +2,6 @@ inherit systemd | |||
| 2 | 2 | ||
| 3 | PRINC := "${@int(PRINC) + 1}" | 3 | PRINC := "${@int(PRINC) + 1}" |
| 4 | 4 | ||
| 5 | SYSTEMD_PACKAGES = "${PN}-systemd" | 5 | SYSTEMD_PACKAGES = "${PN}" |
| 6 | SYSTEMD_SERVICE = "autofs.service" | 6 | RPROVIDES_${PN} += "${PN}-systemd" |
| 7 | SYSTEMD_SERVICE_${PN} = "autofs.service" | ||
diff --git a/meta-systemd/meta-networking/recipes-support/nis/yp-tools_2.12.bbappend b/meta-systemd/meta-networking/recipes-support/nis/yp-tools_2.12.bbappend index 041ca830e7..76dd4bae7f 100644 --- a/meta-systemd/meta-networking/recipes-support/nis/yp-tools_2.12.bbappend +++ b/meta-systemd/meta-networking/recipes-support/nis/yp-tools_2.12.bbappend | |||
| @@ -7,6 +7,12 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | |||
| 7 | 7 | ||
| 8 | SRC_URI += "file://domainname.service" | 8 | SRC_URI += "file://domainname.service" |
| 9 | 9 | ||
| 10 | SYSTEMD_PACKAGES = "${PN}-systemd" | 10 | SYSTEMD_PACKAGES = "${PN}" |
| 11 | SYSTEMD_SERVICE = "domainname.service" | 11 | RPROVIDES_${PN} += "${PN}-systemd" |
| 12 | SYSTEMD_SERVICE_${PN} = "domainname.service" | ||
| 13 | |||
| 14 | do_install_append() { | ||
| 15 | install -d ${D}${systemd_unitdir}/system | ||
| 16 | install -m 0644 ${WORKDIR}/domainname.service ${D}${systemd_unitdir}/system | ||
| 17 | } | ||
| 12 | 18 | ||
diff --git a/meta-systemd/meta-networking/recipes-support/nis/ypbind-mt_1.36.bbappend b/meta-systemd/meta-networking/recipes-support/nis/ypbind-mt_1.36.bbappend index 14dbaacbba..cd3b98e3c0 100644 --- a/meta-systemd/meta-networking/recipes-support/nis/ypbind-mt_1.36.bbappend +++ b/meta-systemd/meta-networking/recipes-support/nis/ypbind-mt_1.36.bbappend | |||
| @@ -7,6 +7,10 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | |||
| 7 | 7 | ||
| 8 | SRC_URI += "file://ypbind.service" | 8 | SRC_URI += "file://ypbind.service" |
| 9 | 9 | ||
| 10 | SYSTEMD_PACKAGES = "${PN}-systemd" | 10 | SYSTEMD_PACKAGES = "${PN}" |
| 11 | SYSTEMD_SERVICE = "ypbind.service" | 11 | RPROVIDES_${PN} += "${PN}-systemd" |
| 12 | 12 | SYSTEMD_SERVICE_${PN} = "ypbind.service" | |
| 13 | do_install_append() { | ||
| 14 | install -d ${D}${systemd_unitdir}/system | ||
| 15 | install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system | ||
| 16 | } | ||
diff --git a/meta-systemd/meta-networking/recipes-support/ntp/ntp_4.2.6p5.bbappend b/meta-systemd/meta-networking/recipes-support/ntp/ntp_4.2.6p5.bbappend index c6cd03147f..82e8621b10 100644 --- a/meta-systemd/meta-networking/recipes-support/ntp/ntp_4.2.6p5.bbappend +++ b/meta-systemd/meta-networking/recipes-support/ntp/ntp_4.2.6p5.bbappend | |||
| @@ -4,9 +4,13 @@ PRINC := "${@int(PRINC) + 1}" | |||
| 4 | 4 | ||
| 5 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 5 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 6 | 6 | ||
| 7 | SYSTEMD_PACKAGES = "${PN}-systemd ntpdate-systemd" | 7 | SYSTEMD_PACKAGES = "${PN} ntpdate" |
| 8 | SYSTEMD_SERVICE_${PN}-systemd = "ntpd.service" | 8 | SYSTEMD_SERVICE_${PN} = "ntpd.service" |
| 9 | SYSTEMD_SERVICE_ntpdate-systemd = "ntpdate.service" | 9 | SYSTEMD_SERVICE_ntpdate = "ntpdate.service" |
| 10 | RPROVIDES_${PN} += "${PN}-systemd" | ||
| 11 | RPROVIDES_ntpdate += "ntpdate-systemd" | ||
| 12 | |||
| 13 | FILES_ntpdate += "${systemd_unitdir}/system/ntpdate.service" | ||
| 10 | 14 | ||
| 11 | SRC_URI += " \ | 15 | SRC_URI += " \ |
| 12 | file://ntpdate.service \ | 16 | file://ntpdate.service \ |
