From b90e179e7a84c3bb6cd3f9178c2c3e3a815052b6 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.2.0 --- srcpkgs/libseat | 1 + srcpkgs/libseat-devel | 1 + srcpkgs/seatd/INSTALL.msg | 6 +++ srcpkgs/seatd/files/seatd/run | 2 + srcpkgs/seatd/patches/no_test_scdoc_fix.patch | 36 ++++++++++++++++++ srcpkgs/seatd/template | 37 +++++++++++++++++++ 6 files changed, 83 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/patches/no_test_scdoc_fix.patch create mode 100644 srcpkgs/seatd/template 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/patches/no_test_scdoc_fix.patch b/srcpkgs/seatd/patches/no_test_scdoc_fix.patch new file mode 100644 index 00000000000..3b81b09aea0 --- /dev/null +++ b/srcpkgs/seatd/patches/no_test_scdoc_fix.patch @@ -0,0 +1,36 @@ +diff --git a/meson.build b/meson.build +index 301b0e3..65bd948 100644 +--- a/meson.build ++++ b/meson.build +@@ -172,19 +172,11 @@ if get_option('examples').enabled() + ) + endif + +-test( +- 'linked_list', +- executable( +- 'linked_list_test', +- ['common/linked_list.c', 'tests/linked_list.c'], +- include_directories: [include_directories('.', 'include')], +- ) +-) +- +-scdoc = dependency('scdoc', required: get_option('man-pages'), version: '>= 1.9.7') ++scdoc = dependency('scdoc', required: get_option('man-pages'), version: '>= 1.9.7', native: true) + + if scdoc.found() +- sh = find_program('sh') ++ sh = find_program('sh', native: true) ++ scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true) + + man_pages = ['seatd.1.scd'] + +@@ -200,7 +192,7 @@ if scdoc.found() + input: 'man/' + src, + output: output, + command: [ +- sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc.get_pkgconfig_variable('scdoc'), output) ++ sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc_prog.path(), output) + ], + install: true, + install_dir: '@0@/man@1@'.format(mandir, section) diff --git a/srcpkgs/seatd/template b/srcpkgs/seatd/template new file mode 100644 index 00000000000..a33645b3b1d --- /dev/null +++ b/srcpkgs/seatd/template @@ -0,0 +1,37 @@ +# Template file for 'seatd' +pkgname=seatd +version=0.2.0 +revision=1 +build_style=meson +configure_args="-Dexamples=disabled -Dlogind=enabled" +hostmakedepends="pkg-config scdoc" +makedepends="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=6b0160fa2f0500da7db6450547b8ffa7063d063dc94a4a2a710f416b2e41699f +system_groups=seatd +patch_args=-Np1 + +post_install() { + vlicense LICENSE + vsv seatd +} + +libseat_package() { + short_desc="Universal seat management library" + pkg_install() { + vmove usr/lib/libseat.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 + } +}