blob: f44803ff0c06af69b6a4b6a7a3e129deb3a5606e (
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
|
# Created by: Mark Felder <feld@FreeBSD.org>
# $FreeBSD$
PORTNAME= pdagent
PORTVERSION= 1.4
DISTVERSIONPREFIX=v
PORTREVISION= 2
CATEGORIES= net-mgmt python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= feld@FreeBSD.org
COMMENT= PagerDuty Agent software
LICENSE= BSD3CLAUSE
USES= python:2.7 shebangfix
USE_PYTHON= flavors
SHEBANG_FILES= bin/*
NO_ARCH= yes
NO_BUILD= yes
USE_RC_SUBR= pdagentd
USE_GITHUB= YES
GH_ACCOUNT= PagerDuty
SUB_LIST+= PYTHON_CMD="${PYTHON_CMD}"
BINFILES= pd-queue pd-send pdagentd.py
USERS= pdagent
GROUPS= pdagent
do-patch:
${REINPLACE_CMD} -e 's|/var/lib/pdagent|/var/db/pdagent|' -e 's|/etc|${ETCDIR}|' ${WRKSRC}/pdagent/confdirs.py
do-install:
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} ${STAGEDIR}/${ETCDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} pdagent ${STAGEDIR}${PYTHON_SITELIBDIR})
.for i in ${BINFILES}
${INSTALL_SCRIPT} ${WRKSRC}/bin/${i} ${STAGEDIR}/${PREFIX}/bin/${i}
.endfor
${INSTALL_DATA} ${WRKSRC}/conf/pdagent.conf ${STAGEDIR}/${ETCDIR}/pdagent.conf.sample
.include <bsd.port.mk>
|