diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2023-07-07 09:41:57 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2023-07-07 09:42:40 +0200 |
commit | 37ec0a6e946801c722eae6f31036ed4db73dddca (patch) | |
tree | fd8755902224eff5af968259f36ef4852d2c614f /sysutils | |
parent | f13cccdfe06f29c6307e0a67577c00c037f90185 (diff) |
sysutils/seatd: switch -current in my gitlab.ttnn repositore clone
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/seatd/Makefile | 8 | ||||
-rw-r--r-- | sysutils/seatd/distinfo | 4 | ||||
-rw-r--r-- | sysutils/seatd/patches/patch-seatd-0_7_0_common_drm_c | 12 | ||||
-rw-r--r-- | sysutils/seatd/patches/patch-seatd-0_7_0_common_evdev_c | 12 | ||||
-rw-r--r-- | sysutils/seatd/patches/patch-seatd-0_7_0_common_terminal_c | 36 | ||||
-rw-r--r-- | sysutils/seatd/patches/patch-seatd-0_7_0_meson_build | 40 | ||||
-rw-r--r-- | sysutils/seatd/patches/patch-seatd-0_7_0_seatd_client_c | 27 | ||||
-rw-r--r-- | sysutils/seatd/patches/patch-seatd-0_7_0_tests_poller_c | 14 |
8 files changed, 6 insertions, 147 deletions
diff --git a/sysutils/seatd/Makefile b/sysutils/seatd/Makefile index 0c6a59c..cf1c79f 100644 --- a/sysutils/seatd/Makefile +++ b/sysutils/seatd/Makefile @@ -1,16 +1,16 @@ COMMENT = Minimal seat management daemon and universal library -V = 0.7.0 +V = 20230706 PKGNAME = seatd-$V CATEGORIES = sysutils -MASTER_SITES = https://git.sr.ht/~kennylevinsen/seatd/archive/ +MASTER_SITES = https://gitlab.tetaneutral.net/mherrb/seatd/-/archive/obsd/ -DISTFILES = seatd-{}$V${EXTRACT_SUFX} +DISTFILES = seatd-obsd${EXTRACT_SUFX} SHARED_LIBS += seat 0.0 # 0.0 -WRKSRC = ${WRKDIR}/${PKGNAME} +WRKSRC = ${WRKDIR}/seatd-obsd # MIT PERMIT_PACKAGE = Yes diff --git a/sysutils/seatd/distinfo b/sysutils/seatd/distinfo index 02448ab..7035868 100644 --- a/sysutils/seatd/distinfo +++ b/sysutils/seatd/distinfo @@ -1,2 +1,2 @@ -SHA256 (seatd-0.7.0.tar.gz) = IQ3fjvoRSc3k3TWQi++OnmPC7aoM21Q18ubbJ3+v/zw= -SIZE (seatd-0.7.0.tar.gz) = 39198 +SHA256 (seatd-obsd.tar.gz) = ZkPab8XOEjTkLaDjaJB5MUa7ybsLGVvfu0w2NCZX+98= +SIZE (seatd-obsd.tar.gz) = 39441 diff --git a/sysutils/seatd/patches/patch-seatd-0_7_0_common_drm_c b/sysutils/seatd/patches/patch-seatd-0_7_0_common_drm_c deleted file mode 100644 index 33aca5a..0000000 --- a/sysutils/seatd/patches/patch-seatd-0_7_0_common_drm_c +++ /dev/null @@ -1,12 +0,0 @@ -Index: seatd-0.7.0/common/drm.c ---- seatd-0.7.0/common/drm.c.orig -+++ seatd-0.7.0/common/drm.c -@@ -20,7 +20,7 @@ int drm_drop_master(int fd) { - return ioctl(fd, DRM_IOCTL_DROP_MASTER, 0); - } - --#if defined(__linux__) || defined(__NetBSD__) -+#if defined(__linux__) || defined(__NetBSD__) || defined(__OpenBSD__) - int path_is_drm(const char *path) { - static const char prefix[] = "/dev/dri/"; - static const int prefixlen = STRLEN(prefix); diff --git a/sysutils/seatd/patches/patch-seatd-0_7_0_common_evdev_c b/sysutils/seatd/patches/patch-seatd-0_7_0_common_evdev_c deleted file mode 100644 index a6d34b5..0000000 --- a/sysutils/seatd/patches/patch-seatd-0_7_0_common_evdev_c +++ /dev/null @@ -1,12 +0,0 @@ -Index: seatd-0.7.0/common/evdev.c ---- seatd-0.7.0/common/evdev.c.orig -+++ seatd-0.7.0/common/evdev.c -@@ -25,7 +25,7 @@ int path_is_evdev(const char *path) { - int evdev_revoke(int fd) { - return ioctl(fd, EVIOCREVOKE, NULL); - } --#elif defined(__NetBSD__) -+#elif defined(__NetBSD__) || defined(__OpenBSD__) - int path_is_evdev(const char *path) { - (void)path; - return 0; diff --git a/sysutils/seatd/patches/patch-seatd-0_7_0_common_terminal_c b/sysutils/seatd/patches/patch-seatd-0_7_0_common_terminal_c deleted file mode 100644 index 712cf18..0000000 --- a/sysutils/seatd/patches/patch-seatd-0_7_0_common_terminal_c +++ /dev/null @@ -1,36 +0,0 @@ -Index: seatd-0.7.0/common/terminal.c ---- seatd-0.7.0/common/terminal.c.orig -+++ seatd-0.7.0/common/terminal.c -@@ -21,7 +21,7 @@ - #define K_ENABLE K_XLATE - #define K_DISABLE K_RAW - #define FRSIG SIGIO --#elif defined(__NetBSD__) -+#elif defined(__NetBSD__) || defined(__OpenBSD__) - #include <dev/wscons/wsdisplay_usl_io.h> - #define K_ENABLE K_XLATE - #define K_DISABLE K_RAW -@@ -147,6 +147,14 @@ static int get_tty_path(int tty, char path[static TTYP - } - return 0; - } -+#elif defined(__OpenBSD__) -+static int get_tty_path(int tty, char path[static TTYPATHLEN]) { -+ assert(tty >= 0); -+ if (snprintf(path, TTYPATHLEN, "/dev/ttyC%d", tty) == -1) { -+ return -1; -+ } -+ return 0; -+} - #else - #error Unsupported platform - #endif -@@ -175,7 +183,7 @@ int terminal_current_vt(int fd) { - return -1; - } - return st.v_active; --#elif defined(__FreeBSD__) -+#elif defined(__FreeBSD__) || defined(__OpenBSD__) - int vt; - int res = ioctl(fd, VT_GETACTIVE, &vt); - close(fd); diff --git a/sysutils/seatd/patches/patch-seatd-0_7_0_meson_build b/sysutils/seatd/patches/patch-seatd-0_7_0_meson_build deleted file mode 100644 index 82decfc..0000000 --- a/sysutils/seatd/patches/patch-seatd-0_7_0_meson_build +++ /dev/null @@ -1,40 +0,0 @@ -Index: seatd-0.7.0/meson.build ---- seatd-0.7.0/meson.build.orig -+++ seatd-0.7.0/meson.build -@@ -29,7 +29,7 @@ cc = meson.get_compiler('c') - add_project_arguments( - [ - '-D_XOPEN_SOURCE=700', -- '-D__BSD_VISIBLE', -+ '-D_BSD_SOURCE', - '-D_NETBSD_SOURCE', - '-DSEATD_VERSION="@0@"'.format(meson.project_version()), - '-DSEATD_DEFAULTPATH="@0@"'.format(defaultpath), -@@ -158,8 +158,8 @@ if get_option('libseat-logind') != 'disabled' - endif - - # needed for cross-compilation --realtime = meson.get_compiler('c').find_library('rt') --private_deps += realtime -+# realtime = meson.get_compiler('c').find_library('rt') -+# private_deps += realtime - - if with_builtin - libseat_c_args += '-DBUILTIN_ENABLED=1' -@@ -220,14 +220,14 @@ if with_server - [ server_files, 'seatd/seatd.c' ], - include_directories: [include_directories('.', 'include')], - install: true, -- dependencies: [realtime], -+# dependencies: [realtime], - ) - executable( - 'seatd-launch', - [ 'seatd-launch/seatd-launch.c' ], - include_directories: [include_directories('.', 'include')], - install: true, -- dependencies: [realtime], -+# dependencies: [realtime], - ) - endif - diff --git a/sysutils/seatd/patches/patch-seatd-0_7_0_seatd_client_c b/sysutils/seatd/patches/patch-seatd-0_7_0_seatd_client_c deleted file mode 100644 index 887351c..0000000 --- a/sysutils/seatd/patches/patch-seatd-0_7_0_seatd_client_c +++ /dev/null @@ -1,27 +0,0 @@ -Index: seatd-0.7.0/seatd/client.c ---- seatd-0.7.0/seatd/client.c.orig -+++ seatd-0.7.0/seatd/client.c -@@ -55,6 +55,23 @@ static int get_peer(int fd, pid_t *pid, uid_t *uid, gi - *uid = cred.unp_euid; - *gid = cred.unp_egid; - return 0; -+#elif defined(__OpenBSD__) -+ struct sockpeercred peercred; -+ socklen_t len = sizeof(peercred); -+ if (getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &peercred, &len) == -1) { -+ // assume builtin backend -+ if (errno == EINVAL) { -+ *pid = getpid(); -+ *uid = getuid(); -+ *gid = getgid(); -+ return 0; -+ } -+ return -1; -+ } -+ *pid = peercred.pid; -+ *uid = peercred.uid; -+ *gid = peercred.gid; -+ return 0; - #elif defined(__FreeBSD__) - struct xucred cred; - socklen_t len = sizeof cred; diff --git a/sysutils/seatd/patches/patch-seatd-0_7_0_tests_poller_c b/sysutils/seatd/patches/patch-seatd-0_7_0_tests_poller_c deleted file mode 100644 index 3dbcdd8..0000000 --- a/sysutils/seatd/patches/patch-seatd-0_7_0_tests_poller_c +++ /dev/null @@ -1,14 +0,0 @@ -Index: seatd-0.7.0/tests/poller.c ---- seatd-0.7.0/tests/poller.c.orig -+++ seatd-0.7.0/tests/poller.c -@@ -123,6 +123,10 @@ static int test_signal_event(int signal, void *data) { - return 0; - } - -+#ifdef __OpenBSD__ -+#define SIGRTMIN SIGUSR1 -+#endif -+ - static void test_poller_single_signal(void) { - struct poller poller; - test_assert(poller_init(&poller) == 0); |