From 4032f745933691024316acb86ed184058cf039a3 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Wed, 24 Nov 2021 01:49:09 +0000 Subject: [PATCH] seatd: update to version 0.6.3 * add minimalistic init script to start service on boot Signed-off-by: Daniel Golle --- libs/seatd/Makefile | 14 +++++++++----- libs/seatd/files/seatd.init | 13 +++++++++++++ 2 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 libs/seatd/files/seatd.init diff --git a/libs/seatd/Makefile b/libs/seatd/Makefile index f2cd1db..0f830ba 100644 --- a/libs/seatd/Makefile +++ b/libs/seatd/Makefile @@ -1,13 +1,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=seatd -PKG_VERSION:=0.5.0 +PKG_VERSION:=0.6.3 PKG_RELEASE:=$(AUTORELEASE) PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://git.sr.ht/~kennylevinsen/seatd PKG_SOURCE_VERSION:=$(PKG_VERSION) -PKG_MIRROR_HASH:=9b899307e8717dc21735b02c80ebc91d6925c6bc5037f4a438d01258f472bc77 +PKG_MIRROR_HASH:=f3bcdf68b67ec48e637851031a839bff1835ca8462a03fa4f7556f431217af37 PKG_MAINTAINER:=Daniel Golle PKG_LICENSE:=MIT @@ -27,6 +27,7 @@ define Package/libseat endef define Package/libseat/description + A universal seat management library. endef define Package/seatd @@ -39,12 +40,13 @@ define Package/seatd endef define Package/seatd/description + A minimal seat management daemon. endef MESON_ARGS += \ - -Dlogind=disabled \ - -Dseatd=enabled \ - -Dbuiltin=disabled \ + -Dlibseat-logind=disabled \ + -Dlibseat-seatd=enabled \ + -Dlibseat-builtin=disabled \ -Dserver=enabled \ -Dexamples=disabled \ -Dman-pages=disabled \ @@ -67,6 +69,8 @@ endef define Package/seatd/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/seatd $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/seatd.init $(1)/etc/init.d/seatd endef $(eval $(call BuildPackage,libseat)) diff --git a/libs/seatd/files/seatd.init b/libs/seatd/files/seatd.init new file mode 100644 index 0000000..f2d1006 --- /dev/null +++ b/libs/seatd/files/seatd.init @@ -0,0 +1,13 @@ +#!/bin/sh /etc/rc.common + +START=90 +STOP=10 + +USE_PROCD=1 +PROG=/usr/bin/seatd + +start_service() { + procd_open_instance + procd_set_param command "$PROG" + procd_close_instance +} -- 2.30.2