mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-10-01 15:47:41 +00:00
ntp: move systemd support from meta-systemd back to meta-networking
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
parent
9858cfdb48
commit
4188d72551
@ -8,7 +8,7 @@ SECTION = "console/network"
|
|||||||
LICENSE = "NTP"
|
LICENSE = "NTP"
|
||||||
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fea4b50c33b18c2194b4b1c9ca512670"
|
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fea4b50c33b18c2194b4b1c9ca512670"
|
||||||
|
|
||||||
INC_PR = "r3"
|
INC_PR = "r6"
|
||||||
|
|
||||||
SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.gz \
|
SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.gz \
|
||||||
file://tickadj.c.patch \
|
file://tickadj.c.patch \
|
||||||
@ -18,9 +18,11 @@ SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.g
|
|||||||
file://ntp.conf \
|
file://ntp.conf \
|
||||||
file://ntpdate \
|
file://ntpdate \
|
||||||
file://ntpdate.default \
|
file://ntpdate.default \
|
||||||
|
file://ntpdate.service \
|
||||||
|
file://ntpd.service \
|
||||||
"
|
"
|
||||||
|
|
||||||
inherit autotools update-rc.d
|
inherit autotools update-rc.d systemd
|
||||||
|
|
||||||
# The ac_cv_header_readline_history is to stop ntpdc depending on either
|
# The ac_cv_header_readline_history is to stop ntpdc depending on either
|
||||||
# readline or curses
|
# readline or curses
|
||||||
@ -52,6 +54,10 @@ do_install_append() {
|
|||||||
install -m 644 ${WORKDIR}/ntpdate.default ${D}${sysconfdir}/default/ntpdate
|
install -m 644 ${WORKDIR}/ntpdate.default ${D}${sysconfdir}/default/ntpdate
|
||||||
install -d ${D}/${sysconfdir}/network/if-up.d
|
install -d ${D}/${sysconfdir}/network/if-up.d
|
||||||
ln -s ${bindir}/ntpdate-sync ${D}/${sysconfdir}/network/if-up.d
|
ln -s ${bindir}/ntpdate-sync ${D}/${sysconfdir}/network/if-up.d
|
||||||
|
|
||||||
|
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 += "ntpdate ${PN}-tickadj ${PN}-utils"
|
PACKAGES += "ntpdate ${PN}-tickadj ${PN}-utils"
|
||||||
@ -65,12 +71,29 @@ RPROVIDES_${PN}-utils = "${PN}-bin"
|
|||||||
RREPLACES_${PN}-utils = "${PN}-bin"
|
RREPLACES_${PN}-utils = "${PN}-bin"
|
||||||
RCONFLICTS_${PN}-utils = "${PN}-bin"
|
RCONFLICTS_${PN}-utils = "${PN}-bin"
|
||||||
|
|
||||||
|
SYSTEMD_PACKAGES = "${PN} ntpdate"
|
||||||
|
SYSTEMD_SERVICE_${PN} = "ntpd.service"
|
||||||
|
SYSTEMD_SERVICE_ntpdate = "ntpdate.service"
|
||||||
|
|
||||||
|
RPROVIDES_${PN} += "${PN}-systemd"
|
||||||
|
RREPLACES_${PN} += "${PN}-systemd"
|
||||||
|
RCONFLICTS_${PN} += "${PN}-systemd"
|
||||||
|
|
||||||
|
RPROVIDES_ntpdate += "ntpdate-systemd"
|
||||||
|
RREPLACES_ntpdate += "ntpdate-systemd"
|
||||||
|
RCONFLICTS_ntpdate += "ntpdate-systemd"
|
||||||
|
|
||||||
RSUGGESTS_${PN} = "iana-etc"
|
RSUGGESTS_${PN} = "iana-etc"
|
||||||
|
|
||||||
FILES_${PN} = "${bindir}/ntpd ${sysconfdir}/ntp.conf ${sysconfdir}/init.d/ntpd ${sbindir} ${libdir}"
|
FILES_${PN} = "${bindir}/ntpd ${sysconfdir}/ntp.conf ${sysconfdir}/init.d/ntpd ${sbindir} ${libdir}"
|
||||||
FILES_${PN}-tickadj = "${bindir}/tickadj"
|
FILES_${PN}-tickadj = "${bindir}/tickadj"
|
||||||
FILES_${PN}-utils = "${bindir}"
|
FILES_${PN}-utils = "${bindir}"
|
||||||
FILES_ntpdate = "${bindir}/ntpdate ${sysconfdir}/network/if-up.d/ntpdate-sync ${bindir}/ntpdate-sync ${sysconfdir}/default/ntpdate"
|
FILES_ntpdate = "${bindir}/ntpdate \
|
||||||
|
${sysconfdir}/network/if-up.d/ntpdate-sync \
|
||||||
|
${bindir}/ntpdate-sync \
|
||||||
|
${sysconfdir}/default/ntpdate \
|
||||||
|
${systemd_unitdir}/system/ntpdate.service \
|
||||||
|
"
|
||||||
|
|
||||||
CONFFILES_${PN} = "${sysconfdir}/ntp.conf"
|
CONFFILES_${PN} = "${sysconfdir}/ntp.conf"
|
||||||
CONFFILES_ntpdate = "${sysconfdir}/default/ntpdate"
|
CONFFILES_ntpdate = "${sysconfdir}/default/ntpdate"
|
||||||
|
|||||||
@ -4,4 +4,3 @@ PR = "${INC_PR}.0"
|
|||||||
|
|
||||||
SRC_URI[md5sum] = "00df80a84ec9528fcfb09498075525bc"
|
SRC_URI[md5sum] = "00df80a84ec9528fcfb09498075525bc"
|
||||||
SRC_URI[sha256sum] = "d6ab8371f9d31e594eb6922823d5ccd03dcc4e9d84b0e23ea25ac1405432f91c"
|
SRC_URI[sha256sum] = "d6ab8371f9d31e594eb6922823d5ccd03dcc4e9d84b0e23ea25ac1405432f91c"
|
||||||
|
|
||||||
|
|||||||
@ -1,28 +0,0 @@
|
|||||||
inherit systemd
|
|
||||||
|
|
||||||
PRINC := "${@int(PRINC) + 2}"
|
|
||||||
|
|
||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
|
||||||
|
|
||||||
SYSTEMD_PACKAGES = "${PN} ntpdate"
|
|
||||||
SYSTEMD_SERVICE_${PN} = "ntpd.service"
|
|
||||||
SYSTEMD_SERVICE_ntpdate = "ntpdate.service"
|
|
||||||
RPROVIDES_${PN} += "${PN}-systemd"
|
|
||||||
RREPLACES_${PN} += "${PN}-systemd"
|
|
||||||
RCONFLICTS_${PN} += "${PN}-systemd"
|
|
||||||
RPROVIDES_ntpdate += "ntpdate-systemd"
|
|
||||||
RREPLACES_ntpdate += "ntpdate-systemd"
|
|
||||||
RCONFLICTS_ntpdate += "ntpdate-systemd"
|
|
||||||
|
|
||||||
FILES_ntpdate += "${systemd_unitdir}/system/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/
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user