On Thu, Dec 16, 2021 at 12:32 AM Jeremy Kerr <[email protected]> wrote:
>
> mctpd ships with an example dbus service configuration, so install in
> the dbus system configuration dir.
>
> Signed-off-by: Jeremy Kerr <[email protected]>
> ---
>  meta-networking/recipes-support/mctp/mctp_git.bb | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/meta-networking/recipes-support/mctp/mctp_git.bb 
> b/meta-networking/recipes-support/mctp/mctp_git.bb
> index 6cc5b1480..9c440b6d4 100644
> --- a/meta-networking/recipes-support/mctp/mctp_git.bb
> +++ b/meta-networking/recipes-support/mctp/mctp_git.bb
> @@ -24,10 +24,18 @@ PACKAGECONFIG ??= " \
>  PACKAGECONFIG[systemd] = ",,systemd,libsystemd"
>  SYSTEMD_SERVICE:${PN} = "mctpd.service"
>
> +FILES:${PN} += " \
> +        ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', \
> +                '${datadir}/dbus-1/system.d/mctpd.conf', '', d)} \
> +"
> +

this should go below do_install and other functions. You can run
./contrib/oe-stylize.py
also to get some help on formatting

>  do_install:append () {
>      if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'true', 'false', 
> d)}; then
>          install -d ${D}${systemd_system_unitdir}
>          install -m 0644 ${S}/conf/mctpd.service \
>                  ${D}${systemd_system_unitdir}/mctpd.service
> +        install -d ${D}${datadir}/dbus-1/system.d
> +        install -m 0644 ${S}/conf/mctpd-dbus.conf \
> +                ${D}${datadir}/dbus-1/system.d/mctpd.conf
>      fi
>  }
> --
> 2.33.0
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#94405): 
https://lists.openembedded.org/g/openembedded-devel/message/94405
Mute This Topic: https://lists.openembedded.org/mt/87763264/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to