From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1310527-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 30ADF139360
	for <garchives@archives.gentoo.org>; Sat,  7 Aug 2021 08:25:25 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 6960BE090F;
	Sat,  7 Aug 2021 08:25:24 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id DBE43E090F
	for <gentoo-commits@lists.gentoo.org>; Sat,  7 Aug 2021 08:25:23 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id E707C33BE1F
	for <gentoo-commits@lists.gentoo.org>; Sat,  7 Aug 2021 08:25:22 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 17E637D6
	for <gentoo-commits@lists.gentoo.org>; Sat,  7 Aug 2021 08:25:21 +0000 (UTC)
From: "Ionen Wolkens" <ionen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" <ionen@gentoo.org>
Message-ID: <1628324690.9968e5f499f170ea40abe8996cb63f94e2e52a8c.ionen@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/seatd/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-auth/seatd/metadata.xml sys-auth/seatd/seatd-0.5.0-r1.ebuild sys-auth/seatd/seatd-9999.ebuild
X-VCS-Directories: sys-auth/seatd/
X-VCS-Committer: ionen
X-VCS-Committer-Name: Ionen Wolkens
X-VCS-Revision: 9968e5f499f170ea40abe8996cb63f94e2e52a8c
X-VCS-Branch: master
Date: Sat,  7 Aug 2021 08:25:21 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: c119b200-4d32-4c07-8d39-bab35a4d9b6f
X-Archives-Hash: d3e25496d10858161ae2f8336209dd76

commit:     9968e5f499f170ea40abe8996cb63f94e2e52a8c
Author:     Greg Depoire--Ferrer <greg.depoire <AT> gmail <DOT> com>
AuthorDate: Wed Aug  4 10:37:52 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Aug  7 08:24:50 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9968e5f4

sys-auth/seatd: Add builtin and server IUSE flags

The builtin flag is for enabling the embedded server backend in libseat that
doesn't require starting a standalone server. It was disabled in the package
previously but some users might want to enable it.

The `server` flag is for enabling the standalone server. It was enabled in
the package previously but some users might want to disable it.

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Greg Depoire--Ferrer <greg.depoire <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/21877
Acked-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 sys-auth/seatd/metadata.xml                               |  4 ++++
 .../seatd/{seatd-9999.ebuild => seatd-0.5.0-r1.ebuild}    | 15 ++++++++++-----
 sys-auth/seatd/seatd-9999.ebuild                          | 13 +++++++++----
 3 files changed, 23 insertions(+), 9 deletions(-)

diff --git a/sys-auth/seatd/metadata.xml b/sys-auth/seatd/metadata.xml
index 260cfe0a1e1..dad3217f8ee 100644
--- a/sys-auth/seatd/metadata.xml
+++ b/sys-auth/seatd/metadata.xml
@@ -9,4 +9,8 @@
 	<email>proxy-maint@gentoo.org</email>
 	<name>Proxy Maintainers</name>
 </maintainer>
+<use>
+	<flag name="builtin">Enable embedded server in libseat</flag>
+	<flag name="server">Enable standalone seatd server</flag>
+</use>
 </pkgmetadata>

diff --git a/sys-auth/seatd/seatd-9999.ebuild b/sys-auth/seatd/seatd-0.5.0-r1.ebuild
similarity index 74%
copy from sys-auth/seatd/seatd-9999.ebuild
copy to sys-auth/seatd/seatd-0.5.0-r1.ebuild
index ab311a6c598..ea510f9db2a 100644
--- a/sys-auth/seatd/seatd-9999.ebuild
+++ b/sys-auth/seatd/seatd-0.5.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2020 Gentoo Authors
+# Copyright 2020-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -11,12 +11,12 @@ if [[ ${PV} == 9999 ]]; then
 	inherit git-r3
 	EGIT_REPO_URI="https://git.sr.ht/~kennylevinsen/seatd"
 else
-	KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+	KEYWORDS="amd64 arm64 ~ppc64 ~riscv x86"
 	SRC_URI="https://git.sr.ht/~kennylevinsen/seatd/archive/${PV}.tar.gz -> ${P}.tar.gz"
 fi
 LICENSE="MIT"
 SLOT="0/1"
-IUSE="elogind systemd"
+IUSE="builtin elogind +server systemd"
 REQUIRED_USE="?? ( elogind systemd )"
 
 DEPEND="
@@ -30,6 +30,8 @@ src_configure() {
 	local emesonargs=(
 		-Dman-pages=enabled
 		-Dwerror=false
+		$(meson_feature builtin)
+		$(meson_feature server)
 	)
 
 	if use elogind || use systemd; then
@@ -43,6 +45,9 @@ src_configure() {
 
 src_install() {
 	meson_src_install
-	newinitd "${FILESDIR}/seatd.initd" seatd
-	systemd_dounit contrib/systemd/seatd.service
+
+	if use server; then
+		newinitd "${FILESDIR}/seatd.initd" seatd
+		systemd_dounit contrib/systemd/seatd.service
+	fi
 }

diff --git a/sys-auth/seatd/seatd-9999.ebuild b/sys-auth/seatd/seatd-9999.ebuild
index ab311a6c598..c826e115f27 100644
--- a/sys-auth/seatd/seatd-9999.ebuild
+++ b/sys-auth/seatd/seatd-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2020 Gentoo Authors
+# Copyright 2020-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -16,7 +16,7 @@ else
 fi
 LICENSE="MIT"
 SLOT="0/1"
-IUSE="elogind systemd"
+IUSE="builtin elogind +server systemd"
 REQUIRED_USE="?? ( elogind systemd )"
 
 DEPEND="
@@ -30,6 +30,8 @@ src_configure() {
 	local emesonargs=(
 		-Dman-pages=enabled
 		-Dwerror=false
+		$(meson_feature builtin libseat-builtin)
+		$(meson_feature server)
 	)
 
 	if use elogind || use systemd; then
@@ -43,6 +45,9 @@ src_configure() {
 
 src_install() {
 	meson_src_install
-	newinitd "${FILESDIR}/seatd.initd" seatd
-	systemd_dounit contrib/systemd/seatd.service
+
+	if use server; then
+		newinitd "${FILESDIR}/seatd.initd" seatd
+		systemd_dounit contrib/systemd/seatd.service
+	fi
 }