[arch-commits] Commit in polkit/trunk (PKGBUILD)

2020-09-25 Thread Antonio Rojas via arch-commits
Date: Friday, September 25, 2020 @ 11:15:04
  Author: arojas
Revision: 396552

Update to 0.118

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-09-25 11:10:56 UTC (rev 396551)
+++ PKGBUILD2020-09-25 11:15:04 UTC (rev 396552)
@@ -1,16 +1,16 @@
 # Maintainer: Jan de Groot 
 
 pkgname=polkit
-pkgver=0.117
+pkgver=0.118
 pkgrel=1
 pkgdesc="Application development toolkit for controlling system-wide 
privileges"
 arch=(x86_64)
 license=(LGPL)
 url="https://www.freedesktop.org/wiki/Software/polkit/;
-depends=(glib2 pam expat systemd js68)
+depends=(glib2 pam expat systemd js78)
 makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive)
 backup=(etc/pam.d/polkit-1)
-_commit=585f4f2715639394e36319d4918389d26e250e7b
+_commit=ff4c2144f0fb1325275887d9e254117fcd8a1b52
 source=("git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit;)
 sha256sums=('SKIP')
 


[arch-commits] Commit in polkit/trunk (PKGBUILD)

2020-08-03 Thread Antonio Rojas via arch-commits
Date: Monday, August 3, 2020 @ 07:51:26
  Author: arojas
Revision: 393079

Update to 0.117

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |8 
 1 file changed, 4 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-08-03 07:48:00 UTC (rev 393078)
+++ PKGBUILD2020-08-03 07:51:26 UTC (rev 393079)
@@ -1,16 +1,16 @@
 # Maintainer: Jan de Groot 
 
 pkgname=polkit
-pkgver=0.116
-pkgrel=5
+pkgver=0.117
+pkgrel=1
 pkgdesc="Application development toolkit for controlling system-wide 
privileges"
 arch=(x86_64)
 license=(LGPL)
 url="https://www.freedesktop.org/wiki/Software/polkit/;
-depends=(glib2 pam expat systemd js60)
+depends=(glib2 pam expat systemd js68)
 makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive)
 backup=(etc/pam.d/polkit-1)
-_commit=941e9329f8d3d43ace8335d206365b212824e686  # tags/0.116
+_commit=585f4f2715639394e36319d4918389d26e250e7b
 source=("git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit;)
 sha256sums=('SKIP')
 


[arch-commits] Commit in polkit/trunk (PKGBUILD)

2020-02-22 Thread Jan Steffens via arch-commits
Date: Sunday, February 23, 2020 @ 00:11:18
  Author: heftig
Revision: 376078

0.116-5: FS#62847 add backup=

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-02-22 22:30:37 UTC (rev 376077)
+++ PKGBUILD2020-02-23 00:11:18 UTC (rev 376078)
@@ -2,7 +2,7 @@
 
 pkgname=polkit
 pkgver=0.116
-pkgrel=4
+pkgrel=5
 pkgdesc="Application development toolkit for controlling system-wide 
privileges"
 arch=(x86_64)
 license=(LGPL)
@@ -9,6 +9,7 @@
 url="https://www.freedesktop.org/wiki/Software/polkit/;
 depends=(glib2 pam expat systemd js60)
 makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive)
