aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2018-10-27 03:01:29 +0000
committerSteve Wills <swills@FreeBSD.org>2018-10-27 03:01:29 +0000
commita6770074f8bfba0f8ae5dc630fe386fdbdfc8b6d (patch)
tree7c2a7b1bf6f7c95b3bd2f1ab3fffa40d4e8b2615 /net-mgmt
parent51a84ada714d935f807999c6650b847f86d6b0cc (diff)
downloadports-a6770074f8bfba0f8ae5dc630fe386fdbdfc8b6d.tar.gz
ports-a6770074f8bfba0f8ae5dc630fe386fdbdfc8b6d.zip
net-mgmt/pdagent-integrations: Update to 1.5
PR: 232430 Submitted by: Nathan <ndowens@yahoo.com>
Notes
Notes: svn path=/head/; revision=483104
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/pdagent-integrations/Makefile24
-rw-r--r--net-mgmt/pdagent-integrations/distinfo6
-rw-r--r--net-mgmt/pdagent-integrations/pkg-plist1
3 files changed, 18 insertions, 13 deletions
diff --git a/net-mgmt/pdagent-integrations/Makefile b/net-mgmt/pdagent-integrations/Makefile
index 8a6570eb5035..077e0077d5d8 100644
--- a/net-mgmt/pdagent-integrations/Makefile
+++ b/net-mgmt/pdagent-integrations/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= pdagent-integrations
-PORTVERSION= 1.4
+PORTVERSION= 1.5
DISTVERSIONPREFIX=v
CATEGORIES= net-mgmt python
@@ -10,10 +10,11 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= PagerDuty integrations for monitoring monitoring tools
LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pdagent>0:net-mgmt/py-pdagent@${PY_FLAVOR}
-USES= python:2.7 shebangfix
+USES= python:2.7 shebangfix
USE_GITHUB= yes
GH_ACCOUNT= PagerDuty
@@ -24,19 +25,24 @@ SUB_FILES= pagerduty-icinga2.conf pkg-message
NO_ARCH= yes
NO_BUILD= yes
+PORTDOCS= *-testing.txt
+EXAMPLES= conf.d/sensu_pagerduty_handler.json \
+ pagerduty_nagios.cfg
-OPTIONS_DEFINE= EXAMPLES
+OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
${REINPLACE_CMD} 's|/usr/share/pdagent-integrations/bin|${PREFIX}/bin|g' ${WRKSRC}/pagerduty_nagios.cfg ${WRKSRC}/conf.d/sensu_pagerduty_handler.json
do-install:
+ (cd ${WRKSRC}/bin ; ${INSTALL_SCRIPT} * ${STAGEDIR}${PREFIX}/bin)
+
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+do-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/pd-nagios ${STAGEDIR}${LOCALBASE}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/pd-sensu ${STAGEDIR}${LOCALBASE}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/pd-zabbix ${STAGEDIR}${LOCALBASE}/bin
- ${INSTALL_DATA} ${WRKSRC}/conf.d/sensu_pagerduty_handler.json ${STAGEDIR}${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/pagerduty_nagios.cfg ${STAGEDIR}${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKDIR}/pagerduty-icinga2.conf ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
diff --git a/net-mgmt/pdagent-integrations/distinfo b/net-mgmt/pdagent-integrations/distinfo
index dc1180e0d553..616ca8f525c6 100644
--- a/net-mgmt/pdagent-integrations/distinfo
+++ b/net-mgmt/pdagent-integrations/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1507219750
-SHA256 (PagerDuty-pdagent-integrations-v1.4_GH0.tar.gz) = f4d18b1759ee0dfdcff4dd10f73c2bd3dd5d1ef0e2629141edd5f07f32c6e4f1
-SIZE (PagerDuty-pdagent-integrations-v1.4_GH0.tar.gz) = 17643
+TIMESTAMP = 1539916276
+SHA256 (PagerDuty-pdagent-integrations-v1.5_GH0.tar.gz) = 908962d778f17f29d0679406eb778bf20c96a1ade02dd8c55becedd1a076306d
+SIZE (PagerDuty-pdagent-integrations-v1.5_GH0.tar.gz) = 18324
diff --git a/net-mgmt/pdagent-integrations/pkg-plist b/net-mgmt/pdagent-integrations/pkg-plist
index fd40087db68f..f23c28fdffe4 100644
--- a/net-mgmt/pdagent-integrations/pkg-plist
+++ b/net-mgmt/pdagent-integrations/pkg-plist
@@ -2,5 +2,4 @@ bin/pd-nagios
bin/pd-sensu
bin/pd-zabbix
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pagerduty_nagios.cfg
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pagerduty-icinga2.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sensu_pagerduty_handler.json