gdm, budgie-desktop, budgie-screensaver, adobe-source-code-pro-fonts, epiphany, evolution, gnome-initial-setup, gnome-online-miners, gnome-user-docs packaged

This commit is contained in:
Berk Çakar
2021-06-08 03:48:32 +03:00
parent e4d9187a13
commit 9ed1a82253
33 changed files with 3311 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import mesontools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
def setup():
shelltools.system("sed -i 's@systemd@elogind@' data/pam-lfs/gdm-launch-environment.pam")
shelltools.system("sed -i 's@-session@session @' data/pam-lfs/gdm-launch-environment.pam")
mesontools.configure("--prefix=/usr \
--localstatedir=/var \
--buildtype=release \
-Ddefault-pam-config=lfs \
-Dplymouth=disabled \
-Dpam-mod-dir=/lib/security \
-Dgdm-xsession=true \
-Dsystemd-journal=false \
-Dsystemdsystemunitdir=no \
-Dsystemduserunitdir=no \
-Dlogind-provider=elogind \
-Dscreenshot-dir=/var/lib/gdm/greeter")
def build():
mesontools.build()
def install():
mesontools.install()
pisitools.dodoc("NEWS", "README.md", "COPYING", "AUTHORS", "HACKING")
+25
View File
@@ -0,0 +1,25 @@
#!/usr/bin/python
import os, re
OUR_ID = 42
OUR_NAME = "gdm"
OUR_DESC = "GDM"
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
try:
os.system("groupadd -g %d %s" % (OUR_ID, OUR_NAME))
os.system("useradd -m -d /var/lib/gdm -r -s /bin/false -u %d -g %d %s -c %s" % (OUR_ID, OUR_ID, OUR_NAME, OUR_DESC))
os.system("passwd -ql %s" % (OUR_NAME))
os.system("/bin/chown gdm:gdm -R /var/lib/gdm")
os.system("/bin/chown root:gdm -R /var/log/gdm")
except:
pass
def postRemove():
try:
os.system("userdel %s" % OUR_NAME)
os.system("groupdel %s" % OUR_NAME)
except:
pass
+34
View File
@@ -0,0 +1,34 @@
#!/usr/bin/python
#-*- coding: UTF-8 -*-
from comar.service import *
import os
serviceType = "server"
serviceDesc = _({
"en": "GNOME Desktop",
"tr": "GNOME Masaüstü",
})
serviceDefault="on"
PIDFILE="/var/run/gdm/gdm.pid"
DAEMON="/usr/sbin/gdm"
@synchronized
def start():
startService(command=DAEMON,
pidfile=PIDFILE,
detach=True,
donotify=True)
@synchronized
def stop():
stopService(pidfile=PIDFILE,
donotify=True)
try:
os.unlink(PIDFILE)
except OSError:
pass
def status():
return isServiceRunning(PIDFILE)
@@ -0,0 +1,25 @@
From 1c8fc3f30630dec1526979d190c280902712b99d Mon Sep 17 00:00:00 2001
From: Joshua Strobl <joshua@stroblindustries.com>
Date: Wed, 17 Apr 2019 12:50:33 +0300
Subject: [PATCH 1/1] Force Xorg use on the login screen
---
data/gdm.conf-custom.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/data/gdm.conf-custom.in b/data/gdm.conf-custom.in
index 9b63ba95..4f220684 100644
--- a/data/gdm.conf-custom.in
+++ b/data/gdm.conf-custom.in
@@ -2,7 +2,7 @@
[daemon]
# Uncomment the line below to force the login screen to use Xorg
-#WaylandEnable=false
+WaylandEnable=false
[security]
--
2.21.0
@@ -0,0 +1,216 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Tue, 27 Oct 2020 18:59:14 +0000
Subject: [PATCH] pam-arch: Update to match pambase 20200721.1-2
Update the PAM files for Arch Linux. This has been applied downstream
since Aug 2020.
https://bugs.archlinux.org/task/67485
---
data/meson.build | 1 -
data/pam-arch/gdm-autologin.pam | 22 +++++++++--------
data/pam-arch/gdm-fingerprint.pam | 31 +++++++++++++++---------
data/pam-arch/gdm-launch-environment.pam | 24 ++++++++++--------
data/pam-arch/gdm-password.pam | 17 +++++++------
data/pam-arch/gdm-pin.pam | 13 ----------
data/pam-arch/gdm-smartcard.pam | 31 +++++++++++++++---------
7 files changed, 75 insertions(+), 64 deletions(-)
delete mode 100644 data/pam-arch/gdm-pin.pam
diff --git a/data/meson.build b/data/meson.build
index 23e2d7f9..7c5222ea 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -134,7 +134,6 @@ pam_data_files_map = {
'gdm-fingerprint',
'gdm-smartcard',
'gdm-password',
- 'gdm-pin',
],
'none': [],
# We should no longer have 'autodetect' at this point
diff --git a/data/pam-arch/gdm-autologin.pam b/data/pam-arch/gdm-autologin.pam
index 99b14209..30bdf529 100644
--- a/data/pam-arch/gdm-autologin.pam
+++ b/data/pam-arch/gdm-autologin.pam
@@ -1,13 +1,15 @@
-auth requisite pam_nologin.so
-auth required pam_env.so
-auth optional pam_gdm.so
-auth optional pam_gnome_keyring.so
-auth optional pam_permit.so
+#%PAM-1.0
-account include system-local-login
+auth required pam_shells.so
+auth requisite pam_nologin.so
+auth optional pam_permit.so
+auth required pam_env.so
+auth [success=ok default=1] pam_gdm.so
+auth optional pam_gnome_keyring.so
-password include system-local-login
+account include system-local-login
-session optional pam_keyinit.so force revoke
-session include system-local-login
-session optional pam_gnome_keyring.so auto_start
+password required pam_deny.so
+
+session include system-local-login
+session optional pam_gnome_keyring.so auto_start
diff --git a/data/pam-arch/gdm-fingerprint.pam b/data/pam-arch/gdm-fingerprint.pam
index a4808617..cc660d9a 100644
--- a/data/pam-arch/gdm-fingerprint.pam
+++ b/data/pam-arch/gdm-fingerprint.pam
@@ -1,14 +1,23 @@
-auth required pam_tally.so onerr=succeed file=/var/log/faillog
-auth required pam_shells.so
-auth requisite pam_nologin.so
-auth required pam_env.so
-auth required pam_fprintd.so
-auth optional pam_permit.so
+#%PAM-1.0
-account include system-local-login
+auth required pam_shells.so
+auth requisite pam_nologin.so
+auth required pam_faillock.so preauth
+# Optionally use requisite above if you do not want to prompt for the fingerprint
+# on locked accounts.
+auth [success=1 default=ignore] pam_fprintd.so
+auth [default=die] pam_faillock.so authfail
+auth optional pam_permit.so
+auth required pam_env.so
+auth required pam_faillock.so authsucc
+# If you drop the above call to pam_faillock.so the lock will be done also
+# on non-consecutive authentication failures.
+auth [success=ok default=1] pam_gdm.so
+auth optional pam_gnome_keyring.so
-password required pam_fprintd.so
-password optional pam_permit.so
+account include system-local-login
-session optional pam_keyinit.so force revoke
-session include system-local-login
+password required pam_deny.so
+
+session include system-local-login
+session optional pam_gnome_keyring.so auto_start
diff --git a/data/pam-arch/gdm-launch-environment.pam b/data/pam-arch/gdm-launch-environment.pam
index d59c9cb9..20d1810a 100644
--- a/data/pam-arch/gdm-launch-environment.pam
+++ b/data/pam-arch/gdm-launch-environment.pam
@@ -1,13 +1,17 @@
-auth required pam_env.so
-auth required pam_succeed_if.so audit quiet_success user = gdm
-auth optional pam_permit.so
+#%PAM-1.0
-account required pam_succeed_if.so audit quiet_success user = gdm
-account optional pam_permit.so
+auth required pam_succeed_if.so audit quiet_success user in gdm:gnome-initial-setup
+auth optional pam_permit.so
+auth required pam_env.so
-password required pam_deny.so
+account required pam_succeed_if.so audit quiet_success user in gdm:gnome-initial-setup
+account optional pam_permit.so
-session optional pam_keyinit.so force revoke
-session required pam_succeed_if.so audit quiet_success user = gdm
-session required pam_systemd.so
-session optional pam_permit.so
+password required pam_deny.so
+
+session optional pam_loginuid.so
+session optional pam_keyinit.so force revoke
+session required pam_succeed_if.so audit quiet_success user in gdm:gnome-initial-setup
+session optional pam_permit.so
+-session optional pam_systemd.so
+session required pam_env.so user_readenv=1
diff --git a/data/pam-arch/gdm-password.pam b/data/pam-arch/gdm-password.pam
index 8d34794e..137242a6 100644
--- a/data/pam-arch/gdm-password.pam
+++ b/data/pam-arch/gdm-password.pam
@@ -1,11 +1,12 @@
-auth include system-local-login
-auth optional pam_gnome_keyring.so
+#%PAM-1.0
-account include system-local-login
+auth include system-local-login
+auth optional pam_gnome_keyring.so
-password include system-local-login
-password optional pam_gnome_keyring.so use_authtok
+account include system-local-login
-session optional pam_keyinit.so force revoke
-session include system-local-login
-session optional pam_gnome_keyring.so auto_start
+password include system-local-login
+password optional pam_gnome_keyring.so use_authtok
+
+session include system-local-login
+session optional pam_gnome_keyring.so auto_start
diff --git a/data/pam-arch/gdm-pin.pam b/data/pam-arch/gdm-pin.pam
deleted file mode 100644
index 135e205e..00000000
--- a/data/pam-arch/gdm-pin.pam
+++ /dev/null
@@ -1,13 +0,0 @@
-auth requisite pam_pin.so
-auth include system-local-login
-auth optional pam_gnome_keyring.so
-
-account include system-local-login
-
-password include system-local-login
-password optional pam_pin.so
-password optional pam_gnome_keyring.so use_authtok
-
-session optional pam_keyinit.so force revoke
-session include system-local-login
-session optional pam_gnome_keyring.so auto_start
diff --git a/data/pam-arch/gdm-smartcard.pam b/data/pam-arch/gdm-smartcard.pam
index ec6f75d5..e6ec1299 100644
--- a/data/pam-arch/gdm-smartcard.pam
+++ b/data/pam-arch/gdm-smartcard.pam
@@ -1,14 +1,23 @@
-auth required pam_tally.so onerr=succeed file=/var/log/faillog
-auth required pam_shells.so
-auth requisite pam_nologin.so
-auth required pam_env.so
-auth required pam_pkcs11.so wait_for_card card_only
-auth optional pam_permit.so
+#%PAM-1.0
-account include system-local-login
+auth required pam_shells.so
+auth requisite pam_nologin.so
+auth required pam_faillock.so preauth
+# Optionally use requisite above if you do not want to prompt for the smartcard
+# on locked accounts.
+auth [success=1 default=ignore] pam_pkcs11.so wait_for_card card_only
+auth [default=die] pam_faillock.so authfail
+auth optional pam_permit.so
+auth required pam_env.so
+auth required pam_faillock.so authsucc
+# If you drop the above call to pam_faillock.so the lock will be done also
+# on non-consecutive authentication failures.
+auth [success=ok default=1] pam_gdm.so
+auth optional pam_gnome_keyring.so
-password required pam_pkcs11.so
-password optional pam_permit.so
+account include system-local-login
-session optional pam_keyinit.so force revoke
-session include system-local-login
+password required pam_deny.so
+
+session include system-local-login
+session optional pam_gnome_keyring.so auto_start
@@ -0,0 +1,28 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Sat, 20 Jun 2015 17:22:38 +0200
Subject: [PATCH] Xsession: Don't start ssh-agent by default
---
data/Xsession.in | 8 --------
1 file changed, 8 deletions(-)
diff --git a/data/Xsession.in b/data/Xsession.in
index 2e4de4fe..29ebc30e 100755
--- a/data/Xsession.in
+++ b/data/Xsession.in
@@ -207,14 +207,6 @@ if [ "x$command" = "xdefault" ] ; then
fi
fi
-# add ssh-agent if found
-sshagent="`gdmwhich ssh-agent`"
-if [ -n "$sshagent" ] && [ -x "$sshagent" ] && [ -z "$SSH_AUTH_SOCK" ]; then
- command="$sshagent -- $command"
-elif [ -z "$sshagent" ] ; then
- echo "$0: ssh-agent not found!"
-fi
-
echo "$0: Setup done, will execute: $command"
eval exec $command
@@ -0,0 +1,215 @@
From a8bb1878df6a98798c66b87bbc555bc9f55fcec6 Mon Sep 17 00:00:00 2001
From: Dudemanguy <random342@airmail.cc>
Date: Tue, 27 Oct 2020 18:00:24 -0500
Subject: [PATCH] enable elogind build
---
common/meson.build | 2 +-
data/meson.build | 62 ++++++++++++++----------
data/pam-arch/gdm-launch-environment.pam | 1 +
libgdm/meson.build | 2 +-
meson.build | 36 +++++++++-----
meson_options.txt | 5 +-
6 files changed, 66 insertions(+), 42 deletions(-)
diff --git a/common/meson.build b/common/meson.build
index 074dd92e..bca58f7c 100644
--- a/common/meson.build
+++ b/common/meson.build
@@ -11,7 +11,7 @@ libgdmcommon_src = files(
)
libgdmcommon_deps = [
- libsystemd_dep,
+ logind_dep,
gobject_dep,
gio_dep,
gio_unix_dep,
diff --git a/data/meson.build b/data/meson.build
index 5d9e2847..56074489 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -169,41 +169,53 @@ else
service_config.set('PLYMOUTH_QUIT_SERVICE', '')
endif
-if get_option('systemdsystemunitdir') != ''
- systemd_systemunitdir = get_option('systemdsystemunitdir')
-else
- systemd_systemunitdir = systemd_dep.get_pkgconfig_variable('systemdsystemunitdir')
+systemdsystemunitdir = get_option('systemdsystemunitdir')
+if systemdsystemunitdir != 'no'
+ assert(systemd_dep.found(), 'systemd required but not found, please provide a valid systemd system unit dir or disable it')
+ if get_option('systemdsystemunitdir') != ''
+ systemd_systemunitdir = get_option('systemdsystemunitdir')
+ else
+ systemd_systemunitdir = systemd_dep.get_pkgconfig_variable('systemdsystemunitdir')
+ endif
endif
-if get_option('systemduserunitdir') != ''
- systemd_userunitdir = get_option('systemduserunitdir')
-else
- systemd_userunitdir = systemd_dep.get_pkgconfig_variable('systemduserunitdir',
- define_variable: ['prefix', get_option('prefix')])
+systemduserunitdir = get_option('systemduserunitdir')
+if systemduserunitdir != 'no'
+ assert(systemd_dep.found(), 'systemd required but not found, please provide a valid systemd user unit dir or disable it')
+ if get_option('systemduserunitdir') != ''
+ systemd_userunitdir = get_option('systemduserunitdir')
+ else
+ systemd_userunitdir = systemd_dep.get_pkgconfig_variable('systemduserunitdir',
+ define_variable: ['prefix', get_option('prefix')])
+ endif
endif
-configure_file(
- input: 'gdm.service.in',
- output: '@BASENAME@',
- configuration: service_config,
- install_dir: systemd_systemunitdir,
- format: 'cmake'
-)
+if systemdsystemunitdir != 'no'
+ configure_file(
+ input: 'gdm.service.in',
+ output: '@BASENAME@',
+ configuration: service_config,
+ install_dir: systemd_systemunitdir,
+ format: 'cmake'
+ )
+endif
gdm_gnome_session_wanted_targets = []
foreach component: gdm_gnome_user_session_wanted_components
gdm_gnome_session_wanted_targets += 'Wants=@0@.target'.format(component)
endforeach
-configure_file(
- input: 'session.conf.in',
- output: 'session.conf',
- configuration: {
- 'requires_component': gdm_gnome_shell_component,
- 'wants_required_components': '\n'.join(gdm_gnome_session_wanted_targets),
- },
- install_dir: systemd_userunitdir / 'gnome-session@gnome-login.target.d',
-)
+if systemduserunitdir != 'no'
+ configure_file(
+ input: 'session.conf.in',
+ output: 'session.conf',
+ configuration: {
+ 'requires_component': gdm_gnome_shell_component,
+ 'wants_required_components': '\n'.join(gdm_gnome_session_wanted_targets),
+ },
+ install_dir: systemd_userunitdir / 'gnome-session@gnome-login.target.d',
+ )
+endif
# XSession
if get_option('gdm-xsession')
diff --git a/data/pam-arch/gdm-launch-environment.pam b/data/pam-arch/gdm-launch-environment.pam
index 20d1810a..d8910d0a 100644
--- a/data/pam-arch/gdm-launch-environment.pam
+++ b/data/pam-arch/gdm-launch-environment.pam
@@ -14,4 +14,5 @@ session optional pam_keyinit.so force revoke
session required pam_succeed_if.so audit quiet_success user in gdm:gnome-initial-setup
session optional pam_permit.so
-session optional pam_systemd.so
+-session optional pam_elogind.so
session required pam_env.so user_readenv=1
diff --git a/libgdm/meson.build b/libgdm/meson.build
index 3f8cafbb..83e95151 100644
--- a/libgdm/meson.build
+++ b/libgdm/meson.build
@@ -56,7 +56,7 @@ libgdm_deps = [
glib_dep,
gio_dep,
gio_unix_dep,
- libsystemd_dep,
+ logind_dep,
libgdmcommon_dep,
]
diff --git a/meson.build b/meson.build
index a729792c..e152c6ca 100644
--- a/meson.build
+++ b/meson.build
@@ -93,21 +93,30 @@ xdmcp_dep = cc.find_library('Xdmcp', required: get_option('xdmcp'))
if xdmcp_dep.found() and get_option('tcp-wrappers')
libwrap_dep = cc.find_library('libwrap')
endif
-# systemd
-systemd_dep = dependency('systemd')
-libsystemd_dep = dependency('libsystemd')
-if meson.version().version_compare('>= 0.53')
- systemd_multiseat_x = find_program('systemd-multi-seat-x',
- required: false,
- dirs: [
- systemd_dep.get_pkgconfig_variable('systemdutildir'),
- '/lib/systemd',
- '/usr/lib/systemd',
- ])
+
+logind_provider = get_option('logind-provider')
+systemd_dep = dependency('systemd', required: false)
+if logind_provider == 'systemd'
+ libsystemd_dep = dependency('libsystemd')
+ logind_dep = libsystemd_dep
+ if meson.version().version_compare('>= 0.53')
+ systemd_multiseat_x = find_program('systemd-multi-seat-x',
+ required: false,
+ dirs: [
+ systemd_dep.get_pkgconfig_variable('systemdutildir'),
+ '/lib/systemd',
+ '/usr/lib/systemd',
+ ])
+ else
+ systemd_multiseat_x = find_program('systemd-multi-seat-x', required: false)
+ endif
+ systemd_x_server = systemd_multiseat_x.found()? systemd_multiseat_x.path() : '/lib/systemd/systemd-multi-seat-x'
else
- systemd_multiseat_x = find_program('systemd-multi-seat-x', required: false)
+ elogind_dep = dependency('libelogind')
+ logind_dep = elogind_dep
+ systemd_x_server = 'disabled'
endif
-systemd_x_server = systemd_multiseat_x.found()? systemd_multiseat_x.path() : '/lib/systemd/systemd-multi-seat-x'
+
# Plymouth
plymouth_dep = dependency('ply-boot-client', required: get_option('plymouth'))
# Check for Solaris auditing API (ADT)
@@ -314,6 +323,7 @@ summary({
'PAM Syslog': have_pam_syslog,
'Supports PAM Extensions': pam_extensions_supported,
'SeLinux': libselinux_dep.found(),
+ 'Logind Provider': get_option('logind-provider'),
'Use GDM Xsession': get_option('gdm-xsession'),
'Use UserDisplayServer': get_option('user-display-server'),
'Use SystemdJournal': get_option('systemd-journal'),
diff --git a/meson_options.txt b/meson_options.txt
index 49550bc1..b01676da 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -13,6 +13,7 @@ option('initial-vt', type: 'integer', value: 1, description: 'Initial virtual te
option('ipv6', type: 'boolean', value: false, description: 'Enables compilation of IPv6 code.')
option('lang-file', type: 'string', value: '', description: 'File containing default language settings.')
option('libaudit', type: 'feature', value: 'auto', description: 'Add Linux audit support.')
+option('logind-provider', type: 'combo', choices: ['systemd', 'elogind'], value: 'systemd', description: 'Which logind library to use.')
option('log-dir', type: 'string', value: '/var/log/gdm', description: 'Log directory.')
option('pam-mod-dir', type: 'string', value: '', description: 'Directory to install PAM modules in.')
option('pam-prefix', type: 'string', value: '', description: 'Specify where PAM files go.')
@@ -28,8 +29,8 @@ option('solaris', type: 'boolean', value: false, description: 'Build for Solaris
option('split-authentication', type: 'boolean', value: true, description: 'Enable multiple simultaneous PAM conversations during login.')
option('sysconfsubdir', type: 'string', value: 'gdm', description: 'Directory name used under sysconfdir.')
option('systemd-journal', type: 'boolean', value: true, description: 'Use journald support.')
-option('systemdsystemunitdir', type: 'string', value: '', description: 'Directory for systemd service files.')
-option('systemduserunitdir', type: 'string', value: '', description: 'Directory for systemd user service files.')
+option('systemdsystemunitdir', type: 'string', value: '', description: 'Directory for systemd service files, or \'no\' to disable.')
+option('systemduserunitdir', type: 'string', value: '', description: 'Directory for systemd user service files, or \'no\' to disable.')
option('tcp-wrappers', type: 'boolean', value: false, description: 'Use TCP wrappers.')
option('udev-dir', type: 'string', value: '', description: 'Directory for udev rules file.')
option('user', type: 'string', value: 'gdm', description: 'GDM\'s username.')
--
2.29.1
@@ -0,0 +1,160 @@
--- a/meson.build 2021-03-21 16:32:37.222883748 +0100
+++ b/meson.build 2021-03-21 16:32:42.114763457 +0100
@@ -38,6 +38,7 @@
# Dependencies
udev_dep = dependency('udev')
+gudev_dep = dependency('gudev-1.0')
glib_min_version = '2.56.0'
--- a/data/meson.build 2021-03-21 16:07:53.023644342 +0100
+++ b/data/meson.build 2021-03-21 16:09:14.557724574 +0100
@@ -161,6 +161,7 @@
# DBus service files
service_config = configuration_data()
service_config.set('sbindir', gdm_prefix / get_option('sbindir'))
+service_config.set('libexecdir', gdm_prefix / get_option('libexecdir'))
service_config.set('GDM_INITIAL_VT', get_option('initial-vt'))
service_config.set('LANG_CONFIG_FILE', lang_config_file)
if plymouth_dep.found()
--- a/data/gdm.service.in
+++ b/data/gdm.service.in
@@ -30,6 +30,7 @@ StandardError=inherit
EnvironmentFile=-@LANG_CONFIG_FILE@
ExecReload=/bin/kill -SIGHUP $MAINPID
KeyringMode=shared
+ExecStartPre=@libexecdir@/gdm-wait-for-drm
[Install]
Alias=display-manager.service
--- a/utils/meson.build.ori 2021-03-21 16:15:47.036216779 +0100
+++ b/utils/meson.build 2021-03-21 16:15:25.328751199 +0100
@@ -39,3 +39,16 @@
install_dir: get_option('libexecdir'),
)
+# gdm-wait-for-drm
+gdm_wait_for_drm_deps = [
+ glib_dep,
+ gudev_dep
+]
+
+gdm_wait_for_drm = executable('gdm-wait-for-drm',
+ 'gdm-wait-for-drm.c',
+ dependencies: gdm_wait_for_drm_deps,
+ include_directories: config_h_dir,
+ install: true,
+ install_dir: get_option('libexecdir'),
+)
--- /dev/null
+++ b/utils/gdm-wait-for-drm.c
@@ -0,0 +1,101 @@
+#include <glib.h>
+#include <gudev/gudev.h>
+
+/*
+ * Workaround for LP: #1794280.
+ *
+ * That bug is because the DRM device isn't ready by the time GDM tries to
+ * start wayland/X.
+ * This is a script to add to ExecStartPre of gdm.service. It does the
+ * following:
+ *
+ * 1. Enumerate drm devices from udev, looking for a DRM master. If found,
+ * exit.
+ * 2. Connect to the 'uevent' signal of gudev, watching for the same to be
+ * added. Again exit if any are found.
+ * 3. If, after 10 seconds, we haven't seen anything, try to proceed anyway as
+ * a failsafe.
+ */
+
+static gboolean
+handle_device (GUdevDevice *device)
+{
+ const gchar * const * tags;
+ tags = g_udev_device_get_tags (device);
+ g_debug ("%s\n", g_udev_device_get_name (device));
+ if (g_strv_contains (tags, "master-of-seat"))
+ {
+ g_debug (" is seat master\n");
+ return TRUE;
+ }
+
+ return FALSE;
+}
+
+static void
+uevent_cb (GUdevClient *client G_GNUC_UNUSED,
+ gchar *action,
+ GUdevDevice *device,
+ gpointer user_data)
+{
+ GMainLoop *loop;
+
+ g_debug ("uevent action: %s\n", action);
+
+ loop = (GMainLoop *) user_data;
+
+ if (g_strcmp0 (action, "add") == 0)
+ {
+ if (handle_device (device))
+ {
+ g_debug (" this is good\n");
+ g_main_loop_quit (loop);
+ }
+ else
+ {
+ g_debug (" this is bad\n");
+ }
+ }
+}
+
+int
+main()
+{
+ const gchar * const subsystems[] = { "drm", NULL };
+
+ g_autoptr(GList) devices = NULL;
+ g_autoptr(GMainLoop) loop = NULL;
+ g_autoptr(GUdevClient) udev_client = NULL;
+ g_autoptr(GUdevEnumerator) enumerator = NULL;
+
+ loop = g_main_loop_new (NULL, FALSE);
+
+ udev_client = g_udev_client_new (subsystems);
+ enumerator = g_udev_enumerator_new (udev_client);
+ g_udev_enumerator_add_match_is_initialized (enumerator);
+ g_udev_enumerator_add_match_subsystem (enumerator, "drm");
+
+ devices = g_udev_enumerator_execute (enumerator);
+
+ g_debug ("enumerating devices...\n");
+
+ for (GList *l = devices; l != NULL; l = l->next)
+ {
+ g_autoptr(GUdevDevice) device = G_UDEV_DEVICE (l->data);
+
+ if (handle_device (device))
+ {
+ g_debug (" good enough for gdm\n");
+ return EXIT_SUCCESS;
+ }
+ }
+
+ g_signal_connect (udev_client, "uevent", G_CALLBACK (uevent_cb), loop);
+
+ /* after 10 seconds we try anyway */
+ g_timeout_add_seconds (10, (GSourceFunc) g_main_loop_quit, loop);
+
+ g_main_loop_run (loop);
+
+ return EXIT_SUCCESS;
+}
--
2.17.0
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
exec $@
@@ -0,0 +1,2 @@
g gdm 42 -
u gdm 42 "GDM" /var/lib/gdm
+15
View File
@@ -0,0 +1,15 @@
d /var/cache/gdm 0755 gdm gdm
d /var/lib/gdm 0755 gdm gdm
d /var/lib/gdm/.local/share/applications 0755 gdm gdm
d /run/gdm/greeter 0755 gdm gdm
d /var/log/gdm 0755 - -
d /var/lib/gdm/.config 0755 gdm gdm
d /var/lib/gdm/.cache 0755 gdm gdm
d /var/lib/gdm/.local 0755 gdm gdm
d /var/lib/gdm/.local/share 0755 gdm gdm
d /var/lib/gdm/.local/share/applications 0755 gdm gdm
d /var/lib/gdm/.config/pulse 0755 gdm gdm
C /var/lib/gdm/.config/pulse/client.conf - gdm gdm -
+117
View File
@@ -0,0 +1,117 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>gdm</Name>
<Homepage>https://gitlab.gnome.org/GNOME/gdm</Homepage>
<Packager>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<Summary>GNOME Graphical Display Manager</Summary>
<Description>A graphical login manager for your desktop, integrated within the GNOME desktop environment</Description>
<Archive sha1sum="05c48de8765bde97768b6740417ad6c374c20763" type="tarxz">https://download.gnome.org/sources/gdm/40/gdm-40.0.tar.xz</Archive>
<BuildDependencies>
<Dependency>dconf-devel</Dependency>
<Dependency>gettext-devel</Dependency>
<Dependency>itstool</Dependency>
<Dependency>accountsservice-devel</Dependency>
<Dependency>elogind-devel</Dependency>
<Dependency>glib2-devel</Dependency>
<Dependency>gtk3-devel</Dependency>
<Dependency>iso-codes-devel</Dependency>
<Dependency>libSM-devel</Dependency>
<Dependency>libcanberra-devel</Dependency>
<Dependency>libcanberra-gtk3-devel</Dependency>
<Dependency>nss-devel</Dependency>
<Dependency>pam-devel</Dependency>
<Dependency>audit-devel</Dependency>
<Dependency>upower-devel</Dependency>
<Dependency>libdaemon-devel</Dependency>
<Dependency>gobject-introspection-devel</Dependency>
<Dependency>meson</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">0000-Force-Xorg-use-on-the-login-screen.patch</Patch>
<Patch level="1">0001-pam-arch-Update-to-match-pambase-20200721.1-2.patch</Patch>
<Patch level="1">0002-Xsession-Don-t-start-ssh-agent-by-default.patch</Patch>
<Patch level="1">0003-enable-elogind-build.patch</Patch>
<Patch level="1">0004-gdm-CanGraphical-wait-meson.patch</Patch>
</Patches>
</Source>
<Package>
<Name>gdm</Name>
<Conflicts>
<Package>lxdm</Package>
<Package>sddm</Package>
<Package>lightdm</Package>
</Conflicts>
<RuntimeDependencies>
<Dependency>pam</Dependency>
<Dependency>gtk3</Dependency>
<Dependency>glib2</Dependency>
<Dependency>libX11</Dependency>
<Dependency>libXau</Dependency>
<Dependency>libxcb</Dependency>
<Dependency>elogind</Dependency>
<Dependency>libXdmcp</Dependency>
<Dependency>gdk-pixbuf</Dependency>
<Dependency>libcanberra</Dependency>
<Dependency>accountsservice</Dependency>
<Dependency>libcanberra-gtk3</Dependency>
<Dependency>audit</Dependency>
<Dependency>keyutils</Dependency>
<Dependency>libgudev</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc</Path>
<Path fileType="library">/lib</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib/girepository-1.0</Path>
<Path fileType="library">/usr/lib/sysusers.d</Path>
<Path fileType="library">/usr/lib/libgdm.so*</Path>
<Path fileType="executable">/usr/libexec</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="data">/usr/share/dconf</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share/gdm</Path>
<Path fileType="data">/usr/share/glib-2.0</Path>
<Path fileType="data">/usr/share/gnome-session</Path>
<Path fileType="doc">/usr/share/help</Path>
<Path fileType="localedata">/usr/share/locale</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/usr/lib/sysusers.d/gdm.conf">gdm.sysusers</AdditionalFile>
</AdditionalFiles>
<Provides>
<COMAR script="service.py">System.Service</COMAR>
<COMAR script="package.py">System.Package</COMAR>
</Provides>
</Package>
<Package>
<Name>gdm-devel</Name>
<RuntimeDependencies>
<Dependency release="current">gdm</Dependency>
<Dependency>glib2-devel</Dependency>
<Dependency>elogind-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
<Path fileType="data">/usr/share/gir-1.0</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2021-06-05</Date>
<Version>40.0</Version>
<Comment>First release for Pisi Linux</Comment>
<Name>Berk Çakar</Name>
<Email>berk2238@hotmail.com</Email>
</Update>
</History>
</PISI>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>gdm</Name>
<Summary xml:lang="tr">GNOME ekran yöneticisi</Summary>
<Description xml:lang="tr">GDM, yerel veya uzak makinelerde farklı oturumlar açmayı sağlar.</Description>
</Source>
</PISI>
@@ -0,0 +1,24 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import mesontools
from pisi.actionsapi import get
def setup():
mesontools.configure("-Dsoftware-sources=disabled \
-Dparental_controls=disabled \
-Dsystemd=false")
def build():
mesontools.build()
def install():
mesontools.install()
pisitools.dodoc("COPYING", "NEWS", "README*")
@@ -0,0 +1,93 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>gnome-initial-setup</Name>
<Homepage>https://gitlab.gnome.org/GNOME/gnome-initial-setup</Homepage>
<Packager>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<Summary>GNOME Initial Setup application.</Summary>
<Description>After acquiring or installing a new system there are a few essential things to set up before use. gnome-initial-setup aims to provide a simple, easy, and safe way to prepare a new system.</Description>
<Archive sha1sum="c1689e383e12be8ac84e0890660e7bbabb68b1fc" type="tarxz">https://download.gnome.org/sources/gnome-initial-setup/40/gnome-initial-setup-40.1.tar.xz</Archive>
<BuildDependencies>
<Dependency>glib2-devel</Dependency>
<Dependency>gettext-devel</Dependency>
<Dependency>NetworkManager-devel</Dependency>
<Dependency>accountsservice-devel</Dependency>
<Dependency>gnome-desktop-devel</Dependency>
<Dependency>cheese-devel</Dependency>
<Dependency>libgweather-devel</Dependency>
<Dependency>webkit2gtk-devel</Dependency>
<Dependency>gnome-online-accounts-devel</Dependency>
<Dependency>gdm-devel</Dependency>
<Dependency>libpwquality-devel</Dependency>
<Dependency>vala-devel</Dependency>
<Dependency>mit-kerberos</Dependency>
<Dependency>libnma-devel</Dependency>
<Dependency>polkit-devel</Dependency>
<Dependency>librest-devel</Dependency>
<Dependency>libsecret-devel</Dependency>
<Dependency>ibus-devel</Dependency>
<Dependency>iso-codes-devel</Dependency>
<Dependency>geoclue-devel</Dependency>
<Dependency>pango-devel</Dependency>
<Dependency>meson</Dependency>
<Dependency>gnome-desktop-devel</Dependency>
<Dependency>libseccomp-devel</Dependency>
<Dependency>e2fsprogs-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>gnome-initial-setup</Name>
<RuntimeDependencies>
<Dependency>gdm</Dependency>
<Dependency>gtk3</Dependency>
<Dependency>ibus</Dependency>
<Dependency>cairo</Dependency>
<Dependency>glib2</Dependency>
<Dependency>pango</Dependency>
<Dependency>cheese</Dependency>
<Dependency>libnma</Dependency>
<Dependency>polkit</Dependency>
<Dependency>geoclue</Dependency>
<Dependency>librest</Dependency>
<Dependency>json-glib</Dependency>
<Dependency>libsecret</Dependency>
<Dependency>fontconfig</Dependency>
<Dependency>gdk-pixbuf</Dependency>
<Dependency>webkit2gtk</Dependency>
<Dependency>libgweather</Dependency>
<Dependency>libpwquality</Dependency>
<Dependency>mit-kerberos</Dependency>
<Dependency>gnome-desktop</Dependency>
<Dependency>NetworkManager</Dependency>
<Dependency>accountsservice</Dependency>
<Dependency>gnome-online-accounts</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc</Path>
<Path fileType="library">/usr/libexec/gnome-initial-setup*</Path>
<Path fileType="data">/usr/share/applications</Path>
<Path fileType="data">/usr/share/gnome-session</Path>
<Path fileType="data">/usr/share/gnome-shell</Path>
<Path fileType="data">/usr/share/polkit-1</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share/glib-2.0</Path>
<Path fileType="localedata">/usr/share/locale</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2021-04-21</Date>
<Version>40.1</Version>
<Comment>First release.</Comment>
<Name>Berk Çakar</Name>
<Email>berk2238@hotmail.com</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,31 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
#
# TODO: Add libzapojit (Hotmail&Skydrive) support.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
shelltools.export("TRACKER_LIBS","-ltracker-sparql-3.0")
shelltools.export("TRACKER_CFLAGS","-I/usr/include/tracker-3.0")
autotools.autoreconf("-fi")
autotools.configure("--disable-silent-rules \
--disable-static \
--disable-windows-live")
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("ChangeLog", "COPYING", "NEWS", "README")
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,53 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>gnome-online-miners</Name>
<Homepage>https://gitlab.gnome.org/GNOME/gnome-online-miners</Homepage>
<Packager>
<Name>Pisi Linux Admins</Name>
<Email>admin@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<Summary>GNOME Online Miners - crawls through your online content</Summary>
<Description>GNOME Online Miners provides a set of crawlers that go through your online content and index them locally in Tracker</Description>
<Archive sha1sum="10ed8c048cec610ccc4772915dab3352166e918b" type="tarxz">https://download.gnome.org/sources/gnome-online-miners/3.34/gnome-online-miners-3.34.0.tar.xz</Archive>
<BuildDependencies>
<Dependency>intltool</Dependency>
<Dependency>libxslt-devel</Dependency>
<Dependency>docbook-xsl</Dependency>
<Dependency>glib2-devel</Dependency>
<Dependency>libgdata-devel</Dependency>
<Dependency>grilo-devel</Dependency>
<Dependency>tracker-devel</Dependency>
<Dependency>libgfbgraph-devel</Dependency>
<Dependency>gnome-online-accounts-devel</Dependency>
<Dependency>autoconf-archive</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">tracker3-support.patch</Patch>
</Patches>
</Source>
<Package>
<Name>gnome-online-miners</Name>
<RuntimeDependencies>
<Dependency>glib2</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/share/dbus-1</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2021-06-06</Date>
<Version>3.34.0</Version>
<Comment>First release for Pisi Linux</Comment>
<Name>Berk Çakar</Name>
<Email>berk2238@hotmail.com</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,20 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
autotools.configure()
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("COPYING", "NEWS", "README")
@@ -0,0 +1,40 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>gnome-user-docs</Name>
<Homepage>https://gitlab.gnome.org/GNOME/gnome-user-docs</Homepage>
<Packager>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>CCPL-Attribution-3.0</License>
<IsA>data:doc</IsA>
<Summary>GNOME User Documentation</Summary>
<Description>This package contains documents which are packaged together and shipped as gnome-user-docs in the core GNOME distribution.</Description>
<Archive sha1sum="90375504636e663d0ed97db1ac48ab963daa80d7" type="tarxz">https://download.gnome.org/sources/gnome-user-docs/40/gnome-user-docs-40.1.tar.xz</Archive>
<BuildDependencies>
<Dependency>libxml2-devel</Dependency>
<Dependency>itstool</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>gnome-user-docs</Name>
<IsA>data:doc</IsA>
<Files>
<Path fileType="doc">/usr/share/help</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2021-06-07</Date>
<Version>40.1</Version>
<Comment>First release for Pisi Linux</Comment>
<Name>Berk Çakar</Name>
<Email>berk2238@hotmail.com</Email>
</Update>
</History>
</PISI>