From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vs1-f44.google.com (mail-vs1-f44.google.com [209.85.217.44]) by mx.groups.io with SMTP id smtpd.web09.171.1618940199279453115 for ; Tue, 20 Apr 2021 10:36:39 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e68vrB7N; spf=pass (domain: gmail.com, ip: 209.85.217.44, mailfrom: alex.kanavin@gmail.com) Received: by mail-vs1-f44.google.com with SMTP id k19so6700532vsg.0 for ; Tue, 20 Apr 2021 10:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=K+UJpNbCOr9BHfcN0h2agOeT6V0dsRVuNmLNLrmuMVo=; b=e68vrB7NUeiJr2RVUGobkV3CHvbbFV14hPUMeUSkA+FsbwktC9v5mspzyTTRaPoHCb QWYAsil+vr1fjLQpqoB7ikWXVenKHhz4xsSk/GRXceFEtgClLFcdnH7AvhNW9CgM3U3M cP9D+dK8YQhZYO/39OHP+r6CPXcnmsYFjQ70SDfMeOHyZvZthfIOT8dO0QqA4/gNJN5H IyySJbamZunj3sz5CevuRZo8A0LgiT0CvAMJmrER3zU8IcIaKoii/awNVpp1o64Qqtq6 fLAFQi9h4Vx4DD1ZJFC4mlZokeI7G7hqVIUWmoi9l288yF9mC9uuPRm7+2a7nPuRjDP+ 6sRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K+UJpNbCOr9BHfcN0h2agOeT6V0dsRVuNmLNLrmuMVo=; b=d/duyGxOvugkVTRG4jgMPxDzOv9AFxxaqlHnVfVCBNjbXPv5JJP7VBWrRLMmfdZwKM FQtxr/Zy/3feUNRFY6xijjEjp+EnOpaxMqjdaBl/SagkI8f9Z7yGzs43yLCTWczpD0y3 Z1ClhVZYh3cQquM/t5zmga48697RuiI0IvibEJjmFpaTfc2XDp+vZcYsS4nESHaeTKLP v8jCBeVH1NypqzT+WHBAuyG+CeA1MdmdI4V/cAM08ZI87mhSiya64/TiDOjtcWei7yQj 9oYnFCLsoRVui0NVqZDXWSshW1ZtQJixqJ/TDG6ulqI7hetX1b/fW7Ea1UYaw7QEs3uQ N50Q== X-Gm-Message-State: AOAM5308msscjKuDJrv/u0UlCw2jFbQv9Pvl+HJi+UA9Ka1+FeGAzGFC w8+7vHpoH6GayNnCQNVxLzqZ46IvGHauj8WNfnPLcDe6F6A= X-Google-Smtp-Source: ABdhPJypkC7DTXzjnGMJdh2IZwa5qsZssjdrIth0omaagYbtHKZEOq5amQNJo0iL5hEKAkZRGY/1OrqurZ5pf1gm8A8= X-Received: by 2002:a67:1447:: with SMTP id 68mr20897498vsu.20.1618940138409; Tue, 20 Apr 2021 10:35:38 -0700 (PDT) MIME-Version: 1.0 References: <20210420162259.179433-1-ayaka@soulik.info> In-Reply-To: <20210420162259.179433-1-ayaka@soulik.info> From: "Alexander Kanavin" Date: Tue, 20 Apr 2021 19:35:27 +0200 Message-ID: Subject: Re: [PATCH v2] seatd: add seatd recipe To: Randy Li Cc: OE-core , contact@emersion.fr, kl@kl.wtf Content-Type: multipart/alternative; boundary="000000000000dcd1e705c06adf76" --000000000000dcd1e705c06adf76 Content-Type: text/plain; charset="UTF-8" I guess we need to wait for weston to actually do it, and hold off the patch until then? Alex On Tue, 20 Apr 2021 at 18:23, Randy Li wrote: > From: ayaka > > Weston would adapt the libseat for granting privilege and VT switch. > wlroots has merged it. > > Signed-off-by: ayaka > --- > .../nativesdk-packagegroup-sdk-host.bb | 2 - > ...build-fixup-standalone-without-seatd.patch | 71 +++++++++++++++++++ > meta/recipes-core/seatd/libseat/init | 50 +++++++++++++ > meta/recipes-core/seatd/libseat_0.5.0.bb | 43 +++++++++++ > 4 files changed, 164 insertions(+), 2 deletions(-) > create mode 100644 > meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-seatd.patch > create mode 100644 meta/recipes-core/seatd/libseat/init > create mode 100644 meta/recipes-core/seatd/libseat_0.5.0.bb > > diff --git a/meta/recipes-core/packagegroups/ > nativesdk-packagegroup-sdk-host.bb b/meta/recipes-core/packagegroups/ > nativesdk-packagegroup-sdk-host.bb > index ae989011f4..3e4e148c45 100644 > --- a/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb > +++ b/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb > @@ -11,8 +11,6 @@ PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1" > > RDEPENDS_${PN} = "\ > nativesdk-pkgconfig \ > - nativesdk-qemu \ > - nativesdk-qemu-helper \ > nativesdk-pseudo \ > nativesdk-unfs3 \ > nativesdk-opkg \ > diff --git > a/meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-seatd.patch > b/meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-seatd.patch > new file mode 100644 > index 0000000000..66e1ac73ab > --- /dev/null > +++ > b/meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-seatd.patch > @@ -0,0 +1,71 @@ > +From 084df8ab271ce4b09c1ef5d9c5a859b2d02d20e7 Mon Sep 17 00:00:00 2001 > +From: ayaka > +Date: Mon, 19 Apr 2021 22:15:46 +0800 > +Subject: [PATCH] build: fixup standalone without seatd > + > +I think that server option means the same thing as seatd, so I > +get rid of it. > +--- > + meson.build | 10 +++++----- > + meson_options.txt | 1 - > + 2 files changed, 5 insertions(+), 6 deletions(-) > + > +diff --git a/meson.build b/meson.build > +index 7a70cb6..a2166c5 100644 > +--- a/meson.build > ++++ b/meson.build > +@@ -104,10 +104,11 @@ server_files = [ > + > + with_seatd = get_option('seatd') == 'enabled' > + with_builtin = get_option('builtin') == 'enabled' > +-with_server = get_option('server') == 'enabled' > + > +-if with_seatd > ++if with_seatd or with_builtin > + private_files += 'libseat/backend/seatd.c' > ++endif > ++if with_seatd > + add_project_arguments('-DSEATD_ENABLED=1', language: 'c') > + endif > + > +@@ -189,7 +190,7 @@ libseat = declare_dependency( > + variables: libseat_vars, > + ) > + > +-if with_server > ++if with_seatd > + executable( > + 'seatd', > + [ server_files, 'seatd/seatd.c' ], > +@@ -221,7 +222,7 @@ foreach name, value : tests > + include_directories: [include_directories('.', > 'include')])) > + endforeach > + > +-if with_server > ++if with_seatd > + scdoc = dependency('scdoc', required: get_option('man-pages'), > version: '>= 1.9.7', native: true) > + else > + scdoc = disabler() > +@@ -252,7 +253,6 @@ endif > + summary({ > + 'seatd': with_seatd, > + 'builtin': with_builtin, > +- 'server': with_server, > + 'systemd': logind.found() and logind_provider == 'systemd', > + 'elogind': logind.found() and logind_provider == 'elogind', > + }, bool_yn: true) > +diff --git a/meson_options.txt b/meson_options.txt > +index 144ce7a..c61d473 100644 > +--- a/meson_options.txt > ++++ b/meson_options.txt > +@@ -1,7 +1,6 @@ > + option('logind', type: 'combo', choices: ['auto', 'disabled', 'elogind', > 'systemd'], value: 'auto', description: 'logind support') > + option('seatd', type: 'combo', choices: ['enabled', 'disabled'], value: > 'enabled', description: 'seatd support') > + option('builtin', type: 'combo', choices: ['enabled', 'disabled'], > value: 'disabled', description: 'builtin seatd server') > +-option('server', type: 'combo', choices: ['enabled', 'disabled'], value: > 'enabled', description: 'seatd server') > + option('examples', type: 'combo', choices: ['enabled', 'disabled'], > value: 'disabled', description: 'libseat example programs') > + option('man-pages', type: 'feature', value: 'auto', description: > 'Generate and install man pages') > + option('defaultpath', type: 'string', value: '', description: 'Default > location for seatd socket (empty for default)') > +-- > +2.30.2 > + > diff --git a/meta/recipes-core/seatd/libseat/init > b/meta/recipes-core/seatd/libseat/init > new file mode 100644 > index 0000000000..8c9d77255d > --- /dev/null > +++ b/meta/recipes-core/seatd/libseat/init > @@ -0,0 +1,50 @@ > +#!/bin/sh > +# > +### BEGIN INIT INFO > +# Provides: seatd > +# Short-Description: Start seat management daemon > +# Required-Start: $local_fs $remote_fs > +# Required-Stop: $local_fs $remote_fs > +# Default-Start: 2 3 4 5 > +# Default-Stop: 0 1 6 > +### END INIT INFO > + > +PATH=/bin:/usr/bin:/sbin:/usr/sbin > + > +test -x /usr/bin/seatd || exit 0 > + > +# For configuration of the init script use the file > +# /etc/default/seatd, do not edit this init script. > + > +seatd_group="seatd" > + > +[ -e /etc/default/seatd ] && . /etc/default/seatd > + > +NAME=seatd > +DAEMON=/usr/bin/seatd > +STOP_RETRY_SCHEDULE='TERM/10/forever/KILL/1' > + > +. /etc/init.d/functions > + > +case "$1" in > + start) > + start-stop-daemon --start --backgroud --quiet --pidfile > /var/run/$NAME.pid \ > + --exec $DAEMON -- -g $seatd_group > + ;; > + > + stop) > + killproc $NAME > + ;; > + > + restart) > + $0 stop > + sleep 1 > + $0 start > + ;; > + *) > + echo "Usage: $0 {start|stop|restart}" > + exit 1 > + > +esac > + > +exit 0 > diff --git a/meta/recipes-core/seatd/libseat_0.5.0.bb > b/meta/recipes-core/seatd/libseat_0.5.0.bb > new file mode 100644 > index 0000000000..8067d32a26 > --- /dev/null > +++ b/meta/recipes-core/seatd/libseat_0.5.0.bb > @@ -0,0 +1,43 @@ > +SUMMARY = "Seat management daemon and library" > +HOMEPAGE = "https://git.sr.ht/~kennylevinsen/seatd" > +SECTION = "base" > + > +DESCRIPTION = "A minimal seat management daemon, and a universal seat > management \ > +library. Seat management takes care of mediating access to shared devices > \ > +(graphics, input), without requiring the applications needing access to > be root." > + > +LICENSE = "MIT" > +LIC_FILES_CHKSUM = > "file://LICENSE;beginline=3;md5=6a01e8ccc65bea4e8bfa79b09ea1444c" > + > +SRCREV = "5535c2c3b19b42ebfe4c451600059e9418e401a6" > +SRCBRANCH = "master" > +SRC_URI = "git:// > git.sr.ht/~kennylevinsen/seatd;protocol=http;branch=${SRCBRANCH} > > \ > + file://0001-build-fixup-standalone-without-seatd.patch \ > + file://init" > + > +S = "${WORKDIR}/git" > + > +inherit pkgconfig meson useradd update-rc.d > + > +PACKAGECONFIG ??= "${@bb.utils.contains('VIRTUAL-RUNTIME_init_manager', > 'systemd', 'systemd', 'seatd', d)}" > + > +PACKAGECONFIG[seatd] = "-Dseatd=enabled, -Dseatd=disabled" > +PACKAGECONFIG[systemd] = "-Dlogind=systemd, -Dlogind=disabled, systemd > dbus" > + > +PACKAGES += "seatd" > + > +FILES_${PN} = "${libdir}/lib*${SOLIBS}" > +FILES_seatd = "${bindir}/seatd ${sysconfdir}" > + > +do_install_append() { > + if [ "${VIRTUAL-RUNTIME_init_manager}" != "systemd" ]; then > + install -Dm755 ${WORKDIR}/init > ${D}/${sysconfdir}/init.d/seatd > + fi > +} > + > +INITSCRIPT_NAME = "seatd" > +INITSCRIPT_PARAMS = "start 8 5 2 . stop 21 0 1 6 ." > + > +USERADD_PACKAGES = "seatd" > + > +GROUPADD_PARAM_seatd = "-r seatd" > -- > 2.30.2 > > --000000000000dcd1e705c06adf76 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I guess we need to wait for weston to actually do it,= and hold off the patch until then?

