From dc8edaa92db78c8d861d15f2ee252ed1eb88141f Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Mon, 7 Dec 2020 18:37:27 +0100 Subject: sys-auth/seatd: Install systemd service file Closes: https://bugs.gentoo.org/754657 Signed-off-by: Haelwenn (lanodan) Monnier Closes: https://github.com/gentoo/gentoo/pull/18555 Signed-off-by: Joonas Niilola --- sys-auth/seatd/seatd-0.4.0-r1.ebuild | 48 ++++++++++++++++++++++++++++++++++++ sys-auth/seatd/seatd-0.4.0.ebuild | 48 ------------------------------------ sys-auth/seatd/seatd-9999.ebuild | 3 ++- 3 files changed, 50 insertions(+), 49 deletions(-) create mode 100644 sys-auth/seatd/seatd-0.4.0-r1.ebuild delete mode 100644 sys-auth/seatd/seatd-0.4.0.ebuild (limited to 'sys-auth/seatd') diff --git a/sys-auth/seatd/seatd-0.4.0-r1.ebuild b/sys-auth/seatd/seatd-0.4.0-r1.ebuild new file mode 100644 index 000000000000..ab311a6c5986 --- /dev/null +++ b/sys-auth/seatd/seatd-0.4.0-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson systemd + +DESCRIPTION="Minimal seat management daemon and universal library" +HOMEPAGE="https://sr.ht/~kennylevinsen/seatd" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.sr.ht/~kennylevinsen/seatd" +else + KEYWORDS="~amd64 ~arm64 ~ppc64 ~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" +REQUIRED_USE="?? ( elogind systemd )" + +DEPEND=" + elogind? ( sys-auth/elogind ) + systemd? ( sys-apps/systemd ) +" +RDEPEND="${DEPEND}" +BDEPEND=">=app-text/scdoc-1.9.7" + +src_configure() { + local emesonargs=( + -Dman-pages=enabled + -Dwerror=false + ) + + if use elogind || use systemd; then + emesonargs+=( -Dlogind=enabled ) + else + emesonargs+=( -Dlogind=disabled ) + fi + + meson_src_configure +} + +src_install() { + meson_src_install + newinitd "${FILESDIR}/seatd.initd" seatd + systemd_dounit contrib/systemd/seatd.service +} diff --git a/sys-auth/seatd/seatd-0.4.0.ebuild b/sys-auth/seatd/seatd-0.4.0.ebuild deleted file mode 100644 index 06bf3fce1be6..000000000000 --- a/sys-auth/seatd/seatd-0.4.0.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit meson - -DESCRIPTION="Minimal seat management daemon and universal library" -HOMEPAGE="https://sr.ht/~kennylevinsen/seatd" -if [[ ${PV} == 9999 ]]; then - inherit git-r3 - - EGIT_REPO_URI="https://git.sr.ht/~kennylevinsen/seatd" -else - KEYWORDS="~amd64 ~arm64 ~ppc64 ~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" -REQUIRED_USE="?? ( elogind systemd )" - -DEPEND=" - elogind? ( sys-auth/elogind ) - systemd? ( sys-apps/systemd ) -" -RDEPEND="${DEPEND}" -BDEPEND=">=app-text/scdoc-1.9.7" - -src_configure() { - local emesonargs=( - -Dman-pages=enabled - -Dwerror=false - ) - - if use elogind || use systemd; then - emesonargs+=( -Dlogind=enabled ) - else - emesonargs+=( -Dlogind=disabled ) - fi - - meson_src_configure -} - -src_install() { - meson_src_install - newinitd "${FILESDIR}/seatd.initd" seatd -} diff --git a/sys-auth/seatd/seatd-9999.ebuild b/sys-auth/seatd/seatd-9999.ebuild index 3d89eb8e867b..ab311a6c5986 100644 --- a/sys-auth/seatd/seatd-9999.ebuild +++ b/sys-auth/seatd/seatd-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit meson +inherit meson systemd DESCRIPTION="Minimal seat management daemon and universal library" HOMEPAGE="https://sr.ht/~kennylevinsen/seatd" @@ -44,4 +44,5 @@ src_configure() { src_install() { meson_src_install newinitd "${FILESDIR}/seatd.initd" seatd + systemd_dounit contrib/systemd/seatd.service } -- cgit v1.2.3-65-gdbad