diff options
author | Rene Ladan <rene@FreeBSD.org> | 2025-04-28 20:56:19 +0200 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2025-04-28 20:56:19 +0200 |
commit | b5a41bf08e0694f42ce455aa2f843e115d185af8 (patch) | |
tree | d89523b033c4df94304a6f9f2c1015bbe588dfab /databases/py-carbon/files | |
parent | security/weggli: Remove expired port (diff) |
databases/py-carbon: Remove expired port
2025-04-27 databases/py-carbon: In bandaid mode as the concentration is on go-carbon
Diffstat (limited to 'databases/py-carbon/files')
-rw-r--r-- | databases/py-carbon/files/carbon.in | 117 | ||||
-rw-r--r-- | databases/py-carbon/files/patch-conf__carbon.amqp.conf.example | 11 | ||||
-rw-r--r-- | databases/py-carbon/files/patch-conf__carbon.conf.example | 10 | ||||
-rw-r--r-- | databases/py-carbon/files/patch-setup.py | 17 | ||||
-rw-r--r-- | databases/py-carbon/files/pkg_message.in | 17 |
5 files changed, 0 insertions, 172 deletions
diff --git a/databases/py-carbon/files/carbon.in b/databases/py-carbon/files/carbon.in deleted file mode 100644 index a3f98eae28eb..000000000000 --- a/databases/py-carbon/files/carbon.in +++ /dev/null @@ -1,117 +0,0 @@ -#!/bin/sh - -# PROVIDE: carbon -# REQUIRE: LOGIN -# 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_as_relay (bool): Set to NO by default (start cache). -# Set it to YES to run as RELAY. -# carbon_instances: Empty by default (start single instance). -# Space-separated list of instances to start. -# carbon_conf: File where carbon configuration resides -# Default: %%PREFIX%%/etc/carbon/carbon.conf -# carbon_relay_rules: File where carbon relay rules resides -# Default: %%PREFIX%%/etc/carbon/relay-rules.conf -# carbon_user: The user account carbon daemon runs as what -# you want it to be. It uses 'root' user by -# default. -# carbon_group: The group account carbon daemon runs as what -# you want it to be. It uses 'wheel' group by -# default. -# carbon_debug: Determines if you want carbon to run in debug -# mode, it may be very verbose. It will not run -# in debug by default. -# carbon_logdir: Directory where carbon logs are stored. -# Default: /var/db/carbon/log -# - -. /etc/rc.subr - -name=carbon -rcvar=carbon_enable - -load_rc_config ${name} - -: ${carbon_enable:=NO} -: ${carbon_as_relay:=NO} -: ${carbon_instances:=""} -: ${carbon_user:=root} -: ${carbon_group:=wheel} -: ${carbon_conf:=%%PREFIX%%/etc/carbon/carbon.conf} -: ${carbon_relay_rules:=%%PREFIX%%/etc/carbon/relay-rules.conf} -: ${carbon_debug:=NO} -: ${carbon_logdir:=/var/db/carbon/log/} -: ${carbon_pidfile:=/var/run/carbon.pid} - -is_carbon_instance() { - local instance - for instance in ${carbon_instances}; do - if [ "${instance}" = "$1" ]; then - return 0 - fi - done - return 1 -} - -if [ -n "${carbon_instances}" ]; then - if [ -n "$2" ]; then - instance="$2" - if ! is_carbon_instance ${instance}; then - echo "$0: no such instance defined in carbon_instances." - exit 1 - fi - instance_arg="--instance=${instance}" - eval carbon_user=\${carbon_${instance}_user:-"${carbon_user}"} - eval carbon_group=\${carbon_${instance}_group:-"${carbon_group}"} - eval carbon_conf=\${carbon_${instance}_conf:-"${carbon_conf}"} - eval carbon_relay_rules=\${carbon_${instance}_relay_rules:-"${carbon_relay_rules}"} - eval carbon_debug=\${carbon_${instance}_debug:-"${carbon_debug}"} - eval carbon_logdir=\${carbon_${instance}_logdir:-"${carbon_logdir}"} - eval carbon_pidfile=\${carbon_${instance}_pidfile:-"/var/run/carbon-${instance}.pid"} - elif [ -n "$1" ]; then - for instance in ${carbon_instances}; do - echo "Processing carbon instance: ${instance}" - /usr/local/etc/rc.d/carbon $1 ${instance} - done - exit 0 - fi -fi - -is_carbon_relay() { - if [ "${carbon_as_relay}" = "YES" ]; then - return 0 - fi - return 1 -} - -stop_cmd="${name}_stop" -required_files="${carbon_conf} %%PREFIX%%/etc/carbon/storage-schemas.conf" - -pidfile=${carbon_pidfile} -command_interpreter="%%PYTHON_CMD%%" - -if is_carbon_relay; then - command="%%PREFIX%%/bin/carbon-relay.py" - rules_arg="--rules ${carbon_relay_rules}" -else - command="%%PREFIX%%/bin/carbon-cache.py" - rules_arg="" -fi -command_args="--config=${carbon_conf} ${instance_arg} --logdir ${carbon_logdir} --pidfile ${pidfile} ${rules_arg} start" - -carbon_stop() -{ - echo "Stopping $name" - pids=`check_pidfile ${pidfile} ${command} ${command_interpreter}` - - ${command} --config=${carbon_conf} ${instance_arg} --pidfile ${pidfile} stop - wait_for_pids ${pids} -} - -run_rc_command "$1" diff --git a/databases/py-carbon/files/patch-conf__carbon.amqp.conf.example b/databases/py-carbon/files/patch-conf__carbon.amqp.conf.example deleted file mode 100644 index b002056eaa2a..000000000000 --- a/databases/py-carbon/files/patch-conf__carbon.amqp.conf.example +++ /dev/null @@ -1,11 +0,0 @@ ---- conf/carbon.amqp.conf.example.orig 2015-11-27 18:37:07 UTC -+++ conf/carbon.amqp.conf.example -@@ -1,7 +1,7 @@ - # This is a configuration file with AMQP enabled - - [cache] --LOCAL_DATA_DIR = -+LOCAL_DATA_DIR = /var/db/carbon/whisper - - # Specify the user to drop privileges to - # If this is blank carbon runs as the user that invokes it diff --git a/databases/py-carbon/files/patch-conf__carbon.conf.example b/databases/py-carbon/files/patch-conf__carbon.conf.example deleted file mode 100644 index ac64fc80b349..000000000000 --- a/databases/py-carbon/files/patch-conf__carbon.conf.example +++ /dev/null @@ -1,10 +0,0 @@ ---- conf/carbon.conf.example.orig 2015-11-27 18:37:07 UTC -+++ conf/carbon.conf.example -@@ -29,6 +29,7 @@ - # PID_DIR = /var/run/ - # - #LOCAL_DATA_DIR = /opt/graphite/storage/whisper/ -+LOCAL_DATA_DIR = /var/db/carbon/whisper/ - - # Enable daily log rotation. If disabled, carbon will automatically re-open - # the file if it's rotated out of place (e.g. by logrotate daemon) diff --git a/databases/py-carbon/files/patch-setup.py b/databases/py-carbon/files/patch-setup.py deleted file mode 100644 index 6d4dfa07b88d..000000000000 --- a/databases/py-carbon/files/patch-setup.py +++ /dev/null @@ -1,17 +0,0 @@ ---- setup.py.orig 2020-03-16 15:22:22 UTC -+++ setup.py -@@ -58,10 +58,10 @@ else: - setup_kwargs = dict() - - --storage_dirs = [ ('storage/ceres/dummy.txt', []), ('storage/whisper/dummy.txt',[]), -- ('storage/lists',[]), ('storage/log/dummy.txt',[]), -- ('storage/rrd/dummy.txt',[]) ] --conf_files = [ ('conf', glob('conf/*.example')) ] -+storage_dirs = [ ('/var/db/carbon/ceres',[]), ('/var/db/carbon/whisper',[]), -+ ('/var/db/carbon/lists',[]), ('/var/db/carbon/log',[]), -+ ('/var/db/carbon/rrd',[]) ] -+conf_files = [ ('%%PREFIX%%/etc/carbon', glob('conf/*.example')) ] - - install_files = storage_dirs + conf_files - diff --git a/databases/py-carbon/files/pkg_message.in b/databases/py-carbon/files/pkg_message.in deleted file mode 100644 index 18d9949bfdfd..000000000000 --- a/databases/py-carbon/files/pkg_message.in +++ /dev/null @@ -1,17 +0,0 @@ -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - -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 - -* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |