Wed May 16 11:30:36 2018 UTC ()
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.


(youri)
diff -r1.37 -r1.38 pkgsrc/sysutils/consolekit/Makefile
diff -r1.7 -r1.8 pkgsrc/sysutils/consolekit/PLIST
diff -r1.15 -r1.16 pkgsrc/sysutils/consolekit/distinfo
diff -r1.1 -r1.2 pkgsrc/sysutils/consolekit/patches/patch-src_ck-sysdeps-netbsd.c

cvs diff -r1.37 -r1.38 pkgsrc/sysutils/consolekit/Makefile (expand / switch to unified diff)

--- pkgsrc/sysutils/consolekit/Makefile 2018/03/17 01:11:12 1.37
+++ pkgsrc/sysutils/consolekit/Makefile 2018/05/16 11:30:36 1.38
@@ -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
3CONSOLEKIT_VER= 1.0.2 3CONSOLEKIT_VER= 1.2.1
4DISTNAME= ConsoleKit2-${CONSOLEKIT_VER} 4DISTNAME= ConsoleKit2-${CONSOLEKIT_VER}
5PKGNAME= consolekit-${CONSOLEKIT_VER} 5PKGNAME= consolekit-${CONSOLEKIT_VER}
6PKGREVISION= 1 
7CATEGORIES= sysutils 6CATEGORIES= sysutils
8GITHUB_RELEASE= ${CONSOLEKIT_VER} 7GITHUB_RELEASE= ${CONSOLEKIT_VER}
9GITHUB_PROJECT= ConsoleKit2 8GITHUB_PROJECT= ConsoleKit2
10MASTER_SITES= ${MASTER_SITE_GITHUB:=ConsoleKit2/} 9MASTER_SITES= ${MASTER_SITE_GITHUB:=ConsoleKit2/}
11EXTRACT_SUFX= .tar.bz2 10EXTRACT_SUFX= .tar.bz2
12 11
13MAINTAINER= youri@NetBSD.org 12MAINTAINER= youri@NetBSD.org
14HOMEPAGE= https://github.com/ConsoleKit2/ConsoleKit2/ 13HOMEPAGE= https://github.com/ConsoleKit2/ConsoleKit2/
15COMMENT= Framework for defining and tracking users, login sessions, and seats 14COMMENT= Framework for defining and tracking users, login sessions, and seats
16LICENSE= gnu-gpl-v2 15LICENSE= gnu-gpl-v2
17 16
18MESSAGE_SUBST+= PREFIX=${PREFIX} 17MESSAGE_SUBST+= PREFIX=${PREFIX}
19 18
20BUILD_DEFS+= VARBASE \ 19BUILD_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
35CONF_FILES+= ${EGDIR}/ConsoleKit/seats.d/00-primary.seat \ 34CONF_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
44GNU_CONFIGURE= YES 43GNU_CONFIGURE= YES
45USE_TOOLS+= gmake intltool msgfmt perl pkg-config automake 44USE_TOOLS+= gmake intltool msgfmt perl pkg-config automake
46USE_LIBTOOL= YES 45USE_LIBTOOL= YES
47 46
 47CONFIGURE_ARGS+= --enable-debug=full
48CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFBASE} \ 48CONFIGURE_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
53CONFIGURE_ARGS.SunOS+= --enable-rbac-shutdown=solaris.system.shutdown 54CONFIGURE_ARGS.SunOS+= --enable-rbac-shutdown=solaris.system.shutdown
54 55
55INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR} \ 56INSTALL_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
59post-install: 60post-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
64TOOL_DEPENDS+= gdbus-codegen-[0-9]*:../../devel/gdbus-codegen 65TOOL_DEPENDS+= gdbus-codegen-[0-9]*:../../devel/gdbus-codegen

cvs diff -r1.7 -r1.8 pkgsrc/sysutils/consolekit/PLIST (expand / switch to unified diff)

