[arch-commits] Commit in polkit/repos (14 files)

Jan de Groot jgc at nymeria.archlinux.org
Mon Mar 18 18:19:32 UTC 2013


    Date: Monday, March 18, 2013 @ 19:19:32
  Author: jgc
Revision: 180235

archrelease: copy trunk to extra-i686, extra-x86_64

Added:
  polkit/repos/extra-i686/PKGBUILD
    (from rev 180234, polkit/trunk/PKGBUILD)
  polkit/repos/extra-i686/polkit.install
    (from rev 180234, polkit/trunk/polkit.install)
  polkit/repos/extra-i686/polkit.pam
    (from rev 180234, polkit/trunk/polkit.pam)
  polkit/repos/extra-x86_64/PKGBUILD
    (from rev 180234, polkit/trunk/PKGBUILD)
  polkit/repos/extra-x86_64/polkit.install
    (from rev 180234, polkit/trunk/polkit.install)
  polkit/repos/extra-x86_64/polkit.pam
    (from rev 180234, polkit/trunk/polkit.pam)
Deleted:
  polkit/repos/extra-i686/PKGBUILD
  polkit/repos/extra-i686/fix-xauthority.patch
  polkit/repos/extra-i686/polkit.install
  polkit/repos/extra-i686/polkit.pam
  polkit/repos/extra-x86_64/PKGBUILD
  polkit/repos/extra-x86_64/fix-xauthority.patch
  polkit/repos/extra-x86_64/polkit.install
  polkit/repos/extra-x86_64/polkit.pam

-----------------------------------+
 extra-i686/PKGBUILD               |   82 +++++++++++++++++-------------------
 extra-i686/fix-xauthority.patch   |   58 -------------------------
 extra-i686/polkit.install         |   36 +++++++--------
 extra-i686/polkit.pam             |   14 +++---
 extra-x86_64/PKGBUILD             |   82 +++++++++++++++++-------------------
 extra-x86_64/fix-xauthority.patch |   58 -------------------------
 extra-x86_64/polkit.install       |   36 +++++++--------
 extra-x86_64/polkit.pam           |   14 +++---
 8 files changed, 128 insertions(+), 252 deletions(-)

Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD	2013-03-18 18:19:23 UTC (rev 180234)
+++ extra-i686/PKGBUILD	2013-03-18 18:19:32 UTC (rev 180235)
@@ -1,43 +0,0 @@
-# $Id$
-# Maintainer: Jan de Groot <jgc at archlinux.org>
-
-pkgname=polkit
-pkgver=0.109
-pkgrel=1
-pkgdesc="Application development toolkit for controlling system-wide privileges"
-arch=(i686 x86_64)
-license=('LGPL')
-url="http://www.freedesktop.org/wiki/Software/polkit"
-depends=('glib2' 'pam' 'expat' 'libsystemd' 'js')
-makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
-replaces=('policykit')
-options=('!libtool')
-install=polkit.install
-source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz
-        polkit.pam
-        fix-xauthority.patch)
-md5sums=('8c3f08287dd3e1e546e3c2ae00090908'
-         '6564f95878297b954f0572bc1610dd15'
-         '78db344a30d7aa089b4705009ec95b58')
-
-build() {
-  cd $pkgname-$pkgver
-
-  patch -Np1 -i ../fix-xauthority.patch
-
-  ./configure --prefix=/usr --sysconfdir=/etc \
-      --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
-      --with-systemdsystemunitdir=/usr/lib/systemd/system \
-      --disable-static --enable-gtk-doc
-  make
-}
-
-package() {
-  cd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-
-  chown 102 "$pkgdir/etc/polkit-1/rules.d"
-  chown 102 "$pkgdir/usr/share/polkit-1/rules.d"
-
-  install -m644 "$srcdir/polkit.pam" "$pkgdir/etc/pam.d/polkit-1"
-}

