From 79a5cfaedf151ad1d20917958f29d57398477581 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Mon, 31 Aug 2020 16:19:39 +0200 Subject: [PATCH] New package: seatd-0.3.0 --- common/shlibs | 1 + srcpkgs/libseat | 1 + srcpkgs/libseat-devel | 1 + srcpkgs/seatd/INSTALL.msg | 6 ++++++ srcpkgs/seatd/files/seatd/run | 2 ++ srcpkgs/seatd/template | 39 +++++++++++++++++++++++++++++++++++ 6 files changed, 50 insertions(+) create mode 120000 srcpkgs/libseat create mode 120000 srcpkgs/libseat-devel create mode 100644 srcpkgs/seatd/INSTALL.msg create mode 100644 srcpkgs/seatd/files/seatd/run create mode 100644 srcpkgs/seatd/template diff --git a/common/shlibs b/common/shlibs index 8a759d4b62a..0c10aaf7393 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3990,3 +3990,4 @@ libneatvnc.so.0 neatvnc-0.2.0_1 libtdjson.so.1.6.0 libtd-1.6.0_1 libJudy.so.1 judy-1.0.5_1 libsignal-protocol-c.so.2 libsignal-protocol-c-2.3.3_2 +libseat.so.1 libseat-0.3.0_1 diff --git a/srcpkgs/libseat b/srcpkgs/libseat new file mode 120000 index 00000000000..c277276d33e --- /dev/null +++ b/srcpkgs/libseat @@ -0,0 +1 @@ +seatd \ No newline at end of file diff --git a/srcpkgs/libseat-devel b/srcpkgs/libseat-devel new file mode 120000 index 00000000000..c277276d33e --- /dev/null +++ b/srcpkgs/libseat-devel @@ -0,0 +1 @@ +seatd \ No newline at end of file diff --git a/srcpkgs/seatd/INSTALL.msg b/srcpkgs/seatd/INSTALL.msg new file mode 100644 index 00000000000..9f4d3385658 --- /dev/null +++ b/srcpkgs/seatd/INSTALL.msg @@ -0,0 +1,6 @@ +To use seatd you must ensure your user has permission to access +seatd's socket. The provided service runs seatd with the `-g seatd` +option which sets the group owning the socket. Thus, you will most +likely want to add your user to the seatd group: + +# usermod -aG seatd diff --git a/srcpkgs/seatd/files/seatd/run b/srcpkgs/seatd/files/seatd/run new file mode 100644 index 00000000000..815f76727ea --- /dev/null +++ b/srcpkgs/seatd/files/seatd/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/seatd -g seatd diff --git a/srcpkgs/seatd/template b/srcpkgs/seatd/template new file mode 100644 index 00000000000..c23181da1df --- /dev/null +++ b/srcpkgs/seatd/template @@ -0,0 +1,39 @@ +# Template file for 'seatd' +pkgname=seatd +version=0.3.0 +revision=1 +build_style=meson +configure_args="-Dexamples=disabled $(vopt_if elogind -Dlogind=enabled)" +hostmakedepends="pkg-config scdoc" +makedepends="$(vopt_if elogind elogind-devel)" +short_desc="Minimal seat management daemon" +maintainer="Isaac Freund " +license="MIT" +homepage="https://kl.wtf/projects/seatd/" +distfiles="https://git.sr.ht/~kennylevinsen/seatd/archive/${version}.tar.gz" +checksum=2aa4f6c8b3d39f52f573848137531af3123948fad5a873039b65abf37d490b6d +system_groups=seatd + +build_options="elogind" + +post_install() { + vlicense LICENSE + vsv seatd +} + +libseat_package() { + short_desc="Universal seat management library" + pkg_install() { + vmove usr/lib/*.so.* + } +} + +libseat-devel_package() { + depends="libseat>=${version}_${revision} ${makedepends}" + short_desc="Universal seat management library - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove usr/lib/*.so + } +}