+backup=(etc/pam.d/polkit-1)
 _commit=941e9329f8d3d43ace8335d206365b212824e686  # tags/0.116
 source=("git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit;)
 sha256sums=('SKIP')


[arch-commits] Commit in polkit/trunk (PKGBUILD)

2020-02-13 Thread Jan Steffens via arch-commits
Date: Thursday, February 13, 2020 @ 16:42:32
  Author: heftig
Revision: 375542

0.116-4: drop soname patch from js*

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-02-13 16:42:30 UTC (rev 375541)
+++ PKGBUILD2020-02-13 16:42:32 UTC (rev 375542)
@@ -2,7 +2,7 @@
 
 pkgname=polkit
 pkgver=0.116
-pkgrel=3
+pkgrel=4
 pkgdesc="Application development toolkit for controlling system-wide 
privileges"
 arch=(x86_64)
 license=(LGPL)


[arch-commits] Commit in polkit/trunk (PKGBUILD)

2019-10-03 Thread Jan Steffens via arch-commits
Date: Friday, October 4, 2019 @ 00:42:04
  Author: heftig
Revision: 363746

0.116-3: move config

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-10-04 00:39:41 UTC (rev 363745)
+++ PKGBUILD2019-10-04 00:42:04 UTC (rev 363746)
@@ -2,7 +2,7 @@
 
 pkgname=polkit
 pkgver=0.116
-pkgrel=2
+pkgrel=3
 pkgdesc="Application development toolkit for controlling system-wide 
privileges"
 arch=(x86_64)
 license=(LGPL)
@@ -43,7 +43,9 @@
 
 package() {
   cd $pkgname
-  make DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" install \
+  dbusconfdir=/usr/share/dbus-1/system.d \
+  rulesdir=/usr/share/polkit-1/rules.d
 
   install -d -o root -g 102 -m 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
 


[arch-commits] Commit in polkit/trunk (PKGBUILD)

2019-05-30 Thread Jan Steffens via arch-commits
Date: Thursday, May 30, 2019 @ 14:48:27
  Author: heftig
Revision: 354533

0.116-2: fix docs

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-05-30 14:45:56 UTC (rev 354532)
+++ PKGBUILD2019-05-30 14:48:27 UTC (rev 354533)
@@ -2,7 +2,7 @@
 
 pkgname=polkit
 pkgver=0.116
-pkgrel=1
+pkgrel=2
 pkgdesc="Application development toolkit for controlling system-wide 
privileges"
 arch=(x86_64)
 license=(LGPL)


[arch-commits] Commit in polkit/trunk (PKGBUILD)

2019-05-16 Thread Antonio Rojas via arch-commits
Date: Thursday, May 16, 2019 @ 15:26:54
  Author: arojas
Revision: 353463

Update to 0.116

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-05-16 13:49:44 UTC (rev 353462)
+++ PKGBUILD2019-05-16 15:26:54 UTC (rev 353463)
@@ -1,15 +1,15 @@
 # Maintainer: Jan de Groot 
 
 pkgname=polkit
-pkgver=0.115+24+g5230646
+pkgver=0.116
 pkgrel=1
 pkgdesc="Application development toolkit for controlling system-wide 
privileges"
 arch=(x86_64)
 license=(LGPL)
 url="https://www.freedesktop.org/wiki/Software/polkit/;
-depends=(glib2 pam expat systemd js52)
+depends=(glib2 pam expat systemd js60)
 makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive)
-_commit=5230646dc6876ef6e27f57926b1bad348f636147  # master
+_commit=941e9329f8d3d43ace8335d206365b212824e686  # tags/0.116
 source=("git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit;)
 sha256sums=('SKIP')
 


[arch-commits] Commit in polkit/trunk (PKGBUILD)

2018-12-13 Thread Jan Steffens via arch-commits
Date: Thursday, December 13, 2018 @ 09:23:25
  Author: heftig
Revision: 341630

0.115+24+g5230646-1

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-12-13 02:56:28 UTC (rev 341629)
+++ PKGBUILD2018-12-13 09:23:25 UTC (rev 341630)
@@ -1,7 +1,7 @@
 # Maintainer: Jan de Groot 
 
 pkgname=polkit
-pkgver=0.115+3+g8638ec5
+pkgver=0.115+24+g5230646
 pkgrel=1
 pkgdesc="Application development toolkit for controlling system-wide 
privileges"
 arch=(x86_64)
@@ -9,8 +9,8 @@
 url="https://www.freedesktop.org/wiki/Software/polkit/;
 depends=(glib2 pam expat systemd js52)
 makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive)
-_commit=8638ec5cd534dcc616b68e5b0744c493c0c71dc9  # master~2
-source=("git+https://anongit.freedesktop.org/git/polkit#commit=$_commit;)
+_commit=5230646dc6876ef6e27f57926b1bad348f636147  # master
+source=("git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit;)
 sha256sums=('SKIP')
 
 pkgver() {
@@ -20,7 +20,6 @@
 
 prepare() {
   cd $pkgname
-  git cherry-pick -n 373705b35e7f6c7dc83de5e0a3ce11ecd15d0409
   NOCONFIGURE=1 ./autogen.sh
 }
 


[arch-commits] Commit in polkit/trunk (PKGBUILD)

2018-08-23 Thread Jan de Groot via arch-commits
Date: Thursday, August 23, 2018 @ 22:13:03
  Author: jgc
Revision: 332893

upgpkg: polkit 0.115+3+g8638ec5-1

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-08-23 22:08:19 UTC (rev 332892)
+++ PKGBUILD2018-08-23 22:13:03 UTC (rev 332893)
@@ -2,7 +2,7 @@
 # Maintainer: Jan de Groot 
 
 pkgname=polkit
-pkgver=0.114
+pkgver=0.115+3+g8638ec5
 pkgrel=1
 pkgdesc="Application development toolkit for controlling system-wide 
privileges"
 arch=(x86_64)
@@ -10,7 +10,7 @@
 url="https://www.freedesktop.org/wiki/Software/polkit/;
 depends=(glib2 pam expat systemd js52)
 makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive)
-_commit=ed06baed179166389d536420a6fc532781d48178  # tags/0.114^0
+_commit=8638ec5cd534dcc616b68e5b0744c493c0c71dc9  # master~2
 source=("git+https://anongit.freedesktop.org/git/polkit#commit=$_commit;)
 sha256sums=('SKIP')
 


[arch-commits] Commit in polkit/trunk (PKGBUILD)

2018-04-05 Thread Jan de Groot via arch-commits
Date: Thursday, April 5, 2018 @ 22:33:25
  Author: jgc
Revision: 321000

upgpkg: polkit 0.114-1

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-04-05 22:23:51 UTC (rev 320999)
+++ PKGBUILD2018-04-05 22:33:25 UTC (rev 321000)
@@ -2,15 +2,15 @@
 # Maintainer: Jan de Groot 
 
 pkgname=polkit
-pkgver=0.113+34+g29ba7af
+pkgver=0.114
 pkgrel=1
 pkgdesc="Application development toolkit for controlling system-wide 
privileges"
 arch=(x86_64)
 license=(LGPL)
 url="https://www.freedesktop.org/wiki/Software/polkit/;
-depends=(glib2 pam expat systemd js)
+depends=(glib2 pam expat systemd js52)
 makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive)
-_commit=29ba7afba1b79a325183a71966f35926dfdf506e  # master
+_commit=ed06baed179166389d536420a6fc532781d48178  # tags/0.114^0
 source=("git+https://anongit.freedesktop.org/git/polkit#commit=$_commit;)
 sha256sums=('SKIP')
 
@@ -21,6 +21,7 @@
 
 prepare() {
   cd $pkgname
+  git cherry-pick -n 373705b35e7f6c7dc83de5e0a3ce11ecd15d0409
   NOCONFIGURE=1 ./autogen.sh
 }
 


[arch-commits] Commit in polkit/trunk (PKGBUILD)

2017-12-16 Thread Jan Steffens via arch-commits
Date: Saturday, December 16, 2017 @ 21:46:39
  Author: heftig
Revision: 312977

Simplify chown/chmod to install

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-12-16 21:33:53 UTC (rev 312976)
+++ PKGBUILD2017-12-16 21:46:39 UTC (rev 312977)
@@ -46,8 +46,7 @@
   cd $pkgname
   make DESTDIR="$pkgdir" install
 
-  chown root:102 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
-  chmod 750  "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
+  install -d -o root -g 102 -m 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
 
   install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" <

[arch-commits] Commit in polkit/trunk (PKGBUILD polkit.install)

2017-12-15 Thread Jan Steffens via arch-commits
Date: Saturday, December 16, 2017 @ 02:30:13
  Author: heftig
Revision: 312953

0.113+34+g29ba7af-1

Modified:
  polkit/trunk/PKGBUILD
Deleted:
  polkit/trunk/polkit.install

+
 PKGBUILD   |   12 
 polkit.install |   18 --
 2 files changed, 8 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-12-16 02:20:17 UTC (rev 312952)
+++ PKGBUILD2017-12-16 02:30:13 UTC (rev 312953)
@@ -2,7 +2,7 @@
 # Maintainer: Jan de Groot 
 
 pkgname=polkit
-pkgver=0.113+29+g3272a98
+pkgver=0.113+34+g29ba7af
 pkgrel=1
 pkgdesc="Application development toolkit for controlling system-wide 
privileges"
 arch=(x86_64)
@@ -10,8 +10,7 @@
 url="https://www.freedesktop.org/wiki/Software/polkit/;
 depends=(glib2 pam expat systemd js)
 makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive)
-install=polkit.install
-_commit=3272a988655c3236b55bad70e9a3af20857f384b  # master
+_commit=29ba7afba1b79a325183a71966f35926dfdf506e  # master
 source=("git+https://anongit.freedesktop.org/git/polkit#commit=$_commit;)
 sha256sums=('SKIP')
 
@@ -29,7 +28,7 @@
   cd $pkgname
 
   ./configure --prefix=/usr --sysconfdir=/etc \
-  --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
+  --localstatedir=/var --libexecdir=/usr/lib \
   --enable-libsystemd-login=yes --disable-static \
   --enable-gtk-doc --with-os-type=redhat
 
@@ -49,6 +48,11 @@
 
   chown root:102 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
   chmod 750  "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
+
+  install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" /dev/null || useradd -c 'Policy Kit Daemon' -u 102 -g 
polkitd -G proc -d '/' -s /usr/bin/nologin polkitd
-  passwd -l polkitd &>/dev/null
-}
-
-post_upgrade() {
-  post_install
-
-  if (( $(vercmp $2 0.113-2) < 0 )); then
-usermod -aG proc -s /usr/bin/nologin polkitd
-  fi
-
-  if (( $(vercmp $2 0.113-4) < 0 )); then
-chown root:102 /{etc,usr/share}/polkit-1/rules.d
-chmod 750  /{etc,usr/share}/polkit-1/rules.d
-  fi
-}


[arch-commits] Commit in polkit/trunk (PKGBUILD)

2017-01-26 Thread Jan Steffens
Date: Friday, January 27, 2017 @ 07:36:03
  Author: heftig
Revision: 287577

https url

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-01-27 07:31:36 UTC (rev 287576)
+++ PKGBUILD2017-01-27 07:36:03 UTC (rev 287577)
@@ -7,13 +7,13 @@
 pkgdesc="Application development toolkit for controlling system-wide 
privileges"
 arch=(i686 x86_64)
 license=(LGPL)
-url="http://www.freedesktop.org/wiki/Software/polkit;
+url="https://www.freedesktop.org/wiki/Software/polkit/;
 depends=(glib2 pam expat systemd js)
 makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive)
 install=polkit.install
 _commit=3272a988655c3236b55bad70e9a3af20857f384b  # master
 source=("git+https://anongit.freedesktop.org/git/polkit#commit=$_commit;)
-md5sums=('SKIP')
+sha256sums=('SKIP')
 
 pkgver() {
   cd $pkgname
@@ -50,3 +50,5 @@
   chown root:102 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
   chmod 750  "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
 }
+
+# vim: ts=2 sw=2 et:


[arch-commits] Commit in polkit/trunk (PKGBUILD)

2017-01-20 Thread Jan de Groot
Date: Friday, January 20, 2017 @ 12:48:01
  Author: jgc
Revision: 287012

upgpkg: polkit 0.113+29+g3272a98-1

Update to git snapshot to get rid of js17

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |   32 +++-
 1 file changed, 23 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-01-20 09:43:13 UTC (rev 287011)
+++ PKGBUILD2017-01-20 12:48:01 UTC (rev 287012)
@@ -2,35 +2,49 @@
 # Maintainer: Jan de Groot 
 
 pkgname=polkit
-pkgver=0.113
-pkgrel=4
+pkgver=0.113+29+g3272a98
+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 systemd js17)
-makedepends=(intltool gtk-doc gobject-introspection git)
+depends=(glib2 pam expat systemd js)
+makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive)
 install=polkit.install
-source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz)
-md5sums=('4b6c9e4f897dcfe03b2c34198edf')
+_commit=3272a988655c3236b55bad70e9a3af20857f384b  # master
+source=("git+https://anongit.freedesktop.org/git/polkit#commit=$_commit;)
+md5sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname
 
   ./configure --prefix=/usr --sysconfdir=/etc \
   --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
   --enable-libsystemd-login=yes --disable-static \
   --enable-gtk-doc --with-os-type=redhat
+
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
   make
 }
 
 check() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make -k check || :
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR="$pkgdir" install
 
   chown root:102 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d