Copied: polkit/repos/extra-i686/PKGBUILD (from rev 180234, polkit/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD	                        (rev 0)
+++ extra-i686/PKGBUILD	2013-03-18 18:19:32 UTC (rev 180235)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=polkit
+pkgver=0.110
+pkgrel=1
+pkgdesc="Application development toolkit for controlling system-wide privileges"
+arch=(i686 x86_64)
+license=('LGPL')
+url="http://www.freedesktop.org/wiki/Software/polkit"
+depends=('glib2' 'pam' 'expat' 'libsystemd' 'js')
+makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
+replaces=('policykit')
+options=('!libtool')
+install=polkit.install
+source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz
+        polkit.pam)
+md5sums=('06e0d3b72e566ac277fc35c8206d2a28'
+         '6564f95878297b954f0572bc1610dd15')
+
+build() {
+  cd $pkgname-$pkgver
+
+  ./configure --prefix=/usr --sysconfdir=/etc \
+      --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
+      --with-systemdsystemunitdir=/usr/lib/systemd/system \
+      --disable-static --enable-gtk-doc
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+
+  chown 102 "$pkgdir/etc/polkit-1/rules.d"
+  chown 102 "$pkgdir/usr/share/polkit-1/rules.d"
+
+  install -m644 "$srcdir/polkit.pam" "$pkgdir/etc/pam.d/polkit-1"
+}

Deleted: extra-i686/fix-xauthority.patch
===================================================================
--- extra-i686/fix-xauthority.patch	2013-03-18 18:19:23 UTC (rev 180234)
+++ extra-i686/fix-xauthority.patch	2013-03-18 18:19:32 UTC (rev 180235)
@@ -1,58 +0,0 @@
-From d6acecdd0ebb42e28ff28e04e0207cb01fa20910 Mon Sep 17 00:00:00 2001
-From: David Zeuthen <zeuthen at gmail.com>
-Date: Wed, 19 Dec 2012 19:28:29 +0000
-Subject: Set XAUTHORITY environment variable if is unset
-
-The way it works is that if XAUTHORITY is unset, then its default
-value is $HOME/.Xauthority. But since we're changing user identity
-this will not work since $HOME will now change. Therefore, if
-XAUTHORITY is unset, just set its default value before changing
-identity. This bug only affected login managers using X Window
-Authorization but not explicitly setting the XAUTHORITY variable.
-
-You can argue that XAUTHORITY is broken since it forces uid-changing
-apps like pkexec(1) to do more work - and get involved in intimate
-details of how X works and so on - but that doesn't change how things
-work.
-
-Based on a patch from Peter Wu <lekensteyn at gmail.com>.
-
-https://bugs.freedesktop.org/show_bug.cgi?id=51623
-
-Signed-off-by: David Zeuthen <zeuthen at gmail.com>
----
-diff --git a/src/programs/pkexec.c b/src/programs/pkexec.c
-index 840eb3c..da9784a 100644
---- a/src/programs/pkexec.c
-+++ b/src/programs/pkexec.c
-@@ -608,6 +608,28 @@ main (int argc, char *argv[])
-       g_ptr_array_add (saved_env, g_strdup (value));
-     }
- 
-+  /* $XAUTHORITY is "special" - if unset, we need to set it to ~/.Xauthority. Yes,
-+   * this is broken but it's unfortunately how things work (see fdo #51623 for
-+   * details)
-+   */
-+  if (g_getenv ("XAUTHORITY") == NULL)
-+    {
-+      const gchar *home;
-+
-+      /* pre-2.36 GLib does not examine $HOME (it always looks in /etc/passwd) and
-+       * this is not what we want
-+       */
-+      home = g_getenv ("HOME");
-+      if (home == NULL)
-+        home = g_get_home_dir ();
-+
-+      if (home != NULL)
-+        {
-+          g_ptr_array_add (saved_env, g_strdup ("XAUTHORITY"));
-+          g_ptr_array_add (saved_env, g_build_filename (home, ".Xauthority", NULL));
-+        }
-+    }
-+
-   /* Nuke the environment to get a well-known and sanitized environment to avoid attacks
-    * via e.g. the DBUS_SYSTEM_BUS_ADDRESS environment variable and similar.
-    */
---
-cgit v0.9.0.2-2-gbebe

