Index: head/finance/Makefile =================================================================== --- head/finance/Makefile +++ head/finance/Makefile @@ -24,6 +24,7 @@ SUBDIR += aqbanking SUBDIR += beancount SUBDIR += beanie + SUBDIR += bitcoinnodestats SUBDIR += cbb SUBDIR += cointop SUBDIR += electrum Index: head/finance/bitcoinnodestats/Makefile =================================================================== --- head/finance/bitcoinnodestats/Makefile +++ head/finance/bitcoinnodestats/Makefile @@ -0,0 +1,43 @@ +# $FreeBSD$ + +PORTNAME= bitcoinnodestats +DISTVERSION= g20171121 +CATEGORIES= finance python + +MAINTAINER= kai@FreeBSD.org +COMMENT= Basic Bitcoin node status and statistics web application + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytz>=2017.3:devel/py-pytz@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}python-bitcoinlib>=0.8.0:finance/py-python-bitcoinlib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}django111>=1.11.7:www/py-django111@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}django-bootstrap3>=9.1.0:www/py-django-bootstrap3@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}django-cron>=0.5.0:www/py-django-cron@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}django-debug-toolbar>=0:www/py-django-debug-toolbar@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}jsonfield>=2.0.2:www/py-jsonfield@${PY_FLAVOR} + +USES= python:3.3+ shebangfix +USE_GITHUB= yes +GH_ACCOUNT= bartromgens +GH_TAGNAME= 5e8772d + +NO_ARCH= yes +NO_BUILD= yes +SHEBANGFILES= create_local_settings.py manage.py + +SUB_FILES= pkg-message +SUB_LIST= DATADIR=${DATADIR} PYTHON_VER=${PYTHON_VER} + +do-install: + @${MKDIR} ${STAGEDIR}${DATADIR} +.for _file in ${SHEBANGFILES} + ${INSTALL_DATA} ${WRKSRC}/${_file} ${STAGEDIR}${DATADIR} +.endfor + +.for _dir in bitcoinnodestats nodedata + (cd ${WRKSRC}/${_dir} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/${_dir} "! -name '*.bak'") +.endfor + +.include Index: head/finance/bitcoinnodestats/distinfo =================================================================== --- head/finance/bitcoinnodestats/distinfo +++ head/finance/bitcoinnodestats/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1549669415 +SHA256 (bartromgens-bitcoinnodestats-g20171121-5e8772d_GH0.tar.gz) = 2dc24a1646701d602de07045bf1917e605adb194f3a775abb20864f6d8a9f937 +SIZE (bartromgens-bitcoinnodestats-g20171121-5e8772d_GH0.tar.gz) = 151550 Index: head/finance/bitcoinnodestats/files/pkg-message.in =================================================================== --- head/finance/bitcoinnodestats/files/pkg-message.in +++ head/finance/bitcoinnodestats/files/pkg-message.in @@ -0,0 +1,10 @@ +================================================================================ + +Quick start instructions: + +# cd %%DATADIR%% +# python%%PYTHON_VER%% create_local_settings.py +# python%%PYTHON_VER%% manage.py migrate +# python%%PYTHON_VER%% manage.py runserver + +================================================================================ Index: head/finance/bitcoinnodestats/pkg-descr =================================================================== --- head/finance/bitcoinnodestats/pkg-descr +++ head/finance/bitcoinnodestats/pkg-descr @@ -0,0 +1,7 @@ +Bitcoin node status and statistics web interface based on Django. + +Features: +* Current node status overview +* Charts of peer count, upload and download history + +WWW: https://github.com/bartromgens/bitcoinnodestats Index: head/finance/bitcoinnodestats/pkg-plist =================================================================== --- head/finance/bitcoinnodestats/pkg-plist +++ head/finance/bitcoinnodestats/pkg-plist @@ -0,0 +1,49 @@ +%%DATADIR%%/create_local_settings.py +%%DATADIR%%/manage.py +%%DATADIR%%/bitcoinnodestats/__init__.py +%%DATADIR%%/bitcoinnodestats/local_settings_example.py +%%DATADIR%%/bitcoinnodestats/settings.py +%%DATADIR%%/bitcoinnodestats/static/bootstrap/css/bootstrap_cyborg.min.css +%%DATADIR%%/bitcoinnodestats/static/bootstrap/css/bootstrap_readable.min.css +%%DATADIR%%/bitcoinnodestats/static/bootstrap/fonts/glyphicons-halflings-regular.eot +%%DATADIR%%/bitcoinnodestats/static/bootstrap/fonts/glyphicons-halflings-regular.svg +%%DATADIR%%/bitcoinnodestats/static/bootstrap/fonts/glyphicons-halflings-regular.ttf +%%DATADIR%%/bitcoinnodestats/static/bootstrap/fonts/glyphicons-halflings-regular.woff +%%DATADIR%%/bitcoinnodestats/static/bootstrap/fonts/glyphicons-halflings-regular.woff2 +%%DATADIR%%/bitcoinnodestats/static/css/custom.css +%%DATADIR%%/bitcoinnodestats/static/css/plots.css +%%DATADIR%%/bitcoinnodestats/static/js/daterangepicker.js +%%DATADIR%%/bitcoinnodestats/static/js/plots.js +%%DATADIR%%/bitcoinnodestats/static/media/readme.txt +%%DATADIR%%/bitcoinnodestats/templates/base.html +%%DATADIR%%/bitcoinnodestats/templates/footer.html +%%DATADIR%%/bitcoinnodestats/templates/index.html +%%DATADIR%%/bitcoinnodestats/templates/input.html +%%DATADIR%%/bitcoinnodestats/templates/peer_table.html +%%DATADIR%%/bitcoinnodestats/templates/plots.html +%%DATADIR%%/bitcoinnodestats/templates/status_bar.html +%%DATADIR%%/bitcoinnodestats/urls.py +%%DATADIR%%/bitcoinnodestats/views.py +%%DATADIR%%/bitcoinnodestats/wsgi.py +%%DATADIR%%/nodedata/__init__.py +%%DATADIR%%/nodedata/admin.py +%%DATADIR%%/nodedata/apps.py +%%DATADIR%%/nodedata/cronjobs.py +%%DATADIR%%/nodedata/management/__init__.py +%%DATADIR%%/nodedata/management/commands/__init__.py +%%DATADIR%%/nodedata/management/commands/prune_data.py +%%DATADIR%%/nodedata/migrations/0001_initial.py +%%DATADIR%%/nodedata/migrations/0002_auto_20160510_1613.py +%%DATADIR%%/nodedata/migrations/0003_rawnodedata_datetime_created.py +%%DATADIR%%/nodedata/migrations/0004_rawnodedata_peerinfo_json.py +%%DATADIR%%/nodedata/migrations/0005_rawnodedata_networkinfo_json.py +%%DATADIR%%/nodedata/migrations/0006_peer.py +%%DATADIR%%/nodedata/migrations/0007_auto_20160512_0240.py +%%DATADIR%%/nodedata/migrations/0008_peer_peer_json.py +%%DATADIR%%/nodedata/migrations/0009_rawnodedata_node_up.py +%%DATADIR%%/nodedata/migrations/0010_remove_peer_peer_json.py +%%DATADIR%%/nodedata/migrations/__init__.py +%%DATADIR%%/nodedata/models.py +%%DATADIR%%/nodedata/settings.py +%%DATADIR%%/nodedata/tests.py +%%DATADIR%%/nodedata/views.py