pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/libgdm x11/libgdm: import libgdm-40.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aab5c2914ee6
branches:  trunk
changeset: 450434:aab5c2914ee6
user:      cirnatdan <cirnatdan%pkgsrc.org@localhost>
date:      Fri Apr 16 13:57:52 2021 +0000

description:
x11/libgdm: import libgdm-40.0

The GNOME Display Manager is a system service that is responsible for
providing graphical log-ins and managing local and remote displays.
This package installs libgdm, which is the client part of GDM.

diffstat:

 x11/libgdm/DESCR                                            |    3 +
 x11/libgdm/Makefile                                         |   94 +
 x11/libgdm/PLIST                                            |   12 +
 x11/libgdm/distinfo                                         |   35 +
 x11/libgdm/patches/patch-build-aux_find-x-server.sh         |   15 +
 x11/libgdm/patches/patch-common_gdm-address_c               |   31 +
 x11/libgdm/patches/patch-common_gdm-common_c                |  575 ++++++++
 x11/libgdm/patches/patch-common_gdm-common_h                |   54 +
 x11/libgdm/patches/patch-common_gdm-log_c                   |   59 +
 x11/libgdm/patches/patch-common_meson.build                 |   14 +
 x11/libgdm/patches/patch-daemon_gdm-display-access-file.c   |   19 +
 x11/libgdm/patches/patch-daemon_gdm-display_c               |   20 +
 x11/libgdm/patches/patch-daemon_gdm-launch-environment_c    |   49 +
 x11/libgdm/patches/patch-daemon_gdm-local-display-factory_c |  204 ++
 x11/libgdm/patches/patch-daemon_gdm-manager_c               |  829 ++++++++++++
 x11/libgdm/patches/patch-daemon_gdm-server_c                |  283 ++++
 x11/libgdm/patches/patch-daemon_gdm-session-record_c        |  144 ++
 x11/libgdm/patches/patch-daemon_gdm-session-worker-job_c    |   22 +
 x11/libgdm/patches/patch-daemon_gdm-session-worker_c        |  565 ++++++++
 x11/libgdm/patches/patch-daemon_gdm-session-worker_xml      |   22 +
 x11/libgdm/patches/patch-daemon_gdm-session_c               |   58 +
 x11/libgdm/patches/patch-daemon_gdm-session_h               |   21 +
 x11/libgdm/patches/patch-daemon_gdm-x-session.c             |   24 +
 x11/libgdm/patches/patch-daemon_main_c                      |   41 +
 x11/libgdm/patches/patch-data_Init_in                       |   26 +
 x11/libgdm/patches/patch-data_PostSession_in                |   15 +
 x11/libgdm/patches/patch-data_PreSession_in                 |   15 +
 x11/libgdm/patches/patch-data_gdm.conf-custom.in            |   15 +
 x11/libgdm/patches/patch-data_meson.build                   |   65 +
 x11/libgdm/patches/patch-libgdm_gdm-user-switching_c        |  428 ++++++
 x11/libgdm/patches/patch-libgdm_meson.build                 |   14 +
 x11/libgdm/patches/patch-meson.build                        |   80 +
 x11/libgdm/patches/patch-pam__gdm_pam__gdm.c                |   21 +
 33 files changed, 3872 insertions(+), 0 deletions(-)

diffs (truncated from 4004 to 300 lines):