Deleted: extra-i686/polkit.install
===================================================================
--- extra-i686/polkit.install	2013-03-18 18:19:23 UTC (rev 180234)
+++ extra-i686/polkit.install	2013-03-18 18:19:32 UTC (rev 180235)
@@ -1,18 +0,0 @@
-post_install() {
-       getent group polkitd >/dev/null || groupadd -g 102 polkitd
-       getent passwd polkitd >/dev/null || useradd -c 'Policy Kit Daemon' -u 102 -g polkitd -d '/' -s /bin/false polkitd
-       passwd -l polkitd &>/dev/null
-}
-
-post_upgrade() {
-       post_install
-}
-
-post_remove() {
-       if getent passwd polkitd >/dev/null; then
-               userdel polkitd
-       fi
-       if getent group polkitd >/dev/null; then
-               groupdel polkitd
-       fi
-}

Copied: polkit/repos/extra-i686/polkit.install (from rev 180234, polkit/trunk/polkit.install)
===================================================================
--- extra-i686/polkit.install	                        (rev 0)
+++ extra-i686/polkit.install	2013-03-18 18:19:32 UTC (rev 180235)
@@ -0,0 +1,18 @@
+post_install() {
+       getent group polkitd >/dev/null || groupadd -g 102 polkitd
+       getent passwd polkitd >/dev/null || useradd -c 'Policy Kit Daemon' -u 102 -g polkitd -d '/' -s /bin/false polkitd
+       passwd -l polkitd &>/dev/null
+}
+
+post_upgrade() {
+       post_install
+}
+
+post_remove() {
+       if getent passwd polkitd >/dev/null; then
+               userdel polkitd
+       fi
+       if getent group polkitd >/dev/null; then
+               groupdel polkitd
+       fi
+}

Deleted: extra-i686/polkit.pam
===================================================================
--- extra-i686/polkit.pam	2013-03-18 18:19:23 UTC (rev 180234)
+++ extra-i686/polkit.pam	2013-03-18 18:19:32 UTC (rev 180235)
@@ -1,7 +0,0 @@
-auth            requisite       pam_nologin.so
-auth            required        pam_env.so
-auth            required        pam_unix.so
-account         required        pam_unix.so
-session         required        pam_limits.so
-session         required        pam_unix.so
-password        required        pam_unix.so

Copied: polkit/repos/extra-i686/polkit.pam (from rev 180234, polkit/trunk/polkit.pam)
===================================================================
--- extra-i686/polkit.pam	                        (rev 0)
+++ extra-i686/polkit.pam	2013-03-18 18:19:32 UTC (rev 180235)
@@ -0,0 +1,7 @@
+auth            requisite       pam_nologin.so
+auth            required        pam_env.so
+auth            required        pam_unix.so
+account         required        pam_unix.so
+session         required        pam_limits.so
+session         required        pam_unix.so
+password        required        pam_unix.so

Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2013-03-18 18:19:23 UTC (rev 180234)
+++ extra-x86_64/PKGBUILD	2013-03-18 18:19:32 UTC (rev 180235)
@@ -1,43 +0,0 @@
-# $Id$
-# Maintainer: Jan de Groot <jgc at archlinux.org>
-
-pkgname=polkit
-pkgver=0.109
-pkgrel=1
-pkgdesc="Application development toolkit for controlling system-wide privileges"
-arch=(i686 x86_64)
-license=('LGPL')
-url="http://www.freedesktop.org/wiki/Software/polkit"
-depends=('glib2' 'pam' 'expat' 'libsystemd' 'js')
-makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
-replaces=('policykit')
-options=('!libtool')
-install=polkit.install
-source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz
-        polkit.pam
-        fix-xauthority.patch)
-md5sums=('8c3f08287dd3e1e546e3c2ae00090908'
-         '6564f95878297b954f0572bc1610dd15'
-         '78db344a30d7aa089b4705009ec95b58')
-
-build() {
-  cd $pkgname-$pkgver
-
-  patch -Np1 -i ../fix-xauthority.patch
-
-  ./configure --prefix=/usr --sysconfdir=/etc \
-      --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
-      --with-systemdsystemunitdir=/usr/lib/systemd/system \
-      --disable-static --enable-gtk-doc
-  make
-}
-
-package() {
-  cd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-
-  chown 102 "$pkgdir/etc/polkit-1/rules.d"
-  chown 102 "$pkgdir/usr/share/polkit-1/rules.d"
-
-  install -m644 "$srcdir/polkit.pam" "$pkgdir/etc/pam.d/polkit-1"
-}

