blob: 11f0badda09c8ebea151a64a56b9817d3d520c3e (
plain)
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
|
PORTNAME= pdagent
PORTVERSION= 1.7.2
DISTVERSIONPREFIX=v
CATEGORIES= net-mgmt python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= dvl@FreeBSD.org
COMMENT= PagerDuty Agent software
WWW= https://github.com/PagerDuty/pdagent
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
USES= python shebangfix
USE_PYTHON= flavors
USE_RC_SUBR= pdagentd
USE_GITHUB= yes
GH_ACCOUNT= PagerDuty
SHEBANG_FILES= bin/*
NO_ARCH= yes
NO_BUILD= yes
SUB_LIST+= PYTHON_CMD="${PYTHON_CMD}"
BINFILES= pd-queue pd-send pdagentd.py
USERS= pdagent
GROUPS= pdagent
post-patch:
${REINPLACE_CMD} -e 's|/var/lib/pdagent|/var/db/pdagent| ; s|/etc|${ETCDIR}|' \
${WRKSRC}/pdagent/confdirs.py
do-install:
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} ${STAGEDIR}/${ETCDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} pdagent ${STAGEDIR}${PYTHON_SITELIBDIR})
(cd ${WRKSRC}/bin ; ${INSTALL_SCRIPT} ${BINFILES} ${STAGEDIR}/${PREFIX}/bin)
${INSTALL_DATA} ${WRKSRC}/conf/pdagent.conf ${STAGEDIR}/${ETCDIR}/pdagent.conf.sample
.include <bsd.port.mk>
|