diff options
| -rw-r--r-- | meta/recipes-connectivity/dhcpcd/dhcpcd_9.2.0.bb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/dhcpcd/dhcpcd_9.2.0.bb b/meta/recipes-connectivity/dhcpcd/dhcpcd_9.2.0.bb index 557e15128e..4344841b54 100644 --- a/meta/recipes-connectivity/dhcpcd/dhcpcd_9.2.0.bb +++ b/meta/recipes-connectivity/dhcpcd/dhcpcd_9.2.0.bb | |||
| @@ -19,7 +19,7 @@ SRC_URI = "https://roy.marples.name/downloads/${BPN}/${BPN}-${PV}.tar.xz \ | |||
| 19 | 19 | ||
| 20 | SRC_URI[sha256sum] = "fcb2d19672d445bbfd38678fdee4f556ef967a3ea6bd81092d10545df2cb9666" | 20 | SRC_URI[sha256sum] = "fcb2d19672d445bbfd38678fdee4f556ef967a3ea6bd81092d10545df2cb9666" |
| 21 | 21 | ||
| 22 | inherit pkgconfig autotools-brokensep systemd | 22 | inherit pkgconfig autotools-brokensep systemd useradd |
| 23 | 23 | ||
| 24 | SYSTEMD_SERVICE_${PN} = "dhcpcd.service" | 24 | SYSTEMD_SERVICE_${PN} = "dhcpcd.service" |
| 25 | 25 | ||
| @@ -33,10 +33,16 @@ EXTRA_OECONF = "--enable-ipv4 \ | |||
| 33 | --runstatedir=/run \ | 33 | --runstatedir=/run \ |
| 34 | " | 34 | " |
| 35 | 35 | ||
| 36 | USERADD_PACKAGES = "${PN}" | ||
| 37 | USERADD_PARAM_${PN} = "--system -d ${localstatedir}/lib/${BPN} -M -s /bin/false -U dhcpcd" | ||
| 38 | |||
| 36 | do_install_append () { | 39 | do_install_append () { |
| 37 | # install systemd unit files | 40 | # install systemd unit files |
| 38 | install -d ${D}${systemd_unitdir}/system | 41 | install -d ${D}${systemd_unitdir}/system |
| 39 | install -m 0644 ${WORKDIR}/dhcpcd*.service ${D}${systemd_unitdir}/system | 42 | install -m 0644 ${WORKDIR}/dhcpcd*.service ${D}${systemd_unitdir}/system |
| 43 | |||
| 44 | chmod 700 ${D}${localstatedir}/lib/${BPN} | ||
| 45 | chown dhcpcd:dhcpcd ${D}${localstatedir}/lib/${BPN} | ||
| 40 | } | 46 | } |
| 41 | 47 | ||
| 42 | FILES_${PN}-dbg += "${libdir}/dhcpcd/dev/.debug" | 48 | FILES_${PN}-dbg += "${libdir}/dhcpcd/dev/.debug" |
