From: Michael Howe Date: Tue, 28 Feb 2023 21:04:42 +0000 (+0000) Subject: Initial package X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=fc40faba7e1b550d2aa10d54395881fad93f4c6e;p=packages%2Fl%2Flogcli.git Initial package --- fc40faba7e1b550d2aa10d54395881fad93f4c6e diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b8cb648 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ + +prefix = /usr + +build: + # no-op +clean: + # no-op + +install: + install -D extract/logcli-linux-$(DEB_BUILD_ARCH) $(DESTDIR)$(prefix)/bin/logcli + +.PHONY: install diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..71c8641 --- /dev/null +++ b/debian/README @@ -0,0 +1,6 @@ +The Debian Package logcli +---------------------------- + +Packaging of https://grafana.com/docs/loki/v2.7.x/tools/logcli/ + + -- Michael Howe Tue, 28 Feb 2023 18:08:57 +0000 diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..6b06251 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,7 @@ +logcli for Debian +---------------- + +Packaged for internal consumption from the upstream binary. Not to be +redistributed because it's horrible. + + -- Michael Howe Tue, 28 Feb 2023 18:08:57 +0000 diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..1bece05 --- /dev/null +++ b/debian/README.source @@ -0,0 +1,9 @@ +logcli for Debian +---------------- + +Use the update-version script to update the version of the logcli binary, bump +the Debian changelog and build. + + + -- Michael Howe Tue, 28 Feb 2023 18:08:57 +0000 + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..bab7a0d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +logcli (2.7.4) unstable; urgency=medium + + * Initial Release. + + -- Michael Howe Tue, 28 Feb 2023 18:08:57 +0000 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..7e80172 --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: logcli +Section: admin +Priority: optional +Maintainer: Michael Howe +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.5.1 +Homepage: https://github.com/grafana/loki +#Vcs-Browser: https://salsa.debian.org/debian/logcli +#Vcs-Git: https://salsa.debian.org/debian/logcli.git +Rules-Requires-Root: no + +Package: logcli +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: loki command line interface + Custom package of logcli, a command linke interface to loki diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..260f8d6 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,12 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: logcli +Upstream-Contact: https://github.com/grafana/loki +Source: https://github.com/grafana/loki + +Files: * +Copyright: 2020-2023 Grafana Labs +License: AGPL-3.0+ + +Files: debian/* +Copyright: 2023 Michael Howe +License: GPL-3.0+ diff --git a/debian/logcli-docs.docs b/debian/logcli-docs.docs new file mode 100644 index 0000000..3609b98 --- /dev/null +++ b/debian/logcli-docs.docs @@ -0,0 +1,3 @@ +README.Debian +README.source +README diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f00dbc2 --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/download/logcli-linux-amd64-v2.7.4.zip b/download/logcli-linux-amd64-v2.7.4.zip new file mode 100644 index 0000000..1c0225e Binary files /dev/null and b/download/logcli-linux-amd64-v2.7.4.zip differ diff --git a/extract/logcli-linux-amd64 b/extract/logcli-linux-amd64 new file mode 100755 index 0000000..0b4b0f3 Binary files /dev/null and b/extract/logcli-linux-amd64 differ diff --git a/update-version b/update-version new file mode 100755 index 0000000..9406dbd --- /dev/null +++ b/update-version @@ -0,0 +1,19 @@ +#!/bin/bash + +set -e +set -u + +# eg v2.7.4 +VER=$1 + +ARCHES=('amd64') + +mkdir -p extract/ +mkdir -p download/ + +for arch in "${ARCHES[@]}"; do + DOWNLOAD_URL="https://github.com/grafana/loki/releases/download/${VER}/logcli-linux-${arch}.zip" + ZIPFILE="download/logcli-linux-${arch}-${VER}.zip" + wget -O "${ZIPFILE}" "${DOWNLOAD_URL}" + unzip "${ZIPFILE}" -d extract/ +done