Alex
=

= On Tue, 20 Apr 2021 at 18:23, Randy Li <ayaka@soulik.info> wrote:
From: ayaka <ayaka@soulik.info>

Weston would adapt the libseat for granting privilege and VT switch.
wlroots has merged it.

Signed-off-by: ayaka <ayaka@soulik.info>
---
=C2=A0.../nativesdk-packagegroup-sdk-host.bb=C2=A0 =C2= =A0 =C2=A0 =C2=A0 |=C2=A0 2 -
=C2=A0...build-fixup-standalone-without-seatd.patch | 71 ++++++++++++++++++= +
=C2=A0meta/recipes-core/seatd/libseat/init=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 | 50 +++++++++++++
=C2=A0meta/recipes-core/seatd/libseat_0.5.0.bb=C2=A0 =C2=A0 =C2=A0 | 43 += ++++++++++
=C2=A04 files changed, 164 insertions(+), 2 deletions(-)
=C2=A0create mode 100644 meta/recipes-core/seatd/libseat/0001-build-fixup-s= tandalone-without-seatd.patch
=C2=A0create mode 100644 meta/recipes-core/seatd/libseat/init
=C2=A0create mode 100644 meta/recipes-core/seatd/libseat_0.5.0.bb

diff --git a/meta/recipes-core/packagegroups/nativesdk-pack= agegroup-sdk-host.bb b/meta/recipes-core/packagegroups/= nativesdk-packagegroup-sdk-host.bb
index ae989011f4..3e4e148c45 100644
--- a/meta/recipes-core/packagegroups/nativesdk-packagegrou= p-sdk-host.bb
+++ b/meta/recipes-core/packagegroups/nativesdk-packagegrou= p-sdk-host.bb
@@ -11,8 +11,6 @@ PACKAGEGROUP_DISABLE_COMPLEMENTARY =3D "1"

