]> git.michaelhowe.org Git - packages/l/logcli.git/commitdiff
Initial package main
authorMichael Howe <michael@michaelhowe.org>
Tue, 28 Feb 2023 21:04:42 +0000 (21:04 +0000)
committerMichael Howe <michael@michaelhowe.org>
Tue, 28 Feb 2023 21:04:42 +0000 (21:04 +0000)
13 files changed:
Makefile [new file with mode: 0644]
debian/README [new file with mode: 0644]
debian/README.Debian [new file with mode: 0644]
debian/README.source [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/logcli-docs.docs [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]
download/logcli-linux-amd64-v2.7.4.zip [new file with mode: 0644]
extract/logcli-linux-amd64 [new file with mode: 0755]
update-version [new file with mode: 0755]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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 (file)
index 0000000..71c8641
--- /dev/null
@@ -0,0 +1,6 @@
+The Debian Package logcli
+----------------------------
+
+Packaging of https://grafana.com/docs/loki/v2.7.x/tools/logcli/
+
+ -- Michael Howe <michael@michaelhowe.org>  Tue, 28 Feb 2023 18:08:57 +0000
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644 (file)
index 0000000..6b06251
--- /dev/null
@@ -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 <michael@michaelhowe.org>  Tue, 28 Feb 2023 18:08:57 +0000
diff --git a/debian/README.source b/debian/README.source
new file mode 100644 (file)
index 0000000..1bece05
--- /dev/null
@@ -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 <michael@michaelhowe.org>  Tue, 28 Feb 2023 18:08:57 +0000
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..bab7a0d
--- /dev/null
@@ -0,0 +1,5 @@
+logcli (2.7.4) unstable; urgency=medium
+
+  * Initial Release.
+
+ -- Michael Howe <michael@michaelhowe.org>  Tue, 28 Feb 2023 18:08:57 +0000
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..7e80172
--- /dev/null
@@ -0,0 +1,16 @@
+Source: logcli
+Section: admin
+Priority: optional
+Maintainer: Michael Howe <michael@michaelhowe.org>
+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 (file)
index 0000000..260f8d6
--- /dev/null
@@ -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 <michael@michaelhowe.org>
+License: GPL-3.0+
diff --git a/debian/logcli-docs.docs b/debian/logcli-docs.docs
new file mode 100644 (file)
index 0000000..3609b98
--- /dev/null
@@ -0,0 +1,3 @@
+README.Debian
+README.source
+README
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..f00dbc2
--- /dev/null
@@ -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 (file)
index 0000000..89ae9db
--- /dev/null
@@ -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 (file)
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 (executable)
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 (executable)
index 0000000..9406dbd
--- /dev/null
@@ -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