system/gparted: Updated for version 0.17.0.

Use polkit to workaround gksudo not
  working.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Erik Hanson 2013-12-10 09:40:01 +07:00
parent 285f000a43
commit b7eab76d31
5 changed files with 40 additions and 4 deletions

View file

@ -3,3 +3,4 @@ tables. Several (optional) "file system" tools provide support for file
systems not included in libparted. These optional packages will be detected
at runtime and do not require a rebuild of GParted. GParted is written in
C++ and uses gtkmm for it's Graphical User Interface (GUI).

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<action id="com.slackware.pkexec.gparted">
<message>Authentication is required to run the GParted Partition Editor</message>
<icon_name>gparted</icon_name>
<defaults>
<allow_any>auth_admin</allow_any>
<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.allow_gui">true</annotate>
</action>
</policyconfig>

View file

@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=gparted
VERSION=${VERSION:-0.16.0}
VERSION=${VERSION:-0.17.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -65,6 +65,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
sed -i "s:@gksuprog@ @installdir@/gparted %f:@installdir@/gparted_polkit %f:g" \
gparted.desktop.in.in
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@ -78,6 +81,12 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
install -Dm0644 $CWD/com.slackware.pkexec.gparted.policy \
$PKG/usr/share/polkit-1/actions/com.slackware.pkexec.gparted.policy
install -Dm0755 $CWD/gparted_polkit \
$PKG/usr/sbin/gparted_polkit
gzip -9 $PKG/usr/man/man?/*.?
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -1,8 +1,8 @@
PRGNAM="gparted"
VERSION="0.16.0"
VERSION="0.17.0"
HOMEPAGE="http://gparted.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/gparted/gparted-0.16.0.tar.bz2"
MD5SUM="880e58673c9ef195181c0d721717a601"
DOWNLOAD="http://downloads.sourceforge.net/gparted/gparted-0.17.0.tar.bz2"
MD5SUM="ecd66491bb2061c6aa6077cc24823b9e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="gtkmm"

View file

@ -0,0 +1,6 @@
#!/bin/bash
if [ $(which pkexec) ]; then
pkexec --disable-internal-agent "/usr/sbin/gparted" "$@"
else
/usr/sbin/gparted "$@"
fi