[arch-commits] Commit in polkit/trunk (PKGBUILD)

2015-10-25 Thread Jan Steffens
Date: Sunday, October 25, 2015 @ 19:23:13
  Author: heftig
Revision: 249753

FS#46861 rules.d permissions

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-10-25 14:55:39 UTC (rev 249752)
+++ PKGBUILD2015-10-25 18:23:13 UTC (rev 249753)
@@ -3,7 +3,7 @@
 
 pkgname=polkit
 pkgver=0.113
-pkgrel=2
+pkgrel=3
 pkgdesc="Application development toolkit for controlling system-wide 
privileges"
 arch=(i686 x86_64)
 license=(LGPL)
@@ -33,6 +33,6 @@
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
 
-  chown 102 "$pkgdir/etc/polkit-1/rules.d"
-  chown 102 "$pkgdir/usr/share/polkit-1/rules.d"
+  chown root:102 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
+  chmod 750  "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
 }


[arch-commits] Commit in polkit/trunk (PKGBUILD polkit.install)

2015-10-25 Thread Jan Steffens
Date: Sunday, October 25, 2015 @ 19:39:57
  Author: heftig
Revision: 249755

Fix up perms post_upgrade

Modified:
  polkit/trunk/PKGBUILD
  polkit/trunk/polkit.install

+
 PKGBUILD   |2 +-
 polkit.install |5 +
 2 files changed, 6 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-10-25 18:24:01 UTC (rev 249754)
+++ PKGBUILD2015-10-25 18:39:57 UTC (rev 249755)
@@ -3,7 +3,7 @@
 
 pkgname=polkit
 pkgver=0.113
-pkgrel=3
+pkgrel=4
 pkgdesc="Application development toolkit for controlling system-wide 
privileges"
 arch=(i686 x86_64)
 license=(LGPL)

Modified: polkit.install
===
--- polkit.install  2015-10-25 18:24:01 UTC (rev 249754)
+++ polkit.install  2015-10-25 18:39:57 UTC (rev 249755)
@@ -10,4 +10,9 @@
   if (( $(vercmp $2 0.113-2) < 0 )); then
 usermod -aG proc -s /usr/bin/nologin polkitd
   fi
+
+  if (( $(vercmp $2 0.113-4) < 0 )); then
+chown root:102 /{etc,usr/share}/polkit-1/rules.d
+chmod 750  /{etc,usr/share}/polkit-1/rules.d
+  fi
 }


[arch-commits] Commit in polkit/trunk (PKGBUILD polkit.pam)

2015-08-11 Thread Jan Steffens
Date: Wednesday, August 12, 2015 @ 02:36:04
  Author: heftig
Revision: 243185

0.113

Modified:
  polkit/trunk/PKGBUILD
Deleted:
  polkit/trunk/polkit.pam

+
 PKGBUILD   |   25 -
 polkit.pam |7 ---
 2 files changed, 12 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-08-11 22:59:54 UTC (rev 243184)
+++ PKGBUILD2015-08-12 00:36:04 UTC (rev 243185)
@@ -2,8 +2,8 @@
 # Maintainer: Jan de Groot j...@archlinux.org
 
 pkgname=polkit
-pkgver=0.112
-pkgrel=4
+pkgver=0.113
+pkgrel=1
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
 license=(LGPL)
@@ -11,29 +11,28 @@
 depends=(glib2 pam expat systemd js17)
 makedepends=(intltool gtk-doc gobject-introspection git)
 install=polkit.install
-source=(git://anongit.freedesktop.org/polkit#commit=fb5076b7c05d01a532d593a4079a29cf2d63a228
-polkit.pam)
-md5sums=('SKIP'
- '6564f95878297b954f0572bc1610dd15')
+source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz)
+md5sums=('4b6c9e4f897dcfe03b2c34198edf')
 
 build() {
-  cd $pkgname
+  cd $pkgname-$pkgver
 
-  NOCONFIGURE=1 ./autogen.sh
-
   ./configure --prefix=/usr --sysconfdir=/etc \
   --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
   --enable-libsystemd-login=yes --disable-static \
-  --enable-gtk-doc
+  --enable-gtk-doc --with-os-type=redhat
   make
 }
 
+check() {
+  cd $pkgname-$pkgver
+  make -k check || :
+}
+
 package() {
-  cd $pkgname
+  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: polkit.pam
===
--- polkit.pam  2015-08-11 22:59:54 UTC (rev 243184)
+++ polkit.pam  2015-08-12 00:36:04 UTC (rev 243185)
@@ -1,7 +0,0 @@
-authrequisite   pam_nologin.so
-authrequiredpam_env.so
-authrequiredpam_unix.so
-account requiredpam_unix.so
-session requiredpam_limits.so
-session requiredpam_unix.so
-passwordrequiredpam_unix.so


[arch-commits] Commit in polkit/trunk (PKGBUILD polkit.install)

2015-08-11 Thread Jan Steffens
Date: Wednesday, August 12, 2015 @ 06:45:04
  Author: heftig
Revision: 243187

FS#43930 proc group

Modified:
  polkit/trunk/PKGBUILD
  polkit/trunk/polkit.install

+
 PKGBUILD   |2 +-
 polkit.install |   12 
 2 files changed, 9 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-08-12 00:36:59 UTC (rev 243186)
+++ PKGBUILD2015-08-12 04:45:04 UTC (rev 243187)
@@ -3,7 +3,7 @@
 
 pkgname=polkit
 pkgver=0.113
-pkgrel=1
+pkgrel=2
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
 license=(LGPL)

Modified: polkit.install
===
--- polkit.install  2015-08-12 00:36:59 UTC (rev 243186)
+++ polkit.install  2015-08-12 04:45:04 UTC (rev 243187)
@@ -1,9 +1,13 @@
 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
+  getent group polkitd /dev/null || groupadd -g 102 polkitd
+  getent passwd polkitd /dev/null || useradd -c 'Policy Kit Daemon' -u 102 -g 
polkitd -G proc -d '/' -s /usr/bin/nologin polkitd
+  passwd -l polkitd /dev/null
 }
 
 post_upgrade() {
-   post_install
+  post_install
+
+  if (( $(vercmp $2 0.113-2)  0 )); then
+usermod -aG proc -s /usr/bin/nologin polkitd
+  fi
 }


[arch-commits] Commit in polkit/trunk (PKGBUILD)

2015-06-24 Thread Jan de Groot
Date: Thursday, June 25, 2015 @ 06:58:37
  Author: jgc
Revision: 241267

upgpkg: polkit 0.112-4

Update to latest git snapshot, fixes some CVEs

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-06-25 04:53:45 UTC (rev 241266)
+++ PKGBUILD2015-06-25 04:58:37 UTC (rev 241267)
@@ -3,7 +3,7 @@
 
 pkgname=polkit
 pkgver=0.112
-pkgrel=3
+pkgrel=4
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
 license=(LGPL)
@@ -11,7 +11,7 @@
 depends=(glib2 pam expat systemd js17)
 makedepends=(intltool gtk-doc gobject-introspection git)
 install=polkit.install
-source=(git://anongit.freedesktop.org/polkit#commit=f4d71e0de885010494b8b0b8d62ca910011d7544
+source=(git://anongit.freedesktop.org/polkit#commit=fb5076b7c05d01a532d593a4079a29cf2d63a228
 polkit.pam)
 md5sums=('SKIP'
  '6564f95878297b954f0572bc1610dd15')


[arch-commits] Commit in polkit/trunk (PKGBUILD polkit.install)

2015-06-02 Thread Jan de Groot
Date: Tuesday, June 2, 2015 @ 08:08:16
  Author: jgc
Revision: 23

upgpkg: polkit 0.112-3

Update to git snapshot, fixes some bugs and memleaks. Do not delete user 
account on post_remove

Modified:
  polkit/trunk/PKGBUILD
  polkit/trunk/polkit.install

+
 PKGBUILD   |   16 +---
 polkit.install |9 -
 2 files changed, 9 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-06-01 20:58:11 UTC (rev 239998)
+++ PKGBUILD2015-06-02 06:08:16 UTC (rev 23)
@@ -3,20 +3,24 @@
 
 pkgname=polkit
 pkgver=0.112
-pkgrel=2
+pkgrel=3
 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 systemd js17)
