diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-15 23:13:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-15 23:13:45 +0100 |
commit | e87ef1b6ce856ae8859bdfce8028fb992f3e3763 (patch) | |
tree | d51e0c41adf3586e9a393881cee3ec0a9ed48977 /sys-auth/seatd/seatd-0.7.0-r1.ebuild | |
parent | 0c80ffd3caee224555f8b394b6b2c05b2752f440 (diff) |
gentoo auto-resync : 15:09:2022 - 23:13:44
Diffstat (limited to 'sys-auth/seatd/seatd-0.7.0-r1.ebuild')
-rw-r--r-- | sys-auth/seatd/seatd-0.7.0-r1.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/sys-auth/seatd/seatd-0.7.0-r1.ebuild b/sys-auth/seatd/seatd-0.7.0-r1.ebuild new file mode 100644 index 000000000000..a3351b9b2463 --- /dev/null +++ b/sys-auth/seatd/seatd-0.7.0-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 ~arm ~arm64 ~loong ~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="builtin elogind server systemd" +REQUIRED_USE="?? ( elogind systemd )" + +DEPEND=" + elogind? ( sys-auth/elogind ) + systemd? ( sys-apps/systemd ) +" +RDEPEND="${DEPEND} + server? ( acct-group/seat ) +" +BDEPEND=">=app-text/scdoc-1.9.7" + +src_configure() { + local emesonargs=( + -Dman-pages=enabled + $(meson_feature builtin libseat-builtin) + $(meson_feature server) + ) + + if use elogind ; then + emesonargs+=( -Dlibseat-logind=elogind ) + elif use systemd; then + emesonargs+=( -Dlibseat-logind=systemd ) + else + emesonargs+=( -Dlibseat-logind=disabled ) + fi + + meson_src_configure +} + +src_install() { + meson_src_install + + if use server; then + newinitd "${FILESDIR}/seatd.initd" seatd + systemd_dounit contrib/systemd/seatd.service + fi +} |