diff -r 77d9df72ae5f -r aab5c2914ee6 x11/libgdm/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/libgdm/DESCR  Fri Apr 16 13:57:52 2021 +0000
@@ -0,0 +1,3 @@
+The GNOME Display Manager is a system service that is responsible for
+providing graphical log-ins and managing local and remote displays.
+This package installs libgdm, which is the client part of GDM.
diff -r 77d9df72ae5f -r aab5c2914ee6 x11/libgdm/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/libgdm/Makefile       Fri Apr 16 13:57:52 2021 +0000
@@ -0,0 +1,94 @@
+# $NetBSD: Makefile,v 1.1 2021/04/16 13:57:52 cirnatdan Exp $
+
+DISTNAME=      gdm-40.0
+PKGNAME=       ${DISTNAME:S/gdm/libgdm/}
+CATEGORIES=    x11 gnome
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=GNOME/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://www.gnome.org/
+COMMENT=       Gnome Display Manager - client library
+LICENSE=       gnu-gpl-v2
+
+DEPENDS+=      zenity>=3.32.0:../../x11/zenity
+
+USE_PKGLOCALEDIR=      YES
+GNU_CONFIGURE=         YES
+USE_LIBTOOL=           YES
+USE_TOOLS+=            msgfmt pkg-config
+BUILD_DEFS+=           VARBASE
+
+USE_LANGUAGES=         c c++
+
+CPPFLAGS+=             -DWITH_CONSOLE_KIT=1
+CPPFLAGS+=             -DCONSOLEKIT_DIR=\"${PREFIX}/libexec\"
+
+MESON_ARGS+=           -Dlocalstatedir=${VARBASE}
+MESON_ARGS+=           --sysconfdir=${EGDIR}
+MESON_ARGS+=           -Ddmconfdir=${PKG_SYSCONFDIR}/dm
+MESON_ARGS+=           -Dsysconfsubdir=
+MESON_ARGS+=           -Dprefetch=yes
+MESON_ARGS+=           -Dplymouth=disabled
+MESON_ARGS+=           -Dsystemd=disabled
+MESON_ARGS+=           -Dsystemd-journal=false
+MESON_ARGS+=           -Duser-display-server=false
+MESON_ARGS+=           -Duser=${GDMOWN}
+MESON_ARGS+=           -Dgroup=${GDMGRP}
+MESON_ARGS+=           -Ddbus-sys=${PREFIX}/share/examples/dbus-1/system.d
+MESON_ARGS+=           -Dgdm-xsession=true
+MESON_ARGS+=           -Dwayland-support=false
+MESON_ARGS+=           -Ddefault-path="/usr/local/bin:/usr/local/sbin:${PREFIX}/bin:${PREFIX}/sbin:/usr/bin:/usr/sbin:/bin/sbin"
+INSTALL_MAKE_FLAGS+=   ${MAKE_FLAGS}
+INSTALL_MAKE_FLAGS+=   GDM_CUSTOM_CONF=${EGDIR}/custom.conf
+INSTALL_MAKE_FLAGS+=   sysconfdir=${EGDIR}
+MAKE_ENV+=             CHMOD=${CHMOD:Q} CHOWN=${CHOWN:Q}
+
+# only install libgdm, without the daemon and login screen
+INSTALLATION_DIRS+=    include/gdm
+INSTALLATION_DIRS+=    lib/girepository-1.0
+INSTALLATION_DIRS+=    lib/
+INSTALLATION_DIRS+=    lib/pkgconfig
+INSTALLATION_DIRS+=    share/gir-1.0 share/glib-2.0/schemas
+
+INSTALL_DIRS=  # disable meson install
+
+do-install:
+       ${INSTALL_DATA} ${WRKSRC}/output/libgdm/gdm-client-glue.h \
+               ${DESTDIR}${PREFIX}/include/gdm
+       ${INSTALL_DATA} ${WRKSRC}/libgdm/gdm-client.h \
+               ${DESTDIR}${PREFIX}/include/gdm
+       ${INSTALL_DATA} ${WRKSRC}/libgdm/gdm-sessions.h \
+               ${DESTDIR}${PREFIX}/include/gdm
+       ${INSTALL_DATA} ${WRKSRC}/libgdm/gdm-user-switching.h \
+               ${DESTDIR}${PREFIX}/include/gdm
+
+       ${INSTALL_DATA} ${WRKSRC}/output/libgdm/Gdm-1.0.typelib \
+               ${DESTDIR}${PREFIX}/lib/girepository-1.0
+       ${INSTALL_LIB} ${WRKSRC}/output/libgdm/libgdm.so \
+               ${DESTDIR}${PREFIX}/lib
+       ${INSTALL_LIB} ${WRKSRC}/output/libgdm/libgdm.so.1 \
+               ${DESTDIR}${PREFIX}/lib
+       ${INSTALL_LIB} ${WRKSRC}/output/libgdm/libgdm.so.1.0.0 \
+               ${DESTDIR}${PREFIX}/lib
+
+       ${INSTALL_DATA} ${WRKSRC}/output/meson-private/gdm.pc \
+               ${DESTDIR}${PREFIX}/lib/pkgconfig
+
+       ${INSTALL_DATA} ${WRKSRC}/output/libgdm/Gdm-1.0.gir \
+               ${DESTDIR}${PREFIX}/share/gir-1.0
+       ${INSTALL_DATA} ${WRKSRC}/data/org.gnome.login-screen.gschema.xml \
+               ${DESTDIR}${PREFIX}/share/glib-2.0/schemas
+
+.include "../../devel/meson/build.mk"
+#.include "../../sysutils/gsettings-desktop-schemas/buildlink3.mk"
+BUILDLINK_DEPMETHOD.openpam=   build
+.include "../../security/openpam/buildlink3.mk"
+BUILDLINK_DEPMETHOD.dconf=             build
+.include "../../devel/dconf/buildlink3.mk"
+.include "../../audio/libcanberra/buildlink3.mk"
+BUILDLINK_DEPMETHOD.gtk3=              build
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../sysutils/accountsservice/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/glib2/schemas.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 77d9df72ae5f -r aab5c2914ee6 x11/libgdm/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/libgdm/PLIST  Fri Apr 16 13:57:52 2021 +0000
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1 2021/04/16 13:57:52 cirnatdan Exp $
+include/gdm/gdm-client-glue.h
+include/gdm/gdm-client.h
+include/gdm/gdm-sessions.h
+include/gdm/gdm-user-switching.h
+lib/girepository-1.0/Gdm-1.0.typelib
+lib/libgdm.so
+lib/libgdm.so.1
+lib/libgdm.so.1.0.0
+lib/pkgconfig/gdm.pc
+share/gir-1.0/Gdm-1.0.gir
+share/glib-2.0/schemas/org.gnome.login-screen.gschema.xml
diff -r 77d9df72ae5f -r aab5c2914ee6 x11/libgdm/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/libgdm/distinfo       Fri Apr 16 13:57:52 2021 +0000
@@ -0,0 +1,35 @@
+$NetBSD: distinfo,v 1.1 2021/04/16 13:57:52 cirnatdan Exp $
+
+SHA1 (gdm-40.0.tar.gz) = f16d102b1052ff3ae0b64cac47dd3910b9b2ae74
+RMD160 (gdm-40.0.tar.gz) = aef9fa9d25f92b671166b9b2a56f9f5811e912cc
+SHA512 (gdm-40.0.tar.gz) = e1280b2e7011f76732d1c7901025f31693c58fd4eaa1483ffa0d7e24a1f14aaf3de64b0fa4d4423be72b77329f36c7a8552406dec9272f67b4756bb1ccbe1ef9
+Size (gdm-40.0.tar.gz) = 1588680 bytes
+SHA1 (patch-build-aux_find-x-server.sh) = 3ef259ca4f867d91aba24fcf1b6b02045b404248
+SHA1 (patch-common_gdm-address_c) = dbcf524882299d890103ed1d90b5d20af28cf667
+SHA1 (patch-common_gdm-common_c) = 347e9a527b22a79bfee6fd2e6f41f0e75e34cec2
+SHA1 (patch-common_gdm-common_h) = dfdb0758c65bc5426b214dd8f4a47a7f9df48aa4
+SHA1 (patch-common_gdm-log_c) = 270e98fd085ac2e7d39a48daa2c52954f7527869
+SHA1 (patch-common_meson.build) = 9c9aeaabb14bd20032ea8f2ae12a25a243dbde15
+SHA1 (patch-daemon_gdm-display-access-file.c) = 527d5c50d126875501955b20caefbdcb5b407146
+SHA1 (patch-daemon_gdm-display_c) = db972d3248c6e2cd5ac24cc72b838e6d1a8529c3
+SHA1 (patch-daemon_gdm-launch-environment_c) = 8804435a54afe85145cd995eb709096d9928a2b7
+SHA1 (patch-daemon_gdm-local-display-factory_c) = 1b768d9ec8004b2d3cee49f200f689c6331da4cb
+SHA1 (patch-daemon_gdm-manager_c) = 1136db38704181bc2c8de4649d3ff0f1466aa7f5
+SHA1 (patch-daemon_gdm-server_c) = 738e9e17c2b8102ff3d248fbac017b3bf3b114ea
+SHA1 (patch-daemon_gdm-session-record_c) = 367e4b9351a41abf78b4ac47e501e40ed9a93fe5
+SHA1 (patch-daemon_gdm-session-worker-job_c) = 11b5f2c1dde26aa6b6ff25d7913eff009c707724
+SHA1 (patch-daemon_gdm-session-worker_c) = a43c1c415946438a93892b6981b3b8f304952de3
+SHA1 (patch-daemon_gdm-session-worker_xml) = e384aed90c0ffc6483dad9c806e55a8e9d9f3e13
+SHA1 (patch-daemon_gdm-session_c) = 6cb462c9aebb6958624a6c11416a1dcdbdab0aa4
+SHA1 (patch-daemon_gdm-session_h) = b350278af12865e4f0565e69a0e52238ff9aa4b0
+SHA1 (patch-daemon_gdm-x-session.c) = 495762d51ed7676048c4e9d25bbbd77a142ec2d9
+SHA1 (patch-daemon_main_c) = 95d05534528a22f66315dc4b0b841aab760fc3d2
+SHA1 (patch-data_Init_in) = 12fbf2603c43055f411e6ce0e6076a2b739ce436
+SHA1 (patch-data_PostSession_in) = 0951d9c4e1404478c1ac9fba996bc96b41ed4d5b
+SHA1 (patch-data_PreSession_in) = cf1fec76b9555a911b0af6d3e32a838a94c57ca1
+SHA1 (patch-data_gdm.conf-custom.in) = 20560cc6889df034ce6adcb5e09516ad754f1d58
+SHA1 (patch-data_meson.build) = 51a40a90618dc21f9f0955e590a45b4fe6370189
+SHA1 (patch-libgdm_gdm-user-switching_c) = 91ebba68b5496c1de00108e1609f47c6019eadcc
+SHA1 (patch-libgdm_meson.build) = 6341327da7925597c9f15370faeacfd88a686802
+SHA1 (patch-meson.build) = d2c5bfe7d65b753722409860afc807031f9ee336
+SHA1 (patch-pam__gdm_pam__gdm.c) = a2906c96c8c5dc49e2663123b6dcd39821c7b47d
diff -r 77d9df72ae5f -r aab5c2914ee6 x11/libgdm/patches/patch-build-aux_find-x-server.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/libgdm/patches/patch-build-aux_find-x-server.sh       Fri Apr 16 13:57:52 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-build-aux_find-x-server.sh,v 1.1 2021/04/16 13:57:52 cirnatdan Exp $
+
+Help build script find NetBSD base X server
+
+--- build-aux/find-x-server.sh.orig    2021-03-16 20:48:04.000000000 +0000
++++ build-aux/find-x-server.sh
+@@ -21,6 +21,8 @@ elif test ! -h /usr/X11 -a -x /usr/X11/b
+     echo "/usr/X11/bin/X"
+ elif test -x /usr/X11R6/bin/X; then
+     echo "/usr/X11R6/bin/X"
++elif test -x /usr/X11R7/bin/X; then
++    echo "/usr/X11R7/bin/X"
+ elif test -x /usr/bin/Xorg; then
+     echo "/usr/bin/Xorg"
+ elif test -x /usr/X11/bin/X; then
diff -r 77d9df72ae5f -r aab5c2914ee6 x11/libgdm/patches/patch-common_gdm-address_c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/libgdm/patches/patch-common_gdm-address_c     Fri Apr 16 13:57:52 2021 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-common_gdm-address_c,v 1.1 2021/04/16 13:57:52 cirnatdan Exp $
+
+$OpenBSD: patch-common_gdm-address_c,v 1.1 2011/09/12 07:39:21 ajacoutot Exp $
+
+--- common/gdm-address.c.orig  Thu Jun 16 15:24:47 2011
++++ common/gdm-address.c       Thu Jun 16 15:25:19 2011
+@@ -29,6 +29,8 @@
+ #include <stropts.h>
+ #endif
+ #include <string.h>
++#include <sys/types.h>
++#include <sys/param.h>
+ #ifdef HAVE_SYS_SOCKET_H
+ #include <sys/socket.h>
+ #endif
+@@ -37,7 +39,6 @@
+ #endif
+ #include <netdb.h>
+ #include <sys/ioctl.h>
+-#include <net/if.h>
+ 
+ #ifndef G_OS_WIN32
+ #include <sys/select.h>
+@@ -47,6 +48,7 @@
+ #include <winsock2.h>
+ #include <ws2tcpip.h>
+ #endif
++#include <net/if.h>
+ 
+ #include <glib-object.h>
+ 
diff -r 77d9df72ae5f -r aab5c2914ee6 x11/libgdm/patches/patch-common_gdm-common_c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/libgdm/patches/patch-common_gdm-common_c      Fri Apr 16 13:57:52 2021 +0000
@@ -0,0 +1,575 @@
+$NetBSD: patch-common_gdm-common_c,v 1.1 2021/04/16 13:57:52 cirnatdan Exp $
+
+$OpenBSD: patch-common_gdm-common_c,v 1.8 2020/05/14 15:25:54 ajacoutot Exp $
+
+REVERT - OpenBSD does not have a systemd implementation (we need ConsoleKit)
+From fcba1e1a5d556ce7b52101dbd2d1ba4a19469161 Mon Sep 17 00:00:00 2001
+From: Iain Lane <iain%orangesquash.org.uk@localhost>
+Date: Fri, 5 Jan 2018 11:53:34 +0000
+Subject: [PATCH] manager: Find user's current graphical session, not session of caller
+
+REVERT - OpenBSD does not have a systemd implementation (we need ConsoleKit)
+From 9be58c9ec9a3a411492a5182ac4b0d51fdc3a323 Mon Sep 17 00:00:00 2001
+From: Ray Strode <rstrode%redhat.com@localhost>
+Date: Fri, 12 Jun 2015 13:48:52 -0400
+Subject: require logind support
+
+REVERT - OpenBSD does not have a systemd implementation (we need ConsoleKit)
+From 1ac67f522f5690c27023d98096ca817f12f7eb88 Mon Sep 17 00:00:00 2001
+From: Ray Strode <rstrode%redhat.com@localhost>
+Date: Fri, 12 Jun 2015 13:28:01 -0400
+Subject: drop consolekit support
+
+Index: common/gdm-common.c
+--- common/gdm-common.c.orig   2020-05-04 20:11:25.000000000 +0000
++++ common/gdm-common.c
+@@ -36,12 +36,25 @@
+ 
+ #include "gdm-common.h"
+ 
++#ifdef WITH_SYSTEMD
+ #include <systemd/sd-login.h>
++#endif
+ 
+ #define GDM_DBUS_NAME                            "org.gnome.DisplayManager"
+ #define GDM_DBUS_LOCAL_DISPLAY_FACTORY_PATH      "/org/gnome/DisplayManager/LocalDisplayFactory"
+ #define GDM_DBUS_LOCAL_DISPLAY_FACTORY_INTERFACE "org.gnome.DisplayManager.LocalDisplayFactory"
+ 
++#ifdef WITH_CONSOLE_KIT
++#define CK_NAME      "org.freedesktop.ConsoleKit"
++#define CK_PATH      "/org/freedesktop/ConsoleKit"
++#define CK_INTERFACE "org.freedesktop.ConsoleKit"
++
++#define CK_MANAGER_PATH      "/org/freedesktop/ConsoleKit/Manager"
++#define CK_MANAGER_INTERFACE "org.freedesktop.ConsoleKit.Manager"
++#define CK_SEAT_INTERFACE    "org.freedesktop.ConsoleKit.Seat"
++#define CK_SESSION_INTERFACE "org.freedesktop.ConsoleKit.Session"
++#endif
++
+ G_DEFINE_QUARK (gdm-common-error, gdm_common_error);
+ 
+ gboolean
+@@ -352,8 +365,87 @@ create_transient_display (GDBusConnectio
+         return TRUE;
+ }
+ 
++#ifdef WITH_CONSOLE_KIT
+ gboolean
+-gdm_activate_session_by_id (GDBusConnection *connection,
++get_current_session_id (GDBusConnection  *connection,
++                        char            **session_id)
++{
++        GError *local_error = NULL;
++        GVariant *reply;
++
++        reply = g_dbus_connection_call_sync (connection,
++                                             CK_NAME,
++                                             CK_MANAGER_PATH,
++                                             CK_MANAGER_INTERFACE,
++                                             "GetCurrentSession",
++                                             NULL, /* parameters */
++                                             G_VARIANT_TYPE ("(o)"),
++                                             G_DBUS_CALL_FLAGS_NONE,
++                                             -1,
++                                             NULL, &local_error);
++        if (reply == NULL) {
++                g_warning ("Unable to determine session: %s", local_error->message);
++                g_error_free (local_error);
++                return FALSE;
++        }
++
++        g_variant_get (reply, "(o)", session_id);
++        g_variant_unref (reply);



Home | Main Index | Thread Index | Old Index