Date: Thursday, April 12, 2018 @ 06:09:12
Author: bgyorgy
Revision: 315916
archrelease: copy trunk to community-any
Added:
pyneighborhood/repos/community-any/PKGBUILD
(from rev 315915, pyneighborhood/trunk/PKGBUILD)
pyneighborhood/repos/community-any/pkexec.patch
(from rev 315915, pyneighborhood/trunk/pkexec.patch)
Deleted:
pyneighborhood/repos/community-any/PKGBUILD
--+
PKGBUILD | 67 ++---
pkexec.patch | 49 +
2 files changed, 85 insertions(+), 31 deletions(-)
Deleted: PKGBUILD
===
--- PKGBUILD2018-04-12 06:09:06 UTC (rev 315915)
+++ PKGBUILD2018-04-12 06:09:12 UTC (rev 315916)
@@ -1,31 +0,0 @@
-# $Id$
-# Maintainer: Ronald van Haren
-# Contributor: Ronald van Haren
-
-pkgname=pyneighborhood
-pkgver=0.5.4
-pkgrel=3
-pkgdesc="A GTK+ 2 rewrite of the well-known LinNeighborhood tool"
-license=('GPL')
-url="https://launchpad.net/pyneighborhood;
-source=("http://launchpad.net/pyneighborhood/0.5/${pkgver}/+download/${pkgname}-${pkgver}.tar.bz2;)
-depends=('pygtk' 'smbclient')
-optdepends=('gksu: mount/unmount Samba shares')
-arch=('any')
-options=('!emptydirs')
-sha1sums=('b0d899230ed0212aa50c17f406b0ee7e3d6ac17a')
-
-prepare() {
- cd ${srcdir}/${pkgname}-${pkgver}
-
- # python2 fix
- for file in $(find . -type f -print); do
-sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
-sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
- done
-}
-
-package() {
- cd ${srcdir}/${pkgname}-${pkgver}
- make PYTHON=python2 DESTDIR=${pkgdir}/usr install
-}
Copied: pyneighborhood/repos/community-any/PKGBUILD (from rev 315915,
pyneighborhood/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2018-04-12 06:09:12 UTC (rev 315916)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Ronald van Haren
+# Contributor: Ronald van Haren
+
+pkgname=pyneighborhood
+pkgver=0.5.4
+pkgrel=4
+pkgdesc="A GTK+ 2 rewrite of the well-known LinNeighborhood tool"
+license=('GPL')
+url="https://launchpad.net/pyneighborhood;
+source=("http://launchpad.net/pyneighborhood/0.5/${pkgver}/+download/${pkgname}-${pkgver}.tar.bz2;
+"pkexec.patch")
+depends=('pygtk' 'smbclient')
+optdepends=('polkit: mount/unmount Samba shares')
+arch=('any')
+options=('!emptydirs')
+sha1sums=('b0d899230ed0212aa50c17f406b0ee7e3d6ac17a'
+ 'c23d054b2309fcc012f98e7274e6fd2e09d2f9a6')
+
+prepare() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ # python2 fix
+ for file in $(find . -type f -print); do
+sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
+sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
+ done
+
+ # Use pkexec to mount/unmount Samba shares
+ patch -Np1 -i ../pkexec.patch
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make PYTHON=python2 DESTDIR=${pkgdir}/usr install
+}
Copied: pyneighborhood/repos/community-any/pkexec.patch (from rev 315915,
pyneighborhood/trunk/pkexec.patch)
===
--- pkexec.patch(rev 0)
+++ pkexec.patch2018-04-12 06:09:12 UTC (rev 315916)
@@ -0,0 +1,49 @@
+diff -Naur pyneighborhood-0.5.4.orig/pyneighborhood/__init__.py
pyneighborhood-0.5.4/pyneighborhood/__init__.py
+--- pyneighborhood-0.5.4.orig/pyneighborhood/__init__.py 2011-03-22
20:51:25.0 +0100
pyneighborhood-0.5.4/pyneighborhood/__init__.py2018-04-12
07:59:06.447097940 +0200
+@@ -40,7 +40,7 @@
+ loglevel = 0
+ mount_directory =
+ password =
+-sudo = /usr/bin/gksu
++sudo = /usr/bin/pkexec --disable-internal-agent
+ username =
+ hidden_shares = False
+ [CIFS]
+@@ -108,20 +108,9 @@
+ config.set('CIFS',utility,'/bin/%s' % ('mount' if utility == 'mount'
else 'umount'))
+ push_notification(_("Using %(util)s for future operations.\n") % {
"util": config.get('CIFS',utility) }, level=1)
+
+-sudo_defaults = { "gnome": "/usr/bin/gksu",
+- "kde": "/usr/bin/kdesudo",
+- "lxde":"/usr/bin/gksu",
+- "xfce":"/usr/bin/gksu",
+- "default": "/usr/bin/gksu" }
+-
+ if not access( config.get("Main", "sudo"), F_OK | X_OK):
+ push_notification(_("%(sudo)s isn't accessable... trying to determine
correct sudo wrapper...\n") % { "sudo": config.get("Main", "sudo") }, level=2)
+-if get_desktop_environ() in sudo_defaults.keys():
+-push_notification(_("Detected %(de)s desktop environment... falling
back to %(wrapper)s as sudo wrapper...\n") % { "de": get_desktop_environ(),
"wrapper": sudo_defaults[get_desktop_environ()] } )
+-config.set("Main", "sudo", sudo_defaults[get_desktop_environ()])
+-else:
+-push_notification(_("Couldn't get valid sudo