summaryrefslogtreecommitdiff
path: root/extra/gparted
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-03-10 00:51:34 -0800
committerroot <root@rshg054.dnsready.net>2013-03-10 00:51:34 -0800
commit6ee08d6a9217906f2ef84f70923d3d362d4b40ad (patch)
treedc3d842884f61485a4c01889d37d9432620d5e38 /extra/gparted
parent92eac63df242654434dceb000bac083f6e81a6b9 (diff)
Sun Mar 10 00:50:57 PST 2013
Diffstat (limited to 'extra/gparted')
-rw-r--r--extra/gparted/PKGBUILD23
-rw-r--r--extra/gparted/gparted.install5
-rw-r--r--extra/gparted/org.archlinux.pkexec.gparted.policy2
3 files changed, 20 insertions, 10 deletions
diff --git a/extra/gparted/PKGBUILD b/extra/gparted/PKGBUILD
index de0a7c48f..b2ff9aeac 100644
--- a/extra/gparted/PKGBUILD
+++ b/extra/gparted/PKGBUILD
@@ -1,31 +1,30 @@
-# $Id: PKGBUILD 179620 2013-03-08 20:34:20Z giovanni $
+# $Id: PKGBUILD 179753 2013-03-09 17:23:03Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Andrew Simmons <andrew.simmons@gmail.com>
# Contributor: György Balló <ballogy@freestart.hu>
pkgname=gparted
pkgver=0.14.1
-pkgrel=2
+pkgrel=4
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'
- 'ntfsprogs: for ntfs partitions'
+ 'ntfs-3g: for ntfs partitions'
'reiserfsprogs: for reiser partitions'
'xfsprogs: for xfs partitions'
'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 +41,14 @@ package() {
# 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 script
+ 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"
}
diff --git a/extra/gparted/gparted.install b/extra/gparted/gparted.install
index 21b79d2d4..e8f6bed8f 100644
--- a/extra/gparted/gparted.install
+++ b/extra/gparted/gparted.install
@@ -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() {
diff --git a/extra/gparted/org.archlinux.pkexec.gparted.policy b/extra/gparted/org.archlinux.pkexec.gparted.policy
index 561cd7d1e..65894a0cc 100644
--- a/extra/gparted/org.archlinux.pkexec.gparted.policy
+++ b/extra/gparted/org.archlinux.pkexec.gparted.policy
@@ -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>