From owner-svn-ports-head@freebsd.org Fri Sep 13 15:46:28 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2DDF7F4CC1; Fri, 13 Sep 2019 15:46:28 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46VKkD0Tjyz3L3p; Fri, 13 Sep 2019 15:46:28 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E88E5961B; Fri, 13 Sep 2019 15:46:27 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x8DFkR3g063778; Fri, 13 Sep 2019 15:46:27 GMT (envelope-from madpilot@FreeBSD.org) Received: (from madpilot@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x8DFkQRV063772; Fri, 13 Sep 2019 15:46:26 GMT (envelope-from madpilot@FreeBSD.org) Message-Id: <201909131546.x8DFkQRV063772@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: madpilot set sender to madpilot@FreeBSD.org using -f From: Guido Falsi Date: Fri, 13 Sep 2019 15:46:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r511977 - in head/sysutils/catfish: . files X-SVN-Group: ports-head X-SVN-Commit-Author: madpilot X-SVN-Commit-Paths: in head/sysutils/catfish: . files X-SVN-Commit-Revision: 511977 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Sep 2019 15:46:28 -0000 Author: madpilot Date: Fri Sep 13 15:46:26 2019 New Revision: 511977 URL: https://svnweb.freebsd.org/changeset/ports/511977 Log: - Update catfish to 1.4.10 - Upstream removed gksu support, escalation now provided by polkit and/or sudo - Install man page in correct location and compress it - Silence some portlint warnings Extra pathces provided by Olivier Duchateau Added: head/sysutils/catfish/files/ head/sysutils/catfish/files/patch-catfish_CatfishWindow.py (contents, props changed) head/sysutils/catfish/files/patch-catfish__lib_SudoDialog.py (contents, props changed) head/sysutils/catfish/files/patch-catfish__lib_catfishconfig.py (contents, props changed) Modified: head/sysutils/catfish/Makefile head/sysutils/catfish/distinfo head/sysutils/catfish/pkg-plist Modified: head/sysutils/catfish/Makefile ============================================================================== --- head/sysutils/catfish/Makefile Fri Sep 13 15:35:29 2019 (r511976) +++ head/sysutils/catfish/Makefile Fri Sep 13 15:46:26 2019 (r511977) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= catfish -PORTVERSION= 1.4.8 +PORTVERSION= 1.4.10 CATEGORIES= sysutils MASTER_SITES= XFCE/apps DIST_SUBDIR= xfce4 @@ -14,20 +14,34 @@ LICENSE= GPLv3 RUN_DEPENDS= \ ${PYTHON_PKGNAMEPREFIX}python-distutils-extra>0:devel/py-python-distutils-extra@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pexpect>0:misc/py-pexpect@${PY_FLAVOR} \ - gksu:sysutils/gksu + ${PYTHON_PKGNAMEPREFIX}pexpect>0:misc/py-pexpect@${PY_FLAVOR} BUILD_DEPENDS= ${RUN_DEPENDS} USES= desktop-file-utils gettext-tools gnome python:2.7 tar:bz2 -NO_ARCH= yes USE_PYTHON= distutils USE_GNOME= gtk30 intltool pygobject3 +NO_ARCH= yes +INSTALLS_ICONS= yes + OPTIONS_DEFINE= DOCS ZEITGEIST -OPTIONS_DEFAULT=ZEITGEIST +OPTIONS_DEFAULT=ZEITGEIST POLKIT +OPTIONS_MULTI= PRIVILEGES +OPTIONS_MULTI_PRIVILEGES= POLKIT SUDO +POLKIT_DESC= Provide Polkit (pkexec) support +POLKIT_RUN_DEPENDS= pkexec:sysutils/polkit + +SUDO_DESC= Provide sudo support +SUDO_RUN_DEPENDS= sudo:security/sudo + ZEITGEIST_DESC= Provide recent search suggestions ZEITGEIST_LIB_DEPENDS= libzeitgeist-2.0.so:sysutils/zeitgeist + +post-install: + ${MV} ${STAGEDIR}${PREFIX}/share/man/man1/catfish.1 ${STAGEDIR}${PREFIX}/man/man1/catfish.1 + (cd ${STAGEDIR}${PREFIX}/share && ${RMDIR} -p man/man1) + ${GZIP} ${STAGEDIR}${PREFIX}/man/man1/catfish.1 .include Modified: head/sysutils/catfish/distinfo ============================================================================== --- head/sysutils/catfish/distinfo Fri Sep 13 15:35:29 2019 (r511976) +++ head/sysutils/catfish/distinfo Fri Sep 13 15:46:26 2019 (r511977) @@ -1,3 +1,3 @@ -TIMESTAMP = 1564305030 -SHA256 (xfce4/catfish-1.4.8.tar.bz2) = f3babed77a1059f1894c0ca1792887a6c9c77e76808923c1c6727d5ea59fd84c -SIZE (xfce4/catfish-1.4.8.tar.bz2) = 181027 +TIMESTAMP = 1568376958 +SHA256 (xfce4/catfish-1.4.10.tar.bz2) = 2573a004105031f871c92fed22a0c4b15bb96f2dff6e36c4f2959f56b62e343d +SIZE (xfce4/catfish-1.4.10.tar.bz2) = 213951 Added: head/sysutils/catfish/files/patch-catfish_CatfishWindow.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/catfish/files/patch-catfish_CatfishWindow.py Fri Sep 13 15:46:26 2019 (r511977) @@ -0,0 +1,28 @@ +--- catfish/CatfishWindow.py.orig 2019-07-27 11:21:22 UTC ++++ catfish/CatfishWindow.py +@@ -22,6 +22,7 @@ import logging + import mimetypes + import os + import subprocess ++import sys + import time + from locale import gettext as _ + from shutil import copy2, rmtree +@@ -738,9 +739,15 @@ class CatfishWindow(Window): + self.update_index_unlock.set_sensitive(False) + + if SudoDialog.prefer_pkexec(): +- self.updatedb_process = SudoDialog.env_spawn('pkexec updatedb', 1) ++ if sys.platform.startswith('linux'): ++ self.updatedb_process = SudoDialog.env_spawn('pkexec updatedb', 1) ++ elif 'bsd' in sys.platform or sys.platform.startswith('dragonfly'): ++ self.updatedb_process = SudoDialog.env_spawn('pkexec /usr/libexec/locate.updatedb', 1) + else: +- self.updatedb_process = SudoDialog.env_spawn('sudo updatedb', 1) ++ if sys.platform.startswith('linux'): ++ self.updatedb_process = SudoDialog.env_spawn('sudo updatedb', 1) ++ elif 'bsd' in sys.platform or sys.platform.startswith('dragonfly'): ++ self.updatedb_process = SudoDialog.env_spawn('sudo /usr/libexec/locate.updatedb', 1) + try: + # Check for password prompt or program exit. + self.updatedb_process.expect(".*ssword.*") Added: head/sysutils/catfish/files/patch-catfish__lib_SudoDialog.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/catfish/files/patch-catfish__lib_SudoDialog.py Fri Sep 13 15:46:26 2019 (r511977) @@ -0,0 +1,23 @@ +--- catfish_lib/SudoDialog.py.orig 2019-07-27 11:21:22 UTC ++++ catfish_lib/SudoDialog.py +@@ -18,6 +18,7 @@ + + from gi.repository import Gtk, GdkPixbuf + import os ++import sys + + from locale import gettext as _ + +@@ -316,7 +317,11 @@ class SudoDialog(Gtk.Dialog): + Return True if successful. + ''' + # Set the pexpect variables and spawn the process. +- child = env_spawn('sudo /bin/true', 1) ++ if sys.platform.startswith('linux'): ++ child = env_spawn('sudo /bin/true', 1) ++ elif 'bsd' in sys.platform or sys.platform.startswith('dragonfly'): ++ child = env_spawn('sudo /usr/bin/true', 1) ++ + try: + # Check for password prompt or program exit. + child.expect([".*ssword.*", pexpect.EOF]) Added: head/sysutils/catfish/files/patch-catfish__lib_catfishconfig.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/catfish/files/patch-catfish__lib_catfishconfig.py Fri Sep 13 15:46:26 2019 (r511977) @@ -0,0 +1,22 @@ +--- catfish_lib/catfishconfig.py.orig 2019-08-11 17:51:09 UTC ++++ catfish_lib/catfishconfig.py +@@ -17,6 +17,7 @@ + # with this program. If not, see . + + import os ++import sys + + __all__ = [ + 'project_path_not_found', +@@ -29,7 +30,10 @@ __all__ = [ + # files). By default, this is ../data, relative your trunk layout + __catfish_data_directory__ = '../data/' + # Location of locate.db file +-__locate_db_path__ = '/var/lib/mlocate/mlocate.db' ++if sys.platform.startswith('linux'): ++ __locate_db_path__ = '/var/lib/mlocate/mlocate.db' ++elif 'bsd' in sys.platform or sys.platform.startswith('dragonfly'): ++ __locate_db_path__ = '/var/db/locate.database' + __license__ = 'GPL-3+' + __version__ = '1.4.9' + Modified: head/sysutils/catfish/pkg-plist ============================================================================== --- head/sysutils/catfish/pkg-plist Fri Sep 13 15:35:29 2019 (r511976) +++ head/sysutils/catfish/pkg-plist Fri Sep 13 15:46:26 2019 (r511977) @@ -1,7 +1,11 @@ bin/catfish +man/man1/catfish.1.gz %%PYTHON_SITELIBDIR%%/catfish/AboutCatfishDialog.py %%PYTHON_SITELIBDIR%%/catfish/AboutCatfishDialog.pyc %%PYTHON_SITELIBDIR%%/catfish/AboutCatfishDialog.pyo +%%PYTHON_SITELIBDIR%%/catfish/CatfishPrefsDialog.py +%%PYTHON_SITELIBDIR%%/catfish/CatfishPrefsDialog.pyc +%%PYTHON_SITELIBDIR%%/catfish/CatfishPrefsDialog.pyo %%PYTHON_SITELIBDIR%%/catfish/CatfishSearchEngine.py %%PYTHON_SITELIBDIR%%/catfish/CatfishSearchEngine.pyc %%PYTHON_SITELIBDIR%%/catfish/CatfishSearchEngine.pyo @@ -20,6 +24,9 @@ bin/catfish %%PYTHON_SITELIBDIR%%/catfish_lib/CatfishSettings.py %%PYTHON_SITELIBDIR%%/catfish_lib/CatfishSettings.pyc %%PYTHON_SITELIBDIR%%/catfish_lib/CatfishSettings.pyo +%%PYTHON_SITELIBDIR%%/catfish_lib/PrefsDialog.py +%%PYTHON_SITELIBDIR%%/catfish_lib/PrefsDialog.pyc +%%PYTHON_SITELIBDIR%%/catfish_lib/PrefsDialog.pyo %%PYTHON_SITELIBDIR%%/catfish_lib/SudoDialog.py %%PYTHON_SITELIBDIR%%/catfish_lib/SudoDialog.pyc %%PYTHON_SITELIBDIR%%/catfish_lib/SudoDialog.pyo @@ -40,8 +47,12 @@ bin/catfish %%PYTHON_SITELIBDIR%%/catfish_lib/helpers.pyo share/applications/org.xfce.Catfish.desktop %%DATADIR%%/ui/AboutCatfishDialog.ui +%%DATADIR%%/ui/CatfishPreferences.ui %%DATADIR%%/ui/CatfishWindow.ui %%DATADIR%%/ui/about_catfish_dialog.xml +%%DATADIR%%/ui/catfish-wl-headerbar.png +%%DATADIR%%/ui/catfish-wl-titlebar.png +%%DATADIR%%/ui/catfish_preferences.xml %%DATADIR%%/ui/catfish_window.xml %%PORTDOCS%%%%DOCSDIR%%/README share/icons/hicolor/scalable/apps/catfish.svg @@ -93,5 +104,4 @@ share/locale/tr/LC_MESSAGES/catfish.mo share/locale/uk/LC_MESSAGES/catfish.mo share/locale/zh_CN/LC_MESSAGES/catfish.mo share/locale/zh_TW/LC_MESSAGES/catfish.mo -share/man/man1/catfish.1 share/metainfo/catfish.appdata.xml