-makedepends=(intltool gtk-doc gobject-introspection)
+makedepends=(intltool gtk-doc gobject-introspection git)
 install=polkit.install
-source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz
+source=(git://anongit.freedesktop.org/polkit#commit=f4d71e0de885010494b8b0b8d62ca910011d7544
 polkit.pam)
+md5sums=('SKIP'
+ '6564f95878297b954f0572bc1610dd15')
 
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname
 
+  NOCONFIGURE=1 ./autogen.sh
+
   ./configure --prefix=/usr --sysconfdir=/etc \
   --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
   --enable-libsystemd-login=yes --disable-static \
@@ -25,7 +29,7 @@
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR=$pkgdir install
 
   chown 102 $pkgdir/etc/polkit-1/rules.d
@@ -33,5 +37,3 @@
 
   install -m644 $srcdir/polkit.pam $pkgdir/etc/pam.d/polkit-1
 }
-md5sums=('b0f2fa00a55f47c6a5d88e9b73f80127'
- '6564f95878297b954f0572bc1610dd15')

Modified: polkit.install
===
--- polkit.install  2015-06-01 20:58:11 UTC (rev 239998)
+++ polkit.install  2015-06-02 06:08:16 UTC (rev 23)
@@ -7,12 +7,3 @@
 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
-}


[arch-commits] Commit in polkit/trunk (PKGBUILD)

2014-02-25 Thread Jan de Groot
Date: Tuesday, February 25, 2014 @ 15:43:20
  Author: jgc
Revision: 206413

upgpkg: polkit 0.112-2

Depend on js17

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-02-25 14:34:44 UTC (rev 206412)
+++ PKGBUILD2014-02-25 14:43:20 UTC (rev 206413)
@@ -3,12 +3,12 @@
 
 pkgname=polkit
 pkgver=0.112
-pkgrel=1
+pkgrel=2
 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 systemd js)
+depends=(glib2 pam expat systemd js17)
 makedepends=(intltool gtk-doc gobject-introspection)
 install=polkit.install
 
source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz



[arch-commits] Commit in polkit/trunk (PKGBUILD)

2013-12-29 Thread Tom Gundersen
Date: Sunday, December 29, 2013 @ 15:11:46
  Author: tomegun
Revision: 202964

depend on systemd rather than libsystemd

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-12-29 14:10:28 UTC (rev 202963)
+++ PKGBUILD2013-12-29 14:11:46 UTC (rev 202964)
@@ -8,7 +8,7 @@
 arch=(i686 x86_64)
 license=(LGPL)
 url=http://www.freedesktop.org/wiki/Software/polkit;
-depends=(glib2 pam expat libsystemd js)
+depends=(glib2 pam expat systemd js)
 makedepends=(intltool gtk-doc gobject-introspection)
 install=polkit.install
 
source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz



[arch-commits] Commit in polkit/trunk (PKGBUILD)

2013-09-18 Thread Tom Gundersen
Date: Wednesday, September 18, 2013 @ 19:57:05
  Author: tomegun
Revision: 194577

upgpkg: polkit 0.112-1

upstream release

This adds compile-time warnings when using an exploitable API, other packages 
may need to be updated to avoid the bug.

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-09-18 17:22:39 UTC (rev 194576)
+++ PKGBUILD2013-09-18 17:57:05 UTC (rev 194577)
@@ -2,7 +2,7 @@
 # Maintainer: Jan de Groot j...@archlinux.org
 
 pkgname=polkit
-pkgver=0.111
+pkgver=0.112
 pkgrel=1
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
@@ -34,5 +34,5 @@
 
   install -m644 $srcdir/polkit.pam $pkgdir/etc/pam.d/polkit-1
 }
-md5sums=('81b116edf986d8e13502929a171f4e0d'
+md5sums=('b0f2fa00a55f47c6a5d88e9b73f80127'
  '6564f95878297b954f0572bc1610dd15')



[arch-commits] Commit in polkit/trunk (PKGBUILD)

2013-06-14 Thread Tom Gundersen
Date: Friday, June 14, 2013 @ 21:52:10
  Author: tomegun
Revision: 188475

upgpkg: polkit 0.111-1

upstream release

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |   14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-06-14 19:47:56 UTC (rev 188474)
+++ PKGBUILD2013-06-14 19:52:10 UTC (rev 188475)
@@ -2,28 +2,26 @@
 # Maintainer: Jan de Groot j...@archlinux.org
 
 pkgname=polkit
-pkgver=0.110
-pkgrel=2
+pkgver=0.111
+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 js185)
+depends=(glib2 pam expat libsystemd js)
 makedepends=(intltool gtk-doc gobject-introspection)
 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
+  --enable-libsystemd-login=yes --disable-static \
+  --enable-gtk-doc
   make
 }
 
@@ -36,3 +34,5 @@
 
   install -m644 $srcdir/polkit.pam $pkgdir/etc/pam.d/polkit-1
 }
+md5sums=('81b116edf986d8e13502929a171f4e0d'
+ '6564f95878297b954f0572bc1610dd15')



[arch-commits] Commit in polkit/trunk (PKGBUILD)

2013-04-02 Thread Jan Steffens
Date: Tuesday, April 2, 2013 @ 23:27:53
  Author: heftig
Revision: 181265

js185 rebuild

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |9 -
 1 file changed, 4 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-04-02 21:27:42 UTC (rev 181264)
+++ PKGBUILD2013-04-02 21:27:53 UTC (rev 181265)
@@ -3,14 +3,13 @@
 
 pkgname=polkit
 pkgver=0.110
-pkgrel=1
+pkgrel=2
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
-license=('LGPL')
+license=(LGPL)
 url=http://www.freedesktop.org/wiki/Software/polkit;
-depends=('glib2' 'pam' 'expat' 'libsystemd' 'js')
-makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
-replaces=('policykit')
+depends=(glib2 pam expat libsystemd js185)
+makedepends=(intltool gtk-doc gobject-introspection)
 options=('!libtool')
 install=polkit.install
 
source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz



[arch-commits] Commit in polkit/trunk (PKGBUILD fix-xauthority.patch)

2013-03-18 Thread Jan de Groot
Date: Monday, March 18, 2013 @ 19:19:23
  Author: jgc
Revision: 180234

Remove obsolete patch
upgpkg: polkit 0.110-1

Modified:
  polkit/trunk/PKGBUILD
Deleted:
  polkit/trunk/fix-xauthority.patch

--+
 PKGBUILD |   12 +++---
 fix-xauthority.patch |   58 -
 2 files changed, 4 insertions(+), 66 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-03-18 17:44:06 UTC (rev 180233)
+++ PKGBUILD2013-03-18 18:19:23 UTC (rev 180234)
@@ -2,7 +2,7 @@
 # Maintainer: Jan de Groot j...@archlinux.org
 
 pkgname=polkit
-pkgver=0.109
+pkgver=0.110
 pkgrel=1
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
@@ -14,17 +14,13 @@
 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')
+polkit.pam)
+md5sums=('06e0d3b72e566ac277fc35c8206d2a28'
+ '6564f95878297b954f0572bc1610dd15')
 
 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 \

Deleted: fix-xauthority.patch
===
--- fix-xauthority.patch2013-03-18 17:44:06 UTC (rev 180233)
+++ fix-xauthority.patch2013-03-18 18:19:23 UTC (rev 180234)
@@ -1,58 +0,0 @@
-From d6acecdd0ebb42e28ff28e04e0207cb01fa20910 Mon Sep 17 00:00:00 2001
-From: David Zeuthen zeut...@gmail.com
-Date: Wed, 19 Dec 2012 19:28:29 +
-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 lekenst...@gmail.com.
-
-https://bugs.freedesktop.org/show_bug.cgi?id=51623
-
-Signed-off-by: David Zeuthen zeut...@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



[arch-commits] Commit in polkit/trunk (PKGBUILD)

2012-11-25 Thread Dave Reisner
Date: Sunday, November 25, 2012 @ 22:59:42
  Author: dreisner
Revision: 172003