--- pkgsrc/sysutils/consolekit/PLIST 2016/06/18 10:23:16 1.7
+++ pkgsrc/sysutils/consolekit/PLIST 2018/05/16 11:30:36 1.8
@@ -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 $
2bin/ck-history 2bin/ck-history
3bin/ck-launch-session 3bin/ck-launch-session
4bin/ck-list-sessions 4bin/ck-list-sessions
5include/ConsoleKit/ck-connector/ck-connector.h 5include/ConsoleKit/ck-connector/ck-connector.h
 6include/ConsoleKit/libconsolekit.h
6lib/ConsoleKit/scripts/ck-system-hibernate 7lib/ConsoleKit/scripts/ck-system-hibernate
7lib/ConsoleKit/scripts/ck-system-hybridsleep 8lib/ConsoleKit/scripts/ck-system-hybridsleep
8lib/ConsoleKit/scripts/ck-system-restart 9lib/ConsoleKit/scripts/ck-system-restart
9lib/ConsoleKit/scripts/ck-system-stop 10lib/ConsoleKit/scripts/ck-system-stop
10lib/ConsoleKit/scripts/ck-system-suspend 11lib/ConsoleKit/scripts/ck-system-suspend
11lib/libck-connector.la 12lib/libck-connector.la
 13lib/libconsolekit.la
12lib/pkgconfig/ck-connector.pc 14lib/pkgconfig/ck-connector.pc
13lib/security/pam_ck_connector.la 15lib/pkgconfig/libconsolekit.pc
14libexec/ck-collect-session-info 16libexec/ck-collect-session-info
15libexec/ck-get-x11-display-device 17libexec/ck-get-x11-display-device
16libexec/ck-get-x11-server-pid 18libexec/ck-get-x11-server-pid
 19libexec/ck-remove-directory
17man/man1/ck-history.1 20man/man1/ck-history.1
18man/man1/ck-launch-session.1 21man/man1/ck-launch-session.1
19man/man1/ck-list-sessions.1 22man/man1/ck-list-sessions.1
20man/man1/console-kit-daemon.1m 23man/man1/console-kit-daemon.1m
21man/man8/pam_ck_connector.8 
22sbin/ck-log-system-restart 24sbin/ck-log-system-restart
23sbin/ck-log-system-start 25sbin/ck-log-system-start
24sbin/ck-log-system-stop 26sbin/ck-log-system-stop
25sbin/console-kit-daemon 27sbin/console-kit-daemon
26share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Manager.xml 28share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Manager.xml
27share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Seat.xml 29share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Seat.xml
28share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Session.xml 30share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Session.xml
29share/dbus-1/system-services/org.freedesktop.ConsoleKit.service 31share/dbus-1/system-services/org.freedesktop.ConsoleKit.service
30share/examples/consolekit/ConsoleKit/seats.d/00-primary.seat 32share/examples/consolekit/ConsoleKit/seats.d/00-primary.seat
31share/examples/consolekit/X11/xinit/xinitrc.d/90-consolekit 33share/examples/consolekit/X11/xinit/xinitrc.d/90-consolekit
32share/examples/consolekit/dbus-1/system.d/ConsoleKit.conf 34share/examples/consolekit/dbus-1/system.d/ConsoleKit.conf
33share/examples/consolekit/logrotate.d/consolekit 35share/examples/consolekit/logrotate.d/consolekit
 36share/gtk-doc/html/libconsolekit-1.0/annotation-glossary.html
 37share/gtk-doc/html/libconsolekit-1.0/api-index-1.0.html
 38share/gtk-doc/html/libconsolekit-1.0/api-index-deprecated.html
 39share/gtk-doc/html/libconsolekit-1.0/api-index-full.html
 40share/gtk-doc/html/libconsolekit-1.0/ch01.html
 41share/gtk-doc/html/libconsolekit-1.0/home.png
 42share/gtk-doc/html/libconsolekit-1.0/index.html
 43share/gtk-doc/html/libconsolekit-1.0/left-insensitive.png
 44share/gtk-doc/html/libconsolekit-1.0/left.png
 45share/gtk-doc/html/libconsolekit-1.0/libconsolekit-1.0.devhelp2
 46share/gtk-doc/html/libconsolekit-1.0/libconsolekit-libconsolekit.html
 47share/gtk-doc/html/libconsolekit-1.0/right-insensitive.png
 48share/gtk-doc/html/libconsolekit-1.0/right.png
 49share/gtk-doc/html/libconsolekit-1.0/style.css
 50share/gtk-doc/html/libconsolekit-1.0/up-insensitive.png
 51share/gtk-doc/html/libconsolekit-1.0/up.png
