From 361f77845edc76ef3ef0f08dacde450d30c54caa Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 13 Jul 2024 15:44:29 +0200 Subject: [PATCH] New package: mtail-3.0.5 --- srcpkgs/mtail/files/mtail/run | 4 ++++ srcpkgs/mtail/template | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 srcpkgs/mtail/files/mtail/run create mode 100644 srcpkgs/mtail/template diff --git a/srcpkgs/mtail/files/mtail/run b/srcpkgs/mtail/files/mtail/run new file mode 100644 index 00000000000..6288fddb990 --- /dev/null +++ b/srcpkgs/mtail/files/mtail/run @@ -0,0 +1,4 @@ +#!/bin/sh +exec 2>&1 +[ -r conf ] && . ./conf +exec mtail -logtostderr ${OPTS} diff --git a/srcpkgs/mtail/template b/srcpkgs/mtail/template new file mode 100644 index 00000000000..c2185115b74 --- /dev/null +++ b/srcpkgs/mtail/template @@ -0,0 +1,24 @@ +# Template file for 'mtail' +pkgname=mtail +version=3.0.5 +revision=1 +build_style=go +go_import_path="github.com/google/mtail" +go_package="${go_import_path}/cmd/..." +go_ldflags="-X main.Branch=main -X main.Version=${version} -X main.Revision=v${version}" +short_desc="Extract monitoring data from logs for metrics collection" +maintainer="Leah Neukirchen " +license="Apache-2.0" +homepage="https://github.com/google/mtail" +distfiles="https://github.com/google/mtail/archive/refs/tags/v${version}.tar.gz" +checksum=5fb6e8e7a68ca9cf6061b305a6db93f9ea660ecc7df254e121084a9f380e0348 + +post_install() { + vsv mtail + + for f in examples/*.mtail; do + vsconf $f + done + + vinstall mtail-mode.el 644 usr/share/emacs/site-lisp +}