mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-30 00:32:21 +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:
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
|
# look for files in the layer first
|
||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
||||||
|
|
||||||
inherit systemd
|
SYSTEMD_PACKAGES += "dhcp-client"
|
||||||
|
|
||||||
SYSTEMD_PACKAGES = "dhcp-server dhcp-relay dhcp-client"
|
|
||||||
SYSTEMD_SERVICE_dhcp-server = "dhcpd.service"
|
|
||||||
SYSTEMD_SERVICE_dhcp-relay = "dhcrelay.service"
|
|
||||||
SYSTEMD_SERVICE_dhcp-client = "dhclient.service"
|
SYSTEMD_SERVICE_dhcp-client = "dhclient.service"
|
||||||
SYSTEMD_AUTO_ENABLE_dhcp-client = "disable"
|
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"
|
FILES_dhcp-client += "${systemd_unitdir}/system/dhclient.service"
|
||||||
RPROVIDES_dhcp-server += "dhcp-server-systemd"
|
RPROVIDES_dhcp-server += "dhcp-server-systemd"
|
||||||
RREPLACES_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"
|
RREPLACES_dhcp-client += "dhcp-client-systemd"
|
||||||
RCONFLICTS_dhcp-client += "dhcp-client-systemd"
|
RCONFLICTS_dhcp-client += "dhcp-client-systemd"
|
||||||
|
|
||||||
SRC_URI += "file://dhcpd.service \
|
SRC_URI += "file://dhclient.service"
|
||||||
file://dhclient.service \
|
|
||||||
file://dhcrelay.service \
|
|
||||||
"
|
|
||||||
do_install_append() {
|
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}/dhclient.service ${D}${systemd_unitdir}/system
|
||||||
install -m 0644 ${WORKDIR}/dhcrelay.service ${D}${systemd_unitdir}/system
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user