summaryrefslogtreecommitdiff
path: root/deskutils
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2015-10-06 19:18:23 +0000
committerSteve Wills <swills@FreeBSD.org>2015-10-06 19:18:23 +0000
commit40440d694d6a5a1f077ed3d5a6ac568609d18837 (patch)
tree987f125ecb5fb82a3464ad36c2906e8329bb027c /deskutils
parentmultimedia/mpv: 0.10.0 -> 0.11.0 (diff)
deskutils/syncthing-gtk: create port
GTK3 & Python based GUI and notification area icon for Syncthing Supported Syncthing features: Everything what WebUI can display Adding / editing / deleting nodes Adding / editing / deleting repositories Restart / shutdown server Editing daemon settings WWW: https://syncthing.net/ PR: 203562 Submitted by: Ivan <enitarzi@gmail.com>
Notes
Notes: svn path=/head/; revision=398715
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/Makefile1
-rw-r--r--deskutils/syncthing-gtk/Makefile28
-rw-r--r--deskutils/syncthing-gtk/distinfo2
-rw-r--r--deskutils/syncthing-gtk/files/patch-syncthing-gtk.desktop11
-rw-r--r--deskutils/syncthing-gtk/files/patch-syncthing__gtk_configuration.py11
-rw-r--r--deskutils/syncthing-gtk/pkg-descr10
6 files changed, 63 insertions, 0 deletions
diff --git a/deskutils/Makefile b/deskutils/Makefile
index c75aa1e8c6c8..2de28e03446a 100644
--- a/deskutils/Makefile
+++ b/deskutils/Makefile
@@ -234,6 +234,7 @@
SUBDIR += superkaramba
SUBDIR += superswitcher
SUBDIR += surrealtodo
+ SUBDIR += syncthing-gtk
SUBDIR += systempreferences
SUBDIR += tagutils
SUBDIR += taskcoach
diff --git a/deskutils/syncthing-gtk/Makefile b/deskutils/syncthing-gtk/Makefile
new file mode 100644
index 000000000000..9945bddbff40
--- /dev/null
+++ b/deskutils/syncthing-gtk/Makefile
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+PORTNAME= syncthing-gtk
+PORTVERSION= 0.7.6
+DISTVERSIONPREFIX= v
+CATEGORIES= deskutils python
+
+MAINTAINER= bsd@abinet.ru
+COMMENT= Python based GUI for Syncthing
+
+LICENSE= GPLv2
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>0:${PORTSDIR}/devel/py-dateutil
+
+USE_GITHUB= yes
+GH_ACCOUNT= syncthing
+
+USES= python:2
+USE_PYTHON= autoplist distutils
+USE_GNOME= gtk30 pygobject3
+INSTALLS_ICONS= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
+ ${WRKSRC}/syncthing-gtk.desktop \
+ ${WRKSRC}/syncthing_gtk/configuration.py
+
+.include <bsd.port.mk>
diff --git a/deskutils/syncthing-gtk/distinfo b/deskutils/syncthing-gtk/distinfo
new file mode 100644
index 000000000000..61fe68b424fc
--- /dev/null
+++ b/deskutils/syncthing-gtk/distinfo
@@ -0,0 +1,2 @@
+SHA256 (syncthing-syncthing-gtk-v0.7.6_GH0.tar.gz) = e7993135035114c43c06dcc12e52f665578166be089de422b691551a71fcceb4
+SIZE (syncthing-syncthing-gtk-v0.7.6_GH0.tar.gz) = 486984
diff --git a/deskutils/syncthing-gtk/files/patch-syncthing-gtk.desktop b/deskutils/syncthing-gtk/files/patch-syncthing-gtk.desktop
new file mode 100644
index 000000000000..58a12ba333cd
--- /dev/null
+++ b/deskutils/syncthing-gtk/files/patch-syncthing-gtk.desktop
@@ -0,0 +1,11 @@
+--- syncthing-gtk.desktop.orig 2015-10-06 17:39:30 UTC
++++ syncthing-gtk.desktop
+@@ -2,7 +2,7 @@
+ Name=Syncthing GTK
+ GenericName=Syncthing GTK
+ Comment=GUI for Syncthing
+-Exec=/usr/bin/syncthing-gtk
++Exec=%%LOCALBASE%%/bin/syncthing-gtk
+ Type=Application
+ Icon=syncthing-gtk
+ Categories=Network
diff --git a/deskutils/syncthing-gtk/files/patch-syncthing__gtk_configuration.py b/deskutils/syncthing-gtk/files/patch-syncthing__gtk_configuration.py
new file mode 100644
index 000000000000..694d25a0cbb8
--- /dev/null
+++ b/deskutils/syncthing-gtk/files/patch-syncthing__gtk_configuration.py
@@ -0,0 +1,11 @@
+--- syncthing_gtk/configuration.py.orig 2015-10-06 17:40:00 UTC
++++ syncthing_gtk/configuration.py
+@@ -30,7 +30,7 @@ class _Configuration(object):
+ "autokill_daemon" : (int, 2), # 0 - never kill, 1 - always kill, 2 - ask
+ "daemon_priority" : (int, 0), # uses nice values
+ "max_cpus" : (int, 0), # 0 for all cpus
+- "syncthing_binary" : (str, "/usr/bin/syncthing"),
++ "syncthing_binary" : (str, "%%LOCALBASE%%/bin/syncthing"),
+ "minimize_on_start" : (bool, False),
+ "folder_as_path" : (bool, True),
+ "use_inotify" : (list, []),
diff --git a/deskutils/syncthing-gtk/pkg-descr b/deskutils/syncthing-gtk/pkg-descr
new file mode 100644
index 000000000000..88747e2d2c6f
--- /dev/null
+++ b/deskutils/syncthing-gtk/pkg-descr
@@ -0,0 +1,10 @@
+GTK3 & Python based GUI and notification area icon for Syncthing
+
+Supported Syncthing features:
+ Everything what WebUI can display
+ Adding / editing / deleting nodes
+ Adding / editing / deleting repositories
+ Restart / shutdown server
+ Editing daemon settings
+
+WWW: https://syncthing.net/