[arch-commits] Commit in netactview/trunk (PKGBUILD netactview_polkit)
Balló György
bgyorgy at archlinux.org
Sun Jan 22 16:41:38 UTC 2017
Date: Sunday, January 22, 2017 @ 16:41:37
Author: bgyorgy
Revision: 208408
upgpkg: netactview 0.6.4-3
Fix polkit usage
Added:
netactview/trunk/netactview_polkit
Modified:
netactview/trunk/PKGBUILD
-------------------+
PKGBUILD | 15 +++++++++++----
netactview_polkit | 2 ++
2 files changed, 13 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-01-22 16:30:09 UTC (rev 208407)
+++ PKGBUILD 2017-01-22 16:41:37 UTC (rev 208408)
@@ -4,7 +4,7 @@
pkgname=netactview
pkgver=0.6.4
-pkgrel=2
+pkgrel=3
pkgdesc="A graphical network connections viewer similar in functionality to netstat"
arch=('i686' 'x86_64')
url="http://netactview.sourceforge.net/index.html"
@@ -14,9 +14,11 @@
optdepends=('polkit: restart the application as root')
source=("http://downloads.sourceforge.net/netactview/${pkgname}-${pkgver}.tar.bz2"
'drop-libgnome.patch'
+ 'netactview_polkit'
'org.archlinux.pkexec.netactview.policy')
sha256sums=('0cfe68e90862b10a19ab2cc4977a079887eeda00e4069a819c13ece90843fb4a'
'e5359685c785427c812fd285b1eda3465e27120c186eae35a926881be1985df9'
+ '8d5319635ce05be5e5f3a426e81db34e0c2613010575bb7b3682bb2ae34fdd36'
'467aa93ad28849061bfd1ea07698cc0154bef0a5a98e4c384260fc53e03b877c')
prepare() {
@@ -27,7 +29,8 @@
# Use pkexec instead of gksu
sed -i 's/\[gksu\]/\[pkexec\]/' configure.ac
- sed -i 's/install gksu/install polkit/' src/mainwindow.c
+ sed -i 's|GKSU_PATH, EXECUTABLE_PATH|"/usr/bin/netactview_polkit"|
+ s/install gksu/install polkit/' src/mainwindow.c
autoreconf -fi
}
@@ -43,6 +46,10 @@
make DESTDIR="${pkgdir}" install
# Polkit policy
- install -Dm644 ../org.archlinux.pkexec.netactview.policy \
- "$pkgdir/usr/share/polkit-1/actions/org.archlinux.pkexec.netactview.policy"
+ install -Dm644 "${srcdir}/org.archlinux.pkexec.netactview.policy" \
+ "${pkgdir}/usr/share/polkit-1/actions/org.archlinux.pkexec.netactview.policy"
+
+ # Launcher script
+ install -Dm755 "${srcdir}/netactview_polkit" \
+ "${pkgdir}/usr/bin/netactview_polkit"
}
Added: netactview_polkit
===================================================================
--- netactview_polkit (rev 0)
+++ netactview_polkit 2017-01-22 16:41:37 UTC (rev 208408)
@@ -0,0 +1,2 @@
+#!/bin/bash
+pkexec --disable-internal-agent "/usr/bin/netactview" "$@"
More information about the arch-commits
mailing list