From 2586552a3102174a883c5a18b865fa9a5ad7cc48 Mon Sep 17 00:00:00 2001 From: DPorts Builder Date: Tue, 15 Aug 2017 06:44:24 -0700 Subject: [PATCH] Import sysutils/consolekit2 version 1.2.0 --- sysutils/consolekit2/Makefile | 41 +++++++++++++ sysutils/consolekit2/distinfo | 3 + .../dragonfly/patch-src_ck-device-udev.c | 20 +++++++ sysutils/consolekit2/pkg-descr | 20 +++++++ sysutils/consolekit2/pkg-plist | 57 +++++++++++++++++++ 5 files changed, 141 insertions(+) create mode 100644 sysutils/consolekit2/Makefile create mode 100644 sysutils/consolekit2/distinfo create mode 100644 sysutils/consolekit2/dragonfly/patch-src_ck-device-udev.c create mode 100644 sysutils/consolekit2/pkg-descr create mode 100644 sysutils/consolekit2/pkg-plist diff --git a/sysutils/consolekit2/Makefile b/sysutils/consolekit2/Makefile new file mode 100644 index 00000000000..a528f8552d6 --- /dev/null +++ b/sysutils/consolekit2/Makefile @@ -0,0 +1,41 @@ +# Created by: FreeBSD GNOME Team +# $FreeBSD$ + +PORTNAME= consolekit +PORTVERSION= 1.2.0 +CATEGORIES= sysutils gnome +MASTER_SITES= https://github.com/ConsoleKit2/ConsoleKit2/releases/download/${PORTVERSION}/ +DISTNAME= ConsoleKit2-${PORTVERSION} +PKGNAMESUFFIX= 2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Framework for defining and tracking users + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libdbus-1.so:devel/dbus \ + libpolkit-gobject-1.so:sysutils/polkit + +WRKSRC= ${WRKDIR}/ConsoleKit2-${PORTVERSION} +USES= gettext gmake libtool localbase pathfix pkgconfig tar:bzip2 +USE_XORG= x11 +USE_GNOME= glib20 libxslt introspection:build +GNU_CONFIGURE= yes +USE_LDCONFIG= yes +CONFIGURE_ARGS= --with-pid-file=/var/run/${PORTNAME}.pid \ + --enable-pam-module \ + --with-pam-module-dir=${PREFIX}/lib \ + --localstatedir=/var \ + --enable-polkit \ + --enable-introspection \ + --without-html-dir \ + --disable-udev-acl \ + --disable-libcgmanager \ + --disable-libdrm \ + --disable-libevdev \ + --disable-libudev \ + --without-systemdsystemunitdir +INSTALL_TARGET= install-strip + +.include diff --git a/sysutils/consolekit2/distinfo b/sysutils/consolekit2/distinfo new file mode 100644 index 00000000000..684d815a613 --- /dev/null +++ b/sysutils/consolekit2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1501417547 +SHA256 (ConsoleKit2-1.2.0.tar.bz2) = d6ea13b306557a76519388de39bf7f1a1ea9010af147fad4fb3131ce634bd8b3 +SIZE (ConsoleKit2-1.2.0.tar.bz2) = 1125402 diff --git a/sysutils/consolekit2/dragonfly/patch-src_ck-device-udev.c b/sysutils/consolekit2/dragonfly/patch-src_ck-device-udev.c new file mode 100644 index 00000000000..4bd3845a285 --- /dev/null +++ b/sysutils/consolekit2/dragonfly/patch-src_ck-device-udev.c @@ -0,0 +1,20 @@ +--- src/ck-device-udev.c.orig 2017-06-02 01:31:44 UTC ++++ src/ck-device-udev.c +@@ -189,7 +189,7 @@ ck_device_drm_drop_master (gint fd) + { + TRACE (); + +- return change_drm_master (fd, DRM_IOCTL_DROP_MASTER); ++ return -1; /* change_drm_master (fd, DRM_IOCTL_DROP_MASTER); */ + } + + +@@ -198,7 +198,7 @@ ck_device_drm_set_master (gint fd) + { + TRACE (); + +- return change_drm_master (fd, DRM_IOCTL_SET_MASTER); ++ return -1; /* change_drm_master (fd, DRM_IOCTL_SET_MASTER); */ + } + + diff --git a/sysutils/consolekit2/pkg-descr b/sysutils/consolekit2/pkg-descr new file mode 100644 index 00000000000..ac7f514abfa --- /dev/null +++ b/sysutils/consolekit2/pkg-descr @@ -0,0 +1,20 @@ +ConsoleKit2 is a framework for defining and tracking users, login +sessions, and seats. It allows multiple users to be logged in at the +same time and share hardware for their graphical session. ConsoleKit2 +will keep track of those resources and whichever session is active +will have use of the hardware at that time. + +What is a seat? +=============== +A seat is a collection of sessions and a set of hardware (usually at +least a keyboard and mouse). Only one session may be active on a +seat at a time. + +What is a session? +================== +A session is a collection of all processes that originate from a single +common ancestor and retain knowledge of a secret. As an implementation +detail, this secret may be stored in the process environment by the +login manager under the name XDG_SESSION_COOKIE. + +WWW: https://github.com/ConsoleKit2/ConsoleKit2 diff --git a/sysutils/consolekit2/pkg-plist b/sysutils/consolekit2/pkg-plist new file mode 100644 index 00000000000..a9fa2b823e3 --- /dev/null +++ b/sysutils/consolekit2/pkg-plist @@ -0,0 +1,57 @@ +bin/ck-history +bin/ck-launch-session +bin/ck-list-sessions +etc/ConsoleKit/seats.d/00-primary.seat +etc/X11/xinit/xinitrc.d/90-consolekit +etc/dbus-1/system.d/ConsoleKit.conf +etc/logrotate.d/consolekit +include/ConsoleKit/ck-connector/ck-connector.h +include/ConsoleKit/libconsolekit.h +lib/ConsoleKit/scripts/ck-get-x11-display-device +lib/ConsoleKit/scripts/ck-get-x11-server-pid +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/girepository-1.0/libconsolekit-1.0.typelib +lib/libck-connector.so +lib/libck-connector.so.0 +lib/libck-connector.so.0.0.0 +lib/libconsolekit.so +lib/libconsolekit.so.1 +lib/libconsolekit.so.1.0.0 +lib/pam_ck_connector.so +libdata/pkgconfig/ck-connector.pc +libdata/pkgconfig/libconsolekit.pc +libexec/ck-collect-session-info +@(,,4755) libexec/ck-get-x11-display-device +libexec/ck-get-x11-server-pid +libexec/ck-remove-directory +man/man1/ck-history.1.gz +man/man1/ck-launch-session.1.gz +man/man1/ck-list-sessions.1.gz +man/man1/console-kit-daemon.1m.gz +man/man8/pam_ck_connector.8.gz +sbin/ck-log-system-restart +sbin/ck-log-system-start +sbin/ck-log-system-stop +sbin/console-kit-daemon +share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Manager.xml +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/gir-1.0/libconsolekit-1.0.gir +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 +@dir etc/ConsoleKit/run-seat.d +@dir etc/ConsoleKit/run-session.d +@dir lib/ConsoleKit/run-seat.d +@dir lib/ConsoleKit/run-session.d +@dir /var/log/ConsoleKit +@postexec /usr/bin/touch /var/log/ConsoleKit/history +@rmtry /var/log/ConsoleKit/history +@dir /var/run/ConsoleKit -- 2.41.0