seatd: update to version 0.6.3
authorDaniel Golle <daniel@makrotopia.org>
Wed, 24 Nov 2021 01:49:09 +0000 (01:49 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 24 Nov 2021 11:08:42 +0000 (11:08 +0000)
 * add minimalistic init script to start service on boot

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libs/seatd/Makefile
libs/seatd/files/seatd.init [new file with mode: 0644]

index f2cd1db33db6f99f987b2834d501976ce6ed966c..0f830ba6dd90bb5c0f7900c74732c25f70882ed2 100644 (file)
@@ -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 <daniel@makrotopia.org>
 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 (file)
index 0000000..f2d1006
--- /dev/null
@@ -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
+}