Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

6
net/gitso/DESCR Normal file
View File

@@ -0,0 +1,6 @@
Gitso is a frontend to reverse VNC connections. It is meant to be a simple
two-step process that connects one person to another's screen. First, the
support person offers to give support. Second, the person who needs help
connects and has their screen remotely visible. Because Gitso is cross-
platform and uses a reverse VNC connection, it greatly simplifies the
process of getting and providing support.

63
net/gitso/Makefile Normal file
View File

@@ -0,0 +1,63 @@
# $NetBSD: Makefile,v 1.13 2013/06/06 12:54:55 wiz Exp $
DISTNAME= gitso-0.6
PKGREVISION= 9
CATEGORIES= net x11
MASTER_SITES= http://gitso.googlecode.com/files/
DISTFILES= gitso_0.6_linux_all.tar.gz
MAINTAINER= darcy@NetBSD.org
HOMEPAGE= http://code.google.com/p/gitso/
COMMENT= Gitso is to support others
LICENSE= gnu-gpl-v3
DEPENDS+= vncviewer-[0-9]*:../../net/vncviewer
DEPENDS+= x11vnc-[0-9]*:../../x11/x11vnc
WRKSRC= ${WRKDIR}/Gitso
PY_PATCHPLIST= yes
USE_TOOLS+= bash:run
REPLACE_BASH+= run-gitso.sh.local
REPLACE_PYTHON+= bin/gitso
REPLACE_PYTHON+= share/gitso/ArgsParser.py
REPLACE_PYTHON+= share/gitso/ConnectionWindow.py
REPLACE_PYTHON+= share/gitso/Gitso.py
REPLACE_PYTHON+= share/gitso/GitsoThread.py
REPLACE_PYTHON+= share/gitso/NATPMP.py
REPLACE_PYTHON+= share/gitso/Processes.py
.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"
MAKE_JOBS_SAFE= no
NO_BUILD= yes
INSTALLATION_DIRS+= bin
INSTALLATION_DIRS+= share/gitso
INSTALLATION_DIRS+= ${PYSITELIB}/gitso
.include "../../mk/bsd.prefs.mk"
SITEFILES= ${WRKSRC}/share/gitso/*.py \
${WRKSRC}/share/gitso/icon.* \
${WRKSRC}/share/gitso/icon.* \
${WRKSRC}/share/gitso/hosts.txt \
${WRKSRC}/share/doc/gitso/COPYING
post-patch:
${SED} -e 's|bin/gitso|${DESTDIR}${PREFIX}/bin/gitso|' \
< ${WRKSRC}/run-gitso.sh \
> ${WRKSRC}/run-gitso.sh.local
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/run-gitso.sh.local \
${DESTDIR}${PREFIX}/bin/run-gitso.sh
${INSTALL_SCRIPT} ${WRKSRC}/bin/gitso ${DESTDIR}${PREFIX}/bin
for i in ${SITEFILES}; do \
${INSTALL_DATA} $$i ${DESTDIR}${PREFIX}/${PYSITELIB}/gitso; \
done
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/py-wxWidgets/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

15
net/gitso/PLIST Normal file
View File

@@ -0,0 +1,15 @@
@comment $NetBSD: PLIST,v 1.2 2012/04/11 19:32:17 darcy Exp $
bin/gitso
bin/run-gitso.sh
${PYSITELIB}/gitso/ConnectionWindow.py
${PYSITELIB}/gitso/COPYING
${PYSITELIB}/gitso/AboutWindow.py
${PYSITELIB}/gitso/ArgsParser.py
${PYSITELIB}/gitso/Gitso.py
${PYSITELIB}/gitso/GitsoThread.py
${PYSITELIB}/gitso/NATPMP.py
${PYSITELIB}/gitso/Processes.py
${PYSITELIB}/gitso/__init__.py
${PYSITELIB}/gitso/hosts.txt
${PYSITELIB}/gitso/icon.ico
${PYSITELIB}/gitso/icon.png

9
net/gitso/distinfo Normal file
View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.2 2012/04/11 19:32:17 darcy Exp $
SHA1 (gitso_0.6_linux_all.tar.gz) = 577edcb257aa2508a6ee9b5ea8a3de135e0abf6c
RMD160 (gitso_0.6_linux_all.tar.gz) = 4428ecdbe73819a8251c3f9d05c61f62ae2e20df
Size (gitso_0.6_linux_all.tar.gz) = 192753 bytes
SHA1 (patch-ArgParser.py) = 721c7082c5eef67de9709003d9b51499c948e81c
SHA1 (patch-GitsoThread.py) = 962343bd4f842df2cbf003f8cdc0707189238463
SHA1 (patch-Processes.py) = 8260b888733d1a514ae15477bbd8a7a09140b787
SHA1 (patch-gitso) = 000f3a3d6da58ef4cd942089be563e30ddfcb708

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-ArgParser.py,v 1.1 2012/04/11 19:32:17 darcy Exp $
Set up BSD paths.
--- share/gitso/ArgsParser.py.orig 2012-04-11 18:44:23.000000000 +0000
+++ share/gitso/ArgsParser.py
@@ -46,6 +46,10 @@ class ArgsParser:
if sys.platform.find('linux') != -1:
self.paths['main'] = os.path.join(sys.path[0], '..', 'share', 'gitso')
self.paths['copyright'] = os.path.join(sys.path[0], '..', 'share', 'doc', 'gitso', 'COPYING')
+ if sys.platform.find('bsd') != -1:
+ import gitso
+ self.paths['main'] = gitso.__path__[0]
+ self.paths['copyright'] = os.path.join(gitso.__path__[0], 'COPYING')
elif sys.platform == "darwin":
self.paths['main'] = sys.path[0]
self.paths['copyright'] = os.path.join(sys.path[0], 'COPYING')

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-GitsoThread.py,v 1.1 2012/04/11 19:32:17 darcy Exp $
Test for BSD systems
--- share/gitso/GitsoThread.py.orig 2010-02-22 02:48:04.000000000 +0000
+++ share/gitso/GitsoThread.py
@@ -122,7 +122,7 @@ class GitsoThread(threading.Thread):
connection = []
listen = []
- if sys.platform == 'darwin' or sys.platform.find('linux') != -1:
+ if sys.platform == 'darwin' or sys.platform.find('linux') != -1 or sys.platform.find('bsd'):
if self.host <> "":
connection = os.popen('LANG=C netstat -an | grep 5500 | grep ESTABLISHED').readlines()
else:

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-Processes.py,v 1.1 2012/04/11 19:32:17 darcy Exp $
Test for BSD systems
--- share/gitso/Processes.py.orig 2010-02-22 02:48:04.000000000 +0000
+++ share/gitso/Processes.py
@@ -35,7 +35,7 @@ class Processes:
def getSupport(self, host):
if sys.platform == 'darwin':
self.returnPID = os.spawnl(os.P_NOWAIT, '%sOSXvnc/OSXvnc-server' % self.paths['resources'], '%sOSXvnc/OSXvnc-server' % self.paths['resources'], '-connectHost', '%s' % host)
- elif sys.platform.find('linux') != -1:
+ elif sys.platform.find('linux') != -1 or sys.platform.find('bsd'):
# We should include future versions with options for speed.
#self.returnPID = os.spawnlp(os.P_NOWAIT, 'x11vnc', 'x11vnc','-nopw','-ncache','20','-solid','black','-connect','%s' % host)
@@ -59,7 +59,7 @@ class Processes:
if sys.platform == 'darwin':
vncviewer = '%scotvnc.app/Contents/MacOS/cotvnc' % self.paths['resources']
self.returnPID = os.spawnlp(os.P_NOWAIT, vncviewer, vncviewer, '--listen')
- elif sys.platform.find('linux') != -1:
+ elif sys.platform.find('linux') != -1 or sys.platform.find('bsd'):
self.returnPID = os.spawnlp(os.P_NOWAIT, 'vncviewer', 'vncviewer', '-listen')
# These are the options for low-res connections.

View File

@@ -0,0 +1,18 @@
$NetBSD: patch-gitso,v 1.1 2012/04/11 19:32:17 darcy Exp $
Fix up PYTHONPATH
--- bin/gitso.orig 2010-02-22 02:48:04.000000000 +0000
+++ bin/gitso
@@ -1,9 +1,9 @@
#!/usr/bin/env python
import sys, os, wx
-sys.path.append(os.path.join(sys.path[0], '..', 'share', 'gitso'))
+sys.path.append(os.path.join(sys.path[0], 'gitso'))
-from Gitso import ConnectionWindow, ArgsParser
+from gitso import ConnectionWindow, ArgsParser
if __name__ == "__main__":
app = wx.PySimpleApp()