Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | # look for files in the layer first |
| 2 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 3 | |
| 4 | SYSTEMD_PACKAGES += "dhcp-client" |
| 5 | SYSTEMD_SERVICE_dhcp-client = "dhclient.service" |
| 6 | SYSTEMD_AUTO_ENABLE_dhcp-client = "disable" |
| 7 | |
| 8 | FILES_${PN}-client += "${systemd_unitdir}/system/dhclient.service" |
| 9 | RPROVIDES_dhcp-server += "dhcp-server-systemd" |
| 10 | RREPLACES_dhcp-server += "dhcp-server-systemd" |
| 11 | RCONFLICTS_dhcp-server += "dhcp-server-systemd" |
| 12 | RPROVIDES_dhcp-relay += "dhcp-relay-systemd" |
| 13 | RREPLACES_dhcp-relay += "dhcp-relay-systemd" |
| 14 | RCONFLICTS_dhcp-relay += "dhcp-relay-systemd" |
| 15 | RPROVIDES_${PN}-client += "dhcp-client-systemd" |
| 16 | RREPLACES_${PN}-client += "dhcp-client-systemd" |
| 17 | RCONFLICTS_${PN}-client += "dhcp-client-systemd" |
| 18 | |
| 19 | SRC_URI += "file://dhclient.service" |
| 20 | |
| 21 | do_install_append() { |
| 22 | install -m 0644 ${WORKDIR}/dhclient.service ${D}${systemd_unitdir}/system |
| 23 | } |
| 24 | |