34share/locale/bg/LC_MESSAGES/ConsoleKit2.mo 52share/locale/bg/LC_MESSAGES/ConsoleKit2.mo
35share/locale/es/LC_MESSAGES/ConsoleKit2.mo 53share/locale/es/LC_MESSAGES/ConsoleKit2.mo
36share/locale/es_419/LC_MESSAGES/ConsoleKit2.mo 54share/locale/es_419/LC_MESSAGES/ConsoleKit2.mo
37share/locale/ru/LC_MESSAGES/ConsoleKit2.mo 55share/locale/ru/LC_MESSAGES/ConsoleKit2.mo
38share/polkit-1/actions/org.freedesktop.consolekit.policy 56share/polkit-1/actions/org.freedesktop.consolekit.policy
39share/polkit-1/rules.d/50-shutdown.rules 57share/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

cvs diff -r1.15 -r1.16 pkgsrc/sysutils/consolekit/distinfo (expand / switch to unified diff)

--- pkgsrc/sysutils/consolekit/distinfo 2017/06/22 22:09:17 1.15
+++ pkgsrc/sysutils/consolekit/distinfo 2018/05/16 11:30:36 1.16
@@ -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
3SHA1 (ConsoleKit2-1.0.2.tar.bz2) = 57b5fc3eae0391105e4933e79e6aeda943e6da81 3SHA1 (ConsoleKit2-1.2.1.tar.bz2) = 28869807eed0cc4a7a1d98030be1f2c7e5700d0e
4RMD160 (ConsoleKit2-1.0.2.tar.bz2) = 7b151e8d25dedb6961d2d83b934d79d9411147ff 4RMD160 (ConsoleKit2-1.2.1.tar.bz2) = 641171ca6e8290924fae4ab2d1ead6b13de88ad5
5SHA512 (ConsoleKit2-1.0.2.tar.bz2) = a6d1c876aafe3cb102d916c6b6086283eff77d2f35fbda460196cb71daf16d21a6713096bfc9e1b6ccef9719b2fcb25b6124024f3245f9410d0e503087c479f7 5SHA512 (ConsoleKit2-1.2.1.tar.bz2) = 31befe89f7fa604138bfb0722fc6cf12f0934bac004f98fc331004eb5a7f466ed7bd0dc9adc9869da739974208f9a3bc125068ff8a60d4b2badb58ef70a3eb10
6Size (ConsoleKit2-1.0.2.tar.bz2) = 622723 bytes 6Size (ConsoleKit2-1.2.1.tar.bz2) = 1182946 bytes
7SHA1 (patch-data_Makefile.am) = 5de63a98459914c7fda185d71fefd553b82107d3 7SHA1 (patch-src_ck-sysdeps-netbsd.c) = 4b8cabcd47bef0b8edaf6dd292686aa3297794bc
8SHA1 (patch-data_Makefile.in) = a1861d2b80cc45ec6e4d625b635d1fb3c8b90122 
9SHA1 (patch-src_ck-sysdeps-netbsd.c) = 889fdc11b096d290028572b673533f97a14c7984 

cvs diff -r1.1 -r1.2 pkgsrc/sysutils/consolekit/patches/Attic/patch-src_ck-sysdeps-netbsd.c (expand / switch to unified diff)

--- pkgsrc/sysutils/consolekit/patches/Attic/patch-src_ck-sysdeps-netbsd.c 2017/06/22 22:09:17 1.1
+++ pkgsrc/sysutils/consolekit/patches/Attic/patch-src_ck-sysdeps-netbsd.c 2018/05/16 11:30:36 1.2
@@ -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
3Don't include <sys/user.h> on NetBSD. 3Fix 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