Update to 1.2.1: Brings fixes for many platforms. Full changelog: 1.2.1: Stable release of ConsoleKit2 Changes since 1.1.2 New Features: Add wscons headers for OpenBSD Bug Fixes: Allow changing to VTs we don't have a session for Correct introspection prefixes Change configure.ac to enable the udev backend with devattr Use KDSKBMODE if defined Use #ifdef HEADER_H instead of #ifdef OS FreeBSD session activation Place sessions with a VT on the static Seat1 clean up clang warnings correct uninitialized variable warning Explicitly check for needed symbols Correct build errors in OpenBSD fix compiling on FreeBSD Misc Changes: update gitignore more autotools cleanup work update readme with new deps 1.2.0: Stable release of ConsoleKit2 Changes since 1.1.2 New Features: Add wscons headers for OpenBSD Bug Fixes: Allow changing to VTs we don't have a session for Correct introspection prefixes Change configure.ac to enable the udev backend with devattr Use KDSKBMODE if defined Use #ifdef HEADER_H instead of #ifdef OS FreeBSD session activation Place sessions with a VT on the static Seat1 clean up clang warnings correct uninitialized variable warning Explicitly check for needed symbols Correct build errors in OpenBSD fix compiling on FreeBSD Misc Changes: update gitignore more autotools cleanup work update readme with new deps 1.1.2: [Please note that this is a development release.] New Features: add a session-state property and method Add session-class dbus property and get method introduce libconsolekit Add dbus method GetVTNr to Session add dbus LockSession/UnlockSession add dbus ActivateSession/ActivateSessionOnSeat Bug Fixes: add session class + state to ck-list-sessions Allow session-class property to be set via OpenSessionWithParameters wrong lib linked in libconsolekit.pc.in remove the rest of the gcc warnings remove warnings about signed/unsigned comparisons remove warning about redeclaration remove warnings about redundant function declarations fix --enable-libudev configure flag coverity: 180820 remove dead code Misc Changes: add CONSOLEKIT_DEBUGGING support back in update ck-list-sessions man page update tests for new methods added simplify configure.ac document session types allowed 1.1.1: [Please note that this is a development release.] Changes: Don't try to run "chmod +x" on 90-consolekit, it is not a executable. Use INSTALL_SCRIPT instead of INSTALL_PROGRAM for 90-consolekit. Remove the root restriction for XDG_RUNTIME_DIR. cgroups: Attempt to use 'cpuaccount' if 'all' cgroup fails on pid move ck-remove-directory: return exit code 0 on success ck-remove-directory: remove unused dest parameter on become_user ck-remove-directory: remove dest dir as real user Add support for selinux Freebsd 10.3: Fix session activation Fix a reversed condition for invalid device on NetBSD cgroups: Use UID of logged in user instead UID of session leader process Fix memory leaks and a memory corruption issue. OpenBSD: adapt to recent kvm(3) restrictions Fix pam-ck-connector on musl Fix for OpenBSD and FreeBSD VT device naming scheme. Add a few more display manager users to filter out. Update udev rules. Handle XDG_RUNTIME_DIR not being created/set. Add support for server managed FDs. Prevent a use-after-free when emitting signal changes. Fix coverity and gcc warnings. Add a LockedHint property.diff -r1.37 -r1.38 pkgsrc/sysutils/consolekit/Makefile
(youri)
@@ -1,21 +1,20 @@ | @@ -1,21 +1,20 @@ | |||
1 | # $NetBSD: Makefile,v 1.37 2018/03/17 01:11:12 ryoon Exp $ | 1 | # $NetBSD: Makefile,v 1.38 2018/05/16 11:30:36 youri Exp $ | |
2 | 2 | |||
3 | CONSOLEKIT_VER= 1.0.2 | 3 | CONSOLEKIT_VER= 1.2.1 | |
4 | DISTNAME= ConsoleKit2-${CONSOLEKIT_VER} | 4 | DISTNAME= ConsoleKit2-${CONSOLEKIT_VER} | |
5 | PKGNAME= consolekit-${CONSOLEKIT_VER} | 5 | PKGNAME= consolekit-${CONSOLEKIT_VER} | |
6 | PKGREVISION= 1 | |||
7 | CATEGORIES= sysutils | 6 | CATEGORIES= sysutils | |
8 | GITHUB_RELEASE= ${CONSOLEKIT_VER} | 7 | GITHUB_RELEASE= ${CONSOLEKIT_VER} | |
9 | GITHUB_PROJECT= ConsoleKit2 | 8 | GITHUB_PROJECT= ConsoleKit2 | |
10 | MASTER_SITES= ${MASTER_SITE_GITHUB:=ConsoleKit2/} | 9 | MASTER_SITES= ${MASTER_SITE_GITHUB:=ConsoleKit2/} | |
11 | EXTRACT_SUFX= .tar.bz2 | 10 | EXTRACT_SUFX= .tar.bz2 | |
12 | 11 | |||
13 | MAINTAINER= youri@NetBSD.org | 12 | MAINTAINER= youri@NetBSD.org | |
14 | HOMEPAGE= https://github.com/ConsoleKit2/ConsoleKit2/ | 13 | HOMEPAGE= https://github.com/ConsoleKit2/ConsoleKit2/ | |
15 | COMMENT= Framework for defining and tracking users, login sessions, and seats | 14 | COMMENT= Framework for defining and tracking users, login sessions, and seats | |
16 | LICENSE= gnu-gpl-v2 | 15 | LICENSE= gnu-gpl-v2 | |
17 | 16 | |||
18 | MESSAGE_SUBST+= PREFIX=${PREFIX} | 17 | MESSAGE_SUBST+= PREFIX=${PREFIX} | |
19 | 18 | |||
20 | BUILD_DEFS+= VARBASE \ | 19 | BUILD_DEFS+= VARBASE \ | |
21 | PKG_SYSCONFBASE | 20 | PKG_SYSCONFBASE | |
@@ -35,30 +34,32 @@ MAKE_DIRS= ${PKG_SYSCONFDIR}/run-seat.d | @@ -35,30 +34,32 @@ MAKE_DIRS= ${PKG_SYSCONFDIR}/run-seat.d | |||
35 | CONF_FILES+= ${EGDIR}/ConsoleKit/seats.d/00-primary.seat \ | 34 | CONF_FILES+= ${EGDIR}/ConsoleKit/seats.d/00-primary.seat \ | |
36 | ${PKG_SYSCONFDIR}/seats.d/00-primary.seat \ | 35 | ${PKG_SYSCONFDIR}/seats.d/00-primary.seat \ | |
37 | ${EGDIR}/dbus-1/system.d/ConsoleKit.conf \ | 36 | ${EGDIR}/dbus-1/system.d/ConsoleKit.conf \ | |
38 | ${PKG_SYSCONFBASE}/dbus-1/system.d/ConsoleKit.conf \ | 37 | ${PKG_SYSCONFBASE}/dbus-1/system.d/ConsoleKit.conf \ | |
39 | ${EGDIR}/logrotate.d/consolekit \ | 38 | ${EGDIR}/logrotate.d/consolekit \ | |
40 | ${PKG_SYSCONFBASE}/logrotate.d/consolekit \ | 39 | ${PKG_SYSCONFBASE}/logrotate.d/consolekit \ | |
41 | ${EGDIR}/X11/xinit/xinitrc.d/90-consolekit \ | 40 | ${EGDIR}/X11/xinit/xinitrc.d/90-consolekit \ | |
42 | ${PKG_SYSCONFBASE}/X11/xinit/xinitrc.d/90-consolekit | 41 | ${PKG_SYSCONFBASE}/X11/xinit/xinitrc.d/90-consolekit | |
43 | 42 | |||
44 | GNU_CONFIGURE= YES | 43 | GNU_CONFIGURE= YES | |
45 | USE_TOOLS+= gmake intltool msgfmt perl pkg-config automake | 44 | USE_TOOLS+= gmake intltool msgfmt perl pkg-config automake | |
46 | USE_LIBTOOL= YES | 45 | USE_LIBTOOL= YES | |
47 | 46 | |||
47 | CONFIGURE_ARGS+= --enable-debug=full | |||
48 | CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFBASE} \ | 48 | CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFBASE} \ | |
49 | --localstatedir=${VARBASE} \ | 49 | --localstatedir=${VARBASE} \ | |
50 | --enable-pam-module \ | 50 | --disable-pam-module | |
51 | --with-pam-module-dir=${PREFIX}/lib/security \ | 51 | #--enable-pam-module \ | |
52 | #--with-pam-module-dir=${PREFIX}/lib/security \ | |||
52 | 53 | |||
53 | CONFIGURE_ARGS.SunOS+= --enable-rbac-shutdown=solaris.system.shutdown | 54 | CONFIGURE_ARGS.SunOS+= --enable-rbac-shutdown=solaris.system.shutdown | |
54 | 55 | |||
55 | INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR} \ | 56 | INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR} \ | |
56 | DBUS_SYS_DIR=${EGDIR}/dbus-1/system.d \ | 57 | DBUS_SYS_DIR=${EGDIR}/dbus-1/system.d \ | |
57 | XINITRC_DIR=${EGDIR}/X11/xinit/xinitrc.d | 58 | XINITRC_DIR=${EGDIR}/X11/xinit/xinitrc.d | |
58 | 59 | |||
59 | post-install: | 60 | post-install: | |
60 | ${MKDIR} ${DESTDIR}${RULESDIR} && \ | 61 | ${MKDIR} ${DESTDIR}${RULESDIR} && \ | |
61 | ${INSTALL_DATA} ${FILESDIR}/50-shutdown.rules \ | 62 | ${INSTALL_DATA} ${FILESDIR}/50-shutdown.rules \ | |
62 | ${DESTDIR}${RULESDIR}/50-shutdown.rules | 63 | ${DESTDIR}${RULESDIR}/50-shutdown.rules | |
63 | 64 | |||
64 | TOOL_DEPENDS+= gdbus-codegen-[0-9]*:../../devel/gdbus-codegen | 65 | TOOL_DEPENDS+= gdbus-codegen-[0-9]*:../../devel/gdbus-codegen |
@@ -1,43 +1,61 @@ | @@ -1,43 +1,61 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.7 2016/06/18 10:23:16 youri Exp $ | 1 | @comment $NetBSD: PLIST,v 1.8 2018/05/16 11:30:36 youri Exp $ | |
2 | bin/ck-history | 2 | bin/ck-history | |
3 | bin/ck-launch-session | 3 | bin/ck-launch-session | |
4 | bin/ck-list-sessions | 4 | bin/ck-list-sessions | |
5 | include/ConsoleKit/ck-connector/ck-connector.h | 5 | include/ConsoleKit/ck-connector/ck-connector.h | |
6 | include/ConsoleKit/libconsolekit.h | |||
6 | lib/ConsoleKit/scripts/ck-system-hibernate | 7 | lib/ConsoleKit/scripts/ck-system-hibernate | |
7 | lib/ConsoleKit/scripts/ck-system-hybridsleep | 8 | lib/ConsoleKit/scripts/ck-system-hybridsleep | |
8 | lib/ConsoleKit/scripts/ck-system-restart | 9 | lib/ConsoleKit/scripts/ck-system-restart | |
9 | lib/ConsoleKit/scripts/ck-system-stop | 10 | lib/ConsoleKit/scripts/ck-system-stop | |
10 | lib/ConsoleKit/scripts/ck-system-suspend | 11 | lib/ConsoleKit/scripts/ck-system-suspend | |
11 | lib/libck-connector.la | 12 | lib/libck-connector.la | |
13 | lib/libconsolekit.la | |||
12 | lib/pkgconfig/ck-connector.pc | 14 | lib/pkgconfig/ck-connector.pc | |
13 | lib/security/pam_ck_connector.la | 15 | lib/pkgconfig/libconsolekit.pc | |
14 | libexec/ck-collect-session-info | 16 | libexec/ck-collect-session-info | |
15 | libexec/ck-get-x11-display-device | 17 | libexec/ck-get-x11-display-device | |
16 | libexec/ck-get-x11-server-pid | 18 | libexec/ck-get-x11-server-pid | |
19 | libexec/ck-remove-directory | |||
17 | man/man1/ck-history.1 | 20 | man/man1/ck-history.1 | |
18 | man/man1/ck-launch-session.1 | 21 | man/man1/ck-launch-session.1 | |
19 | man/man1/ck-list-sessions.1 | 22 | man/man1/ck-list-sessions.1 | |
20 | man/man1/console-kit-daemon.1m | 23 | man/man1/console-kit-daemon.1m | |
21 | man/man8/pam_ck_connector.8 | |||
22 | sbin/ck-log-system-restart | 24 | sbin/ck-log-system-restart | |
23 | sbin/ck-log-system-start | 25 | sbin/ck-log-system-start | |
24 | sbin/ck-log-system-stop | 26 | sbin/ck-log-system-stop | |
25 | sbin/console-kit-daemon | 27 | sbin/console-kit-daemon | |
26 | share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Manager.xml | 28 | share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Manager.xml | |
27 | share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Seat.xml | 29 | share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Seat.xml | |
28 | share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Session.xml | 30 | share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Session.xml | |
29 | share/dbus-1/system-services/org.freedesktop.ConsoleKit.service | 31 | share/dbus-1/system-services/org.freedesktop.ConsoleKit.service | |
30 | share/examples/consolekit/ConsoleKit/seats.d/00-primary.seat | 32 | share/examples/consolekit/ConsoleKit/seats.d/00-primary.seat | |
31 | share/examples/consolekit/X11/xinit/xinitrc.d/90-consolekit | 33 | share/examples/consolekit/X11/xinit/xinitrc.d/90-consolekit | |
32 | share/examples/consolekit/dbus-1/system.d/ConsoleKit.conf | 34 | share/examples/consolekit/dbus-1/system.d/ConsoleKit.conf | |
33 | share/examples/consolekit/logrotate.d/consolekit | 35 | share/examples/consolekit/logrotate.d/consolekit | |
36 | share/gtk-doc/html/libconsolekit-1.0/annotation-glossary.html | |||
37 | share/gtk-doc/html/libconsolekit-1.0/api-index-1.0.html | |||
38 | share/gtk-doc/html/libconsolekit-1.0/api-index-deprecated.html | |||
39 | share/gtk-doc/html/libconsolekit-1.0/api-index-full.html | |||
40 | share/gtk-doc/html/libconsolekit-1.0/ch01.html | |||
41 | share/gtk-doc/html/libconsolekit-1.0/home.png | |||
42 | share/gtk-doc/html/libconsolekit-1.0/index.html | |||
43 | share/gtk-doc/html/libconsolekit-1.0/left-insensitive.png | |||
44 | share/gtk-doc/html/libconsolekit-1.0/left.png | |||
45 | share/gtk-doc/html/libconsolekit-1.0/libconsolekit-1.0.devhelp2 | |||
46 | share/gtk-doc/html/libconsolekit-1.0/libconsolekit-libconsolekit.html | |||
47 | share/gtk-doc/html/libconsolekit-1.0/right-insensitive.png | |||
48 | share/gtk-doc/html/libconsolekit-1.0/right.png | |||
49 | share/gtk-doc/html/libconsolekit-1.0/style.css | |||
50 | share/gtk-doc/html/libconsolekit-1.0/up-insensitive.png | |||
51 | share/gtk-doc/html/libconsolekit-1.0/up.png | |||
34 | share/locale/bg/LC_MESSAGES/ConsoleKit2.mo | 52 | share/locale/bg/LC_MESSAGES/ConsoleKit2.mo | |
35 | share/locale/es/LC_MESSAGES/ConsoleKit2.mo | 53 | share/locale/es/LC_MESSAGES/ConsoleKit2.mo | |
36 | share/locale/es_419/LC_MESSAGES/ConsoleKit2.mo | 54 | share/locale/es_419/LC_MESSAGES/ConsoleKit2.mo | |
37 | share/locale/ru/LC_MESSAGES/ConsoleKit2.mo | 55 | share/locale/ru/LC_MESSAGES/ConsoleKit2.mo | |
38 | share/polkit-1/actions/org.freedesktop.consolekit.policy | 56 | share/polkit-1/actions/org.freedesktop.consolekit.policy | |
39 | share/polkit-1/rules.d/50-shutdown.rules | 57 | share/polkit-1/rules.d/50-shutdown.rules | |
40 | @pkgdir share/examples/consolekit/ConsoleKit/run-session.d | 58 | @pkgdir share/examples/consolekit/ConsoleKit/run-session.d | |
41 | @pkgdir share/examples/consolekit/ConsoleKit/run-seat.d | 59 | @pkgdir share/examples/consolekit/ConsoleKit/run-seat.d | |
42 | @pkgdir lib/ConsoleKit/run-session.d | 60 | @pkgdir lib/ConsoleKit/run-session.d | |
43 | @pkgdir lib/ConsoleKit/run-seat.d | 61 | @pkgdir lib/ConsoleKit/run-seat.d |
@@ -1,9 +1,7 @@ | @@ -1,9 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.15 2017/06/22 22:09:17 kamil Exp $ | 1 | $NetBSD: distinfo,v 1.16 2018/05/16 11:30:36 youri Exp $ | |
2 | 2 | |||
3 | SHA1 (ConsoleKit2-1.0.2.tar.bz2) = 57b5fc3eae0391105e4933e79e6aeda943e6da81 | 3 | SHA1 (ConsoleKit2-1.2.1.tar.bz2) = 28869807eed0cc4a7a1d98030be1f2c7e5700d0e | |
4 | RMD160 (ConsoleKit2-1.0.2.tar.bz2) = 7b151e8d25dedb6961d2d83b934d79d9411147ff | 4 | RMD160 (ConsoleKit2-1.2.1.tar.bz2) = 641171ca6e8290924fae4ab2d1ead6b13de88ad5 | |
5 | SHA512 (ConsoleKit2-1.0.2.tar.bz2) = a6d1c876aafe3cb102d916c6b6086283eff77d2f35fbda460196cb71daf16d21a6713096bfc9e1b6ccef9719b2fcb25b6124024f3245f9410d0e503087c479f7 | 5 | SHA512 (ConsoleKit2-1.2.1.tar.bz2) = 31befe89f7fa604138bfb0722fc6cf12f0934bac004f98fc331004eb5a7f466ed7bd0dc9adc9869da739974208f9a3bc125068ff8a60d4b2badb58ef70a3eb10 | |
6 | Size (ConsoleKit2-1.0.2.tar.bz2) = 622723 bytes | 6 | Size (ConsoleKit2-1.2.1.tar.bz2) = 1182946 bytes | |
7 | SHA1 (patch-data_Makefile.am) = 5de63a98459914c7fda185d71fefd553b82107d3 | 7 | SHA1 (patch-src_ck-sysdeps-netbsd.c) = 4b8cabcd47bef0b8edaf6dd292686aa3297794bc | |
8 | SHA1 (patch-data_Makefile.in) = a1861d2b80cc45ec6e4d625b635d1fb3c8b90122 | |||
9 | SHA1 (patch-src_ck-sysdeps-netbsd.c) = 889fdc11b096d290028572b673533f97a14c7984 |
@@ -1,14 +1,26 @@ | @@ -1,14 +1,26 @@ | |||
1 | $NetBSD: patch-src_ck-sysdeps-netbsd.c,v 1.1 2017/06/22 22:09:17 kamil Exp $ | 1 | $NetBSD: patch-src_ck-sysdeps-netbsd.c,v 1.2 2018/05/16 11:30:36 youri Exp $ | |
2 | 2 | |||
3 | Don't include <sys/user.h> on NetBSD. | 3 | Fix NetBSD build. | |
4 | 4 | |||
5 | --- src/ck-sysdeps-netbsd.c.orig 2016-03-19 15:14:24.000000000 +0000 | 5 | --- src/ck-sysdeps-netbsd.c.orig 2017-06-02 01:31:44.000000000 +0000 | |
6 | +++ src/ck-sysdeps-netbsd.c | 6 | +++ src/ck-sysdeps-netbsd.c | |
7 | @@ -36,7 +36,6 @@ | 7 | @@ -36,7 +36,6 @@ | |
8 | #include <sys/types.h> | 8 | #include <sys/types.h> | |
9 | #include <sys/stat.h> | 9 | #include <sys/stat.h> | |
10 | #include <sys/sysctl.h> | 10 | #include <sys/sysctl.h> | |
11 | -#include <sys/user.h> | 11 | -#include <sys/user.h> | |
12 | #include <sys/ioctl.h> | 12 | #include <sys/ioctl.h> | |
13 | 13 | |||
14 | #include <dev/wscons/wsdisplay_usl_io.h> | 14 | #ifdef HAVE_SYS_MOUNT_H | |
15 | @@ -494,7 +493,11 @@ ck_make_tmpfs (guint uid, guint gid, con | |||
16 | ||||
17 | opts = g_strdup_printf ("mode=0700,uid=%d", uid); | |||
18 | ||||
19 | +#ifdef __NetBSD__ | |||
20 | + result = mount("tmpfs", dest, 0, opts, strlen(opts)); | |||
21 | +#else | |||
22 | result = mount("tmpfs", dest, 0, opts); | |||
23 | +#endif | |||
24 | ||||
25 | g_free (opts); | |||
26 |