pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

seatd: remove, imported to pkgsrc



Module Name:	pkgsrc-wip
Committed By:	kikadf <kikadf.01%gmail.com@localhost>
Pushed By:	kikadf
Date:		Mon Apr 13 17:51:47 2026 +0200
Changeset:	a5301382bf71e39640bac4f0cb3c506037dd5459

Modified Files:
	Makefile
Removed Files:
	seatd/COMMIT_MSG
	seatd/DESCR
	seatd/Makefile
	seatd/PLIST
	seatd/buildlink3.mk
	seatd/distinfo
	seatd/patches/patch-common_drm.c
	seatd/patches/patch-common_terminal.c

Log Message:
seatd: remove, imported to pkgsrc

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a5301382bf71e39640bac4f0cb3c506037dd5459

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                              |  1 -
 seatd/COMMIT_MSG                      |  9 -----
 seatd/DESCR                           |  7 ----
 seatd/Makefile                        | 26 ------------
 seatd/PLIST                           |  9 -----
 seatd/buildlink3.mk                   | 14 -------
 seatd/distinfo                        |  7 ----
 seatd/patches/patch-common_drm.c      | 50 -----------------------
 seatd/patches/patch-common_terminal.c | 76 -----------------------------------
 9 files changed, 199 deletions(-)

diffs:
diff --git a/Makefile b/Makefile
index 52f26a326b..2d730198b8 100644
--- a/Makefile
+++ b/Makefile
@@ -5386,7 +5386,6 @@ SUBDIR+=	seafile-client
 SUBDIR+=	seafile-gui
 SUBDIR+=	seafile-server
 SUBDIR+=	seagull
-SUBDIR+=	seatd
 SUBDIR+=	sector-decomposition
 SUBDIR+=	seed7
 SUBDIR+=	seeks
