Commit Graph

116 Commits

Author SHA1 Message Date
robert 5c5d828a9d implement sd_session_is_remote() compat function 2024-04-14 18:11:37 +00:00
rsadowski 416c70da00 Prevent consolekit from using linux/input.h if present
OK robert@ (maintainer)
2023-11-02 15:39:32 +00:00
ajacoutot 39e261c226 --enable-docbook-docs to pass 'make check'. 2023-09-17 09:38:05 +00:00
ajacoutot 2faebccc81 Drop gtk-doc and just use it. 2023-09-17 09:09:38 +00:00
robert eecc71a931 i've re-rolled the ConsoleKit2 1.2.6 release so adjust the port to that 2023-08-08 17:04:58 +00:00
robert 858e0bd979 update to 1.2.6 2023-08-08 12:42:35 +00:00
ajacoutot 26a5a6ed9f Move away from using the operator group and use _shutdown instead. 2023-06-19 13:25:41 +00:00
ajacoutot 338574e36c - Just check for the apmdev socket to know if we can suspend;
not 100% foolproof solution but that should be good enough.

- Add __aarch64__ to the VT path.

ok robert@
2023-04-24 13:25:40 +00:00
ajacoutot f8fcb016ce Add comment. 2023-04-15 20:17:58 +00:00
ajacoutot 5b06853a00 Don't mess up with invalid file descriptors; g_close() has become pickier
about it.
2023-04-15 20:15:51 +00:00
ajacoutot 5a986eeaba Update to consolekit2-1.2.5. 2023-04-03 14:55:34 +00:00
ajacoutot b8aa70f600 Update to consolekit2-1.2.4.20230404. 2023-04-03 07:16:53 +00:00
ajacoutot fd967993b7 Update to consolekit2-1.2.4.20230307. 2023-03-07 10:15:17 +00:00
robert 0090d16257 do not pick libudev up yet 2022-11-10 15:01:09 +00:00
robert 8124fb4f66 bring in latest systemd wrapper functions from the git repo 2022-11-10 12:50:08 +00:00
ajacoutot b2fa9c9923 Give MAINTAINER to robert@ 2022-11-10 11:14:43 +00:00
robert 932dc8b50f pull sd_seat_can_multi_session() in from libconsolekit 2022-11-10 10:43:37 +00:00
robert 9c5136f537 pull in the latest sd_seat_can_multi_session() function from the git repo 2022-11-10 10:15:01 +00:00
robert d3f858577f include latest systemd compat functions from the ConsoleKit2 git repo 2022-11-09 23:16:29 +00:00
ajacoutot 477a45da5b WANTLIB: pcre -> pcre2-8 after recent glib2 update. 2022-11-05 17:07:21 +00:00
ajacoutot 76bfe615f5 Prevent build failure when gtkdocize is found at configure time then
junked by dpb(1) at build time.

breakage reported by sthen@
2022-07-05 21:15:15 +00:00
sthen 3cdf2816b0 sync WANTLIB for some packages that could be semi-automated for some
common missing libs, with "help" from portbump, but i reviewed everything
2022-03-27 16:23:04 +00:00
naddy 2b3700e37e drop RCS Ids 2022-03-11 19:57:10 +00:00
robert d95d159c4d update to 1.2.4 2021-07-04 10:41:32 +00:00
ajacoutot 6d42adbf93 Update to consolekit2-1.2.3.
Fix a crash with glib debugging enable by not unreferencing
an instance object which was not referenced before while
removing the lock on it.
From robert@
2021-06-03 10:58:18 +00:00
ajacoutot 3c319a2616 Update to consolekit2-1.2.2. 2020-12-20 09:20:22 +00:00
ajacoutot 27726d3e61 Merged upstream. 2020-12-04 16:01:00 +00:00
robert 1465cf1eac only disconnect the signal handler after the lock is removed
ck_inhibit_remove_lock() will end up emitting a changed signal
so disconnecting the signal handler before that is not a good
idea

