diff options
Diffstat (limited to 'meta-networking/recipes-support/chrony')
-rw-r--r-- | meta-networking/recipes-support/chrony/chrony_4.6.1.bb (renamed from meta-networking/recipes-support/chrony/chrony_4.5.bb) | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/meta-networking/recipes-support/chrony/chrony_4.5.bb b/meta-networking/recipes-support/chrony/chrony_4.6.1.bb index ed26e59879..5ac3e6d37e 100644 --- a/meta-networking/recipes-support/chrony/chrony_4.5.bb +++ b/meta-networking/recipes-support/chrony/chrony_4.6.1.bb | |||
@@ -30,7 +30,7 @@ SECTION = "net" | |||
30 | LICENSE = "GPL-2.0-only" | 30 | LICENSE = "GPL-2.0-only" |
31 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | 31 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
32 | 32 | ||
33 | SRC_URI = "https://download.tuxfamily.org/chrony/chrony-${PV}.tar.gz \ | 33 | SRC_URI = "https://chrony-project.org/releases/chrony-${PV}.tar.gz \ |
34 | file://chrony.conf \ | 34 | file://chrony.conf \ |
35 | file://chronyd \ | 35 | file://chronyd \ |
36 | file://arm_eabi.patch \ | 36 | file://arm_eabi.patch \ |
@@ -39,7 +39,7 @@ SRC_URI = "https://download.tuxfamily.org/chrony/chrony-${PV}.tar.gz \ | |||
39 | SRC_URI:append:libc-musl = " \ | 39 | SRC_URI:append:libc-musl = " \ |
40 | file://0001-Fix-compilation-with-musl.patch \ | 40 | file://0001-Fix-compilation-with-musl.patch \ |
41 | " | 41 | " |
42 | SRC_URI[sha256sum] = "19fe1d9f4664d445a69a96c71e8fdb60bcd8df24c73d1386e02287f7366ad422" | 42 | SRC_URI[sha256sum] = "571ff73fbf0ae3097f0604eca2e00b1d8bb2e91affe1a3494785ff21d6199c5c" |
43 | 43 | ||
44 | DEPENDS = "pps-tools" | 44 | DEPENDS = "pps-tools" |
45 | 45 | ||
@@ -48,9 +48,9 @@ DEPENDS = "pps-tools" | |||
48 | inherit update-rc.d systemd pkgconfig | 48 | inherit update-rc.d systemd pkgconfig |
49 | 49 | ||
50 | # Add chronyd user if privdrop packageconfig is selected | 50 | # Add chronyd user if privdrop packageconfig is selected |
51 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'privdrop', 'useradd', '', d)} | 51 | inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'privdrop', 'useradd', '', d)} |
52 | USERADD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '${PN}', '', d)}" | 52 | USERADD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '${PN}', '', d)}" |
53 | USERADD_PARAM:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '--system -d / -M --shell /bin/nologin chronyd;', '', d)}" | 53 | USERADD_PARAM:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '--system -d / -M --shell /sbin/nologin chronyd;', '', d)}" |
54 | 54 | ||
55 | # Configuration options: | 55 | # Configuration options: |
56 | # - Security-related: | 56 | # - Security-related: |
@@ -67,6 +67,7 @@ PACKAGECONFIG[sechash] = "--without-tomcrypt,--disable-sechash,nss" | |||
67 | PACKAGECONFIG[privdrop] = ",--disable-privdrop,libcap" | 67 | PACKAGECONFIG[privdrop] = ",--disable-privdrop,libcap" |
68 | PACKAGECONFIG[scfilter] = "--enable-scfilter,--without-seccomp,libseccomp" | 68 | PACKAGECONFIG[scfilter] = "--enable-scfilter,--without-seccomp,libseccomp" |
69 | PACKAGECONFIG[ipv6] = ",--disable-ipv6," | 69 | PACKAGECONFIG[ipv6] = ",--disable-ipv6," |
70 | PACKAGECONFIG[nts] = ",--disable-nts,gnutls" | ||
70 | 71 | ||
71 | # --disable-static isn't supported by chrony's configure script. | 72 | # --disable-static isn't supported by chrony's configure script. |
72 | DISABLE_STATIC = "" | 73 | DISABLE_STATIC = "" |
@@ -90,7 +91,7 @@ do_install() { | |||
90 | 91 | ||
91 | # Config file | 92 | # Config file |
92 | install -d ${D}${sysconfdir} | 93 | install -d ${D}${sysconfdir} |
93 | install -m 644 ${WORKDIR}/chrony.conf ${D}${sysconfdir} | 94 | install -m 644 ${UNPACKDIR}/chrony.conf ${D}${sysconfdir} |
94 | if ${@bb.utils.contains('PACKAGECONFIG', 'privdrop', 'true', 'false', d)}; then | 95 | if ${@bb.utils.contains('PACKAGECONFIG', 'privdrop', 'true', 'false', d)}; then |
95 | echo "# Define user to drop to after dropping root privileges" >> ${D}${sysconfdir}/chrony.conf | 96 | echo "# Define user to drop to after dropping root privileges" >> ${D}${sysconfdir}/chrony.conf |
96 | echo "user chronyd" >> ${D}${sysconfdir}/chrony.conf | 97 | echo "user chronyd" >> ${D}${sysconfdir}/chrony.conf |
@@ -98,7 +99,7 @@ do_install() { | |||
98 | 99 | ||
99 | # System V init script | 100 | # System V init script |
100 | install -d ${D}${sysconfdir}/init.d | 101 | install -d ${D}${sysconfdir}/init.d |
101 | install -m 755 ${WORKDIR}/chronyd ${D}${sysconfdir}/init.d | 102 | install -m 755 ${UNPACKDIR}/chronyd ${D}${sysconfdir}/init.d |
102 | 103 | ||
103 | # systemd unit configuration file | 104 | # systemd unit configuration file |
104 | install -d ${D}${systemd_unitdir}/system | 105 | install -d ${D}${systemd_unitdir}/system |