mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
dhcp: use ${PN} for SYSTEMD_SERVICES
We should use ${PN} instead of hardcoding 'dhcp' for SYSTEMD_SERVICES,
otherwise we would have 'installed-not-shipped' QA error if we are building
lib32-dhcp.
(From OE-Core rev: c3a152f946f7cb1666384fd7a214f883cbaecb56)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -21,12 +21,12 @@ SRC_URI = "ftp://ftp.isc.org/isc/dhcp/${PV}/dhcp-${PV}.tar.gz \
|
|||||||
|
|
||||||
inherit autotools systemd
|
inherit autotools systemd
|
||||||
|
|
||||||
SYSTEMD_PACKAGES = "dhcp-server dhcp-relay"
|
SYSTEMD_PACKAGES = "${PN}-server ${PN}-relay"
|
||||||
SYSTEMD_SERVICE_dhcp-server = "dhcpd.service"
|
SYSTEMD_SERVICE_${PN}-server = "dhcpd.service"
|
||||||
SYSTEMD_AUTO_ENABLE_dhcp-server = "disable"
|
SYSTEMD_AUTO_ENABLE_${PN}-server = "disable"
|
||||||
|
|
||||||
SYSTEMD_SERVICE_dhcp-relay = "dhcrelay.service"
|
SYSTEMD_SERVICE_${PN}-relay = "dhcrelay.service"
|
||||||
SYSTEMD_AUTO_ENABLE_dhcp-relay = "disable"
|
SYSTEMD_AUTO_ENABLE_${PN}-relay = "disable"
|
||||||
|
|
||||||
TARGET_CFLAGS += "-D_GNU_SOURCE"
|
TARGET_CFLAGS += "-D_GNU_SOURCE"
|
||||||
EXTRA_OECONF = "--with-srv-lease-file=${localstatedir}/lib/dhcp/dhcpd.leases \
|
EXTRA_OECONF = "--with-srv-lease-file=${localstatedir}/lib/dhcp/dhcpd.leases \
|
||||||
|
|||||||
Reference in New Issue
Block a user