]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
rpcbind: add PACKAGECONFIG for systemd
authorHongxu Jia <hongxu.jia@windriver.com>
Tue, 13 Jan 2015 02:24:23 +0000 (10:24 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Jan 2015 11:35:28 +0000 (11:35 +0000)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb

index 44c79eb21f4d5a0db1108bf16000d7e5e82280eb..fd4b2b5b07c4e1e9c8e62b064153ee23b34c7c9e 100644 (file)
@@ -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 () {