FreeBSD Bugzilla – Attachment 206560 Details for
Bug 239868
sysutils/snmp_exporter: Switch to USES=go:modules, fix build with go1.13
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch file
snmp_exporter-0.14.0.patch (text/plain), 1.25 KB, created by
Dmitri Goutnik
on 2019-08-14 20:58:20 UTC
(
hide
)
Description:
patch file
Filename:
MIME Type:
Creator:
Dmitri Goutnik
Created:
2019-08-14 20:58:20 UTC
Size:
1.25 KB
patch
obsolete
>Index: sysutils/snmp_exporter/Makefile >=================================================================== >--- sysutils/snmp_exporter/Makefile (revision 508920) >+++ sysutils/snmp_exporter/Makefile (working copy) >@@ -12,26 +12,20 @@ > > LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp > >-USES= go >+USES= go:modules > USE_GITHUB= yes > USE_RC_SUBR= snmp_exporter > > GH_ACCOUNT= prometheus > >-GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} >-GO_TARGET= github.com/${GH_ACCOUNT}/${PORTNAME} >+GO_TARGET= . ./generator > >-do-build: >- (cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install -v ${GO_TARGET}) >- (cd ${GO_WRKSRC}/generator; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install -v ${GO_TARGET}/generator) >- > post-patch: > @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${GO_WRKSRC}/generator/main.go > >-do-install: >+post-install: > ${MKDIR} ${STAGEDIR}${PREFIX}/etc/snmp_exporter/ > ${INSTALL_DATA} ${FILESDIR}/generator.yml ${STAGEDIR}${PREFIX}/etc/snmp_exporter/generator.yml >- ${INSTALL_PROGRAM} ${WRKDIR}/bin/snmp_exporter ${STAGEDIR}${PREFIX}/bin >- ${INSTALL_PROGRAM} ${WRKDIR}/bin/generator ${STAGEDIR}${PREFIX}/bin/snmp_exporter_generator >+ ${MV} ${STAGEDIR}${PREFIX}/bin/generator ${STAGEDIR}${PREFIX}/bin/snmp_exporter_generator > > .include <bsd.port.mk>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dmgk
:
maintainer-approval?
(
fabian.freyer
)
Actions:
View
|
Diff
Attachments on
bug 239868
: 206560