Lines 2-10
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= pdagent |
4 |
PORTNAME= pdagent |
5 |
PORTVERSION= 1.4 |
5 |
PORTVERSION= 1.5 |
6 |
DISTVERSIONPREFIX=v |
6 |
DISTVERSIONPREFIX=v |
7 |
PORTREVISION= 2 |
|
|
8 |
CATEGORIES= net-mgmt python |
7 |
CATEGORIES= net-mgmt python |
9 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
10 |
|
9 |
|
Lines 12-31
Link Here
|
12 |
COMMENT= PagerDuty Agent software |
11 |
COMMENT= PagerDuty Agent software |
13 |
|
12 |
|
14 |
LICENSE= BSD3CLAUSE |
13 |
LICENSE= BSD3CLAUSE |
|
|
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT |
15 |
|
15 |
|
16 |
USES= python:2.7 shebangfix |
16 |
USES= python:2.7 shebangfix |
17 |
USE_PYTHON= flavors |
17 |
USE_PYTHON= flavors |
|
|
18 |
USE_RC_SUBR= pdagentd |
19 |
USE_GITHUB= YES |
20 |
|
21 |
GH_ACCOUNT= PagerDuty |
18 |
SHEBANG_FILES= bin/* |
22 |
SHEBANG_FILES= bin/* |
19 |
NO_ARCH= yes |
23 |
NO_ARCH= yes |
20 |
NO_BUILD= yes |
24 |
NO_BUILD= yes |
21 |
|
25 |
|
22 |
USE_RC_SUBR= pdagentd |
|
|
23 |
|
24 |
USE_GITHUB= YES |
25 |
GH_ACCOUNT= PagerDuty |
26 |
|
27 |
SUB_LIST+= PYTHON_CMD="${PYTHON_CMD}" |
26 |
SUB_LIST+= PYTHON_CMD="${PYTHON_CMD}" |
28 |
|
|
|
29 |
BINFILES= pd-queue pd-send pdagentd.py |
27 |
BINFILES= pd-queue pd-send pdagentd.py |
30 |
|
28 |
|
31 |
USERS= pdagent |
29 |
USERS= pdagent |
Lines 32-45
Link Here
|
32 |
GROUPS= pdagent |
30 |
GROUPS= pdagent |
33 |
|
31 |
|
34 |
do-patch: |
32 |
do-patch: |
35 |
${REINPLACE_CMD} -e 's|/var/lib/pdagent|/var/db/pdagent|' -e 's|/etc|${ETCDIR}|' ${WRKSRC}/pdagent/confdirs.py |
33 |
${REINPLACE_CMD} -e 's|/var/lib/pdagent|/var/db/pdagent| ; s|/etc|${ETCDIR}|' \ |
|
|
34 |
${WRKSRC}/pdagent/confdirs.py |
36 |
|
35 |
|
37 |
do-install: |
36 |
do-install: |
38 |
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} ${STAGEDIR}/${ETCDIR} |
37 |
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} ${STAGEDIR}/${ETCDIR} |
39 |
(cd ${WRKSRC} && ${COPYTREE_SHARE} pdagent ${STAGEDIR}${PYTHON_SITELIBDIR}) |
38 |
(cd ${WRKSRC} && ${COPYTREE_SHARE} pdagent ${STAGEDIR}${PYTHON_SITELIBDIR}) |
40 |
.for i in ${BINFILES} |
39 |
(cd ${WRKSRC}/bin ; ${INSTALL_SCRIPT} ${BINFILES} ${STAGEDIR}/${PREFIX}/bin) |
41 |
${INSTALL_SCRIPT} ${WRKSRC}/bin/${i} ${STAGEDIR}/${PREFIX}/bin/${i} |
|
|
42 |
.endfor |
43 |
${INSTALL_DATA} ${WRKSRC}/conf/pdagent.conf ${STAGEDIR}/${ETCDIR}/pdagent.conf.sample |
40 |
${INSTALL_DATA} ${WRKSRC}/conf/pdagent.conf ${STAGEDIR}/${ETCDIR}/pdagent.conf.sample |
44 |
|
41 |
|
45 |
.include <bsd.port.mk> |
42 |
.include <bsd.port.mk> |