[arch-commits] Commit in gparted/trunk (3 files)

Giovanni Scafora giovanni at nymeria.archlinux.org
Sat Mar 9 16:46:21 UTC 2013


    Date: Saturday, March 9, 2013 @ 17:46:21
  Author: giovanni
Revision: 179748

upgpkg: gparted 0.14.1-3

Fixed again FS34168

Modified:
  gparted/trunk/PKGBUILD
  gparted/trunk/gparted.install
  gparted/trunk/org.archlinux.pkexec.gparted.policy

-------------------------------------+
 PKGBUILD                            |   18 +++++++++++++-----
 gparted.install                     |    5 ++++-
 org.archlinux.pkexec.gparted.policy |    2 +-
 3 files changed, 18 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-03-09 16:09:52 UTC (rev 179747)
+++ PKGBUILD	2013-03-09 16:46:21 UTC (rev 179748)
@@ -5,12 +5,12 @@
 
 pkgname=gparted
 pkgver=0.14.1
-pkgrel=2
+pkgrel=3
 pkgdesc="A Partition Magic clone, frontend to GNU Parted"
 arch=('i686' 'x86_64')
 url="http://gparted.sourceforge.net"
 license=('GPL')
-depends=('parted' 'gtkmm' 'hicolor-icon-theme')
+depends=('parted' 'gtkmm' 'hicolor-icon-theme' 'polkit-gnome')
 makedepends=('intltool' 'pkg-config' 'gnome-doc-utils')
 optdepends=('dosfstools: for FAT16 and FAT32 partitions'
             'jfsutils: for jfs partitions'
@@ -20,12 +20,12 @@
             'nilfs-utils: for nilfs2 support'
             'polkit-gnome: to run gparted directly from menu'
             'gpart: for recovering corrupt partition tables'
-            'mtools')
+            'mtools: utilities to access MS-DOS disks')
 install=gparted.install
 source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2"
         'org.archlinux.pkexec.gparted.policy')
 md5sums=('1ffe859c70e102a776dffb1ff0a2164a'
-         '27c264cfad8fa413d75954dda7a2dd50')
+         'c031d7d2b845ccb025b9f83e0ddd5653')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
@@ -42,6 +42,14 @@
   # Install policy file
   install -Dm644 "${srcdir}/org.archlinux.pkexec.gparted.policy" "${pkgdir}/usr/share/polkit-1/actions/org.archlinux.pkexec.gparted.policy"
 
+  # We need rename the original binary
+  mv "${pkgdir}/usr/sbin/gparted" "${pkgdir}/usr/sbin/gparted.elf"
+
+  # Install launcher script
+  echo '#!/bin/sh' > ${pkgdir}/usr/sbin/gparted
+  echo 'pkexec "/usr/sbin/gparted.elf" "$@"' >> ${pkgdir}/usr/sbin/gparted
+  chmod 755 ${pkgdir}/usr/sbin/gparted
+
   # Modify desktop file
-  sed -i -e "s|^Exec=.*|Exec=pkexec --disable-internal-agent /usr/sbin/gparted|" "${pkgdir}/usr/share/applications/gparted.desktop"
+  sed -i -e "s|^Exec=.*|Exec=pkexec --disable-internal-agent /usr/sbin/gparted.elf|" "${pkgdir}/usr/share/applications/gparted.desktop"
 }

Modified: gparted.install
===================================================================
--- gparted.install	2013-03-09 16:09:52 UTC (rev 179747)
+++ gparted.install	2013-03-09 16:46:21 UTC (rev 179748)
@@ -1,9 +1,12 @@
 post_install() {
   gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+  echo 'If you use a lightweight windowmanager, remember to run'
+  echo '/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 to enable'
+  echo 'graphical authentication, which may be needed for pkexec to work.'
 }
 
 post_upgrade() {
-  post_install $1
+  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
 }
 
 post_remove() {

Modified: org.archlinux.pkexec.gparted.policy
===================================================================
--- org.archlinux.pkexec.gparted.policy	2013-03-09 16:09:52 UTC (rev 179747)
+++ org.archlinux.pkexec.gparted.policy	2013-03-09 16:46:21 UTC (rev 179748)
@@ -12,7 +12,7 @@
       <allow_inactive>auth_admin</allow_inactive>
       <allow_active>auth_admin</allow_active>
     </defaults>
-    <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/gparted</annotate>
+    <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/gparted.elf</annotate>
     <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
   </action>
 




More information about the arch-commits mailing list