mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
ntp: use systemd_unitdir variable
* maybe we should move systemd_unitdir definition outside systemd.bbclass because it's used in few more recipes which doesn't inherit systemd Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
parent
aa26673c83
commit
a3d2fd535a
|
|
@ -1,6 +1,6 @@
|
|||
require ntp.inc
|
||||
|
||||
PR = "r4"
|
||||
PR = "r5"
|
||||
|
||||
inherit systemd
|
||||
|
||||
|
|
@ -29,14 +29,14 @@ do_install_append() {
|
|||
install -d ${D}/${sysconfdir}/network/if-up.d
|
||||
install -m 755 ${WORKDIR}/ntpdate ${D}/${sysconfdir}/network/if-up.d
|
||||
|
||||
install -d ${D}${base_libdir}/systemd/system
|
||||
install -m 0644 ${WORKDIR}/ntpdate.service ${D}${base_libdir}/systemd/system/
|
||||
install -m 0644 ${WORKDIR}/ntpd.service ${D}${base_libdir}/systemd/system/
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 0644 ${WORKDIR}/ntpdate.service ${D}${systemd_unitdir}/system/
|
||||
install -m 0644 ${WORKDIR}/ntpd.service ${D}${systemd_unitdir}/system/
|
||||
}
|
||||
|
||||
PACKAGES =+ "${PN}-systemd"
|
||||
|
||||
FILES_${PN}-systemd = "${base_libdir}/systemd/system/"
|
||||
FILES_${PN}-systemd = "${systemd_unitdir}/system/"
|
||||
RDEPENDS_${PN}-systemd = "${PN}"
|
||||
|
||||
FILES_${PN}-bin = "${bindir}/ntp-wait ${bindir}/ntpdc ${bindir}/ntpq ${bindir}/ntptime ${bindir}/ntptrace"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user