Date: Sat, 17 Aug 2019 01:55:45 +0000 (UTC) From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r509132 - head/sysutils/snmp_exporter Message-ID: <201908170155.x7H1tj4D009173@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuri Date: Sat Aug 17 01:55:45 2019 New Revision: 509132 URL: https://svnweb.freebsd.org/changeset/ports/509132 Log: sysutils/snmp_exporter: Switch to USES=go:modules, fix build with go1.13 PR: 239868 Submitted by: Dmitri Goutnik <dg@syrec.org> Approved by: portmgr (unbreak with the upcoming go1.13) Modified: head/sysutils/snmp_exporter/Makefile Modified: head/sysutils/snmp_exporter/Makefile ============================================================================== --- head/sysutils/snmp_exporter/Makefile Sat Aug 17 01:26:24 2019 (r509131) +++ head/sysutils/snmp_exporter/Makefile Sat Aug 17 01:55:45 2019 (r509132) @@ -12,26 +12,20 @@ LICENSE= APACHE20 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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908170155.x7H1tj4D009173>