aboutsummaryrefslogtreecommitdiffstats
path: root/meta-systemd/meta-networking/recipes-support/ntp/ntp_4.2.6p5.bbappend
blob: c6cd03147f2e1f7c72fe5e995b1c50629e419653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
inherit systemd

PRINC := "${@int(PRINC) + 1}"

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SYSTEMD_PACKAGES = "${PN}-systemd ntpdate-systemd"
SYSTEMD_SERVICE_${PN}-systemd = "ntpd.service"
SYSTEMD_SERVICE_ntpdate-systemd = "ntpdate.service"

SRC_URI += " \
	file://ntpdate.service \
        file://ntpd.service \
"

do_install_append() {
	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/
}