diff options
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/py-carbon/Makefile | 28 | ||||
-rw-r--r-- | databases/py-carbon/distinfo | 2 | ||||
-rw-r--r-- | databases/py-carbon/files/carbon.in | 57 | ||||
-rw-r--r-- | databases/py-carbon/files/patch-setup.cfg | 6 | ||||
-rw-r--r-- | databases/py-carbon/files/patch-setup.py | 15 | ||||
-rw-r--r-- | databases/py-carbon/files/pkg_message.in | 19 | ||||
-rw-r--r-- | databases/py-carbon/pkg-descr | 3 | ||||
-rw-r--r-- | databases/py-carbon/pkg-plist | 99 |
9 files changed, 230 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index a4633f21c2ff..fe44e1423a7b 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -655,6 +655,7 @@ SUBDIR += py-PyGreSQL SUBDIR += py-bsddb SUBDIR += py-bsddb3 + SUBDIR += py-carbon SUBDIR += py-cdb SUBDIR += py-cmemcache SUBDIR += py-couchdb diff --git a/databases/py-carbon/Makefile b/databases/py-carbon/Makefile new file mode 100644 index 000000000000..c2c48100e524 --- /dev/null +++ b/databases/py-carbon/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: py-carbon +# Date created: 2011-05-01 +# Whom: Evan Sarmiento <bsdports@wayfair.com> +# +# $FreeBSD$ +# + +PORTNAME= carbon +PORTVERSION= 0.9.9 +CATEGORIES= databases python +MASTER_SITES= http://launchpad.net/graphite/0.9/${PORTVERSION}/+download/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= bsdports@wayfair.com +COMMENT= Backend storage application for graphite + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}txamqp>=0.3:${PORTSDIR}/net/py-txamqp \ + ${PYTHON_PKGNAMEPREFIX}whisper>=0.9.9:${PORTSDIR}/databases/py-whisper \ + ${PYTHON_PKGNAMEPREFIX}twisted>=11.0.0:${PORTSDIR}/devel/py-twisted +BUILD_DEPENDS= ${RUN_DEPENDS} + +USE_PYTHON= 2.6+ +USE_PYDISTUTILS= yes +USE_TWISTED= yes +FETCH_ARGS= -pRr +USE_RC_SUBR= carbon + +.include <bsd.port.mk> diff --git a/databases/py-carbon/distinfo b/databases/py-carbon/distinfo new file mode 100644 index 000000000000..58483e992f4d --- /dev/null +++ b/databases/py-carbon/distinfo @@ -0,0 +1,2 @@ +SHA256 (carbon-0.9.9.tar.gz) = b3d42e3b93c09a82646168d7439e25cfc52143d77eba8a1f8ed45e415bb3b5cb +SIZE (carbon-0.9.9.tar.gz) = 39813 diff --git a/databases/py-carbon/files/carbon.in b/databases/py-carbon/files/carbon.in new file mode 100644 index 000000000000..8fc587b1e5cf --- /dev/null +++ b/databases/py-carbon/files/carbon.in @@ -0,0 +1,57 @@ +#!/bin/sh +# +# PROVIDE: carbon +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# carbon_enable (bool): Set to NO by default. +# Set it to YES to enable it. +# carbon_conf_dir: Directory where sabnzbd configuration +# data is stored. +# Default: /usr/local/sabnzbd +# carbon_user: The user account sabnzbd daemon runs as what +# you want it to be. It uses 'www' user by +# default. Do not sets it as empty or it will run +# as root. +# carbon_group: The group account sabnzbd daemon runs as what +# you want it to be. It uses 'www' group by +# default. Do not sets it as empty or it will run +# as wheel. + +. /etc/rc.subr + +name="carbon" +rcvar=${name}_enable + +load_rc_config ${name} + +: ${carbon_enable:="NO"} +: ${carbon_user:="root"} +: ${carbon_group:="wheel"} +: ${carbon_conf:="/usr/local/etc/carbon/carbon.conf"} +: ${carbon_debug:="NO"} +: ${carbon_logdir:="/usr/local/graphite/storage/log"} +: ${carbon_pidfile:="/var/run/carbon.pid"} + +status_cmd="${name}_status" +stop_cmd="${name}_stop" + +command_interpreter="/usr/local/bin/python2.7" +command="/usr/local/bin/carbon-cache.py" +command_args="--config=${carbon_conf} --logdir ${carbon_logdir} --pidfile ${carbon_pidfile} start" + +carbon_stop() { + echo "Stopping $name" + + /usr/local/bin/carbon-cache.py --config=${carbon_conf} --pidfile ${carbon_pidfile} stop +} + +carbon_status() { + /usr/local/bin/carbon-cache.py --config=${carbon_conf} --pidfile ${carbon_pidfile} status + +} + +run_rc_command "$1" + diff --git a/databases/py-carbon/files/patch-setup.cfg b/databases/py-carbon/files/patch-setup.cfg new file mode 100644 index 000000000000..b6e77f6467a8 --- /dev/null +++ b/databases/py-carbon/files/patch-setup.cfg @@ -0,0 +1,6 @@ +--- setup.cfg.org 2011-05-05 20:55:25.000000000 -0400 ++++ setup.cfg 2011-05-05 20:55:31.000000000 -0400 +@@ -1,3 +1 @@ + [install] +-prefix = /opt/graphite +-install-lib = %(prefix)s/lib diff --git a/databases/py-carbon/files/patch-setup.py b/databases/py-carbon/files/patch-setup.py new file mode 100644 index 000000000000..2153d33e841e --- /dev/null +++ b/databases/py-carbon/files/patch-setup.py @@ -0,0 +1,15 @@ +--- setup.py.orig 2011-04-03 22:20:13.000000000 -0400 ++++ setup.py 2011-05-05 22:03:42.000000000 -0400 +@@ -12,9 +12,9 @@ + setup_kwargs = dict() + + +-storage_dirs = [ ('storage/whisper',[]), ('storage/lists',[]), +- ('storage/log',[]), ('storage/rrd',[]) ] +-conf_files = [ ('conf', glob('conf/*.example')) ] ++storage_dirs = [ ('/var/db/graphite/storage/whisper',[]), ('/var/db/graphite/storage/lists',[]), ++ ('/var/db/graphite/storage/log',[]), ('/var/db/graphite/storage/rrd',[]) ] ++conf_files = [ ('/usr/local/etc/carbon', glob('conf/*.example')) ] + + setup( + name='carbon', diff --git a/databases/py-carbon/files/pkg_message.in b/databases/py-carbon/files/pkg_message.in new file mode 100644 index 000000000000..71daf8b5e9e8 --- /dev/null +++ b/databases/py-carbon/files/pkg_message.in @@ -0,0 +1,19 @@ +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + +This port now includes an rc script: + +%%PREFIX%%/etc/rc.d/carbon + +Add: + +carbon_enable="YES" + +to /etc/rc.conf, then start it via: + +%%PREFIX%%/etc/rc.d/carbon start + +Once started, finish setting up Graphite + + +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + diff --git a/databases/py-carbon/pkg-descr b/databases/py-carbon/pkg-descr new file mode 100644 index 000000000000..16c2cb915ec9 --- /dev/null +++ b/databases/py-carbon/pkg-descr @@ -0,0 +1,3 @@ +Carbon is a backend data caching and persistence daemon for Graphite + +WWW: http://launchpad.net/graphite diff --git a/databases/py-carbon/pkg-plist b/databases/py-carbon/pkg-plist new file mode 100644 index 000000000000..a7007456884c --- /dev/null +++ b/databases/py-carbon/pkg-plist @@ -0,0 +1,99 @@ +bin/carbon-aggregator.py +bin/carbon-cache.py +bin/carbon-client.py +bin/carbon-relay.py +bin/validate-storage-schemas.py +etc/carbon/rewrite-rules.conf.example +etc/carbon/carbon.amqp.conf.example +etc/carbon/carbon.conf.example +etc/carbon/aggregation-rules.conf.example +etc/carbon/relay-rules.conf.example +etc/carbon/storage-schemas.conf.example +%%PYTHON_SITELIBDIR%%/twisted/plugins/carbon_aggregator_plugin.py +%%PYTHON_SITELIBDIR%%/twisted/plugins/carbon_relay_plugin.py +%%PYTHON_SITELIBDIR%%/twisted/plugins/carbon_cache_plugin.py +%%PYTHON_SITELIBDIR%%/twisted/plugins/carbon_aggregator_plugin.pyc +%%PYTHON_SITELIBDIR%%/twisted/plugins/carbon_relay_plugin.pyc +%%PYTHON_SITELIBDIR%%/twisted/plugins/carbon_cache_plugin.pyc +%%PYTHON_SITELIBDIR%%/twisted/plugins/carbon_aggregator_plugin.pyo +%%PYTHON_SITELIBDIR%%/twisted/plugins/carbon_relay_plugin.pyo +%%PYTHON_SITELIBDIR%%/twisted/plugins/carbon_cache_plugin.pyo +%%PYTHON_SITELIBDIR%%/carbon/amqp_publisher.py +%%PYTHON_SITELIBDIR%%/carbon/cache.py +%%PYTHON_SITELIBDIR%%/carbon/client.py +%%PYTHON_SITELIBDIR%%/carbon/util.py +%%PYTHON_SITELIBDIR%%/carbon/relayrules.py +%%PYTHON_SITELIBDIR%%/carbon/hashing.py +%%PYTHON_SITELIBDIR%%/carbon/log.py +%%PYTHON_SITELIBDIR%%/carbon/manhole.py +%%PYTHON_SITELIBDIR%%/carbon/events.py +%%PYTHON_SITELIBDIR%%/carbon/__init__.py +%%PYTHON_SITELIBDIR%%/carbon/routers.py +%%PYTHON_SITELIBDIR%%/carbon/conf.py +%%PYTHON_SITELIBDIR%%/carbon/management.py +%%PYTHON_SITELIBDIR%%/carbon/writer.py +%%PYTHON_SITELIBDIR%%/carbon/amqp_listener.py +%%PYTHON_SITELIBDIR%%/carbon/rewrite.py +%%PYTHON_SITELIBDIR%%/carbon/instrumentation.py +%%PYTHON_SITELIBDIR%%/carbon/storage.py +%%PYTHON_SITELIBDIR%%/carbon/state.py +%%PYTHON_SITELIBDIR%%/carbon/service.py +%%PYTHON_SITELIBDIR%%/carbon/protocols.py +%%PYTHON_SITELIBDIR%%/carbon/aggregator/rules.py +%%PYTHON_SITELIBDIR%%/carbon/aggregator/__init__.py +%%PYTHON_SITELIBDIR%%/carbon/aggregator/receiver.py +%%PYTHON_SITELIBDIR%%/carbon/aggregator/buffers.py +%%PYTHON_SITELIBDIR%%/carbon/aggregator/rules.pyc +%%PYTHON_SITELIBDIR%%/carbon/aggregator/__init__.pyc +%%PYTHON_SITELIBDIR%%/carbon/aggregator/receiver.pyc +%%PYTHON_SITELIBDIR%%/carbon/aggregator/buffers.pyc +%%PYTHON_SITELIBDIR%%/carbon/aggregator/rules.pyo +%%PYTHON_SITELIBDIR%%/carbon/aggregator/__init__.pyo +%%PYTHON_SITELIBDIR%%/carbon/aggregator/receiver.pyo +%%PYTHON_SITELIBDIR%%/carbon/aggregator/buffers.pyo +%%PYTHON_SITELIBDIR%%/carbon/amqp0-8.xml +%%PYTHON_SITELIBDIR%%/carbon/amqp_publisher.pyc +%%PYTHON_SITELIBDIR%%/carbon/cache.pyc +%%PYTHON_SITELIBDIR%%/carbon/client.pyc +%%PYTHON_SITELIBDIR%%/carbon/util.pyc +%%PYTHON_SITELIBDIR%%/carbon/relayrules.pyc +%%PYTHON_SITELIBDIR%%/carbon/hashing.pyc +%%PYTHON_SITELIBDIR%%/carbon/log.pyc +%%PYTHON_SITELIBDIR%%/carbon/manhole.pyc +%%PYTHON_SITELIBDIR%%/carbon/events.pyc +%%PYTHON_SITELIBDIR%%/carbon/__init__.pyc +%%PYTHON_SITELIBDIR%%/carbon/routers.pyc +%%PYTHON_SITELIBDIR%%/carbon/conf.pyc +%%PYTHON_SITELIBDIR%%/carbon/management.pyc +%%PYTHON_SITELIBDIR%%/carbon/writer.pyc +%%PYTHON_SITELIBDIR%%/carbon/amqp_listener.pyc +%%PYTHON_SITELIBDIR%%/carbon/rewrite.pyc +%%PYTHON_SITELIBDIR%%/carbon/instrumentation.pyc +%%PYTHON_SITELIBDIR%%/carbon/storage.pyc +%%PYTHON_SITELIBDIR%%/carbon/state.pyc +%%PYTHON_SITELIBDIR%%/carbon/service.pyc +%%PYTHON_SITELIBDIR%%/carbon/protocols.pyc +%%PYTHON_SITELIBDIR%%/carbon/amqp_publisher.pyo +%%PYTHON_SITELIBDIR%%/carbon/cache.pyo +%%PYTHON_SITELIBDIR%%/carbon/client.pyo +%%PYTHON_SITELIBDIR%%/carbon/util.pyo +%%PYTHON_SITELIBDIR%%/carbon/relayrules.pyo +%%PYTHON_SITELIBDIR%%/carbon/hashing.pyo +%%PYTHON_SITELIBDIR%%/carbon/log.pyo +%%PYTHON_SITELIBDIR%%/carbon/manhole.pyo +%%PYTHON_SITELIBDIR%%/carbon/events.pyo +%%PYTHON_SITELIBDIR%%/carbon/__init__.pyo +%%PYTHON_SITELIBDIR%%/carbon/routers.pyo +%%PYTHON_SITELIBDIR%%/carbon/conf.pyo +%%PYTHON_SITELIBDIR%%/carbon/management.pyo +%%PYTHON_SITELIBDIR%%/carbon/writer.pyo +%%PYTHON_SITELIBDIR%%/carbon/amqp_listener.pyo +%%PYTHON_SITELIBDIR%%/carbon/rewrite.pyo +%%PYTHON_SITELIBDIR%%/carbon/instrumentation.pyo +%%PYTHON_SITELIBDIR%%/carbon/storage.pyo +%%PYTHON_SITELIBDIR%%/carbon/state.pyo +%%PYTHON_SITELIBDIR%%/carbon/service.pyo +%%PYTHON_SITELIBDIR%%/carbon/protocols.pyo +@dirrm etc/carbon +@dirrm %%PYTHON_SITELIBDIR%%/carbon/aggregator +@dirrm %%PYTHON_SITELIBDIR%%/carbon |