=C2=A0RDEPENDS_${PN} =3D "\
=C2=A0 =C2=A0 =C2=A0nativesdk-pkgconfig \
-=C2=A0 =C2=A0 nativesdk-qemu \
-=C2=A0 =C2=A0 nativesdk-qemu-helper \
=C2=A0 =C2=A0 =C2=A0nativesdk-pseudo \
=C2=A0 =C2=A0 =C2=A0nativesdk-unfs3 \
=C2=A0 =C2=A0 =C2=A0nativesdk-opkg \
diff --git a/meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-wi= thout-seatd.patch b/meta/recipes-core/seatd/libseat/0001-build-fixup-standa= lone-without-seatd.patch
new file mode 100644
index 0000000000..66e1ac73ab
--- /dev/null
+++ b/meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-s= eatd.patch
@@ -0,0 +1,71 @@
+From 084df8ab271ce4b09c1ef5d9c5a859b2d02d20e7 Mon Sep 17 00:00:00 2001
+From: ayaka <aya= ka@soulik.info>
+Date: Mon, 19 Apr 2021 22:15:46 +0800
+Subject: [PATCH] build: fixup standalone without seatd
+
+I think that server option means the same thing as seatd, so I
+get rid of it.
+---
+ meson.build=C2=A0 =C2=A0 =C2=A0 =C2=A0| 10 +++++-----
+ meson_options.txt |=C2=A0 1 -
+ 2 files changed, 5 insertions(+), 6 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 7a70cb6..a2166c5 100644
+--- a/meson.build
++++ b/meson.build
+@@ -104,10 +104,11 @@ server_files =3D [
+
+ with_seatd =3D get_option('seatd') =3D=3D 'enabled'
+ with_builtin =3D get_option('builtin') =3D=3D 'enabled' +-with_server =3D get_option('server') =3D=3D 'enabled'
+
+-if with_seatd
++if with_seatd or with_builtin
+=C2=A0 =C2=A0 =C2=A0 =C2=A0private_files +=3D 'libseat/backend/seatd.c= '
++endif
++if with_seatd
+=C2=A0 =C2=A0 =C2=A0 =C2=A0add_project_arguments('-DSEATD_ENABLED=3D1&= #39;, language: 'c')
+ endif
+
+@@ -189,7 +190,7 @@ libseat =3D declare_dependency(
+=C2=A0 =C2=A0 =C2=A0 =C2=A0variables: libseat_vars,
+ )
+
+-if with_server
++if with_seatd
+=C2=A0 =C2=A0 =C2=A0 =C2=A0executable(
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'seatd', +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[ server_files, = 9;seatd/seatd.c' ],
+@@ -221,7 +222,7 @@ foreach name, value : tests
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0include_directories= : [include_directories('.', 'include')]))
+ endforeach
+
+-if with_server
++if with_seatd
+=C2=A0 =C2=A0 =C2=A0 =C2=A0scdoc =3D dependency('scdoc', required:= get_option('man-pages'), version: '>=3D 1.9.7', native:= true)
+ else
+=C2=A0 =C2=A0 =C2=A0 =C2=A0scdoc =3D disabler()
+@@ -252,7 +253,6 @@ endif
+ summary({
+=C2=A0 =C2=A0 =C2=A0 =C2=A0'seatd': with_seatd,
+=C2=A0 =C2=A0 =C2=A0 =C2=A0'builtin': with_builtin,
+-=C2=A0 =C2=A0 =C2=A0 'server': with_server,
+=C2=A0 =C2=A0 =C2=A0 =C2=A0'systemd': logind.found() and logind_pr= ovider =3D=3D 'systemd',
+=C2=A0 =C2=A0 =C2=A0 =C2=A0'elogind': logind.found() and logind_pr= ovider =3D=3D 'elogind',
+ }, bool_yn: true)
+diff --git a/meson_options.txt b/meson_options.txt
+index 144ce7a..c61d473 100644
+--- a/meson_options.txt
++++ b/meson_options.txt
+@@ -1,7 +1,6 @@
+ option('logind', type: 'combo', choices: ['auto',= 'disabled', 'elogind', 'systemd'], value: 'aut= o', description: 'logind support')
+ option('seatd', type: 'combo', choices: ['enabled'= ;, 'disabled'], value: 'enabled', description: 'seatd s= upport')
+ option('builtin', type: 'combo', choices: ['enabled&#= 39;, 'disabled'], value: 'disabled', description: 'buil= tin seatd server')
+-option('server', type: 'combo', choices: ['enabled= 9;, 'disabled'], value: 'enabled', description: 'seatd = server')
+ option('examples', type: 'combo', choices: ['enabled&= #39;, 'disabled'], value: 'disabled', description: 'lib= seat example programs')
+ option('man-pages', type: 'feature', value: 'auto'= ;, description: 'Generate and install man pages')
+ option('defaultpath', type: 'string', value: '', = description: 'Default location for seatd socket (empty for default)'= ;)
+--
+2.30.2
+
diff --git a/meta/recipes-core/seatd/libseat/init b/meta/recipes-core/seatd= /libseat/init
new file mode 100644
index 0000000000..8c9d77255d
--- /dev/null
+++ b/meta/recipes-core/seatd/libseat/init
@@ -0,0 +1,50 @@
+#!/bin/sh
+#
+### BEGIN INIT INFO
+# Provides:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 seatd
+# Short-Description: Start seat management daemon
+# Required-Start:=C2=A0 =C2=A0 $local_fs $remote_fs
+# Required-Stop:=C2=A0 =C2=A0 =C2=A0$local_fs $remote_fs
+# Default-Start:=C2=A0 =C2=A0 =C2=A02 3 4 5
+# Default-Stop:=C2=A0 =C2=A0 =C2=A0 0 1 6
+### END INIT INFO
+
+PATH=3D/bin:/usr/bin:/sbin:/usr/sbin
+
+test -x /usr/bin/seatd || exit 0
+
+# For configuration of the init script use the file
+# /etc/default/seatd, do not edit this init script.
+
+seatd_group=3D"seatd"
+
+[ -e /etc/default/seatd ] && . /etc/default/seatd
+
+NAME=3Dseatd
+DAEMON=3D/usr/bin/seatd
+STOP_RETRY_SCHEDULE=3D'TERM/10/forever/KILL/1'
+
+. /etc/init.d/functions
+
+case "$1" in
+=C2=A0 start)
+=C2=A0 =C2=A0 start-stop-daemon --start --backgroud --quiet --pidfile /var= /run/$NAME.pid \
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--exec $DAEMON -- -g $seatd_group=
+=C2=A0 =C2=A0 ;;
+
+=C2=A0 stop)
+=C2=A0 =C2=A0 killproc $NAME
+=C2=A0 =C2=A0 ;;
+
+=C2=A0 restart)
+=C2=A0 =C2=A0 $0 stop
+=C2=A0 =C2=A0 sleep 1
+=C2=A0 =C2=A0 $0 start
+=C2=A0 =C2=A0 ;;
+=C2=A0 *)
+=C2=A0 =C2=A0 echo "Usage: $0 {start|stop|restart}"
+=C2=A0 =C2=A0 exit 1
+
+esac
+
+exit 0
diff --git a/meta/recipes-core/seatd/libseat_0.5.0.bb b/meta/recipes-core= /seatd/libseat_0.5.0.bb
new file mode 100644
index 0000000000..8067d32a26
--- /dev/null
+++ b/meta/recipes-core/seatd/libseat_0.5.0.bb
@@ -0,0 +1,43 @@
+SUMMARY =3D "Seat management daemon and library"
+HOMEPAGE =3D "https://git.sr.ht/~kennylevinsen/seatd"
+SECTION =3D "base"
+
+DESCRIPTION =3D "A minimal seat management daemon, and a universal se= at management \
+library. Seat management takes care of mediating access to shared devices = \
+(graphics, input), without requiring the applications needing access to be= root."
+
+LICENSE =3D "MIT"
+LIC_FILES_CHKSUM =3D "file://LICENSE;beginline=3D3;md5=3D6a01e8ccc65b= ea4e8bfa79b09ea1444c"
+
+SRCREV =3D "5535c2c3b19b42ebfe4c451600059e9418e401a6"
+SRCBRANCH =3D "master"
+SRC_URI =3D "git://
git.sr.ht/~kennylevinsen/seatd;protocol=3Dhttp;branch=3D${SRCBRANCH} \
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0file://0001-build-fixup-standalon= e-without-seatd.patch \
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0file://init"
+
+S =3D "${WORKDIR}/git"
+
+inherit pkgconfig meson useradd update-rc.d
+
+PACKAGECONFIG ??=3D "${@bb.utils.contains('VIRTUAL-RUNTIME_init_m= anager', 'systemd', 'systemd', 'seatd', d)}&quo= t;
+
+PACKAGECONFIG[seatd] =3D "-Dseatd=3Denabled, -Dseatd=3Ddisabled"=
+PACKAGECONFIG[systemd] =3D "-Dlogind=3Dsystemd, -Dlogind=3Ddisabled, = systemd dbus"
+
+PACKAGES +=3D "seatd"
+
+FILES_${PN} =3D "${libdir}/lib*${SOLIBS}"
+FILES_seatd =3D "${bindir}/seatd ${sysconfdir}"
+
+do_install_append() {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0if [ "${VIRTUAL-RUNTIME_init_manager}"= ; !=3D "systemd" ]; then
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0install -Dm755 ${WO= RKDIR}/init ${D}/${sysconfdir}/init.d/seatd
+=C2=A0 =C2=A0 =C2=A0 =C2=A0fi
+}
+
+INITSCRIPT_NAME =3D "seatd"
+INITSCRIPT_PARAMS =3D "start 8 5 2 . stop 21 0 1 6 ."
+
+USERADD_PACKAGES =3D "seatd"
+
+GROUPADD_PARAM_seatd =3D "-r seatd"
--
2.30.2

--000000000000dcd1e705c06adf76--