Copied: polkit/repos/extra-x86_64/PKGBUILD (from rev 180234, polkit/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2013-03-18 18:19:32 UTC (rev 180235)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=polkit
+pkgver=0.110
+pkgrel=1
+pkgdesc="Application development toolkit for controlling system-wide privileges"
+arch=(i686 x86_64)
+license=('LGPL')
+url="http://www.freedesktop.org/wiki/Software/polkit"
+depends=('glib2' 'pam' 'expat' 'libsystemd' 'js')
+makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
+replaces=('policykit')
+options=('!libtool')
+install=polkit.install
+source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz
+        polkit.pam)
+md5sums=('06e0d3b72e566ac277fc35c8206d2a28'
+         '6564f95878297b954f0572bc1610dd15')
+
+build() {
+  cd $pkgname-$pkgver
+
+  ./configure --prefix=/usr --sysconfdir=/etc \
+      --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
+      --with-systemdsystemunitdir=/usr/lib/systemd/system \
+      --disable-static --enable-gtk-doc
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+
+  chown 102 "$pkgdir/etc/polkit-1/rules.d"
+  chown 102 "$pkgdir/usr/share/polkit-1/rules.d"
+
+  install -m644 "$srcdir/polkit.pam" "$pkgdir/etc/pam.d/polkit-1"
+}

Deleted: extra-x86_64/fix-xauthority.patch
===================================================================
--- extra-x86_64/fix-xauthority.patch	2013-03-18 18:19:23 UTC (rev 180234)
+++ extra-x86_64/fix-xauthority.patch	2013-03-18 18:19:32 UTC (rev 180235)
@@ -1,58 +0,0 @@
-From d6acecdd0ebb42e28ff28e04e0207cb01fa20910 Mon Sep 17 00:00:00 2001
-From: David Zeuthen <zeuthen at gmail.com>
-Date: Wed, 19 Dec 2012 19:28:29 +0000
-Subject: Set XAUTHORITY environment variable if is unset
-
-The way it works is that if XAUTHORITY is unset, then its default
-value is $HOME/.Xauthority. But since we're changing user identity
-this will not work since $HOME will now change. Therefore, if
-XAUTHORITY is unset, just set its default value before changing
-identity. This bug only affected login managers using X Window
-Authorization but not explicitly setting the XAUTHORITY variable.
-
-You can argue that XAUTHORITY is broken since it forces uid-changing
-apps like pkexec(1) to do more work - and get involved in intimate
-details of how X works and so on - but that doesn't change how things
-work.
-
-Based on a patch from Peter Wu <lekensteyn at gmail.com>.
-
-https://bugs.freedesktop.org/show_bug.cgi?id=51623
-
-Signed-off-by: David Zeuthen <zeuthen at gmail.com>
----
-diff --git a/src/programs/pkexec.c b/src/programs/pkexec.c
-index 840eb3c..da9784a 100644
---- a/src/programs/pkexec.c
-+++ b/src/programs/pkexec.c
-@@ -608,6 +608,28 @@ main (int argc, char *argv[])
-       g_ptr_array_add (saved_env, g_strdup (value));
-     }
- 
-+  /* $XAUTHORITY is "special" - if unset, we need to set it to ~/.Xauthority. Yes,
-+   * this is broken but it's unfortunately how things work (see fdo #51623 for
-+   * details)
-+   */
-+  if (g_getenv ("XAUTHORITY") == NULL)
-+    {
-+      const gchar *home;
-+
-+      /* pre-2.36 GLib does not examine $HOME (it always looks in /etc/passwd) and
-+       * this is not what we want
-+       */
-+      home = g_getenv ("HOME");
-+      if (home == NULL)
-+        home = g_get_home_dir ();
-+
-+      if (home != NULL)
-+        {
-+          g_ptr_array_add (saved_env, g_strdup ("XAUTHORITY"));
-+          g_ptr_array_add (saved_env, g_build_filename (home, ".Xauthority", NULL));
-+        }
-+    }
-+
-   /* Nuke the environment to get a well-known and sanitized environment to avoid attacks
-    * via e.g. the DBUS_SYSTEM_BUS_ADDRESS environment variable and similar.
-    */
---
-cgit v0.9.0.2-2-gbebe

