diff options
author | Mario Preksavec <mario at slackware dot hr> | 2015-02-06 20:32:58 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-02-06 20:32:58 +0700 |
commit | 8e345cefbe19d133e041bd99e469ce3d044ea7dc (patch) | |
tree | feed123081bd13abb57d1382854a911c054dc890 /network/graphite-carbon/patches | |
parent | 171e85069717f372bfd9ba8ad6215f31bcc19bf2 (diff) |
network/graphite-carbon: Added (Backend data caching).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/graphite-carbon/patches')
3 files changed, 64 insertions, 0 deletions
diff --git a/network/graphite-carbon/patches/carbon.conf.example.diff b/network/graphite-carbon/patches/carbon.conf.example.diff new file mode 100644 index 000000000000..cd72206d4502 --- /dev/null +++ b/network/graphite-carbon/patches/carbon.conf.example.diff @@ -0,0 +1,41 @@ +--- carbon-0.9.13-pre1/conf/carbon.conf.example.orig 2014-12-31 17:50:50.000000000 +0100 ++++ carbon-0.9.13-pre1/conf/carbon.conf.example 2015-02-04 00:36:17.680898110 +0100 +@@ -14,30 +14,21 @@ + # To change other directory paths, add settings to this file. The following + # configuration variables are available with these default values: + # +-# STORAGE_DIR = $GRAPHITE_STORAGE_DIR +-# LOCAL_DATA_DIR = STORAGE_DIR/whisper/ +-# WHITELISTS_DIR = STORAGE_DIR/lists/ +-# CONF_DIR = STORAGE_DIR/conf/ +-# LOG_DIR = STORAGE_DIR/log/ +-# PID_DIR = STORAGE_DIR/ +-# +-# For FHS style directory structures, use: +-# +-# STORAGE_DIR = /var/lib/carbon/ +-# CONF_DIR = /etc/carbon/ +-# LOG_DIR = /var/log/carbon/ +-# PID_DIR = /var/run/ +-# +-#LOCAL_DATA_DIR = /opt/graphite/storage/whisper/ ++STORAGE_DIR = /var/lib/graphite/ ++CONF_DIR = /etc/carbon/ ++LOG_DIR = /var/log/carbon/ ++PID_DIR = /var/run/ ++ ++LOCAL_DATA_DIR = /var/lib/graphite/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) +-ENABLE_LOGROTATION = True ++ENABLE_LOGROTATION = False + + # Specify the user to drop privileges to + # If this is blank carbon runs as the user that invokes it + # This user must have write access to the local data directory +-USER = ++USER = graphite + # + # NOTE: The above settings must be set under [relay] and [aggregator] + # to take effect for those daemons as well diff --git a/network/graphite-carbon/patches/setup.cfg.diff b/network/graphite-carbon/patches/setup.cfg.diff new file mode 100644 index 000000000000..67f266d360b3 --- /dev/null +++ b/network/graphite-carbon/patches/setup.cfg.diff @@ -0,0 +1,12 @@ +--- carbon-0.9.13-pre1/setup.cfg.orig 2015-02-04 00:37:23.199169196 +0100 ++++ carbon-0.9.13-pre1/setup.cfg 2015-02-04 00:37:45.198588654 +0100 +@@ -1,9 +0,0 @@ +-[install] +-prefix = /opt/graphite +-install-lib = %(prefix)s/lib +- +-[bdist_rpm] +-requires = python-twisted +- whisper +- +-post-install = distro/redhat/misc/postinstall diff --git a/network/graphite-carbon/patches/validate-storage-schemas.py.diff b/network/graphite-carbon/patches/validate-storage-schemas.py.diff new file mode 100644 index 000000000000..ed6dad7b0f10 --- /dev/null +++ b/network/graphite-carbon/patches/validate-storage-schemas.py.diff @@ -0,0 +1,11 @@ +--- carbon-0.9.13-pre1/bin/validate-storage-schemas.py.orig 2014-12-31 17:50:50.000000000 +0100 ++++ carbon-0.9.13-pre1/bin/validate-storage-schemas.py 2015-02-04 00:40:16.244602801 +0100 +@@ -22,7 +22,7 @@ + SCHEMAS_FILE = sys.argv[1] + print "Loading storage-schemas configuration from: '%s'" % SCHEMAS_FILE + else: +- SCHEMAS_FILE = realpath(join(dirname(__file__), '..', 'conf', 'storage-schemas.conf')) ++ SCHEMAS_FILE = '/etc/carbon/storage-schemas.conf' + print "Loading storage-schemas configuration from default location at: '%s'" % SCHEMAS_FILE + + config_parser = ConfigParser() |