diff --git a/seatd/COMMIT_MSG b/seatd/COMMIT_MSG
deleted file mode 100644
index 058d25640a..0000000000
--- a/seatd/COMMIT_MSG
+++ /dev/null
@@ -1,9 +0,0 @@
-Add sysutils/seatd
-
-A minimal seat management daemon, and a universal
-seat management library.
-Seat management takes care of mediating access to
-shared devices (graphics, input), without requiring
-the applications needing access to be root.
-Seat management library allowing applications to
-use whatever seat management is available.
diff --git a/seatd/DESCR b/seatd/DESCR
deleted file mode 100644
index 39277969b0..0000000000
--- a/seatd/DESCR
+++ /dev/null
@@ -1,7 +0,0 @@
-A minimal seat management daemon, and a universal
-seat management library.
-Seat management takes care of mediating access to
-shared devices (graphics, input), without requiring
-the applications needing access to be root.
-Seat management library allowing applications to
-use whatever seat management is available.
diff --git a/seatd/Makefile b/seatd/Makefile
deleted file mode 100644
index 80a1e5a8ea..0000000000
--- a/seatd/Makefile
+++ /dev/null
@@ -1,26 +0,0 @@
-# $NetBSD$
-
-DISTNAME=	seatd-0.9.3
-CATEGORIES=	sysutils
-MASTER_SITES=	${MASTER_SITE_GITHUB:=kennylevinsen/}
-
-MAINTAINER=	kikadf%NetBSD.org@localhost
-HOMEPAGE=	https://git.sr.ht/~kennylevinsen/seatd/
-COMMENT=	Seat management daemon and library
-LICENSE=	mit
-
-USE_TOOLS+=	pkg-config
-
-PKGCONFIG_OVERRIDE_STAGE=	pre-install
-PKGCONFIG_OVERRIDE+=		output/meson-private/libseat.pc
-
-MESON_ARGS+=	-Dlibseat-logind=disabled
-MESON_ARGS+=	-Dlibseat-builtin=enabled
-
-SPECIAL_PERMS+=	bin/seatd-launch ${SETUID_ROOT_PERMS}
-
-BUILDLINK_TRANSFORM+=	rm:-Werror
-
-.include "../../devel/meson/build.mk"
-.include "../../textproc/scdoc/tool.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/seatd/PLIST b/seatd/PLIST
deleted file mode 100644
index ebce8100f7..0000000000
--- a/seatd/PLIST
+++ /dev/null
@@ -1,9 +0,0 @@
-@comment $NetBSD$
-bin/seatd
-bin/seatd-launch
-include/libseat.h
-lib/libseat.so
-lib/libseat.so.1
-lib/pkgconfig/libseat.pc
-man/man1/seatd-launch.1
-man/man1/seatd.1
diff --git a/seatd/buildlink3.mk b/seatd/buildlink3.mk
deleted file mode 100644
index 93395dcf3a..0000000000
--- a/seatd/buildlink3.mk
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD$
-
-BUILDLINK_TREE+=	seatd
-
-.if !defined(SEATD_BUILDLINK3_MK)
-SEATD_BUILDLINK3_MK:=
-
-BUILDLINK_API_DEPENDS.seatd+=	seatd>=0.9.1
-BUILDLINK_ABI_DEPENDS.seatd+=	seatd>=0.9.1
-BUILDLINK_PKGSRCDIR.seatd?=	../../wip/seatd
-
-.endif # SEATD_BUILDLINK3_MK
-
-BUILDLINK_TREE+=	-seatd
diff --git a/seatd/distinfo b/seatd/distinfo
deleted file mode 100644
index 0fcfdd9fea..0000000000
--- a/seatd/distinfo
+++ /dev/null
@@ -1,7 +0,0 @@
-$NetBSD$
-
-BLAKE2s (seatd-0.9.3.tar.gz) = a6b1d4f78000dc7734606c7602c3dba3a917939323e00d10eb4b315f9e876aed
-SHA512 (seatd-0.9.3.tar.gz) = 8cb21cfbd9aa25966fe3f586de75d24a8625142ffb49e6ec357875c347d3e92d535467b817d79fdc704f80858a145f1107c488adbf22a1c337dbc6ccccc8b00a
-Size (seatd-0.9.3.tar.gz) = 42086 bytes
-SHA1 (patch-common_drm.c) = e52424f069d369aed0f4a9cb1332fca81b51eefe
-SHA1 (patch-common_terminal.c) = b397ffaad707f2f62258bcbb3178b8966acd830c
diff --git a/seatd/patches/patch-common_drm.c b/seatd/patches/patch-common_drm.c
deleted file mode 100644
index ce3f21e71f..0000000000
--- a/seatd/patches/patch-common_drm.c
+++ /dev/null
@@ -1,50 +0,0 @@
-$NetBSD$
-
-* On NetBSD the setversion ioctl sets the busid, so without
-  setversion getunique will return with empty string, and
-  drmParseSubsystemType fails with -EINVAL 
-
---- common/drm.c.orig	2024-10-30 19:43:26.000000000 +0000
-+++ common/drm.c
-@@ -9,12 +9,41 @@
- #define DRM_IO(nr)            _IO(DRM_IOCTL_BASE, nr)
- #define DRM_IOCTL_SET_MASTER  DRM_IO(0x1e)
- #define DRM_IOCTL_DROP_MASTER DRM_IO(0x1f)
-+#if defined(__NetBSD__)
-+#include <errno.h>
-+#include "log.h"
-+struct drm_set_version {
-+	int drm_di_major;
-+	int drm_di_minor;
-+	int drm_dd_major;
-+	int drm_dd_minor;
-+};
-+#define DRM_IOWR(nr,type)     _IOWR(DRM_IOCTL_BASE,nr,type)
-+#define DRM_IOCTL_SET_VERSION DRM_IOWR(0x07, struct drm_set_version)
-+#endif
- 
- #define STRLEN(s)                 ((sizeof(s) / sizeof(s[0])) - 1)
- #define STR_HAS_PREFIX(prefix, s) (strncmp(prefix, s, STRLEN(prefix)) == 0)
- 
- int drm_set_master(int fd) {
-+#if defined(__NetBSD__)
-+	int ret;
-+	struct drm_set_version sv;
-+
-+	if ((ret = ioctl(fd, DRM_IOCTL_SET_MASTER, 0)) == 0) {
-+		sv.drm_di_major = 1;
-+		sv.drm_di_minor = 4;
-+		sv.drm_dd_major = -1;
-+		sv.drm_dd_minor = -1;
-+		if (ioctl(fd, DRM_IOCTL_SET_VERSION, &sv)) {
-+			log_errorf("DRM_IOCTL_SET_VERSION failed: %s", strerror(errno));
-+		}
-+	}
-+
-+	return ret;
-+#else
- 	return ioctl(fd, DRM_IOCTL_SET_MASTER, 0);
-+#endif
- }
- 
- int drm_drop_master(int fd) {
diff --git a/seatd/patches/patch-common_terminal.c b/seatd/patches/patch-common_terminal.c
deleted file mode 100644
index 9625aabe3d..0000000000
--- a/seatd/patches/patch-common_terminal.c
+++ /dev/null
@@ -1,76 +0,0 @@
-$NetBSD$
-
-* Wsconsio patch from OpenBSD
-
---- common/terminal.c.orig	2024-10-30 19:43:26.000000000 +0000
-+++ common/terminal.c
-@@ -22,6 +22,7 @@
- #define K_DISABLE K_RAW
- #define FRSIG     SIGIO
- #elif defined(__NetBSD__)
-+#include <dev/wscons/wsconsio.h>
- #include <dev/wscons/wsdisplay_usl_io.h>
- #define K_ENABLE  K_XLATE
- #define K_DISABLE K_RAW
-@@ -201,7 +202,19 @@ int terminal_set_process_switching(int f
- 		.acqsig = enable ? SIGUSR2 : 0,
- 		.frsig = FRSIG,
- 	};
--
-+	struct vt_mode current_mode;
-+	if (ioctl(fd, VT_GETMODE, &current_mode) == -1) {
-+		log_errorf("Could not query VT mode for %d: %s",
-+		    fd, strerror(errno));
-+		return -1;
-+	}
-+	if (current_mode.mode == mode.mode &&
-+	    current_mode.relsig == mode.relsig &&
-+	    current_mode.acqsig == mode.acqsig &&
-+	    current_mode.frsig == mode.frsig) {
-+		log_debugf("%s: %d already in mode %d", __func__, fd, enable);
-+		return 0;
-+	}
- 	if (ioctl(fd, VT_SETMODE, &mode) == -1) {
- 		log_errorf("Could not set VT mode to %s process switching: %s",
- 			   enable ? "enable" : "disable", strerror(errno));
-@@ -242,11 +255,20 @@ int terminal_ack_acquire(int fd) {
- 
- int terminal_set_keyboard(int fd, bool enable) {
- 	log_debugf("Setting KD keyboard state to %d", enable);
-+#ifndef __NetBSD__
- 	if (ioctl(fd, KDSKBMODE, enable ? K_ENABLE : K_DISABLE) == -1) {
- 		log_errorf("Could not set KD keyboard mode to %s: %s",
- 			   enable ? "enabled" : "disabled", strerror(errno));
- 		return -1;
- 	}
-+#else
-+	int mode = enable ? WSKBD_RAW : WSKBD_TRANSLATED;
-+	if (ioctl(fd, WSKBDIO_SETMODE, &mode) == -1) {
-+		log_errorf("Could not set keyboard mode to %s: %s",
-+			   enable ? "translated" : "raw", strerror(errno));
-+		return -1;
-+	}
-+#endif
- #if defined(__FreeBSD__)
- 	struct termios tios;
- 	if (tcgetattr(fd, &tios) == -1) {
-@@ -269,10 +291,19 @@ int terminal_set_keyboard(int fd, bool e
- 
- int terminal_set_graphics(int fd, bool enable) {
- 	log_debugf("Setting KD graphics state to %d", enable);
-+#ifndef __NetBSD__
- 	if (ioctl(fd, KDSETMODE, enable ? KD_GRAPHICS : KD_TEXT) == -1) {
- 		log_errorf("Could not set KD graphics mode to %s: %s", enable ? "graphics" : "text",
- 			   strerror(errno));
- 		return -1;
- 	}
-+#else
-+	int mode = enable ? WSDISPLAYIO_MODE_MAPPED : WSDISPLAYIO_MODE_EMUL;
-+	if (ioctl(fd, WSDISPLAYIO_SMODE, &mode) == -1) {
-+		log_errorf("Could not set graphics mode to %s: %s", enable ? "mapped" : "emul",
-+			   strerror(errno));
-+		return -1;
-+	}
-+#endif
- 	return 0;
- }


Home | Main Index | Thread Index | Old Index