]> git.pld-linux.org Git - packages/graphite-web.git/blame - graphite-web-0.9.10-fhs-thirdparty.patch
add graphite-manage script into PATH
[packages/graphite-web.git] / graphite-web-0.9.10-fhs-thirdparty.patch
CommitLineData
2c0ea58e
ER
1diff -up ./check-dependencies.py.orig ./check-dependencies.py
2--- ./check-dependencies.py.orig 2012-05-31 00:28:54.000000000 -0600
3+++ ./check-dependencies.py 2012-11-24 14:09:50.040701191 -0700
4@@ -58,6 +58,19 @@ except:
5 django = None
6 fatal += 1
7
8+# Test for pytz
9+try:
10+ import pytz
11+except:
12+ print "[FATAL] Unable to import the 'pytz' module, do you have pytz module installed for python %s?\n" % py_version
13+ fatal += 1
14+
15+# Test for pyparsing
16+try:
17+ import pyparsing
18+except:
19+ print "[FATAL] Unable to import the 'pyparsing' module, do you have pyparsing module installed for python %s?\n" % py_version
20+ fatal += 1
21
22 # Test for django-tagging
23 try:
24diff -up ./conf/graphite.wsgi.example.orig ./conf/graphite.wsgi.example
25--- ./conf/graphite.wsgi.example.orig 2012-05-31 00:28:54.000000000 -0600
26+++ ./conf/graphite.wsgi.example 2012-11-24 14:10:08.310633299 -0700
27@@ -1,5 +1,5 @@
28 import os, sys
29-sys.path.append('/opt/graphite/webapp')
30+sys.path.append('/usr/share/graphite/webapp')
31 os.environ['DJANGO_SETTINGS_MODULE'] = 'graphite.settings'
32
33 import django.core.handlers.wsgi
34diff -up ./MANIFEST.in.orig ./MANIFEST.in
35--- ./MANIFEST.in.orig 2012-05-31 00:28:54.000000000 -0600
36+++ ./MANIFEST.in 2012-11-24 14:09:50.039701194 -0700
37@@ -5,7 +5,6 @@ include check-dependencies.py
38 include examples/*
39 include conf/*.example
40 include webapp/graphite/local_settings.py.example
41-include webapp/graphite/thirdparty/pytz/pytz-LICENSE.txt
42 recursive-include distro/ *
43 recursive-include webapp/graphite/ *.html
44 recursive-include webapp/content/ *
45diff -up ./setup.cfg.orig ./setup.cfg
46--- ./setup.cfg.orig 2012-11-24 14:09:51.776694909 -0700
47+++ ./setup.cfg 2012-11-24 14:10:08.311633295 -0700
48@@ -1,6 +1,7 @@
49 [install]
50-prefix = /opt/graphite
51-install-lib = %(prefix)s/webapp
52+#prefix = /opt/graphite
53+#install-lib = %(prefix)s/webapp
54+install-data = /usr/share/graphite
55
56 [bdist_rpm]
57 requires = Django => 1.1.4
58diff -up ./setup.py.orig ./setup.py
59--- ./setup.py.orig 2012-11-24 14:09:51.776694909 -0700
60+++ ./setup.py 2012-11-24 14:10:08.312633291 -0700
61@@ -58,6 +58,7 @@ setup(
62 package_data={'graphite' :
63 ['templates/*', 'local_settings.py.example']},
64 scripts=glob('bin/*'),
65- data_files=webapp_content.items() + storage_dirs + conf_files + examples,
66+ #data_files=webapp_content.items() + storage_dirs + conf_files + examples,
67+ data_files=webapp_content.items(),
68 **setup_kwargs
69 )
70diff -up ./webapp/graphite/cli/parser.py.orig ./webapp/graphite/cli/parser.py
71--- ./webapp/graphite/cli/parser.py.orig 2012-05-31 00:28:54.000000000 -0600
72+++ ./webapp/graphite/cli/parser.py 2012-11-24 14:09:51.777694906 -0700
73@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY
74 See the License for the specific language governing permissions and
75 limitations under the License."""
76
77-from graphite.thirdparty.pyparsing import *
78+from pyparsing import *
79
80 grammar = Forward()
81
82diff -up ./webapp/graphite/local_settings.py.example.orig ./webapp/graphite/local_settings.py.example
83--- ./webapp/graphite/local_settings.py.example.orig 2012-05-31 00:28:54.000000000 -0600
84+++ ./webapp/graphite/local_settings.py.example 2012-11-24 14:10:08.313633288 -0700
85@@ -43,29 +43,29 @@
86 #####################################
87 # Change only GRAPHITE_ROOT if your install is merely shifted from /opt/graphite
88 # to somewhere else
89-#GRAPHITE_ROOT = '/opt/graphite'
90+GRAPHITE_ROOT = '/usr/share/graphite'
91
92 # Most installs done outside of a separate tree such as /opt/graphite will only
93 # need to change these three settings. Note that the default settings for each
94 # of these is relative to GRAPHITE_ROOT
95-#CONF_DIR = '/opt/graphite/conf'
96-#STORAGE_DIR = '/opt/graphite/storage'
97-#CONTENT_DIR = '/opt/graphite/webapp/content'
feeb458e 98+CONF_DIR = '/etc/webapps/graphite-web'
2c0ea58e
ER
99+STORAGE_DIR = '/var/lib/graphite-web'
100+CONTENT_DIR = '/usr/share/graphite/webapp/content'
101
102 # To further or fully customize the paths, modify the following. Note that the
103 # default settings for each of these are relative to CONF_DIR and STORAGE_DIR
104 #
105 ## Webapp config files
106-#DASHBOARD_CONF = '/opt/graphite/conf/dashboard.conf'
107-#GRAPHTEMPLATES_CONF = '/opt/graphite/conf/graphTemplates.conf'
feeb458e
ER
108+#DASHBOARD_CONF = '/etc/webapps/graphite-web/dashboard.conf'
109+#GRAPHTEMPLATES_CONF = '/etc/webapps/graphite-web/graphTemplates.conf'
2c0ea58e
ER
110
111 ## Data directories
112 # NOTE: If any directory is unreadable in DATA_DIRS it will break metric browsing
113-#WHISPER_DIR = '/opt/graphite/storage/whisper'
114-#RRD_DIR = '/opt/graphite/storage/rrd'
115-#DATA_DIRS = [WHISPER_DIR, RRD_DIR] # Default: set from the above variables
116-#LOG_DIR = '/opt/graphite/storage/log/webapp'
117-#INDEX_FILE = '/opt/graphite/storage/index' # Search index file
118+WHISPER_DIR = '/var/lib/carbon/whisper/'
119+RRD_DIR = '/var/lib/carbon/rrd'
120+DATA_DIRS = [WHISPER_DIR, RRD_DIR] # Default: set from the above variables
121+LOG_DIR = '/var/log/graphite-web/'
122+INDEX_FILE = '/var/lib/graphite-web/index' # Search index file
123
124
125 #####################################
126diff -up ./webapp/graphite/render/attime.py.orig ./webapp/graphite/render/attime.py
127--- ./webapp/graphite/render/attime.py.orig 2012-05-31 00:28:54.000000000 -0600
128+++ ./webapp/graphite/render/attime.py 2012-11-24 14:09:51.777694906 -0700
129@@ -16,11 +16,7 @@ from datetime import datetime,timedelta
130 from time import daylight
131 from django.conf import settings
132
133-try: # See if there is a system installation of pytz first
134- import pytz
135-except ImportError: # Otherwise we fall back to Graphite's bundled version
136- from graphite.thirdparty import pytz
137-
138+import pytz
139
140 months = ['jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec']
141 weekdays = ['sun','mon','tue','wed','thu','fri','sat']
142diff -up ./webapp/graphite/render/glyph.py.orig ./webapp/graphite/render/glyph.py
143--- ./webapp/graphite/render/glyph.py.orig 2012-05-31 00:28:54.000000000 -0600
144+++ ./webapp/graphite/render/glyph.py 2012-11-24 14:09:51.779694900 -0700
145@@ -22,10 +22,7 @@ from graphite.render.datalib import Time
146 from graphite.util import json
147
148
149-try: # See if there is a system installation of pytz first
150- import pytz
151-except ImportError: # Otherwise we fall back to Graphite's bundled version
152- from graphite.thirdparty import pytz
153+import pytz
154
155 INFINITY = float('inf')
156
157diff -up ./webapp/graphite/render/grammar.py.orig ./webapp/graphite/render/grammar.py
158--- ./webapp/graphite/render/grammar.py.orig 2012-05-31 00:28:54.000000000 -0600
159+++ ./webapp/graphite/render/grammar.py 2012-11-24 14:09:51.779694900 -0700
160@@ -1,4 +1,4 @@
161-from graphite.thirdparty.pyparsing import *
162+from pyparsing import *
163
164 ParserElement.enablePackrat()
165 grammar = Forward()
166diff -up ./webapp/graphite/settings.py.orig ./webapp/graphite/settings.py
167--- ./webapp/graphite/settings.py.orig 2012-05-31 14:30:23.000000000 -0600
168+++ ./webapp/graphite/settings.py 2012-11-24 14:09:51.780694897 -0700
169@@ -31,7 +31,6 @@ JAVASCRIPT_DEBUG = False
170 WEB_DIR = dirname( abspath(__file__) )
171 WEBAPP_DIR = dirname(WEB_DIR)
172 GRAPHITE_ROOT = dirname(WEBAPP_DIR)
173-THIRDPARTY_DIR = join(WEB_DIR,'thirdparty')
174 # Initialize additional path variables
175 # Defaults for these are set after local_settings is imported
176 CONTENT_DIR = ''
177@@ -50,8 +49,6 @@ DATA_DIRS = []
178 CLUSTER_SERVERS = []
179
180 sys.path.insert(0, WEBAPP_DIR)
181-# Allow local versions of the libs shipped in thirdparty to take precedence
182-sys.path.append(THIRDPARTY_DIR)
183
184 # Memcache settings
185 MEMCACHE_HOSTS = []
This page took 0.079569 seconds and 4 git commands to generate.