ok aja@
2020-12-04 15:00:39 +00:00
ajacoutot cf2fd5e216 All merged upstream. 2020-11-29 11:33:30 +00:00
robert e32554347b unbreak the inhibitor list by using a lock based on the named pipe's filename
which is random and unique for each inhibitor so that if one process takes
multiple locks the proper one will be removed from the inhibitor list when
the lock is removed by the process

ok ajacoutot@
2020-11-29 10:48:26 +00:00
ajacoutot a65d4e3983 Make sure the lock type isn't NULL; this should not happen but it does in
some situations and crashes console-kit-daemon(8).
This is a temporary solution until we hopefully find the root cause.

Debug by robert@
2020-11-28 15:06:40 +00:00
ajacoutot 026144195c Open /dev/ttyCcfg as the control device.
This will allow to get along with getty and X.
Fixes a long standing bug where the session would lose its active state.

debugged and fixed by robert@
2020-11-22 10:07:49 +00:00
ajacoutot 268106f34b Simplify stat2proc.
Fix max_consoles.
Remove useless header.
2020-11-21 09:44:30 +00:00
ajacoutot 501ea285d0 Add DEBUG_PACKAGES. 2020-06-18 22:39:16 +00:00
sthen 77f7cc9c61 replace simple PERMIT_PACKAGE_CDROM=Yes with PERMIT_PACKAGE=Yes 2019-07-12 20:49:33 +00:00
sthen 6ff3e55398 bump REVISION in a bunch of ports known or likely to use struct kinfo_proc,
there may be some missing as my unpacked ports source is a little out of date
but this should catch the main things people might run into

the struct was reordered a second time in sysctl.h r1.192 to improve
compatibility but amd64 snapshot packages made it out before that happened
so the bumps are still needed
2019-06-25 20:25:20 +00:00
naddy ebf751b927 Update gettext to 0.20.1.
Follow the upstream recommendations for packagers and switch to
multi-packages:
devel/gettext       -> devel/gettext,-runtime
devel/gettext-tools -> devel/gettext,-tools
(new)                  devel/gettext,-textstyle
2019-05-20 22:15:00 +00:00
ajacoutot efae8d04d7 Drop useless chunk. 2019-05-09 14:09:36 +00:00
ajacoutot bbe1972e6f Tweak comment. 2019-03-29 10:43:52 +00:00
ajacoutot d2002fd901 00-openbsd-consolekit.rules -> 10-openbsd-consolekit.rules to make it
easier to override.
2019-02-25 17:52:31 +00:00
ajacoutot 317e0db229 AUTH_ADMIN_KEEP -> AUTH_ADMIN 2019-02-18 11:48:31 +00:00
ajacoutot 8262830cf4 Set FWRITE on the descriptor so we can use VT_ACTIVATE and friends ioctls. 2019-02-10 17:40:28 +00:00
ajacoutot f88bd48951 Simplify ck_system_can_suspend, we are privileged so no need to check apmdev
mode.
Add a set of rules to match OpenBSD default behavior:
- operator can halt/reboot
- wheel can suspend/hibernate
2019-01-19 01:50:49 +00:00
ajacoutot cdca019469 Implement ck_system_can_suspend and ck_system_can_hibernate.
While here, add optimistic arm64 support.
2019-01-18 02:27:35 +00:00
espie f4b7f81318 convert to PKGSTEM 2018-09-04 12:46:09 +00:00
ajacoutot af1c9ce459 Update to consolekit2-1.2.1. 2017-12-13 15:36:22 +00:00
ajacoutot 81683a9e9e Fix a memory leak in ck-manager (upstream). 2017-10-24 01:35:23 +00:00
ajacoutot e4dfad076b Needs devel/gettext-tools for autopoint. 2017-07-23 21:12:27 +00:00
ajacoutot cf0cb9089d Update to consolekit2-1.2.0. 2017-07-21 08:55:05 +00:00
ajacoutot ceb793216b Pushed upstream. 2017-02-06 08:15:02 +00:00