summaryrefslogtreecommitdiff
path: root/extra/gdm
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gdm')
-rw-r--r--extra/gdm/0001-Add-Arch-Linux-PAM-config-files.patch (renamed from extra/gdm/arch-pam.patch)106
-rw-r--r--extra/gdm/PKGBUILD26
-rw-r--r--extra/gdm/fix_external_program_directories.patch12
-rw-r--r--extra/gdm/gdm.install5
4 files changed, 83 insertions, 66 deletions
diff --git a/extra/gdm/arch-pam.patch b/extra/gdm/0001-Add-Arch-Linux-PAM-config-files.patch
index 1faa2b90b..af4f9710e 100644
--- a/extra/gdm/arch-pam.patch
+++ b/extra/gdm/0001-Add-Arch-Linux-PAM-config-files.patch
@@ -1,8 +1,30 @@
-diff --git c/configure.ac i/configure.ac
-index bda20c6..e118101 100644
---- c/configure.ac
-+++ i/configure.ac
-@@ -185,12 +185,13 @@ if test x$enable_split_authentication = xyes; then
+From cd3370b869bd2d5418270e0c9e8197c296d314f5 Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
+Date: Tue, 30 Jul 2013 22:42:27 +0600
+Subject: [PATCH] Add Arch Linux PAM config files
+
+---
+ configure.ac | 6 ++++--
+ data/Makefile.am | 12 ++++++++++++
+ data/pam-arch/gdm-autologin.pam | 14 ++++++++++++++
+ data/pam-arch/gdm-fingerprint.pam | 16 ++++++++++++++++
+ data/pam-arch/gdm-launch-environment.pam | 13 +++++++++++++
+ data/pam-arch/gdm-password.pam | 11 +++++++++++
+ data/pam-arch/gdm-pin.pam | 12 ++++++++++++
+ data/pam-arch/gdm-smartcard.pam | 16 ++++++++++++++++
+ 8 files changed, 98 insertions(+), 2 deletions(-)
+ create mode 100644 data/pam-arch/gdm-autologin.pam
+ create mode 100644 data/pam-arch/gdm-fingerprint.pam
+ create mode 100644 data/pam-arch/gdm-launch-environment.pam
+ create mode 100644 data/pam-arch/gdm-password.pam
+ create mode 100644 data/pam-arch/gdm-pin.pam
+ create mode 100644 data/pam-arch/gdm-smartcard.pam
+
+diff --git a/configure.ac b/configure.ac
+index f66fdd9..aabe305 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -189,12 +189,13 @@ if test x$enable_split_authentication = xyes; then
fi
AC_ARG_WITH(default-pam-config,
@@ -17,7 +39,7 @@ index bda20c6..e118101 100644
AC_CHECK_FILE(/etc/lfs-release,with_default_pam_config="lfs")
dnl If not autodetected, default to none
if test x$with_default_pam_config = x; then
-@@ -198,7 +199,7 @@ if test x$with_default_pam_config = x; then
+@@ -202,7 +203,7 @@ if test x$with_default_pam_config = x; then
fi
fi
case x$with_default_pam_config in
@@ -26,7 +48,7 @@ index bda20c6..e118101 100644
*)
AC_MSG_ERROR([Invalid --with-default-pam-config ${with_default_pam_config}])
exit 1
-@@ -208,6 +209,7 @@ AM_CONDITIONAL(ENABLE_REDHAT_PAM_CONFIG, test x$with_default_pam_config = xredha
+@@ -212,6 +213,7 @@ AM_CONDITIONAL(ENABLE_REDHAT_PAM_CONFIG, test x$with_default_pam_config = xredha
AM_CONDITIONAL(ENABLE_OPENEMBEDDED_PAM_CONFIG, test x$with_default_pam_config = xopenembedded)
AM_CONDITIONAL(ENABLE_EXHERBO_PAM_CONFIG, test x$with_default_pam_config = xexherbo)
AM_CONDITIONAL(ENABLE_LFS_PAM_CONFIG, test x$with_default_pam_config = xlfs)
@@ -34,11 +56,11 @@ index bda20c6..e118101 100644
AC_ARG_ENABLE(console-helper,
AS_HELP_STRING([--enable-console-helper],
-diff --git c/data/Makefile.am i/data/Makefile.am
-index 81eb8ef..6a67433 100644
---- c/data/Makefile.am
-+++ i/data/Makefile.am
-@@ -129,6 +129,15 @@ pam_lfs_files = pam-lfs/gdm.pam \
+diff --git a/data/Makefile.am b/data/Makefile.am
+index 1b79bc3..341b779 100644
+--- a/data/Makefile.am
++++ b/data/Makefile.am
+@@ -140,6 +140,15 @@ pam_lfs_files = pam-lfs/gdm.pam \
$(NULL)
EXTRA_DIST += $(pam_lfs_files)
@@ -54,7 +76,7 @@ index 81eb8ef..6a67433 100644
if ENABLE_REDHAT_PAM_CONFIG
pam_files = $(pam_redhat_files)
endif
-@@ -141,6 +150,9 @@ endif
+@@ -152,6 +161,9 @@ endif
if ENABLE_LFS_PAM_CONFIG
pam_files = $(pam_lfs_files)
endif
@@ -63,13 +85,13 @@ index 81eb8ef..6a67433 100644
+endif
EXTRA_DIST += \
- $(schemas_in_files) \
-diff --git c/data/pam-arch/gdm-autologin.pam i/data/pam-arch/gdm-autologin.pam
+ $(dconf_db_files) \
+diff --git a/data/pam-arch/gdm-autologin.pam b/data/pam-arch/gdm-autologin.pam
new file mode 100644
-index 0000000..de615ef
+index 0000000..e7998ef
--- /dev/null
-+++ i/data/pam-arch/gdm-autologin.pam
-@@ -0,0 +1,13 @@
++++ b/data/pam-arch/gdm-autologin.pam
+@@ -0,0 +1,14 @@
+auth required pam_tally.so onerr=succeed file=/var/log/faillog
+auth required pam_shells.so
+auth requisite pam_nologin.so
@@ -81,14 +103,15 @@ index 0000000..de615ef
+
+password include system-local-login
+
++session optional pam_keyinit.so force revoke
+session include system-local-login
+session optional pam_gnome_keyring.so auto_start
-diff --git c/data/pam-arch/gdm-fingerprint.pam i/data/pam-arch/gdm-fingerprint.pam
+diff --git a/data/pam-arch/gdm-fingerprint.pam b/data/pam-arch/gdm-fingerprint.pam
new file mode 100644
-index 0000000..f296ae0
+index 0000000..97afb44
--- /dev/null
-+++ i/data/pam-arch/gdm-fingerprint.pam
-@@ -0,0 +1,15 @@
++++ b/data/pam-arch/gdm-fingerprint.pam
+@@ -0,0 +1,16 @@
+auth required pam_tally.so onerr=succeed file=/var/log/faillog
+auth required pam_shells.so
+auth requisite pam_nologin.so
@@ -102,13 +125,14 @@ index 0000000..f296ae0
+password required pam_fprintd.so
+password optional pam_permit.so
+
++session optional pam_keyinit.so force revoke
+session include system-local-login
+session optional pam_gnome_keyring.so auto_start
-diff --git c/data/pam-arch/gdm-launch-environment.pam i/data/pam-arch/gdm-launch-environment.pam
+diff --git a/data/pam-arch/gdm-launch-environment.pam b/data/pam-arch/gdm-launch-environment.pam
new file mode 100644
-index 0000000..6dfbc51
+index 0000000..2981326
--- /dev/null
-+++ i/data/pam-arch/gdm-launch-environment.pam
++++ b/data/pam-arch/gdm-launch-environment.pam
@@ -0,0 +1,13 @@
+auth required pam_succeed_if.so audit quiet_success user = gdm
+auth required pam_env.so
@@ -119,31 +143,33 @@ index 0000000..6dfbc51
+
+password required pam_deny.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_keyinit.so force revoke
+session optional pam_permit.so
-diff --git c/data/pam-arch/gdm-password.pam i/data/pam-arch/gdm-password.pam
+diff --git a/data/pam-arch/gdm-password.pam b/data/pam-arch/gdm-password.pam
new file mode 100644
-index 0000000..7411285
+index 0000000..8d34794
--- /dev/null
-+++ i/data/pam-arch/gdm-password.pam
-@@ -0,0 +1,9 @@
++++ b/data/pam-arch/gdm-password.pam
+@@ -0,0 +1,11 @@
+auth include system-local-login
+auth optional pam_gnome_keyring.so
+
+account include system-local-login
+
+password include system-local-login
++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 c/data/pam-arch/gdm-pin.pam i/data/pam-arch/gdm-pin.pam
+diff --git a/data/pam-arch/gdm-pin.pam b/data/pam-arch/gdm-pin.pam
new file mode 100644
-index 0000000..e024244
+index 0000000..44ec42f
--- /dev/null
-+++ i/data/pam-arch/gdm-pin.pam
-@@ -0,0 +1,11 @@
++++ b/data/pam-arch/gdm-pin.pam
+@@ -0,0 +1,12 @@
+auth requisite pam_pin.so
+auth include system-local-login
+auth optional pam_gnome_keyring.so
@@ -153,14 +179,15 @@ index 0000000..e024244
+password include system-local-login
+password optional pam_pin.so
+
++session optional pam_keyinit.so force revoke
+session include system-local-login
+session optional pam_gnome_keyring.so auto_start
-diff --git c/data/pam-arch/gdm-smartcard.pam i/data/pam-arch/gdm-smartcard.pam
+diff --git a/data/pam-arch/gdm-smartcard.pam b/data/pam-arch/gdm-smartcard.pam
new file mode 100644
-index 0000000..7c3d736
+index 0000000..c6f01fe
--- /dev/null
-+++ i/data/pam-arch/gdm-smartcard.pam
-@@ -0,0 +1,15 @@
++++ b/data/pam-arch/gdm-smartcard.pam
+@@ -0,0 +1,16 @@
+auth required pam_tally.so onerr=succeed file=/var/log/faillog
+auth required pam_shells.so
+auth requisite pam_nologin.so
@@ -174,6 +201,9 @@ index 0000000..7c3d736
+password required pam_pkcs11.so
+password optional pam_permit.so
+
++session optional pam_keyinit.so force revoke
+session include system-local-login
+session optional pam_gnome_keyring.so auto_start
+--
+1.9.1
diff --git a/extra/gdm/PKGBUILD b/extra/gdm/PKGBUILD
index 28d2617b3..002a145b5 100644
--- a/extra/gdm/PKGBUILD
+++ b/extra/gdm/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 200818 2013-12-05 23:40:49Z heftig $
+# $Id: PKGBUILD 210439 2014-04-14 20:06:13Z jgc $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgbase=gdm
pkgname=(gdm libgdm)
-pkgver=3.10.0.1
-pkgrel=2
+pkgver=3.12.0
+pkgrel=1
pkgdesc="Gnome Display Manager"
arch=(i686 x86_64)
license=(GPL)
@@ -14,15 +14,13 @@ depends=(gnome-shell gnome-session upower xorg-xrdb xorg-server xorg-xhost)
makedepends=(itstool intltool yelp-tools gobject-introspection)
checkdepends=('check')
source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz
- fix_external_program_directories.patch arch-pam.patch)
-sha256sums=('549a42009af9c79a4e07632e405dcb71ba2e876e766cff02471511ad641b6ae7'
- 'a878680734e35c1d66252cbcfe678c3961b5ff0fa16302f8796a5e7e65ffe4a2'
- 'b5c225784c3107564cb9685e41dfecdb20b8ea2415905c4119c96748c4e68003')
+ 0001-Add-Arch-Linux-PAM-config-files.patch)
+sha256sums=('74889819a0c55577fd04236b5308de5f1fcf1992b221c71d02d91a1e564a5d87'
+ 'e158ea240e90113cf1d7790a623c3d0b64e459f76b0e9135f9f536cdb22c0c0e')
prepare() {
cd $pkgbase-$pkgver
- patch -Np1 -i ../fix_external_program_directories.patch
- patch -Np1 -i ../arch-pam.patch
+ patch -Np1 -i ../0001-Add-Arch-Linux-PAM-config-files.patch
AUTOPOINT='intltoolize --automake -c' autoreconf -fi
}
@@ -39,6 +37,7 @@ build() {
--with-at-spi-registryd-directory=/usr/lib/at-spi2-core \
--with-check-accelerated-directory=/usr/lib/gnome-session \
--with-authentication-agent-directory=/usr/lib/polkit-gnome \
+ --with-gnome-settings-daemon-directory=/usr/lib/gnome-settings-daemon \
--without-tcp-wrappers \
--without-console-kit \
--with-systemd \
@@ -46,7 +45,7 @@ build() {
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
- make -j1
+ make
}
check() {
@@ -59,8 +58,7 @@ package_gdm() {
optdepends=('fprintd: fingerprint authentication')
backup=(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 etc/gdm/custom.conf
- etc/gdm/Xsession
- etc/gdm/PostSession/Default etc/gdm/PreSession/Default)
+ etc/gdm/Xsession etc/gdm/PostSession/Default etc/gdm/PreSession/Default)
groups=(gnome)
install=gdm.install
@@ -71,7 +69,7 @@ package_gdm() {
rm -r "$pkgdir/var/run"
### Split libgdm
- make -C gui/libgdm DESTDIR="$pkgdir" uninstall
+ make -C libgdm DESTDIR="$pkgdir" uninstall
mv "$pkgdir/usr/share/glib-2.0/schemas/org.gnome.login-screen.gschema.xml" "$srcdir"
}
@@ -81,7 +79,7 @@ package_libgdm() {
install=libgdm.install
cd $pkgbase-$pkgver
- make -C gui/libgdm DESTDIR="$pkgdir" install
+ make -C libgdm DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/org.gnome.login-screen.gschema.xml" \
"$pkgdir/usr/share/glib-2.0/schemas/org.gnome.login-screen.gschema.xml"
}
diff --git a/extra/gdm/fix_external_program_directories.patch b/extra/gdm/fix_external_program_directories.patch
deleted file mode 100644
index 5e51a776f..000000000
--- a/extra/gdm/fix_external_program_directories.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Nur gdm-3.3.92.orig/gui/simple-chooser/gdm-chooser-session.c gdm-3.3.92/gui/simple-chooser/gdm-chooser-session.c
---- gdm-3.3.92.orig/gui/simple-chooser/gdm-chooser-session.c 2012-03-19 22:30:05.304823391 +0000
-+++ gdm-3.3.92/gui/simple-chooser/gdm-chooser-session.c 2012-03-19 22:30:17.004732251 +0000
-@@ -131,7 +131,7 @@
- ret = FALSE;
-
- error = NULL;
-- g_spawn_command_line_async (LIBEXECDIR "/gnome-settings-daemon", &error);
-+ g_spawn_command_line_async ("/usr/lib/gnome-settings-daemon/gnome-settings-daemon", &error);
- if (error != NULL) {
- g_warning ("Error starting settings daemon: %s", error->message);
- g_error_free (error);
diff --git a/extra/gdm/gdm.install b/extra/gdm/gdm.install
index d43f06c2f..b52027a17 100644
--- a/extra/gdm/gdm.install
+++ b/extra/gdm/gdm.install
@@ -6,15 +6,16 @@ post_install() {
chown root:gdm /var/log/gdm > /dev/null
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
- dconf update
}
post_upgrade() {
post_install
+ if (( $(vercmp $2 3.12.0) < 0 )); then
+ rm /etc/dconf/db/gdm
+ fi
}
post_remove() {
- dconf update
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
getent passwd gdm >/dev/null 2>&1 && userdel gdm