blob: 7a7afbf6205ea1334a7697198e00208b193eaa9a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Created by: Dave Cottlehuber <dch@skunkwerks.at>
# $FreeBSD$
PORTNAME= graphite-api
PORTVERSION= 1.1.3
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= dch@skunkwerks.at
COMMENT= Graphite-web, without the interface - just the rendering HTTP API
LICENSE= APACHE20
RUN_DEPENDS= \
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}Flask>=0.10.1:www/py-flask@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}Flask-Cache>=0.13.1:www/py-flask-cache@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tzlocal>=1.1.1:devel/py-tzlocal@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}structlog>=16.0.0:devel/py-structlog@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyparsing>=2.0.0:devel/py-pyparsing@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>3.1:devel/py-yaml@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cairocffi>=0.7.2:graphics/py-cairocffi@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}gunicorn>=19.4.1:www/py-gunicorn@${FLAVOR} \
xorg-fonts-truetype>=0:x11-fonts/xorg-fonts-truetype
NO_ARCH= yes
USES= python
USE_PYTHON= distutils
GRAPHITEAPI_APP= graphiteapi
SUB_FILES= pkg-message
SUB_LIST= PORTNAME=${PORTNAME} \
PREFIX=${PREFIX} \
GRAPHITEAPI_APP=${GRAPHITEAPI_APP} \
GRAPHITEAPI_USER=${GRAPHITEAPI_USER} \
GRAPHITEAPI_GROUP=${GRAPHITEAPI_GROUP} \
GRAPHITEAPI_LOGDIR=${GRAPHITEAPI_LOGDIR} \
GRAPHITEAPI_TMPDIR=${GRAPHITEAPI_TMPDIR} \
GRAPHITEAPI_PIDFILE=${GRAPHITEAPI_PIDFILE}
PLIST_SUB= PORTNAME=${PORTNAME} \
PORTVERSION=${PORTVERSION} \
PREFIX=${PREFIX} \
GRAPHITEAPI_APP=${GRAPHITEAPI_APP} \
GRAPHITEAPI_USER=${GRAPHITEAPI_USER} \
GRAPHITEAPI_GROUP=${GRAPHITEAPI_GROUP} \
GRAPHITEAPI_LOGDIR=${GRAPHITEAPI_LOGDIR} \
GRAPHITEAPI_TMPDIR=${GRAPHITEAPI_TMPDIR} \
GRAPHITEAPI_PIDFILE=${GRAPHITEAPI_PIDFILE}
GRAPHITEAPI_USER?= carbon
GRAPHITEAPI_GROUP?= carbon
LOCALSTATEDIR= /var
USE_RC_SUBR= ${GRAPHITEAPI_APP}
GRAPHITEAPI_LOGDIR= ${LOCALSTATEDIR}/log/${GRAPHITEAPI_APP}
GRAPHITEAPI_TMPDIR= ${LOCALSTATEDIR}/run/${GRAPHITEAPI_APP}
GRAPHITEAPI_PIDFILE= ${LOCALSTATEDIR}/run/${GRAPHITEAPI_APP}/${GRAPHITEAPI_APP}.pid
post-install:
${MKDIR} \
${STAGEDIR}${ETCDIR} \
${STAGEDIR}${GRAPHITEAPI_TMPDIR} \
${STAGEDIR}${GRAPHITEAPI_LOGDIR}
${INSTALL_DATA} \
${FILESDIR}/${GRAPHITEAPI_APP}.yaml.sample \
${STAGEDIR}${ETCDIR}/${GRAPHITEAPI_APP}.yaml.sample
.include <bsd.port.mk>
|