Deleted: extra-x86_64/polkit.install
===================================================================
--- extra-x86_64/polkit.install	2013-03-18 18:19:23 UTC (rev 180234)
+++ extra-x86_64/polkit.install	2013-03-18 18:19:32 UTC (rev 180235)
@@ -1,18 +0,0 @@
-post_install() {
-       getent group polkitd >/dev/null || groupadd -g 102 polkitd
-       getent passwd polkitd >/dev/null || useradd -c 'Policy Kit Daemon' -u 102 -g polkitd -d '/' -s /bin/false polkitd
-       passwd -l polkitd &>/dev/null
-}
-
-post_upgrade() {
-       post_install
-}
-
-post_remove() {
-       if getent passwd polkitd >/dev/null; then
-               userdel polkitd
-       fi
-       if getent group polkitd >/dev/null; then
-               groupdel polkitd
-       fi
-}

Copied: polkit/repos/extra-x86_64/polkit.install (from rev 180234, polkit/trunk/polkit.install)
===================================================================
--- extra-x86_64/polkit.install	                        (rev 0)
+++ extra-x86_64/polkit.install	2013-03-18 18:19:32 UTC (rev 180235)
@@ -0,0 +1,18 @@
+post_install() {
+       getent group polkitd >/dev/null || groupadd -g 102 polkitd
+       getent passwd polkitd >/dev/null || useradd -c 'Policy Kit Daemon' -u 102 -g polkitd -d '/' -s /bin/false polkitd
+       passwd -l polkitd &>/dev/null
+}
+
+post_upgrade() {
+       post_install
+}
+
+post_remove() {
+       if getent passwd polkitd >/dev/null; then
+               userdel polkitd
+       fi
+       if getent group polkitd >/dev/null; then
+               groupdel polkitd
+       fi
+}

Deleted: extra-x86_64/polkit.pam
===================================================================
--- extra-x86_64/polkit.pam	2013-03-18 18:19:23 UTC (rev 180234)
+++ extra-x86_64/polkit.pam	2013-03-18 18:19:32 UTC (rev 180235)
@@ -1,7 +0,0 @@
-auth            requisite       pam_nologin.so
-auth            required        pam_env.so
-auth            required        pam_unix.so
-account         required        pam_unix.so
-session         required        pam_limits.so
-session         required        pam_unix.so
-password        required        pam_unix.so

Copied: polkit/repos/extra-x86_64/polkit.pam (from rev 180234, polkit/trunk/polkit.pam)
===================================================================
--- extra-x86_64/polkit.pam	                        (rev 0)
+++ extra-x86_64/polkit.pam	2013-03-18 18:19:32 UTC (rev 180235)
@@ -0,0 +1,7 @@
+auth            requisite       pam_nologin.so
+auth            required        pam_env.so
+auth            required        pam_unix.so
+account         required        pam_unix.so
+session         required        pam_limits.so
+session         required        pam_unix.so
+password        required        pam_unix.so




More information about the arch-commits mailing list