summaryrefslogtreecommitdiff
path: root/community/polkit-gnome
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-09-03 01:52:27 -0700
committerroot <root@rshg054.dnsready.net>2013-09-03 01:52:27 -0700
commit3aa73e2018f321c9ccff8eca801b1c2fa9f18fa8 (patch)
tree961d6e0475cac3875e6a31b558861367da0c93d8 /community/polkit-gnome
parent53939c2b159d972c48fc2f3652408632c71be77b (diff)
Tue Sep 3 01:50:53 PDT 2013
Diffstat (limited to 'community/polkit-gnome')
-rw-r--r--community/polkit-gnome/PKGBUILD28
-rw-r--r--community/polkit-gnome/polkit-gnome-authentication-agent-1.desktop3
-rw-r--r--community/polkit-gnome/polkit-gnome.install8
3 files changed, 24 insertions, 15 deletions
diff --git a/community/polkit-gnome/PKGBUILD b/community/polkit-gnome/PKGBUILD
index 1f10dc400..1a1702d41 100644
--- a/community/polkit-gnome/PKGBUILD
+++ b/community/polkit-gnome/PKGBUILD
@@ -1,24 +1,26 @@
-# $Id: PKGBUILD 90254 2013-05-10 04:01:53Z heftig $
-# Maintainer: Jan de Groot <jgc@archlinux.org>
+# $Id: PKGBUILD 96622 2013-09-02 13:20:27Z bgyorgy $
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: onestep_ua <onestep@ukr.net>
pkgname=polkit-gnome
pkgver=0.105
-pkgrel=1
-pkgdesc="PolicyKit integration for the GNOME desktop"
+pkgrel=2
+pkgdesc="Legacy polkit authentication agent for GNOME"
arch=('i686' 'x86_64')
-url="http://www.freedesktop.org/wiki/Software/PolicyKit"
+url="http://www.freedesktop.org/wiki/Software/polkit/"
license=('LGPL')
depends=('polkit' 'gtk3')
-makedepends=('intltool' 'gobject-introspection')
+makedepends=('intltool')
options=(!libtool)
-source=(http://download.gnome.org/sources/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz
+install=$pkgname.install
+source=(http://download.gnome.org/sources/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz
polkit-gnome-authentication-agent-1.desktop)
sha256sums=('1784494963b8bf9a00eedc6cd3a2868fb123b8a5e516e66c5eda48df17ab9369'
- 'ad19e73ae8eba00a8f66bd9afd3e0e1fd7ca22f716e29b97f097d9c01711e0de')
+ '5074c723a4eab274830587d799ba781ff57f4fbe4ac99fbdc5aac5009c441ee7')
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr --sysconfdir=/etc \
--localstatedir=/var --libexecdir=/usr/lib/polkit-gnome \
--disable-static
@@ -26,8 +28,8 @@ build() {
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install
- install -Dm644 "${srcdir}/polkit-gnome-authentication-agent-1.desktop" \
- "${pkgdir}/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop"
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 "$srcdir/polkit-gnome-authentication-agent-1.desktop" \
+ "$pkgdir/usr/share/applications/polkit-gnome-authentication-agent-1.desktop"
}
diff --git a/community/polkit-gnome/polkit-gnome-authentication-agent-1.desktop b/community/polkit-gnome/polkit-gnome-authentication-agent-1.desktop
index fc2acc28d..c45acfa54 100644
--- a/community/polkit-gnome/polkit-gnome-authentication-agent-1.desktop
+++ b/community/polkit-gnome/polkit-gnome-authentication-agent-1.desktop
@@ -84,5 +84,4 @@ Terminal=false
Type=Application
Categories=
NoDisplay=true
-NotShowIn=KDE;
-AutostartCondition=GNOME3 unless-session gnome
+OnlyShowIn=GNOME;
diff --git a/community/polkit-gnome/polkit-gnome.install b/community/polkit-gnome/polkit-gnome.install
new file mode 100644
index 000000000..9d42a4c64
--- /dev/null
+++ b/community/polkit-gnome/polkit-gnome.install
@@ -0,0 +1,8 @@
+post_upgrade() {
+ if [ "$(vercmp 0.105-2 "$2")" -eq 1 ]; then
+ printf '==> The agent is no longer autostarted by default except in GNOME Flashback.\n'
+ printf ' For Xfce, LXDE etc., "lxpolkit" is the suggested lightweight alternative.\n'
+ printf ' See https://wiki.archlinux.org/index.php/Polkit#Authentication_agents for\n'
+ printf ' more details.\n'
+ fi
+}