summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/dhcp/dhcp.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/dhcp/dhcp.inc')
-rw-r--r--meta/recipes-connectivity/dhcp/dhcp.inc12
1 files changed, 8 insertions, 4 deletions
diff --git a/meta/recipes-connectivity/dhcp/dhcp.inc b/meta/recipes-connectivity/dhcp/dhcp.inc
index 6ced77500a..3bf1ea958d 100644
--- a/meta/recipes-connectivity/dhcp/dhcp.inc
+++ b/meta/recipes-connectivity/dhcp/dhcp.inc
@@ -17,12 +17,13 @@ SRC_URI = "ftp://ftp.isc.org/isc/dhcp/${PV}/dhcp-${PV}.tar.gz \
17 file://init-relay file://default-relay \ 17 file://init-relay file://default-relay \
18 file://init-server file://default-server \ 18 file://init-server file://default-server \
19 file://dhclient.conf file://dhcpd.conf \ 19 file://dhclient.conf file://dhcpd.conf \
20 file://dhcpd.service file://dhcrelay.service" 20 file://dhcpd.service file://dhcrelay.service \
21 file://dhcpd6.service "
21 22
22inherit autotools systemd 23inherit autotools systemd
23 24
24SYSTEMD_PACKAGES = "${PN}-server ${PN}-relay" 25SYSTEMD_PACKAGES = "${PN}-server ${PN}-relay"
25SYSTEMD_SERVICE_${PN}-server = "dhcpd.service" 26SYSTEMD_SERVICE_${PN}-server = "dhcpd.service dhcpd6.service"
26SYSTEMD_AUTO_ENABLE_${PN}-server = "disable" 27SYSTEMD_AUTO_ENABLE_${PN}-server = "disable"
27 28
28SYSTEMD_SERVICE_${PN}-relay = "dhcrelay.service" 29SYSTEMD_SERVICE_${PN}-relay = "dhcrelay.service"
@@ -59,9 +60,12 @@ do_install_append () {
59 # Install systemd unit files 60 # Install systemd unit files
60 install -d ${D}${systemd_unitdir}/system 61 install -d ${D}${systemd_unitdir}/system
61 install -m 0644 ${WORKDIR}/dhcpd.service ${D}${systemd_unitdir}/system 62 install -m 0644 ${WORKDIR}/dhcpd.service ${D}${systemd_unitdir}/system
63 install -m 0644 ${WORKDIR}/dhcpd6.service ${D}${systemd_unitdir}/system
62 install -m 0644 ${WORKDIR}/dhcrelay.service ${D}${systemd_unitdir}/system 64 install -m 0644 ${WORKDIR}/dhcrelay.service ${D}${systemd_unitdir}/system
63 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/dhcpd.service ${D}${systemd_unitdir}/system/dhcrelay.service 65 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/dhcpd*.service ${D}${systemd_unitdir}/system/dhcrelay.service
64 sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/dhcpd.service 66 sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/dhcpd*.service
67 sed -i -e 's,@base_bindir@,${base_bindir},g' ${D}${systemd_unitdir}/system/dhcpd*.service
68 sed -i -e 's,@localstatedir@,${localstatedir},g' ${D}${systemd_unitdir}/system/dhcpd*.service
65} 69}
66 70
67PACKAGES += "dhcp-server dhcp-server-config dhcp-client dhcp-relay dhcp-omshell" 71PACKAGES += "dhcp-server dhcp-server-config dhcp-client dhcp-relay dhcp-omshell"