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:
Chen Qi 2014-09-15 15:46:13 +08:00 committed by Richard Purdie
parent 3028c8efed
commit c15ed36cd6
1 changed files with 5 additions and 5 deletions

View File

@ -21,12 +21,12 @@ SRC_URI = "ftp://ftp.isc.org/isc/dhcp/${PV}/dhcp-${PV}.tar.gz \
inherit autotools systemd
SYSTEMD_PACKAGES = "dhcp-server dhcp-relay"
SYSTEMD_SERVICE_dhcp-server = "dhcpd.service"
SYSTEMD_AUTO_ENABLE_dhcp-server = "disable"
SYSTEMD_PACKAGES = "${PN}-server ${PN}-relay"
SYSTEMD_SERVICE_${PN}-server = "dhcpd.service"
SYSTEMD_AUTO_ENABLE_${PN}-server = "disable"
SYSTEMD_SERVICE_dhcp-relay = "dhcrelay.service"
SYSTEMD_AUTO_ENABLE_dhcp-relay = "disable"
SYSTEMD_SERVICE_${PN}-relay = "dhcrelay.service"
SYSTEMD_AUTO_ENABLE_${PN}-relay = "disable"
TARGET_CFLAGS += "-D_GNU_SOURCE"
EXTRA_OECONF = "--with-srv-lease-file=${localstatedir}/lib/dhcp/dhcpd.leases \