update project URL

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-11-26 02:42:00 UTC (rev 172002)
+++ PKGBUILD2012-11-26 03:59:42 UTC (rev 172003)
@@ -7,7 +7,7 @@
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
 license=('LGPL')
-url=http://www.freedesktop.org/wiki/Software/PolicyKit;
+url=http://www.freedesktop.org/wiki/Software/polkit;
 depends=('glib2' 'pam' 'expat' 'libsystemd' 'js')
 makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
 replaces=('policykit')



[arch-commits] Commit in polkit/trunk (PKGBUILD fix-empty-wheel.patch)

2012-09-29 Thread Jan Steffens
Date: Saturday, September 29, 2012 @ 08:12:01
  Author: heftig
Revision: 167251

FS#31717

Added:
  polkit/trunk/fix-empty-wheel.patch
Modified:
  polkit/trunk/PKGBUILD

---+
 PKGBUILD  |   10 +++---
 fix-empty-wheel.patch |   47 +++
 2 files changed, 54 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-09-29 11:01:30 UTC (rev 167250)
+++ PKGBUILD2012-09-29 12:12:01 UTC (rev 167251)
@@ -3,7 +3,7 @@
 
 pkgname=polkit
 pkgver=0.107
-pkgrel=3
+pkgrel=4
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
 license=('LGPL')
@@ -14,13 +14,17 @@
 options=('!libtool')
 install=polkit.install
 
source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz
-polkit.pam)
+polkit.pam fix-empty-wheel.patch)
 md5sums=('0e4f9c53f43fd1b25ac3f0d2e09b2ae1'
- '6564f95878297b954f0572bc1610dd15')
+ '6564f95878297b954f0572bc1610dd15'
+ 'c99ab2a7919ad0b69fde4804c043b07f')
 
 build() {
   cd $pkgname-$pkgver
 
+  # https://bugs.archlinux.org/task/31717
+  patch -Np1 -i ../fix-empty-wheel.patch
+
   ./configure --prefix=/usr --sysconfdir=/etc \
   --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
   --with-systemdsystemunitdir=/usr/lib/systemd/system \

Added: fix-empty-wheel.patch
===
--- fix-empty-wheel.patch   (rev 0)
+++ fix-empty-wheel.patch   2012-09-29 12:12:01 UTC (rev 167251)
@@ -0,0 +1,47 @@
+From fa04223240d46641b0773dbf9f7d72f529046bea Mon Sep 17 00:00:00 2001
+From: David Zeuthen zeut...@gmail.com
+Date: Tue, 18 Sep 2012 18:47:06 +
+Subject: Fall back to authenticating as uid 0 if the list of admin identities 
is empty
+
+For example, this can happen if the wheel group has no members. This
+was reported in Red Hat bug 834494, see
+
+ https://bugzilla.redhat.com/show_bug.cgi?id=834494
+
+Signed-off-by: David Zeuthen zeut...@gmail.com
+---
+diff --git a/src/polkitbackend/polkitbackendinteractiveauthority.c 
b/src/polkitbackend/polkitbackendinteractiveauthority.c
+index 1d4a555..3bd2f0b 100644
+--- a/src/polkitbackend/polkitbackendinteractiveauthority.c
 b/src/polkitbackend/polkitbackendinteractiveauthority.c
+@@ -1293,15 +1293,11 @@ 
polkit_backend_interactive_authority_get_admin_identities (PolkitBackendInteract
+PolkitDetails  
   *details)
+ {
+   PolkitBackendInteractiveAuthorityClass *klass;
+-  GList *ret;
++  GList *ret = NULL;
+ 
+   klass = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_CLASS (authority);
+ 
+-  if (klass-get_admin_identities == NULL)
+-{
+-  ret = g_list_prepend (NULL, polkit_unix_user_new (0));
+-}
+-  else
++  if (klass-get_admin_identities != NULL)
+ {
+   ret = klass-get_admin_identities (authority,
+  caller,
+@@ -2257,6 +2253,10 @@ authentication_agent_initiate_challenge 
(AuthenticationAgent *agent,
+ }
+ }
+ 
++  /* Fall back to uid 0 if no users are available (rhbz #834494) */
++  if (user_identities == NULL)
++user_identities = g_list_prepend (NULL, polkit_unix_user_new (0));
++
+   session = authentication_session_new (agent,
+ cookie,
+ subject,
+--
+cgit v0.9.0.2-2-gbebe



[arch-commits] Commit in polkit/trunk (PKGBUILD)

2012-09-15 Thread Jan Steffens
Date: Saturday, September 15, 2012 @ 20:08:05
  Author: heftig
Revision: 166699

Rebuild *with* patch, for [testing]

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |   17 -
 1 file changed, 12 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-09-15 23:58:57 UTC (rev 166698)
+++ PKGBUILD2012-09-16 00:08:05 UTC (rev 166699)
@@ -3,7 +3,7 @@
 
 pkgname=polkit
 pkgver=0.107
-pkgrel=1
+pkgrel=2
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
 license=('LGPL')
@@ -13,15 +13,22 @@
 replaces=('policykit')
 options=('!libtool')
 install=polkit.install
-source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz
-polkit.pam)
+source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz;
+'polkit.pam'
+   'logind+ConsoleKit.patch'
+   'autogen.sh')
 md5sums=('0e4f9c53f43fd1b25ac3f0d2e09b2ae1'
- '6564f95878297b954f0572bc1610dd15')
+ '6564f95878297b954f0572bc1610dd15'
+ 'fb71d43442dbf24f8760198a9a79c5e7'
+ '38fe3119284e842e66b330b0f2ba230d')
 
 build() {
   cd $pkgname-$pkgver
 
-  ./configure --prefix=/usr --sysconfdir=/etc \
+  patch -p1 ../logind+ConsoleKit.patch
+
+  cp ../autogen.sh .
+  ./autogen.sh --prefix=/usr --sysconfdir=/etc \
   --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
   --with-systemdsystemunitdir=/usr/lib/systemd/system \
   --disable-static --enable-gtk-doc



[arch-commits] Commit in polkit/trunk (PKGBUILD)

2012-09-15 Thread Jan Steffens
Date: Saturday, September 15, 2012 @ 20:12:19
  Author: heftig
Revision: 166701

Rebuild *without* patch, for [gnome-unstable]

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |   17 +
 1 file changed, 5 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-09-16 00:09:31 UTC (rev 166700)
+++ PKGBUILD2012-09-16 00:12:19 UTC (rev 166701)
@@ -3,7 +3,7 @@
 
 pkgname=polkit
 pkgver=0.107
-pkgrel=2
+pkgrel=3
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
 license=('LGPL')
@@ -13,22 +13,15 @@
 replaces=('policykit')
 options=('!libtool')
 install=polkit.install
-source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz;
-'polkit.pam'
-   'logind+ConsoleKit.patch'
-   'autogen.sh')
+source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz
+polkit.pam)
 md5sums=('0e4f9c53f43fd1b25ac3f0d2e09b2ae1'
- '6564f95878297b954f0572bc1610dd15'
- 'fb71d43442dbf24f8760198a9a79c5e7'
- '38fe3119284e842e66b330b0f2ba230d')
+ '6564f95878297b954f0572bc1610dd15')
 
 build() {
   cd $pkgname-$pkgver
 
-  patch -p1 ../logind+ConsoleKit.patch
-
-  cp ../autogen.sh .
-  ./autogen.sh --prefix=/usr --sysconfdir=/etc \
+  ./configure --prefix=/usr --sysconfdir=/etc \
   --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
   --with-systemdsystemunitdir=/usr/lib/systemd/system \
   --disable-static --enable-gtk-doc



[arch-commits] Commit in polkit/trunk (PKGBUILD)

2012-09-06 Thread Jan de Groot
Date: Thursday, September 6, 2012 @ 17:43:09
  Author: jgc
Revision: 166358

upgpkg: polkit 0.107-1

Update to 0.107, use systemd, drop consolekit support

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |   17 +
 1 file changed, 5 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-09-06 21:31:23 UTC (rev 166357)
+++ PKGBUILD2012-09-06 21:43:09 UTC (rev 166358)
@@ -13,18 +13,15 @@
 replaces=('policykit')
 options=('!libtool')
 install=polkit.install
-source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz;
-'polkit.pam'
-   'logind+ConsoleKit.patch'
-   'autogen.sh')
+source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz
+polkit.pam)
+md5sums=('0e4f9c53f43fd1b25ac3f0d2e09b2ae1'
+ '6564f95878297b954f0572bc1610dd15')
 
 build() {
   cd $pkgname-$pkgver
 
-  patch -p1 ../logind+ConsoleKit.patch
-
-  cp ../autogen.sh .
-  ./autogen.sh --prefix=/usr --sysconfdir=/etc \
+  ./configure --prefix=/usr --sysconfdir=/etc \
   --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
   --with-systemdsystemunitdir=/usr/lib/systemd/system \
   --disable-static --enable-gtk-doc
@@ -40,7 +37,3 @@
 
   install -m644 $srcdir/polkit.pam $pkgdir/etc/pam.d/polkit-1
 }
