-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-mgmt/ping_exporter: Update to 1.0.0
- Switched to GO_MODULE - Fixed "Run as non-root user" ( czerwonk/ping_exporter#56 ) by setuid bit - Added ping_exporter_syslog_output_* params to rc-script for syslog output tuning ChangeLog: https://github.com/czerwonk/ping_exporter/releases/tag/1.0.0 PR: 264048 Approved by: maintainer timeout > 1 month
- Loading branch information
1 parent
b8dee5b
commit c15d387
Showing
4 changed files
with
54 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,30 @@ | ||
PORTNAME= ping_exporter | ||
DISTVERSION= 0.44 | ||
PORTREVISION= 5 | ||
DISTVERSION= 1.0.0 | ||
CATEGORIES= net-mgmt | ||
MASTER_SITES= https://raw.githubusercontent.com/czerwonk/ping_exporter/${DISTVERSIONFULL}/:gomod | ||
DISTFILES= go.mod:gomod | ||
|
||
MAINTAINER= [email protected] | ||
COMMENT= Prometheus exporter for ICMP echo requests | ||
|
||
LICENSE= APACHE20 | ||
LICENSE_FILE= ${WRKSRC}/LICENSE | ||
|
||
USES= go | ||
USES= go:modules | ||
USE_GITHUB= yes | ||
GH_ACCOUNT= czerwonk | ||
GH_TUPLE= golang:net:83d349e8ac1a:golang_net/vendor/golang.org/x/net_83d349e8ac1a \ | ||
golang:sys:fead79001313:golang_sys/vendor/golang.org/x/sys_fead79001313 | ||
|
||
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} | ||
GO_TARGET= github.com/${GH_ACCOUNT}/${PORTNAME} | ||
|
||
USE_RC_SUBR= ping_exporter | ||
SUB_FILES= pkg-message | ||
|
||
pre-build: | ||
${RM} -r ${WRKSRC}/vendor/golang.org/x/net ${WRKSRC}/vendor/golang.org/x/sys | ||
${MV} ${WRKSRC}/vendor/golang.org/x/net_83d349e8ac1a ${WRKSRC}/vendor/golang.org/x/net | ||
${MV} ${WRKSRC}/vendor/golang.org/x/sys_fead79001313 ${WRKSRC}/vendor/golang.org/x/sys | ||
GO_MODULE= github.com/czerwonk/ping_exporter | ||
|
||
SUB_FILES= pkg-message | ||
|
||
post-install: | ||
${INSTALL_DATA} ${PATCHDIR}/ping_exporter.yml.sample \ | ||
${STAGEDIR}${PREFIX}/etc/ping_exporter.yml.sample | ||
${MKDIR} ${STAGEDIR}${DATADIR}/syslog.d \ | ||
${STAGEDIR}${DATADIR}/newsyslog.conf.d | ||
${STAGEDIR}${DATADIR}/newsyslog.conf.d | ||
${INSTALL_DATA} ${PATCHDIR}/ping_exporter.syslog \ | ||
${STAGEDIR}${DATADIR}/syslog.d/ping_exporter.conf | ||
${INSTALL_DATA} ${PATCHDIR}/ping_exporter.newsyslog \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
TIMESTAMP = 1580722648 | ||
SHA256 (czerwonk-ping_exporter-0.44_GH0.tar.gz) = 03d0c825fdb8d3c8701743897726ad7960879211238135363879161bbdcd06a7 | ||
SIZE (czerwonk-ping_exporter-0.44_GH0.tar.gz) = 4595291 | ||
SHA256 (golang-net-83d349e8ac1a_GH0.tar.gz) = 5752c376bc6383bf2055281336101c062b881f17ded2e960d718c8256023f9c7 | ||
SIZE (golang-net-83d349e8ac1a_GH0.tar.gz) = 1103298 | ||
SHA256 (golang-sys-fead79001313_GH0.tar.gz) = c8e102db152c51438f426a92b338f924827b960e75bd9d871ae9438135366073 | ||
SIZE (golang-sys-fead79001313_GH0.tar.gz) = 1258330 | ||
TIMESTAMP = 1657786078 | ||
SHA256 (go/net-mgmt_ping_exporter/czerwonk-ping_exporter-1.0.0_GH0/go.mod) = 6bae8443b4cf3cfff123661b0d1fdabdad086f427ed52efc12d8bfca46524775 | ||
SIZE (go/net-mgmt_ping_exporter/czerwonk-ping_exporter-1.0.0_GH0/go.mod) = 1034 | ||
SHA256 (go/net-mgmt_ping_exporter/czerwonk-ping_exporter-1.0.0_GH0/czerwonk-ping_exporter-1.0.0_GH0.tar.gz) = 30587533f09e38db73873b77de5f476066cb87102c951a699bd418cdcfac94bb | ||
SIZE (go/net-mgmt_ping_exporter/czerwonk-ping_exporter-1.0.0_GH0/czerwonk-ping_exporter-1.0.0_GH0.tar.gz) = 31406 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
@mode 4755 | ||
bin/ping_exporter | ||
@mode | ||
@sample %%ETCDIR%%.yml.sample | ||
%%DATADIR%%/newsyslog.conf.d/ping_exporter.conf | ||
%%DATADIR%%/syslog.d/ping_exporter.conf |