summaryrefslogtreecommitdiff
path: root/meta/recipes-connectivity/dhcp
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-09-15 15:46:13 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-29 12:11:49 +0100
commitc3a152f946f7cb1666384fd7a214f883cbaecb56 (patch)
treefa1d839e6d243f7db85631c4ff9c04a0d153d72d /meta/recipes-connectivity/dhcp
parent708cc039b6cc891e466e89d2b10fcdea6c19287c (diff)
downloadopenembedded-core-c3a152f946f7cb1666384fd7a214f883cbaecb56.tar.gz
openembedded-core-c3a152f946f7cb1666384fd7a214f883cbaecb56.tar.bz2
openembedded-core-c3a152f946f7cb1666384fd7a214f883cbaecb56.zip
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. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-connectivity/dhcp')
-rw-r--r--meta/recipes-connectivity/dhcp/dhcp.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/recipes-connectivity/dhcp/dhcp.inc b/meta/recipes-connectivity/dhcp/dhcp.inc
index a1752548be..4949e0201e 100644
--- a/meta/recipes-connectivity/dhcp/dhcp.inc
+++ b/meta/recipes-connectivity/dhcp/dhcp.inc
@@ -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 \