summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2015-01-13 10:24:23 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-23 11:35:28 +0000
commite3d3534f30afd52c4c8f5e8f9f098964b2f03c4b (patch)
treee7ef7c588248f83e37999d4cdf8204920f2a0848
parent07a3ae994b293053c57f38b176e428322fb816bc (diff)
downloadopenembedded-core-e3d3534f30afd52c4c8f5e8f9f098964b2f03c4b.tar.gz
openembedded-core-e3d3534f30afd52c4c8f5e8f9f098964b2f03c4b.tar.bz2
openembedded-core-e3d3534f30afd52c4c8f5e8f9f098964b2f03c4b.zip
rpcbind: add PACKAGECONFIG for systemd
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
-rw-r--r--meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb b/meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb
index 44c79eb21f..fd4b2b5b07 100644
--- a/meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb
+++ b/meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb
@@ -42,6 +42,12 @@ USERADD_PACKAGES = "${PN}"
USERADD_PARAM_${PN} = "--system --no-create-home --home-dir / \
--shell /bin/false --user-group rpc"
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
+PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/, \
+ --without-systemdsystemunitdir, \
+ systemd \
+"
+
EXTRA_OECONF += " --enable-warmstarts --with-rpcuser=rpc"
do_install_append () {