summaryrefslogtreecommitdiffstats
path: root/system/gparted/gparted.SlackBuild
diff options
context:
space:
mode:
author Erik Hanson <erik@slackbuilds.org>2013-12-10 09:40:01 +0700
committer Erik Hanson <erik@slackbuilds.org>2013-12-14 10:53:04 -0600
commitb7eab76d3172fa4d9ea09df69fd412cc67ab0cb5 (patch)
tree1d17729db64238f9ca2039ee516e944fc6431c06 /system/gparted/gparted.SlackBuild
parent285f000a4385a4f2046f3a76c4184f9a8cd33f80 (diff)
downloadslackbuilds-b7eab76d3172fa4d9ea09df69fd412cc67ab0cb5.tar.gz
slackbuilds-b7eab76d3172fa4d9ea09df69fd412cc67ab0cb5.tar.xz
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>
Diffstat (limited to 'system/gparted/gparted.SlackBuild')
-rw-r--r--system/gparted/gparted.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/system/gparted/gparted.SlackBuild b/system/gparted/gparted.SlackBuild
index 114f1473e4..70c27cc9cd 100644
--- a/system/gparted/gparted.SlackBuild
+++ b/system/gparted/gparted.SlackBuild
@@ -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