1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

www/py-graphite-web: add CPE and fix example

* Add CPE info for security issues [1]
* Fix the path in the graphite.wsgi.example [2]
* Bump portrevision for package change

PR:		208331 [1]
PR:		200174 [2]
Submitted by:	shun <shun.fbsd.pr@dropcut.net> [1]
Submitted by:	Kaspars Mickevics <kaspars@fx.lv> [2]
This commit is contained in:
Steve Wills 2016-04-22 15:45:51 +00:00
parent 92a8f125d5
commit eaf87cd9ad
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=413785
2 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= graphite-web
PORTVERSION= 0.9.15
PORTREVISION= 1
CATEGORIES= www python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -19,9 +20,11 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>=1.8.10:graphics/py-cairo \
xorg-fonts-truetype>=0:x11-fonts/xorg-fonts-truetype
FETCH_ARGS= -o ${DISTNAME}${EXTRACT_SUFX}
USES= python:2
USES= cpe python:2
USE_GITHUB= yes
GH_ACCOUNT= graphite-project
CPE_VENDOR= graphite_project
CPE_PRODUCT= graphite
USE_PYTHON= distutils
SUB_FILES= pkg-message
SUB_LIST+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} WWWOWN=${WWWOWN} \
@ -33,6 +36,7 @@ post-patch:
@${RM} ${WRKSRC}/bin/run-graphite-devel-server.py
@${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|' \
-e 's|%%DATADIR%%|${DATADIR}|' \
-e 's|%%PYTHON_SITELIBDIR%%|${PYTHON_SITELIBDIR}|' \
${WRKSRC}/bin/build-index.sh \
${WRKSRC}/conf/graphite.wsgi.example \
${WRKSRC}/setup.cfg \

View File

@ -4,7 +4,7 @@
import os
import sys
-sys.path.append('/opt/graphite/webapp')
+sys.path.append('%%PREFIX%%/graphite/webapp')
+sys.path.append('%%PYTHON_SITELIBDIR%%/graphite')
try:
from importlib import import_module