blob: 1f2ffec9fca14664c6e0fcbdfdd575440d95984a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
|
# Maintainer: Fabian Bornschein <fabiscafe-at-mailbox-dot-org>
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgbase=gdm-git
pkgname=(
gdm-git
libgdm-git
)
pkgver=46.0+r23+g6836d2e91
pkgrel=1
pkgdesc="Display manager and login screen"
url="https://wiki.gnome.org/Projects/GDM"
arch=(x86_64)
license=(GPL-2.0-or-later)
depends=(
accountsservice
audit
bash
gcc-libs
gdk-pixbuf2
glib2
glibc
gnome-session
gnome-shell
gtk3
json-glib
keyutils
libcanberra
libgudev
libx11
libxau
libxcb
libxdmcp
pam
systemd
systemd-libs
upower
xorg-server
xorg-xhost
xorg-xrdb
)
makedepends=(
dconf
docbook-xsl
git
gobject-introspection
meson
plymouth
python-packaging
yelp-tools
)
checkdepends=(check)
source=(
"git+https://gitlab.gnome.org/GNOME/gdm.git"
0001-Xsession-Don-t-start-ssh-agent-by-default.patch
)
b2sums=('SKIP'
'f7e868fdd7cc121433de1572583eb728f4d186cd4f52c6d6c8f2ccf4a3cf781144ff71f704f13571ddb97a1ff4ec55cfa3df25d38737ad19da21e84ddc2d3ee4')
pkgver() {
cd gdm
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd gdm
# Don't start ssh-agent by default
git apply -3 ../0001-Xsession-Don-t-start-ssh-agent-by-default.patch
}
build() {
local meson_options=(
-D dbus-sys="/usr/share/dbus-1/system.d"
-D default-pam-config=arch
-D default-path="/usr/local/bin:/usr/local/sbin:/usr/bin"
-D gdm-xsession=true
-D ipv6=true
-D run-dir=/run/gdm
-D selinux=disabled
)
arch-meson gdm build "${meson_options[@]}"
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
_pick() {
local p="$1" f d; shift
for f; do
d="$srcdir/$p/${f#$pkgdir/}"
mkdir -p "$(dirname "$d")"
mv "$f" "$d"
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
done
}
package_gdm-git() {
depends+=(libgdm)
optdepends=('fprintd: fingerprint authentication')
backup=(
etc/gdm/PostSession/Default
etc/gdm/PreSession/Default
etc/gdm/Xsession
etc/gdm/custom.conf
etc/pam.d/gdm-autologin
etc/pam.d/gdm-fingerprint
etc/pam.d/gdm-launch-environment
etc/pam.d/gdm-password
etc/pam.d/gdm-smartcard
)
provides=('gdm')
conflicts=('gdm')
groups=(gnome)
install=gdm.install
meson install -C build --destdir "$pkgdir"
cd "$pkgdir"
install -d -o 0 -g 0 -m 0755 var
install -d -o 0 -g 0 -m 0755 var/lib
install -d -o 120 -g 120 -m 1770 var/lib/gdm
install -d -o 120 -g 120 -m 0700 var/lib/gdm/.config
install -d -o 120 -g 120 -m 0700 var/lib/gdm/.config/pulse
install -d -o 120 -g 120 -m 0700 var/lib/gdm/.local
install -d -o 120 -g 120 -m 0755 var/lib/gdm/.local/share
install -d -o 120 -g 120 -m 0755 var/lib/gdm/.local/share/applications
# https://src.fedoraproject.org/rpms/gdm/blob/master/f/default.pa-for-gdm
install -o120 -g120 -m644 /dev/stdin var/lib/gdm/.config/pulse/default.pa <<END
load-module module-device-restore
load-module module-card-restore
load-module module-udev-detect
load-module module-native-protocol-unix
load-module module-default-device-restore
load-module module-always-sink
load-module module-intended-roles
load-module module-suspend-on-idle
load-module module-systemd-login
load-module module-position-event-sounds
END
install -Dm644 /dev/stdin usr/lib/sysusers.d/gdm.conf <<END
g gdm 120 -
u gdm 120 "Gnome Display Manager" /var/lib/gdm
END
_pick libgdm usr/include
_pick libgdm usr/lib/{girepository-1.0,libgdm*,pkgconfig}
_pick libgdm usr/share/{gir-1.0,glib-2.0}
}
package_libgdm-git() {
pkgdesc+=" - support library"
depends=(
dconf
gcc-libs
glib2
glibc
libg{lib,object,io}-2.0.so
libsystemd.so
systemd-libs
)
provides=('libgdm')
conflicts=('libgdm')
mv libgdm/* "$pkgdir"
}
# vim:set sw=2 sts=-1 et:
|