-md5sums=('0e4f9c53f43fd1b25ac3f0d2e09b2ae1'
- '6564f95878297b954f0572bc1610dd15'
- 'fb71d43442dbf24f8760198a9a79c5e7'
- '38fe3119284e842e66b330b0f2ba230d')



[arch-commits] Commit in polkit/trunk (PKGBUILD)

2012-05-13 Thread Jan de Groot
Date: Sunday, May 13, 2012 @ 17:06:08
  Author: jgc
Revision: 158971

upgpkg: polkit 0.105-1

Update to 0.105

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |8 
 1 file changed, 4 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-05-13 20:58:29 UTC (rev 158970)
+++ PKGBUILD2012-05-13 21:06:08 UTC (rev 158971)
@@ -2,8 +2,8 @@
 # Maintainer: Jan de Groot j...@archlinux.org
 
 pkgname=polkit
-pkgver=0.104
-pkgrel=2
+pkgver=0.105
+pkgrel=1
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
 license=('LGPL')
@@ -12,9 +12,9 @@
 makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
 replaces=('policykit')
 options=('!libtool')
-source=(http://hal.freedesktop.org/releases/$pkgname-$pkgver.tar.gz
+source=(http://www.freedesktop.org/software/polkit/releases/$pkgname-$pkgver.tar.gz
 polkit.pam)
-md5sums=('e380b4c6fb1e7bccf854e92edc0a8ce1'
+md5sums=('9c29e1b6c214f0bd6f1d4ee303dfaed9'
  '6564f95878297b954f0572bc1610dd15')
 
 build() {



[arch-commits] Commit in polkit/trunk (PKGBUILD)

2012-03-20 Thread Ionut Biru
Date: Tuesday, March 20, 2012 @ 09:49:05
  Author: ibiru
Revision: 153912

we don't want that

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |   11 ---
 1 file changed, 4 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-03-20 13:36:40 UTC (rev 153911)
+++ PKGBUILD2012-03-20 13:49:05 UTC (rev 153912)
@@ -8,23 +8,20 @@
 arch=(i686 x86_64)
 license=('LGPL')
 url=http://www.freedesktop.org/wiki/Software/PolicyKit;
-depends=('glib2' 'pam' 'expat' 'libsystemd')
+depends=('glib2' 'pam' 'expat')
 makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
 replaces=('policykit')
 options=('!libtool')
 source=(http://hal.freedesktop.org/releases/$pkgname-$pkgver.tar.gz
-polkit.pam systemd-fallback.patch)
+polkit.pam)
 md5sums=('e380b4c6fb1e7bccf854e92edc0a8ce1'
- '6564f95878297b954f0572bc1610dd15'
- '3c89d97a329ab0ea3a9248c68c3ab000')
+ '6564f95878297b954f0572bc1610dd15')
 
 build() {
   cd $pkgname-$pkgver
-  patch -Np1 -i ../systemd-fallback.patch
-  autoreconf -f -i
   ./configure --prefix=/usr --sysconfdir=/etc \
   --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
-  --disable-static --enable-gtk-doc --enable-systemd
+  --disable-static --enable-gtk-doc
   make
 }
 



[arch-commits] Commit in polkit/trunk (PKGBUILD systemd-fallback.patch)

2012-03-06 Thread Jan Steffens
Date: Tuesday, March 6, 2012 @ 10:16:29
  Author: heftig
Revision: 152306

Add a patch for systemd support with CK fallback

Added:
  polkit/trunk/systemd-fallback.patch
Modified:
  polkit/trunk/PKGBUILD

+
 PKGBUILD   |   19 
 systemd-fallback.patch | 1571 +++
 2 files changed, 1584 insertions(+), 6 deletions(-)

The diff is longer than the limit of 200KB.
Use svn diff -r 152305:152306 to see the changes.


[arch-commits] Commit in polkit/trunk (PKGBUILD)

2012-02-03 Thread Ionut Biru
Date: Friday, February 3, 2012 @ 11:14:57
  Author: ibiru
Revision: 148546

update to 0.104

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |   12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-02-03 16:07:37 UTC (rev 148545)
+++ PKGBUILD2012-02-03 16:14:57 UTC (rev 148546)
@@ -2,7 +2,7 @@
 # Maintainer: Jan de Groot j...@archlinux.org
 
 pkgname=polkit
-pkgver=0.103
+pkgver=0.104
 pkgrel=1
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
@@ -12,18 +12,18 @@
 makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
 replaces=('policykit')
 options=('!libtool')
-source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
+source=(http://hal.freedesktop.org/releases/$pkgname-$pkgver.tar.gz
 polkit.pam)
-md5sums=('aaacf2ef18774ea8a825a426a7cfe763'
+md5sums=('e380b4c6fb1e7bccf854e92edc0a8ce1'
  '6564f95878297b954f0572bc1610dd15')
 
 build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
+  cd $srcdir/$pkgname-$pkgver
   ./configure --prefix=/usr --sysconfdir=/etc \
   --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
   --disable-static --enable-gtk-doc
   make
-  make DESTDIR=${pkgdir} install
+  make DESTDIR=$pkgdir install
 
-  install -m644 ${srcdir}/polkit.pam ${pkgdir}/etc/pam.d/polkit-1
+  install -m644 $srcdir/polkit.pam $pkgdir/etc/pam.d/polkit-1
 }



[arch-commits] Commit in polkit/trunk (PKGBUILD)

2011-12-06 Thread Ionut Biru
Date: Tuesday, December 6, 2011 @ 12:27:35
  Author: ibiru
Revision: 144478

update to 0.103

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-12-06 14:33:19 UTC (rev 144477)
+++ PKGBUILD2011-12-06 17:27:35 UTC (rev 144478)
@@ -2,7 +2,7 @@
 # Maintainer: Jan de Groot j...@archlinux.org
 
 pkgname=polkit
-pkgver=0.102
+pkgver=0.103
 pkgrel=1
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
@@ -14,7 +14,7 @@
 options=('!libtool')
 source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
 polkit.pam)
