svn commit: r477053 - in head/security: . theonionbox theonionbox/files
Yuri Victorovich
yuri at FreeBSD.org
Mon Aug 13 06:47:22 UTC 2018
Author: yuri
Date: Mon Aug 13 06:47:19 2018
New Revision: 477053
URL: https://svnweb.freebsd.org/changeset/ports/477053
Log:
New port: security/theonionbox: Web interface to monitor Tor node operation
Added:
head/security/theonionbox/
head/security/theonionbox/Makefile (contents, props changed)
head/security/theonionbox/distinfo (contents, props changed)
head/security/theonionbox/files/
head/security/theonionbox/files/patch-setup.py (contents, props changed)
head/security/theonionbox/files/patch-theonionbox_theonionbox.py (contents, props changed)
head/security/theonionbox/pkg-descr (contents, props changed)
Modified:
head/security/Makefile
Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile Mon Aug 13 05:38:34 2018 (r477052)
+++ head/security/Makefile Mon Aug 13 06:47:19 2018 (r477053)
@@ -1290,6 +1290,7 @@
SUBDIR += tcpcrypt
SUBDIR += teleport
SUBDIR += testssl.sh
+ SUBDIR += theonionbox
SUBDIR += tinc
SUBDIR += tinc-devel
SUBDIR += tinyca
Added: head/security/theonionbox/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/theonionbox/Makefile Mon Aug 13 06:47:19 2018 (r477053)
@@ -0,0 +1,55 @@
+# $FreeBSD$
+
+PORTNAME= theonionbox
+PORTVERSION= 4.2.1
+CATEGORIES= security net python
+MASTER_SITES= CHEESESHOP
+
+MAINTAINER= yuri at FreeBSD.org
+COMMENT= Web interface to monitor Tor node operation
+
+LICENSE= MIT
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}apscheduler>=3.4:devel/py-apscheduler@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}bottle>=0.12.13:www/py-bottle@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}psutil>=5.4.0:sysutils/py-psutil@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pysocks>=1.6.7:net/py-pysocks@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests>2.18:www/py-requests@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}stem>=1.5.4:security/py-stem@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}tzlocal>=1.4:devel/py-tzlocal@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}urllib3>=1.22:net/py-urllib3@${PY_FLAVOR}
+py27_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}futures>=3.2:devel/py-futures@${PY_FLAVOR}
+
+USES= dos2unix python
+DOS2UNIX_FILES= FreeBSD/${PORTNAME}.sh
+USE_PYTHON= distutils autoplist noflavors
+NO_ARCH= yes
+
+POST_PLIST= correct-plist
+
+OPTIONS_DEFINE= DOCS
+
+post-patch:
+ @${MV} ${WRKSRC}/FreeBSD/${PORTNAME}.sh ${WRKSRC}/FreeBSD/${PORTNAME}
+ @${REINPLACE_CMD} ' \
+ s|"/your/path/to/${PORTNAME}"|"${PREFIX}"|; \
+ s|${PORTNAME}_dir}/${PORTNAME}\.py|${PORTNAME}_dir}/bin/${PORTNAME}|; \
+ s|/config/${PORTNAME}.cfg|/etc/${PORTNAME}/${PORTNAME}|; \
+ s|"/usr/local/bin/python"|"${PYTHON_CMD}"|' \
+ ${WRKSRC}/FreeBSD/${PORTNAME}
+
+post-patch-DOCS-off:
+ @${REINPLACE_CMD} "s|('share/doc/${PORTNAME}', \['docs/\*\.\*'\]),||" ${WRKSRC}/setup.py
+
+post-install:
+ @${CHMOD} +x ${STAGEDIR}${PREFIX}/etc/rc.d/${PORTNAME}
+
+correct-plist:
+ @${REINPLACE_CMD} ' \
+ s|^etc/${PORTNAME}/${PORTNAME}.example$$|@sample & etc/${PORTNAME}/${PORTNAME}|; \
+ s|^etc/${PORTNAME}$$|@dir &|; \
+ s|^etc/rc.d$$|@dir &|; \
+ s|^share/doc/${PORTNAME}$$|@dir &|' \
+ ${TMPPLIST}
+
+.include <bsd.port.mk>
Added: head/security/theonionbox/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/theonionbox/distinfo Mon Aug 13 06:47:19 2018 (r477053)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1534137084
+SHA256 (theonionbox-4.2.1.tar.gz) = 834a6e15d7074a74331866b2d05b18435ede0e5fd061def9f3e6ff7c9e2b481a
+SIZE (theonionbox-4.2.1.tar.gz) = 13117993
Added: head/security/theonionbox/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/theonionbox/files/patch-setup.py Mon Aug 13 06:47:19 2018 (r477053)
@@ -0,0 +1,40 @@
+--- setup.py.orig 2018-05-28 18:32:09 UTC
++++ setup.py
+@@ -294,18 +294,9 @@ package_data_exclude = {
+ }
+
+ data_files = [
+- ('docs', ['docs/*.*']),
+- ('', ['readme/README.html']),
+- ('config', ['theonionbox/config/*.*']),
+- ('service', []),
+- ('service/FreeBSD', ['FreeBSD/theonionbox.sh']),
+- ('service/init.d', ['init.d/theonionbox.sh']),
+- ('service/systemd', ['systemd/theonionbox.service']),
+- ('support', []),
+- ('support/osxtemp', []),
+- ('support/osxtemp/libsmc', ['support/osxtemp/libsmc/LICENSE', 'support/osxtemp/libsmc/Makefile']),
+- ('support/osxtemp/libsmc/include', ['support/osxtemp/libsmc/include/smc.h']),
+- ('support/osxtemp/libsmc/src', ['support/osxtemp/libsmc/src/smc.c']),
++ ('share/doc/theonionbox', ['docs/*.*']),
++ ('etc/theonionbox', ['theonionbox/config/*.*']),
++ ('etc/rc.d', ['FreeBSD/theonionbox']),
+ ]
+ # print(generate_data_files(data_files))
+
+@@ -374,13 +365,12 @@ setup(
+ },
+ install_requires=[
+ 'psutil>=5.4.0',
+- 'apscheduler>=2.1.2, <3.*; python_version<"3.0"',
+- 'apscheduler>=3.4; python_version>="3.0"',
++ 'apscheduler>=3.5.1',
+ 'requests>2.18',
+ 'PySocks>=1.6.7',
+ 'bottle>=0.12.13',
+ 'stem>=1.5.4',
+- 'tzlocal>=1.5',
++ 'tzlocal>=1.4',
+ 'futures>=3.2; python_version<"3.0"',
+ 'urllib3>=1.22'
+ ],
Added: head/security/theonionbox/files/patch-theonionbox_theonionbox.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/theonionbox/files/patch-theonionbox_theonionbox.py Mon Aug 13 06:47:19 2018 (r477053)
@@ -0,0 +1,23 @@
+--- theonionbox/theonionbox.py.orig 2018-05-27 22:03:29 UTC
++++ theonionbox/theonionbox.py
+@@ -505,17 +505,17 @@ required_modules = {
+ },
+ 'apscheduler2': {
+ 'module': 'apscheduler',
+- 'version': '>=2.1.2, <3.*; python_version<"3.0"'
++ 'version': '>=3.4'
+ },
+ 'apscheduler3': {
+ 'module': 'apscheduler',
+- 'version': '>=3.4; python_version>="3.0"'
++ 'version': '>=3.4'
+ },
+ 'requests': {
+ 'version': '>=2.18.0'
+ },
+ 'tzlocal': {
+- 'version': '>=1.5'
++ 'version': '>=1.4'
+ },
+ 'pysocks': {
+ 'version': '>=1.6.7'
Added: head/security/theonionbox/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/theonionbox/pkg-descr Mon Aug 13 06:47:19 2018 (r477053)
@@ -0,0 +1,20 @@
+The Onion Box provides a web interface to monitor the operation of a Tor node.
+It is able to monitor any Tor node operated as relay, as bridge and even as
+client - as long as it can establish a connection to the node and authenticate
+successfully.
+
+The connection to the Tor node to be monitored may be established via a local
+ControlSocket or a ControlPort (local or remote). Advanced users may establish
+a connection via the Tor network to a node proving access to it's ControlPort by
+means of a Hidden Service - supporting on demand as well Hidden Service Client
+Authorization.
+
+The Onion Box supports whatever authentication method the Tor node provides.
+
+A single instance of The Onion Box is able to provide monitoring functionality
+for as many nodes as you like.
+
+Above that, The Onion Box is able to display Tor network status protocol data
+for any Tor node known by Onionoo.
+
+WWW: https://github.com/ralphwetzel/theonionbox
More information about the svn-ports-all
mailing list