diff options
Diffstat (limited to 'sysutils/alloy')
-rw-r--r-- | sysutils/alloy/Makefile | 28 | ||||
-rw-r--r-- | sysutils/alloy/distinfo | 14 |
2 files changed, 19 insertions, 23 deletions
diff --git a/sysutils/alloy/Makefile b/sysutils/alloy/Makefile index bb67169f4708..970e6662e812 100644 --- a/sysutils/alloy/Makefile +++ b/sysutils/alloy/Makefile @@ -1,7 +1,6 @@ PORTNAME= alloy -DISTVERSION= 1.6.1 -DISTVERSIONPREFIX=v -PORTREVISION= 4 +DISTVERSIONPREFIX= v +DISTVERSION= 1.10.2 CATEGORIES= sysutils MAINTAINER= zach.leslie@grafana.com @@ -10,34 +9,31 @@ WWW= https://github.com/grafana/alloy LICENSE= MIT -BUILD_DEPENDS= git:devel/git - -USES= go:1.23,modules +USES= go:modules USE_GITHUB= yes GH_ACCOUNT= grafana -GH_PROJECT= alloy -USE_RC_SUBR= alloy +USE_RC_SUBR= ${PORTNAME} GO_MODULE= github.com/${GH_ACCOUNT}/${GH_PROJECT} GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT} GO_TARGET= github.com/${GH_ACCOUNT}/${GH_PROJECT} -GO_BUILDFLAGS= -ldflags='-X github.com/grafana/alloy/internal/build.Version=v${PORTVERSION}' +GO_BUILDFLAGS= -ldflags='-X github.com/grafana/alloy/internal/build.Version=${GH_TAGNAME}' post-fetch: - @${ECHO_MSG} "===> Fetching ${GO_MODNAME}/syntax dependency"; + @${ECHO_MSG} "===> Fetching ${GO_MODNAME}/syntax dependency" (cd ${DISTDIR}/${DIST_SUBDIR}; [ -e syntax/go.mod ] || (\ - ${MKDIR} syntax/; \ - ${TAR} -xzf ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}-${PORTVERSION}/syntax/go.mod; \ - ${CP} ${PORTNAME}-${PORTVERSION}/syntax/go.mod syntax/go.mod)) + ${MKDIR} syntax; \ + ${TAR} -xzf ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}-${DISTVERSION}/syntax/go.mod; \ + ${CP} ${PORTNAME}-${DISTVERSION}/syntax/go.mod syntax/go.mod)) post-extract: - ${CP} -r ${WRKDIR}/${PORTNAME}-${PORTVERSION}/syntax ${GO_WRKSRC}/syntax; + ${CP} -r ${WRKDIR}/${PORTNAME}-${DISTVERSION}/syntax ${GO_WRKSRC} do-install: - ${INSTALL_PROGRAM} ${WRKDIR}/bin/alloy ${STAGEDIR}${PREFIX}/bin/alloy + ${INSTALL_PROGRAM} ${WRKDIR}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/example-config.alloy ${STAGEDIR}${PREFIX}/etc/alloy.flow.sample - ${MKDIR} ${STAGEDIR}/var/alloy + ${MKDIR} ${STAGEDIR}/var/${PORTNAME} .include <bsd.port.mk> diff --git a/sysutils/alloy/distinfo b/sysutils/alloy/distinfo index f5884d0a4166..1ee3ee1fe929 100644 --- a/sysutils/alloy/distinfo +++ b/sysutils/alloy/distinfo @@ -1,7 +1,7 @@ -TIMESTAMP = 1737710617 -SHA256 (go/sysutils_alloy/grafana-alloy-v1.6.1_GH0/v1.6.1.mod) = 141e1939b8547cfbe37fe46477986fae4469b3068cae3d1d554e4816e9d8cad1 -SIZE (go/sysutils_alloy/grafana-alloy-v1.6.1_GH0/v1.6.1.mod) = 57236 -SHA256 (go/sysutils_alloy/grafana-alloy-v1.6.1_GH0/v1.6.1.zip) = f849b37b5273f979ab79d63524b7e10495c074a86f775dacd304a7baf5cf9eb6 -SIZE (go/sysutils_alloy/grafana-alloy-v1.6.1_GH0/v1.6.1.zip) = 14115214 -SHA256 (go/sysutils_alloy/grafana-alloy-v1.6.1_GH0/grafana-alloy-v1.6.1_GH0.tar.gz) = 624586f0c25f646e9bd0ceb9f2fa5626bbbac98ea542db0c18d59e11c769f4b3 -SIZE (go/sysutils_alloy/grafana-alloy-v1.6.1_GH0/grafana-alloy-v1.6.1_GH0.tar.gz) = 12595150 +TIMESTAMP = 1756329743 +SHA256 (go/sysutils_alloy/grafana-alloy-v1.10.2_GH0/v1.10.2.mod) = 00055a9dafa0182283fbb801d6bc092ffbec438405c190f3a57010f07783bcaa +SIZE (go/sysutils_alloy/grafana-alloy-v1.10.2_GH0/v1.10.2.mod) = 67450 +SHA256 (go/sysutils_alloy/grafana-alloy-v1.10.2_GH0/v1.10.2.zip) = c1603f2447f19178e67e906c9dc012a47a77f328c6d3cf997ab1fbeea12ba258 +SIZE (go/sysutils_alloy/grafana-alloy-v1.10.2_GH0/v1.10.2.zip) = 14528199 +SHA256 (go/sysutils_alloy/grafana-alloy-v1.10.2_GH0/grafana-alloy-v1.10.2_GH0.tar.gz) = ed170622458600dd335dbdea12cf88a6bee33df1949a58b31a707b1a84f65b0f +SIZE (go/sysutils_alloy/grafana-alloy-v1.10.2_GH0/grafana-alloy-v1.10.2_GH0.tar.gz) = 12779185 |