-md5sums=('a3726bdb9728c103e58f62131e26693a'
+md5sums=('aaacf2ef18774ea8a825a426a7cfe763'
  '6564f95878297b954f0572bc1610dd15')
 
 build() {



[arch-commits] Commit in polkit/trunk (PKGBUILD)

2011-03-12 Thread Ionut Biru
Date: Saturday, March 12, 2011 @ 17:11:26
  Author: ibiru
Revision: 114364

upgpkg: polkit 0.101-1
update to 0.101

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-03-12 20:03:12 UTC (rev 114363)
+++ PKGBUILD2011-03-12 22:11:26 UTC (rev 114364)
@@ -2,7 +2,7 @@
 # Maintainer: Jan de Groot j...@archlinux.org
 
 pkgname=polkit
-pkgver=0.100
+pkgver=0.101
 pkgrel=1
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
@@ -14,7 +14,7 @@
 options=('!libtool')
 source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
 polkit.pam)
-md5sums=('9f957bf046ff5a32b0fa0ffe1e35c09c'
+md5sums=('f925ac93aba3c072977370c1e27feb7f'
  '6564f95878297b954f0572bc1610dd15')
 
 build() {



[arch-commits] Commit in polkit/trunk (PKGBUILD)

2011-02-27 Thread Ionut Biru
Date: Sunday, February 27, 2011 @ 15:11:29
  Author: ibiru
Revision: 111598

upgpkg: polkit 0.100-1
update to 0.100

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |8 
 1 file changed, 4 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-02-27 19:59:16 UTC (rev 111597)
+++ PKGBUILD2011-02-27 20:11:29 UTC (rev 111598)
@@ -2,19 +2,19 @@
 # Maintainer: Jan de Groot j...@archlinux.org
 
 pkgname=polkit
-pkgver=0.99
+pkgver=0.100
 pkgrel=1
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
 license=('LGPL')
 url=http://www.freedesktop.org/wiki/Software/PolicyKit;
-depends=('glib2=2.26.0' 'pam' 'expat=2.0.1')
-makedepends=('intltool=0.41.1' 'gtk-doc=1.15' 'gobject-introspection=0.9.5')
+depends=('glib2' 'pam' 'expat')
+makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
 replaces=('policykit')
 options=('!libtool')
 source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
 polkit.pam)
-md5sums=('fcc4d7b19c08ad54d3ce0eae0ab12398'
+md5sums=('9f957bf046ff5a32b0fa0ffe1e35c09c'
  '6564f95878297b954f0572bc1610dd15')
 
 build() {



[arch-commits] Commit in polkit/trunk (PKGBUILD polkit-git-fixes.patch)

2010-12-07 Thread Jan de Groot
Date: Tuesday, December 7, 2010 @ 04:10:30
  Author: jgc
Revision: 102286

upgpkg: polkit 0.99-1
Update to 0.99

Modified:
  polkit/trunk/PKGBUILD
Deleted:
  polkit/trunk/polkit-git-fixes.patch

+
 PKGBUILD   |   11 +-
 polkit-git-fixes.patch |   85 ---
 2 files changed, 3 insertions(+), 93 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-12-07 09:04:36 UTC (rev 102285)
+++ PKGBUILD2010-12-07 09:10:30 UTC (rev 102286)
@@ -2,28 +2,23 @@
 # Maintainer: Jan de Groot j...@archlinux.org
 
 pkgname=polkit
-pkgver=0.98
+pkgver=0.99
 pkgrel=1
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
 license=('LGPL')
 url=http://www.freedesktop.org/wiki/Software/PolicyKit;
-depends=('glib2=2.25.15' 'pam' 'expat=2.0.1')
+depends=('glib2=2.26.0' 'pam' 'expat=2.0.1')
 makedepends=('intltool=0.41.1' 'gtk-doc=1.15' 'gobject-introspection=0.9.5')
 replaces=('policykit')
 options=('!libtool')
 source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
-polkit-git-fixes.patch
 polkit.pam)
-md5sums=('96e583a1177ba5436f034a2fee55f5fa'
- 'c5aaa13d6eeda5cec224b273acba9420'
+md5sums=('fcc4d7b19c08ad54d3ce0eae0ab12398'
  '6564f95878297b954f0572bc1610dd15')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
-  patch -Np1 -i ${srcdir}/polkit-git-fixes.patch
-  libtoolize --force
-  autoreconf
   ./configure --prefix=/usr --sysconfdir=/etc \
   --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
   --disable-static --enable-gtk-doc

Deleted: polkit-git-fixes.patch
===
--- polkit-git-fixes.patch  2010-12-07 09:04:36 UTC (rev 102285)
+++ polkit-git-fixes.patch  2010-12-07 09:10:30 UTC (rev 102286)
@@ -1,85 +0,0 @@
-diff --git a/src/polkit/polkitcheckauthorizationflags.h 
b/src/polkit/polkitcheckauthorizationflags.h
-index 94aa070..4baa0d1 100644
 a/src/polkit/polkitcheckauthorizationflags.h
-+++ b/src/polkit/polkitcheckauthorizationflags.h
-@@ -30,10 +30,6 @@
- 
- G_BEGIN_DECLS
- 
--GType polkit_check_authorization_flags_get_type (void) G_GNUC_CONST;
--
--#define POLKIT_TYPE_CHECK_AUTHORIZATION_FLAGS 
(polkit_check_authorization_flags_get_type ())
--
- /**
-  * PolkitCheckAuthorizationFlags:
-  * @POLKIT_CHECK_AUTHORIZATION_FLAGS_NONE: No flags set.
-diff --git a/src/polkit/polkiterror.h b/src/polkit/polkiterror.h
-index b31583d..e49cabf 100644
 a/src/polkit/polkiterror.h
-+++ b/src/polkit/polkiterror.h
-@@ -40,10 +40,6 @@ G_BEGIN_DECLS
- 
- GQuark polkit_error_quark (void);
- 
--GType polkit_error_get_type (void) G_GNUC_CONST;
--
--#define POLKIT_TYPE_ERROR (polkit_error_get_type ())
--
- /**
-  * PolkitError:
-  * @POLKIT_ERROR_FAILED: The operation failed.
-diff --git a/src/polkit/polkitimplicitauthorization.h 
b/src/polkit/polkitimplicitauthorization.h
-index 9e5c51c..dee2611 100644
 a/src/polkit/polkitimplicitauthorization.h
-+++ b/src/polkit/polkitimplicitauthorization.h
-@@ -30,10 +30,6 @@
- 
- G_BEGIN_DECLS
- 
--GType polkit_implicit_authorization_get_type (void) G_GNUC_CONST;
--
--#define POLKIT_TYPE_IMPLICIT_AUTHORIZATION 
(polkit_implicit_authorization_get_type ())
--
- /**
-  * PolkitImplicitAuthorization:
-  * @POLKIT_IMPLICIT_AUTHORIZATION_UNKNOWN: Unknown whether the subject is 
authorized, never returned in any public API.
-diff --git a/src/polkitagent/Makefile.am b/src/polkitagent/Makefile.am
-index d2fc9c8..96ffd7c 100644
 a/src/polkitagent/Makefile.am
-+++ b/src/polkitagent/Makefile.am
-@@ -46,6 +46,7 @@ 
libpolkit_agent_1includedir=$(includedir)/polkit-1/polkitagent
- 
- libpolkit_agent_1include_HEADERS =
\
-   polkitagent.h   
\
-+  polkitagentenumtypes.h  
\
-   polkitagenttypes.h  
\
-   polkitagentsession.h
\
-   polkitagentlistener.h   
\
-diff --git a/src/polkitagent/polkitagenthelperprivate.c 
b/src/polkitagent/polkitagenthelperprivate.c
-index d4495dd..8f0c878 100644
 a/src/polkitagent/polkitagenthelperprivate.c
-+++ b/src/polkitagent/polkitagenthelperprivate.c
-@@ -48,8 +48,8 @@ _polkit_clearenv (void)
- gboolean
- send_dbus_message (const char *cookie, const char *user)
- {
--  PolkitAuthority *authority;
--  PolkitIdentity *identity;
-+  PolkitAuthority *authority = NULL;
-+  PolkitIdentity *identity = NULL;
-   GError *error;
-   gboolean ret;
- 
-diff --git a/src/polkitbackend/polkitbackendsessionmonitor.c 
b/src/polkitbackend/polkitbackendsessionmonitor.c
-index e91ad84..495f752 100644
 

[arch-commits] Commit in polkit/trunk (PKGBUILD polkit-git-fixes.patch)

2010-09-15 Thread Jan de Groot
Date: Wednesday, September 15, 2010 @ 10:26:53
  Author: jgc
Revision: 90717

upgpkg: polkit 0.98-1
Update to 0.98 plus some patches from git

Added:
  polkit/trunk/polkit-git-fixes.patch
Modified:
  polkit/trunk/PKGBUILD

+
 PKGBUILD   |   23 +++-
 polkit-git-fixes.patch |   85 +++
 2 files changed, 99 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-09-15 14:12:05 UTC (rev 90716)
+++ PKGBUILD2010-09-15 14:26:53 UTC (rev 90717)
@@ -2,28 +2,33 @@
 # Maintainer: Jan de Groot j...@archlinux.org
 
 pkgname=polkit
-pkgver=0.96
-pkgrel=2
+pkgver=0.98
+pkgrel=1
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
 license=('LGPL')
 url=http://www.freedesktop.org/wiki/Software/PolicyKit;
-depends=('eggdbus=0.6' 'pam')
-makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
+depends=('glib2=2.25.15' 'pam' 'expat=2.0.1')
+makedepends=('intltool=0.41.1' 'gtk-doc=1.15' 'gobject-introspection=0.9.5')
 replaces=('policykit')
 options=('!libtool')
 source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
+polkit-git-fixes.patch
 polkit.pam)
-md5sums=('e0a06da501b04ed3bab986a9df5b5aa2'
+md5sums=('96e583a1177ba5436f034a2fee55f5fa'
+ 'c5aaa13d6eeda5cec224b273acba9420'
  '6564f95878297b954f0572bc1610dd15')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
+  patch -Np1 -i ${srcdir}/polkit-git-fixes.patch
+  libtoolize --force
+  autoreconf
   ./configure --prefix=/usr --sysconfdir=/etc \
   --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
-  --disable-static --enable-gtk-doc || return 1
-  make || return 1
-  make DESTDIR=${pkgdir} install || return 1
+  --disable-static --enable-gtk-doc
+  make
+  make DESTDIR=${pkgdir} install
 
-  install -m644 ${srcdir}/polkit.pam ${pkgdir}/etc/pam.d/polkit-1 || 
return 1
+  install -m644 ${srcdir}/polkit.pam ${pkgdir}/etc/pam.d/polkit-1
 }

Added: polkit-git-fixes.patch
===
--- polkit-git-fixes.patch  (rev 0)
+++ polkit-git-fixes.patch  2010-09-15 14:26:53 UTC (rev 90717)
@@ -0,0 +1,85 @@
+diff --git a/src/polkit/polkitcheckauthorizationflags.h 
b/src/polkit/polkitcheckauthorizationflags.h
+index 94aa070..4baa0d1 100644
+--- a/src/polkit/polkitcheckauthorizationflags.h
 b/src/polkit/polkitcheckauthorizationflags.h
+@@ -30,10 +30,6 @@
+ 
+ G_BEGIN_DECLS
+ 
+-GType polkit_check_authorization_flags_get_type (void) G_GNUC_CONST;
+-
+-#define POLKIT_TYPE_CHECK_AUTHORIZATION_FLAGS 
(polkit_check_authorization_flags_get_type ())
+-
+ /**
+  * PolkitCheckAuthorizationFlags:
+  * @POLKIT_CHECK_AUTHORIZATION_FLAGS_NONE: No flags set.
+diff --git a/src/polkit/polkiterror.h b/src/polkit/polkiterror.h
+index b31583d..e49cabf 100644
+--- a/src/polkit/polkiterror.h
 b/src/polkit/polkiterror.h
+@@ -40,10 +40,6 @@ G_BEGIN_DECLS
+ 
+ GQuark polkit_error_quark (void);
+ 
+-GType polkit_error_get_type (void) G_GNUC_CONST;
+-
+-#define POLKIT_TYPE_ERROR (polkit_error_get_type ())
+-
+ /**
+  * PolkitError:
+  * @POLKIT_ERROR_FAILED: The operation failed.
+diff --git a/src/polkit/polkitimplicitauthorization.h 
b/src/polkit/polkitimplicitauthorization.h
+index 9e5c51c..dee2611 100644
+--- a/src/polkit/polkitimplicitauthorization.h
 b/src/polkit/polkitimplicitauthorization.h
+@@ -30,10 +30,6 @@
+ 
+ G_BEGIN_DECLS
+ 
+-GType polkit_implicit_authorization_get_type (void) G_GNUC_CONST;
+-
+-#define POLKIT_TYPE_IMPLICIT_AUTHORIZATION 
(polkit_implicit_authorization_get_type ())
+-
+ /**
+  * PolkitImplicitAuthorization:
+  * @POLKIT_IMPLICIT_AUTHORIZATION_UNKNOWN: Unknown whether the subject is 
authorized, never returned in any public API.
+diff --git a/src/polkitagent/Makefile.am b/src/polkitagent/Makefile.am
+index d2fc9c8..96ffd7c 100644
+--- a/src/polkitagent/Makefile.am
 b/src/polkitagent/Makefile.am
+@@ -46,6 +46,7 @@ 
libpolkit_agent_1includedir=$(includedir)/polkit-1/polkitagent
+ 
+ libpolkit_agent_1include_HEADERS =
\
+   polkitagent.h   
\
++  polkitagentenumtypes.h  
\
+   polkitagenttypes.h  
\
+   polkitagentsession.h
\
+   polkitagentlistener.h   
\
+diff --git a/src/polkitagent/polkitagenthelperprivate.c 
b/src/polkitagent/polkitagenthelperprivate.c
+index d4495dd..8f0c878 100644
+--- a/src/polkitagent/polkitagenthelperprivate.c
 b/src/polkitagent/polkitagenthelperprivate.c
+@@ -48,8 +48,8 @@ _polkit_clearenv (void)
+ 

[arch-commits] Commit in polkit/trunk (PKGBUILD)

2010-04-09 Thread Andrea Scarpino
Date: Friday, April 9, 2010 @ 15:58:37
  Author: andrea
Revision: 77026

fix url (FS#19015)

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-04-09 19:56:10 UTC (rev 77025)
+++ PKGBUILD2010-04-09 19:58:37 UTC (rev 77026)
@@ -7,7 +7,7 @@
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
 license=('LGPL')
-url=http://www.freedesktop.org/wiki/Software/Policykit;
+url=http://www.freedesktop.org/wiki/Software/PolicyKit;
 depends=('eggdbus=0.6' 'pam')
 makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
 replaces=('policykit')



[arch-commits] Commit in polkit/trunk (PKGBUILD)

2010-03-13 Thread Jan de Groot
Date: Saturday, March 13, 2010 @ 14:06:23
  Author: jgc
Revision: 72186

upgpkg: polkit 0.96-2
Add replaces=policykit, nothing should use that anymore (FS#18307)

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-03-13 19:05:06 UTC (rev 72185)
+++ PKGBUILD2010-03-13 19:06:23 UTC (rev 72186)
@@ -3,13 +3,14 @@
 
 pkgname=polkit
 pkgver=0.96
-pkgrel=1
+pkgrel=2
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
 license=('LGPL')
 url=http://www.freedesktop.org/wiki/Software/Policykit;
 depends=('eggdbus=0.6' 'pam')
 makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
+replaces=('policykit')
 options=('!libtool')
 source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
 polkit.pam)



[arch-commits] Commit in polkit/trunk (PKGBUILD)

2010-01-31 Thread Jan de Groot
Date: Sunday, January 31, 2010 @ 05:38:47
  Author: jgc
Revision: 66481

upgpkg: polkit 0.96-1
Update to 0.96

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-01-31 10:33:32 UTC (rev 66480)
+++ PKGBUILD2010-01-31 10:38:47 UTC (rev 66481)
@@ -2,7 +2,7 @@
 # Maintainer: Jan de Groot j...@archlinux.org
 
 pkgname=polkit
-pkgver=0.95
+pkgver=0.96
 pkgrel=1
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
@@ -13,7 +13,7 @@
 options=('!libtool')
 source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
 polkit.pam)
-md5sums=('10971f5d334550025897b02d779fddd1'
+md5sums=('e0a06da501b04ed3bab986a9df5b5aa2'
  '6564f95878297b954f0572bc1610dd15')
 
 build() {



[arch-commits] Commit in polkit/trunk (PKGBUILD)

2009-11-21 Thread Jan de Groot
Date: Saturday, November 21, 2009 @ 06:30:57
  Author: jgc
Revision: 59202

upgpkg: polkit 0.95-1
Update to 0.95

Modified:
  polkit/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2009-11-21 11:28:00 UTC (rev 59201)
+++ PKGBUILD2009-11-21 11:30:57 UTC (rev 59202)
@@ -2,18 +2,18 @@
 # Maintainer: Jan de Groot j...@archlinux.org
 
 pkgname=polkit
-pkgver=0.94
+pkgver=0.95
 pkgrel=1
 pkgdesc=Application development toolkit for controlling system-wide 
privileges
 arch=(i686 x86_64)
 license=('LGPL')
 url=http://www.freedesktop.org/wiki/Software/Policykit;
-depends=('glib2=2.21.4' 'eggdbus=0.5' 'pam')
+depends=('eggdbus=0.6' 'pam')
 makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
 options=('!libtool')
 source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
 polkit.pam)
-md5sums=('5abc9f858e7b614ef41161db36d53915'
+md5sums=('10971f5d334550025897b02d779fddd1'
  '6564f95878297b954f0572bc1610dd15')
 
 build() {