summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb')
-rw-r--r--meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb11
1 files changed, 7 insertions, 4 deletions
diff --git a/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb b/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb
index 4007a4bd2d..ab6ffe986c 100644
--- a/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb
+++ b/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb
@@ -32,8 +32,11 @@ PACKAGECONFIG[ntp] = "--with-hook=ntp, , ,ntp"
32PACKAGECONFIG[chrony] = "--with-hook=ntp, , ,chrony" 32PACKAGECONFIG[chrony] = "--with-hook=ntp, , ,chrony"
33PACKAGECONFIG[ypbind] = "--with-eghook=yp, , ,ypbind-mt" 33PACKAGECONFIG[ypbind] = "--with-eghook=yp, , ,ypbind-mt"
34 34
35# add option to override DBDIR location
36DBDIR ?= "${localstatedir}/lib/${BPN}"
37
35EXTRA_OECONF = "--enable-ipv4 \ 38EXTRA_OECONF = "--enable-ipv4 \
36 --dbdir=${localstatedir}/lib/${BPN} \ 39 --dbdir=${DBDIR} \
37 --sbindir=${base_sbindir} \ 40 --sbindir=${base_sbindir} \
38 --runstatedir=/run \ 41 --runstatedir=/run \
39 --enable-privsep \ 42 --enable-privsep \
@@ -43,15 +46,15 @@ EXTRA_OECONF = "--enable-ipv4 \
43 " 46 "
44 47
45USERADD_PACKAGES = "${PN}" 48USERADD_PACKAGES = "${PN}"
46USERADD_PARAM:${PN} = "--system -d ${localstatedir}/lib/${BPN} -M -s /bin/false -U dhcpcd" 49USERADD_PARAM:${PN} = "--system -d ${DBDIR} -M -s /bin/false -U dhcpcd"
47 50
48do_install:append () { 51do_install:append () {
49 # install systemd unit files 52 # install systemd unit files
50 install -d ${D}${systemd_system_unitdir} 53 install -d ${D}${systemd_system_unitdir}
51 install -m 0644 ${WORKDIR}/dhcpcd*.service ${D}${systemd_system_unitdir} 54 install -m 0644 ${WORKDIR}/dhcpcd*.service ${D}${systemd_system_unitdir}
52 55
53 chmod 700 ${D}${localstatedir}/lib/${BPN} 56 chmod 700 ${D}${DBDIR}
54 chown dhcpcd:dhcpcd ${D}${localstatedir}/lib/${BPN} 57 chown dhcpcd:dhcpcd ${D}${DBDIR}
55} 58}
56 59
57FILES:${PN}-dbg += "${libdir}/dhcpcd/dev/.debug" 60FILES:${PN}-dbg += "${libdir}/dhcpcd/dev/.debug"