mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 23:48:20 +00:00
dhcp: remove parts now merged into OE-Core recipe
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
committed by
Martin Jansa
parent
2b47bf3d60
commit
1956582b91
@@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=Dynamic Host Configuration Protocol (DHCP)
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/dhcpd.pid
|
||||
EnvironmentFile=-/etc/default/dhcp-server
|
||||
ExecStart=/usr/sbin/dhcpd -cf /etc/dhcp/dhcpd.conf -q $INTERFACES
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,10 +0,0 @@
|
||||
[Unit]
|
||||
Description=DHCP Relay Agent Daemon
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=/etc/default/dhcp-relay
|
||||
ExecStart=/usr/sbin/dhcrelay -d $DHCRELAYARGS
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,16 +1,10 @@
|
||||
# look for files in the layer first
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
inherit systemd
|
||||
|
||||
SYSTEMD_PACKAGES = "dhcp-server dhcp-relay dhcp-client"
|
||||
SYSTEMD_SERVICE_dhcp-server = "dhcpd.service"
|
||||
SYSTEMD_SERVICE_dhcp-relay = "dhcrelay.service"
|
||||
SYSTEMD_PACKAGES += "dhcp-client"
|
||||
SYSTEMD_SERVICE_dhcp-client = "dhclient.service"
|
||||
SYSTEMD_AUTO_ENABLE_dhcp-client = "disable"
|
||||
|
||||
FILES_dhcp-server += "${systemd_unitdir}/system/dhcpd.service"
|
||||
FILES_dhcp-relay += "${systemd_unitdir}/system/dhrelay.service"
|
||||
FILES_dhcp-client += "${systemd_unitdir}/system/dhclient.service"
|
||||
RPROVIDES_dhcp-server += "dhcp-server-systemd"
|
||||
RREPLACES_dhcp-server += "dhcp-server-systemd"
|
||||
@@ -22,14 +16,9 @@ RPROVIDES_dhcp-client += "dhcp-client-systemd"
|
||||
RREPLACES_dhcp-client += "dhcp-client-systemd"
|
||||
RCONFLICTS_dhcp-client += "dhcp-client-systemd"
|
||||
|
||||
SRC_URI += "file://dhcpd.service \
|
||||
file://dhclient.service \
|
||||
file://dhcrelay.service \
|
||||
"
|
||||
SRC_URI += "file://dhclient.service"
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 0644 ${WORKDIR}/dhcpd.service ${D}${systemd_unitdir}/system
|
||||
install -m 0644 ${WORKDIR}/dhclient.service ${D}${systemd_unitdir}/system
|
||||
install -m 0644 ${WORKDIR}/dhcrelay.service ${D}${systemd_unitdir}/system
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user