[oe-commits] Hongxu Jia : rpcbind: add PACKAGECONFIG for systemd

git at git.openembedded.org git at git.openembedded.org
Fri Jan 23 11:36:57 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: e3d3534f30afd52c4c8f5e8f9f098964b2f03c4b
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=e3d3534f30afd52c4c8f5e8f9f098964b2f03c4b

Author: Hongxu Jia <hongxu.jia at windriver.com>
Date:   Tue Jan 13 10:24:23 2015 +0800

rpcbind: add PACKAGECONFIG for systemd

Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>

---

 meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb b/meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb
index 44c79eb..fd4b2b5 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 () {



More information about the Openembedded-commits mailing list