From owner-svn-ports-all@freebsd.org Mon Aug 13 06:47:21 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A372A1067F45; Mon, 13 Aug 2018 06:47:21 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4649B8CFA7; Mon, 13 Aug 2018 06:47:21 +0000 (UTC) (envelope-from yuri@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 231FA10F6; Mon, 13 Aug 2018 06:47:21 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w7D6lL9w008272; Mon, 13 Aug 2018 06:47:21 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7D6lJuT008266; Mon, 13 Aug 2018 06:47:19 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201808130647.w7D6lJuT008266@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Mon, 13 Aug 2018 06:47:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r477053 - in head/security: . theonionbox theonionbox/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/security: . theonionbox theonionbox/files X-SVN-Commit-Revision: 477053 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Aug 2018 06:47:22 -0000 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@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 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