pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils/consolekit
Module Name: pkgsrc
Committed By: youri
Date: Sat Jun 18 10:23:17 UTC 2016
Modified Files:
pkgsrc/sysutils/consolekit: Makefile PLIST buildlink3.mk distinfo
Added Files:
pkgsrc/sysutils/consolekit: MESSAGE
pkgsrc/sysutils/consolekit/files: 50-shutdown.rules
pkgsrc/sysutils/consolekit/patches: patch-data_Makefile.am
Removed Files:
pkgsrc/sysutils/consolekit/files: ck-get-x11-display-device.FreeBSD
ck-get-x11-server-pid.FreeBSD ck-sysdeps-netbsd.c
ck-sysdeps-openbsd.c
pkgsrc/sysutils/consolekit/patches: patch-aa patch-ab patch-ac patch-ad
patch-ae patch-af
Log Message:
consolekit: Update to 1.0.2 using ConsoleKit2, the continuation of
consolekit.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/consolekit/MESSAGE
cvs rdiff -u -r1.30 -r1.31 pkgsrc/sysutils/consolekit/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/sysutils/consolekit/PLIST
cvs rdiff -u -r1.7 -r1.8 pkgsrc/sysutils/consolekit/buildlink3.mk
cvs rdiff -u -r1.12 -r1.13 pkgsrc/sysutils/consolekit/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/consolekit/files/50-shutdown.rules
cvs rdiff -u -r1.1 -r0 \
pkgsrc/sysutils/consolekit/files/ck-get-x11-display-device.FreeBSD \
pkgsrc/sysutils/consolekit/files/ck-get-x11-server-pid.FreeBSD \
pkgsrc/sysutils/consolekit/files/ck-sysdeps-openbsd.c
cvs rdiff -u -r1.3 -r0 pkgsrc/sysutils/consolekit/files/ck-sysdeps-netbsd.c
cvs rdiff -u -r1.6 -r0 pkgsrc/sysutils/consolekit/patches/patch-aa
cvs rdiff -u -r1.4 -r0 pkgsrc/sysutils/consolekit/patches/patch-ab
cvs rdiff -u -r1.3 -r0 pkgsrc/sysutils/consolekit/patches/patch-ac \
pkgsrc/sysutils/consolekit/patches/patch-af
cvs rdiff -u -r1.2 -r0 pkgsrc/sysutils/consolekit/patches/patch-ad
cvs rdiff -u -r1.7 -r0 pkgsrc/sysutils/consolekit/patches/patch-ae
cvs rdiff -u -r0 -r1.1 \
pkgsrc/sysutils/consolekit/patches/patch-data_Makefile.am
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/sysutils/consolekit/Makefile
diff -u pkgsrc/sysutils/consolekit/Makefile:1.30 pkgsrc/sysutils/consolekit/Makefile:1.31
--- pkgsrc/sysutils/consolekit/Makefile:1.30 Sat Jun 4 16:28:22 2016
+++ pkgsrc/sysutils/consolekit/Makefile Sat Jun 18 10:23:16 2016
@@ -1,63 +1,74 @@
-# $NetBSD: Makefile,v 1.30 2016/06/04 16:28:22 youri Exp $
+# $NetBSD: Makefile,v 1.31 2016/06/18 10:23:16 youri Exp $
-CONSOLEKIT_VER= 0.4.6
-DISTNAME= ConsoleKit-${CONSOLEKIT_VER}
-PKGNAME= consolekit-${CONSOLEKIT_VER}
-PKGREVISION= 2
-CATEGORIES= sysutils
-MASTER_SITES= http://www.freedesktop.org/software/ConsoleKit/dist/
-EXTRACT_SUFX= .tar.xz
+CONSOLEKIT_VER= 1.0.2
+DISTNAME= ${CONSOLEKIT_VER}
+PKGNAME= consolekit-${CONSOLEKIT_VER}
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_GITHUB:=ConsoleKit2/}
-MAINTAINER= pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE= http://www.freedesktop.org/wiki/Software/ConsoleKit
+MAINTAINER= youri%NetBSD.org@localhost
+HOMEPAGE= https://github.com/ConsoleKit2/ConsoleKit2/
COMMENT= Framework for defining and tracking users, login sessions, and seats
LICENSE= gnu-gpl-v2
-PKG_SYSCONFSUBDIR= ConsoleKit
+GITHUB_PROJECT= ConsoleKit2
+GITHUB_TAG= ${CONSOLEKIT_VER}
+
+MESSAGE_SUBST+= PREFIX=${PREFIX}
-EGDIR= ${PREFIX}/share/examples/consolekit
-CONF_FILES+= ${EGDIR}/00-primary.seat ${PKG_SYSCONFDIR}/run-seat.d/00-primary.seat
-CONF_FILES+= ${EGDIR}/ConsoleKit.conf ${PKG_SYSCONFBASE}/dbus-1/system.d/ConsoleKit.conf
-
-MAKE_DIRS= ${PKG_SYSCONFDIR}/run-seat.d
-
-BUILD_DEFS+= VARBASE
-BUILD_DEFS+= PKG_SYSCONFBASE
-
-GNU_CONFIGURE= YES
-USE_PKGLOCALEDIR= YES
-USE_TOOLS+= gmake intltool msgfmt perl pkg-config
-USE_TOOLS+= autoconf automake autoreconf
-USE_LIBTOOL= YES
+BUILD_DEFS+= VARBASE \
+ PKG_SYSCONFBASE
-CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE:Q}
-CONFIGURE_ARGS+= --localstatedir=${VARBASE}
+EGDIR= ${PREFIX}/share/examples/consolekit
+PKG_SYSCONFSUBDIR= ConsoleKit
+RULESDIR= ${PREFIX}/share/polkit-1/rules.d
+
+MAKE_DIRS= ${PKG_SYSCONFDIR}/run-seat.d \
+ ${PKG_SYSCONFDIR}/run-session.d \
+ ${PKG_SYSCONFDIR}/seats.d \
+ ${PKG_SYSCONFBASE}/dbus-1/system.d \
+ ${PKG_SYSCONFBASE}/logrotate.d \
+ ${PKG_SYSCONFBASE}/X11/xinit/xinitrc.d
+
+
+CONF_FILES+= ${EGDIR}/ConsoleKit/seats.d/00-primary.seat \
+ ${PKG_SYSCONFDIR}/seats.d/00-primary.seat \
+ ${EGDIR}/dbus-1/system.d/ConsoleKit.conf \
+ ${PKG_SYSCONFBASE}/dbus-1/system.d/ConsoleKit.conf \
+ ${EGDIR}/logrotate.d/consolekit \
+ ${PKG_SYSCONFBASE}/logrotate.d/consolekit \
+ ${EGDIR}/X11/xinit/xinitrc.d/90-consolekit \
+ ${PKG_SYSCONFBASE}/X11/xinit/xinitrc.d/90-consolekit
+
+GNU_CONFIGURE= YES
+USE_TOOLS+= gmake intltool msgfmt perl pkg-config automake
+USE_LIBTOOL= YES
+
+CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFBASE} \
+ --localstatedir=${VARBASE} \
+ --enable-pam-module \
+ --with-pam-module-dir=${PREFIX}/lib/security \
CONFIGURE_ARGS.SunOS+= --enable-rbac-shutdown=solaris.system.shutdown
-# TODO
-#CONFIGURE_ARGS+= --enable-pam-module
-#.include "../../mk/pam.buildlink3.mk"
-
-post-extract:
- ${CP} ${FILESDIR}/ck-sysdeps-netbsd.c ${WRKSRC}/src/
- ${CP} ${FILESDIR}/ck-sysdeps-openbsd.c ${WRKSRC}/src/
+INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR} \
+ DBUS_SYS_DIR=${EGDIR}/dbus-1/system.d \
+ XINITRC_DIR=${EGDIR}/X11/xinit/xinitrc.d
pre-configure:
- cd ${WRKSRC} && autoreconf -vi ${AUTORECONF_ARGS}
+ cd ${WRKSRC} && ./autogen.sh
-.include "../../mk/bsd.prefs.mk"
-.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly"
post-install:
- ${INSTALL_SCRIPT} ${FILESDIR}/ck-get-x11-display-device.FreeBSD \
- ${DESTDIR}${PREFIX}/libexec/ck-get-x11-display-device
- ${INSTALL_SCRIPT} ${FILESDIR}/ck-get-x11-server-pid.FreeBSD \
- ${DESTDIR}${PREFIX}/libexec/ck-get-x11-server-pid
-.endif
+ ${MKDIR} ${DESTDIR}${RULESDIR} && \
+ ${INSTALL_DATA} ${FILESDIR}/50-shutdown.rules \
+ ${DESTDIR}${RULESDIR}/50-shutdown.rules
+
+BUILD_DEPENDS+= gdbus-codegen-[0-9]*:../../devel/gdbus-codegen
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/polkit/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../sysutils/dbus-glib/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
+.include "../../mk/pam.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/consolekit/PLIST
diff -u pkgsrc/sysutils/consolekit/PLIST:1.6 pkgsrc/sysutils/consolekit/PLIST:1.7
--- pkgsrc/sysutils/consolekit/PLIST:1.6 Sat Jun 4 16:28:22 2016
+++ pkgsrc/sysutils/consolekit/PLIST Sat Jun 18 10:23:16 2016
@@ -1,15 +1,24 @@
-@comment $NetBSD: PLIST,v 1.6 2016/06/04 16:28:22 youri Exp $
+@comment $NetBSD: PLIST,v 1.7 2016/06/18 10:23:16 youri Exp $
bin/ck-history
bin/ck-launch-session
bin/ck-list-sessions
include/ConsoleKit/ck-connector/ck-connector.h
+lib/ConsoleKit/scripts/ck-system-hibernate
+lib/ConsoleKit/scripts/ck-system-hybridsleep
lib/ConsoleKit/scripts/ck-system-restart
lib/ConsoleKit/scripts/ck-system-stop
+lib/ConsoleKit/scripts/ck-system-suspend
lib/libck-connector.la
lib/pkgconfig/ck-connector.pc
+lib/security/pam_ck_connector.la
libexec/ck-collect-session-info
libexec/ck-get-x11-display-device
libexec/ck-get-x11-server-pid
+man/man1/ck-history.1
+man/man1/ck-launch-session.1
+man/man1/ck-list-sessions.1
+man/man1/console-kit-daemon.1m
+man/man8/pam_ck_connector.8
sbin/ck-log-system-restart
sbin/ck-log-system-start
sbin/ck-log-system-stop
@@ -18,10 +27,17 @@ share/dbus-1/interfaces/org.freedesktop.
share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Seat.xml
share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Session.xml
share/dbus-1/system-services/org.freedesktop.ConsoleKit.service
-share/examples/consolekit/00-primary.seat
-share/examples/consolekit/ConsoleKit.conf
+share/examples/consolekit/ConsoleKit/seats.d/00-primary.seat
+share/examples/consolekit/X11/xinit/xinitrc.d/90-consolekit
+share/examples/consolekit/dbus-1/system.d/ConsoleKit.conf
+share/examples/consolekit/logrotate.d/consolekit
+share/locale/bg/LC_MESSAGES/ConsoleKit2.mo
+share/locale/es/LC_MESSAGES/ConsoleKit2.mo
+share/locale/es_419/LC_MESSAGES/ConsoleKit2.mo
+share/locale/ru/LC_MESSAGES/ConsoleKit2.mo
share/polkit-1/actions/org.freedesktop.consolekit.policy
+share/polkit-1/rules.d/50-shutdown.rules
+@pkgdir share/examples/consolekit/ConsoleKit/run-session.d
+@pkgdir share/examples/consolekit/ConsoleKit/run-seat.d
@pkgdir lib/ConsoleKit/run-session.d
@pkgdir lib/ConsoleKit/run-seat.d
-@pkgdir etc/ConsoleKit/run-session.d
-@pkgdir etc/ConsoleKit/run-seat.d
Index: pkgsrc/sysutils/consolekit/buildlink3.mk
diff -u pkgsrc/sysutils/consolekit/buildlink3.mk:1.7 pkgsrc/sysutils/consolekit/buildlink3.mk:1.8
--- pkgsrc/sysutils/consolekit/buildlink3.mk:1.7 Sat Sep 15 10:06:21 2012
+++ pkgsrc/sysutils/consolekit/buildlink3.mk Sat Jun 18 10:23:16 2016
@@ -1,12 +1,12 @@
-# $NetBSD: buildlink3.mk,v 1.7 2012/09/15 10:06:21 obache Exp $
+# $NetBSD: buildlink3.mk,v 1.8 2016/06/18 10:23:16 youri Exp $
BUILDLINK_TREE+= consolekit
.if !defined(CONSOLEKIT_BUILDLINK3_MK)
CONSOLEKIT_BUILDLINK3_MK:=
-BUILDLINK_API_DEPENDS.consolekit+= consolekit>=0.3.0
-BUILDLINK_ABI_DEPENDS.consolekit+= consolekit>=0.3.0nb9
+BUILDLINK_API_DEPENDS.consolekit+= consolekit>=1.0.2
+BUILDLINK_ABI_DEPENDS.consolekit+= consolekit>=1.0.2
BUILDLINK_PKGSRCDIR.consolekit?= ../../sysutils/consolekit
.include "../../sysutils/dbus/buildlink3.mk"
Index: pkgsrc/sysutils/consolekit/distinfo
diff -u pkgsrc/sysutils/consolekit/distinfo:1.12 pkgsrc/sysutils/consolekit/distinfo:1.13
--- pkgsrc/sysutils/consolekit/distinfo:1.12 Wed Nov 4 01:32:08 2015
+++ pkgsrc/sysutils/consolekit/distinfo Sat Jun 18 10:23:16 2016
@@ -1,12 +1,7 @@
-$NetBSD: distinfo,v 1.12 2015/11/04 01:32:08 agc Exp $
+$NetBSD: distinfo,v 1.13 2016/06/18 10:23:16 youri Exp $
-SHA1 (ConsoleKit-0.4.6.tar.xz) = bde79a4aa1bf3dc69a8e03731c7eb06e2dbda2d3
-RMD160 (ConsoleKit-0.4.6.tar.xz) = 7140db9e26accde56d672330e7045fafbafe6990
-SHA512 (ConsoleKit-0.4.6.tar.xz) = 54955e3e83778a9216846104da8762fd50a37190e209127dd5d211e2227da617e14f6f5c1359905396d299656e526d14e1187b28eaff7d0ae1d7563dc8d9b46d
-Size (ConsoleKit-0.4.6.tar.xz) = 366572 bytes
-SHA1 (patch-aa) = 1c637d4ba3dfbb17d141f6b29140cf1d3d42ed7e
-SHA1 (patch-ab) = c32c8f88a0dd87c9b6d4473bf6526c07fb593404
-SHA1 (patch-ac) = 3ef09f16ee039da7cea0c020c2aeccfe5d88c57c
-SHA1 (patch-ad) = c0cf170a85e04e2dadfd490f303a40e8d62cc626
-SHA1 (patch-ae) = dcb689861f8ee425b94a8acf1cb344a782b4328b
-SHA1 (patch-af) = 9c7febd3a1e995060e5755b205c5d4a7217bc1b8
+SHA1 (1.0.2.tar.gz) = aca2f13f65e77ebffc9fb65d6102cd8edde522ba
+RMD160 (1.0.2.tar.gz) = 1af1cfe8bdfc92215e8393eb4246c0e8667ae5e5
+SHA512 (1.0.2.tar.gz) = a0ce6b3b8eded4ec9fb0774b617cbf6b50aedef16a2bc28ec783e296eb3acc4a250611abb108aaf4f3716f3386ba397644fe55615e516f156982e9102cbb950e
+Size (1.0.2.tar.gz) = 205101 bytes
+SHA1 (patch-data_Makefile.am) = 7d37d6c3b5c0bab2e1e4b7000bd23f72b646cf9c
Added files:
Index: pkgsrc/sysutils/consolekit/MESSAGE
diff -u /dev/null pkgsrc/sysutils/consolekit/MESSAGE:1.1
--- /dev/null Sat Jun 18 10:23:17 2016
+++ pkgsrc/sysutils/consolekit/MESSAGE Sat Jun 18 10:23:16 2016
@@ -0,0 +1,9 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2016/06/18 10:23:16 youri Exp $
+
+ConsoleKit:
+
+Users in the operator group can stop, restart, suspend, hibernate the
+machine as described in ${PREFIX}/share/polkit-1/rules.d/50-shutdown.rules.
+
+===========================================================================
Index: pkgsrc/sysutils/consolekit/files/50-shutdown.rules
diff -u /dev/null pkgsrc/sysutils/consolekit/files/50-shutdown.rules:1.1
--- /dev/null Sat Jun 18 10:23:17 2016
+++ pkgsrc/sysutils/consolekit/files/50-shutdown.rules Sat Jun 18 10:23:16 2016
@@ -0,0 +1,9 @@
+polkit.addRule(function (action, subject) {
+ if (action.id == "org.freedesktop.consolekit.system.restart" ||
+ action.id == "org.freedesktop.consolekit.system.stop" ||
+ action.id == "org.freedesktop.consolekit.system.suspend" ||
+ action.id == "org.freedesktop.consolekit.system.hibernate"
+ && subject.isInGroup("operator")) {
+ return polkit.Result.YES;
+ }
+});
Index: pkgsrc/sysutils/consolekit/patches/patch-data_Makefile.am
diff -u /dev/null pkgsrc/sysutils/consolekit/patches/patch-data_Makefile.am:1.1
--- /dev/null Sat Jun 18 10:23:17 2016
+++ pkgsrc/sysutils/consolekit/patches/patch-data_Makefile.am Sat Jun 18 10:23:17 2016
@@ -0,0 +1,15 @@
+$NetBSD: patch-data_Makefile.am,v 1.1 2016/06/18 10:23:17 youri Exp $
+
+* Fix installation of script data files
+
+--- data/Makefile.am.orig 2015-06-28 08:37:44.000000000 +0000
++++ data/Makefile.am
+@@ -113,7 +113,7 @@ install-logrotate: $(LOGROTATE_CONFS)
+
+ install-90-consolekit: $(XINITRC_CONFS)
+ $(MKDIR_P) $(DESTDIR)$(XINITRC_DIR)/
+- $(INSTALL_PROGRAM) 90-consolekit $(DESTDIR)$(XINITRC_DIR) && \
++ $(INSTALL_DATA) 90-consolekit $(DESTDIR)$(XINITRC_DIR) && \
+ chmod +x $(DESTDIR)$(XINITRC_DIR)/90-consolekit
+
+ uninstall-logrotate:
Home |
Main Index |
Thread Index |
Old Index