From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 20 Jul 2021 13:50:11 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1m5oGJ-0002NQ-QP for lore@lore.pengutronix.de; Tue, 20 Jul 2021 13:50:11 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1m5oGJ-00053u-CG; Tue, 20 Jul 2021 13:50:11 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5oEv-00033O-9H; Tue, 20 Jul 2021 13:48:45 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1m5oEu-0002WI-PD; Tue, 20 Jul 2021 13:48:44 +0200 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1m5oEu-00ArJo-Oj; Tue, 20 Jul 2021 13:48:44 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Tue, 20 Jul 2021 13:48:44 +0200 Message-Id: <20210720114844.2587893-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210709074508.1301617-1-m.tretter@pengutronix.de> References: <20210709074508.1301617-1-m.tretter@pengutronix.de> MIME-Version: 1.0 Subject: Re: [ptxdist] [APPLIED] seatd: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Michael Tretter Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as bef359c33c098d4809d0833d85c68932ab16501d. Michael [sent from post-receive hook] On Tue, 20 Jul 2021 13:48:44 +0200, Michael Tretter wrote: > Signed-off-by: Michael Tretter > Message-Id: <20210709074508.1301617-1-m.tretter@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/projectroot/usr/lib/systemd/system/seatd.service b/projectroot/usr/lib/systemd/system/seatd.service > new file mode 100644 > index 000000000000..59137e67c8b3 > --- /dev/null > +++ b/projectroot/usr/lib/systemd/system/seatd.service > @@ -0,0 +1,8 @@ > +[Unit] > +Description=Seat management daemon > + > +[Service] > +Restart=always > +# Do not require a VT > +Environment=SEATD_VTBOUND=0 > +ExecStart=/usr/bin/seatd > diff --git a/rules/seatd.in b/rules/seatd.in > new file mode 100644 > index 000000000000..768cb7709698 > --- /dev/null > +++ b/rules/seatd.in > @@ -0,0 +1,35 @@ > +## SECTION=system_libraries > + > +menuconfig SEATD > + tristate > + select HOST_MESON > + select SYSTEMD if SEATD_SYSTEMD_LOGIND > + select SYSTEMD_LOGIND if SEATD_SYSTEMD_LOGIND > + prompt "libseat" > + help > + A minimal seat management daemon, and a universal seat management library. > + > +if SEATD > + > +config SEATD_SYSTEMD_LOGIND > + bool > + default INITMETHOD_SYSTEMD > + prompt "logind support" > + > +config SEATD_SEATD > + bool > + default y > + prompt "seatd server" > + help > + The seatd server is an alternative to systemd-logind to provide the > + seat. If you are using systemd-logind, you don't need the seatd > + server. If both are installed and running, libseat will prefer the > + seatd server. > + > +config SEATD_SEATD_SYSTEMD_UNIT > + bool > + default y > + depends on SEATD_SEATD && INITMETHOD_SYSTEMD > + prompt "install seatd service file" > + > +endif > diff --git a/rules/seatd.make b/rules/seatd.make > new file mode 100644 > index 000000000000..b848a5dc1037 > --- /dev/null > +++ b/rules/seatd.make > @@ -0,0 +1,76 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2021 by Philipp Zabel > +# 2021 by Michael Tretter > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_SEATD) += seatd > + > +# > +# Paths and names > +# > +SEATD_VERSION := 0.5.0 > +SEATD_MD5 := 264a36907f4be34efa400fb6e1b26f5f > +SEATD := seatd-$(SEATD_VERSION) > +SEATD_SUFFIX := tar.gz > +SEATD_URL := https://git.sr.ht/~kennylevinsen/seatd/archive/$(SEATD_VERSION).$(SEATD_SUFFIX) > +SEATD_SOURCE := $(SRCDIR)/$(SEATD).$(SEATD_SUFFIX) > +SEATD_DIR := $(BUILDDIR)/$(SEATD) > +SEATD_LICENSE := MIT > +SEATD_LICENSE_FILES := file://LICENSE;md5=715a99d2dd552e6188e74d4ed2914d5a > + > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +# > +# meson > +# > +SEATD_CONF_TOOL := meson > +SEATD_CONF_OPT := \ > + $(CROSS_MESON_USR) \ > + -Dlogind=$(call ptx/endis,PTXCONF_SEATD_SYSTEMD_LOGIND)d \ > + -Dseatd=$(call ptx/endis,PTXCONF_SEATD_SEATD)d \ > + -Dbuiltin=disabled \ > + -Dserver=$(call ptx/endis,PTXCONF_SEATD_SEATD)d \ > + -Dexamples=disabled \ > + -Dman-pages=disabled \ > + -Ddefaultpath= > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/seatd.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, seatd) > + @$(call install_fixup, seatd,PRIORITY,optional) > + @$(call install_fixup, seatd,SECTION,base) > + @$(call install_fixup, seatd,AUTHOR,"Philipp Zabel ") > + @$(call install_fixup, seatd,DESCRIPTION,missing) > + > + @$(call install_lib, seatd, 0, 0, 0644, libseat) > + > +ifdef PTXCONF_SEATD_SEATD > + @$(call install_copy, seatd, 0, 0, 0755, -, /usr/bin/seatd) > +ifdef PTXCONF_SEATD_SEATD_SYSTEMD_UNIT > + @$(call install_alternative, seatd, 0, 0, 0644, \ > + /usr/lib/systemd/system/seatd.service) > + @$(call install_link, seatd, ../seatd.service, \ > + /usr/lib/systemd/system/multi-user.target.wants/seatd.service) > +endif > +endif > + > + @$(call install_finish, seatd) > + > + @$(call touch) > + > +# vim: syntax=make _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de