Please note that this port/package overrides the default installation layout
for Graphite! To setup graphite, you will need to:
* Set the SECRET_KEY in /usr/local/etc/graphite/local_settings.py
* Initialize the sqlite user database and create the admin user:
django-admin.py migrate --settings=graphite.settings --run-syncdb
django-admin.py createsuperuser --settings=graphite.settings
* Build the index:
/usr/local/bin/build-index.sh
* Change the ownership of the user database so the webapp can write to it:
chown -R www:www /var/db/graphite/ /var/log/graphite/
* Setup a web server:
Setup Apache by creating a vhost similar to the following:
<VirtualHost *:80>
ServerName graphite
DocumentRoot "/usr/local/share/graphite-web/content/"
# I've found that an equal number of processes & threads tends
# to show the best performance for Graphite (ymmv).
WSGIDaemonProcess graphite processes=5 threads=5 inactivity-timeout=120 display-name=graphite
WSGIProcessGroup graphite
WSGIApplicationGroup graphite
WSGIImportScript /usr/local/etc/graphite/graphite.wsgi process-group=graphite application-group=graphite
# XXX You will need to create this file! There is a graphite.wsgi.example
# file in this directory that you can safely use, just copy it to graphite.wgsi
WSGIScriptAlias / /usr/local/etc/graphite/graphite.wsgi
Alias /content/ /usr/local/share/graphite-web/content/
<Location "/content/">
SetHandler None
</Location>
# XXX In order for the django admin site media to work you
# must change @DJANGO_ROOT@ to be the path to your django
# installation, which is probably something like:
# /usr/lib/python2.6/site-packages/django
#Alias /media/ "@DJANGO_ROOT@/contrib/admin/media/"
Alias /media/ /usr/local/lib/python3.8/site-packages/django
<Location "/media/">
SetHandler None
</Location>
Alias /static/ "/usr/local/lib/python3.8/site-packages/django/contrib/admin/static/"
<Location "/static/">
SetHandler None
</Location>
<Directory "/usr/local/lib/python3.8/site-packages/django/contrib/admin/static/">
Order deny,allow
Allow from all
Require all granted
</Directory>
# The graphite.wsgi file has to be accessible by apache. It won't
# be visible to clients because of the DocumentRoot though.
<Directory /usr/local/etc/graphite/>
Order deny,allow
Allow from all
Require all granted
</Directory>
<Directory /usr/local/share/graphite-web/content/>
Order deny,allow
Allow from all
Require all granted
</Directory>
</VirtualHost>
Now you should be able to access the graphite virtual host you created in the
first step.
www/py-graphite-web: Remove port
* The expiration date has been reached and on the part of upstream there
isn't yet a new release that works with newer versions of Django.
However, the port could come back again soon during 2022Q3 once it's
ready for Django 3.2 or newer.
www/py-graphite-web: Deprecate and set to expire
* The current version of py-graphite doesn't support Django 3.2, which
is the next LTS (= long-term support) release since Django 2.2 reached
its End-of-Life on April 11th [1].
There may be a new release with support for newer versions of Django
in the course of 2022Q2 to undeprecate the port.
PR: 261086, 261313 [1]
Approved by: bofh (maintainer, via D34859)
www/py-graphite-web: Update to 1.1.7
* Also switch the port to Django 2.2 (current LTS release) because
Django 1.11 is End-of-Life since April, which also drops the support for
Python 2.7.
* Do the same for www/py-django-tagging and bump PORTREVISION due changed
dependencies. [1]
* Relax the version requirements in setup.py to pave the way for the 0.5.0
update of www/py-django-tagging. [1]
* Remove superfluous '+=' from SUB_LIST and PLIST_SUB and sort variables a
bit according to the PHB.
* Add NO_ARCH as there are no architecture relevant files in the package.
Changelogs since 1.1.5:
https://github.com/graphite-project/graphite-web/releases/tag/1.1.7https://github.com/graphite-project/graphite-web/releases/tag/1.1.6
PR: 245873245843 [1]
Approved by: maintainer timeout (6+ weeks), Kevin Golding (maintainer) [1]
Mark BROKEN: conflicting dependencies
pkg-static: py27-django111-1.11.11 conflicts with py27-django18-1.8.19 (installs
files into the same place). Problematic file:
/usr/local/man/man1/django-admin.1.gz
Reported by: pkg-fallout
Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored. They will
automatically get flavors (py27, py34, py35, py36) depending on what
versions they support.
There is also a USE_PYTHON=flavors for ports that do not use distutils
but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
using distutils but flavors are not wanted.
A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
added to cope with Python ports that did not have the Python
PKGNAMEPREFIX but are flavored.
USES=python now also exports a PY_FLAVOR variable that contains the
(Only the first 15 lines of the commit message are shown above )
- Fix with newer Django [1] [2]
- Lots of other cleanups and improvements, including moving the data to a more
standard location
- Take maintainership, maintainer has not responded to PRs in many months
PR: ports/184969 [1]
PR: ports/185146 [2]
Submitted by: brd [1]
Submitted by: swills (myself) [2]
Approved by: maintainer timeout (bsdports@wayfair.com, >3 months)
- Clean up the defaults to match our installation layout
- Add a pkg-message to explain more about how to set things up
PR: ports/172960
Submitted by: brd
Approved by: maintainer timeout (bsdports@wayfair.com, >2w)
While here, use sed instead of perl to avoid breakage on systems
without perl (...)
Feature safe: yes
- fix fetch by commenting out CHEESESHOP mirrors
while here:
- fix plist
- remove BUILD_DEPENDS (setup.py didn't checking for it on build phase)
- limit python version to 2.x
- whitespace fix in pkg-descr
- bump PORTREVISION because of dependencies change
PR: 170921
Reported by: Chris McCoy <bsdports at wayfair dot com> (maintainer)
- Update to 0.9.10
- While I'm here:
- Update MASTER_SITES and WWW
- Do not use 'cp -r' which is strongly discouraged
- Pet portlint
Changes: http://graphite.wikidot.com/
PR: ports/169334
Submitted by: Brad Davis <brd@FreeBSD.org>
Approved by: Dan Rowe <drowe@wayfair.com> (maintainer)
- Convert all remaining instances of BUILD_DEPENDS=${RUN_DEPENDS} or
RUN_DEPENDS=${BUILD_DEPENDS} to use := which portlint has warned
about for a while.
PR: ports/168208
Approved by: portmgr (miwi)
Graphite provides real-time visualization and storage
of numeric time-series data on an enterprise level.
WWW: http://launchpad.net/graphite
PR: ports/165285
Submitted by: Evan Sarmiento <esarmiento@wayfair.com>