commit 6d54b01324a98c3d6332f53ec7ca4de010d59f3c Author: Markus Pesch Date: Wed May 21 17:59:38 2025 +0200 Initial Commit diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1166a4a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = false \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9c60cd8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +pkg +src +*tar.gz +*tar.zst +*tar.zst.sig +*zip \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..178fd66 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Markus Pesch + +pkgname=git-sv +pkgver=2.0.1 # renovate: datasource=github-releases depName=thegeeklab/git-sv extractVersion='^v?(?.*)$' +pkgrel=1 +pkgdesc="Semantic versioning tool for git based on conventional commits " +arch=('armv7h' 'aarch64' 'x86_64') +url="https://github.com/thegeeklab/$pkgname" +license=('MIT') +makedepends=('go') + +source=( + "$url/archive/refs/tags/v$pkgver.zip" +) +sha512sums=('e9fff2eeb7d7dae04dc9053f72a5a5a6d685922ef91496e43032ccf4ef910b71f93ddf01f4a08a661ad105c582eeac51cd47da85a1d70401ad524179f1bf1826') +b2sums=('76d2a0999f57df7b19109674ae5789aca1fec4b6b4a28c414cc2a438639def47f4174d53d78dd426b712d2521a1425757ce95270edb3b2dcdea3d08522105a7b') + +build() { + make --directory "$pkgname-$pkgver" build +} + +package() { + # binary + install -D --mode 0755 --target-directory "$pkgdir/usr/bin" "$pkgname-$pkgver/cmd/$pkgname/$pkgname" + + # license + install -D --mode 0755 --target-directory "$pkgdir/usr/share/licenses/$pkgname" "$pkgname-$pkgver/LICENSE" +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..3543461 --- /dev/null +++ b/README.md @@ -0,0 +1,61 @@ +# prometheus-x509-certificate-exporter + +![AUR version](https://img.shields.io/aur/version/prometheus-x509-certificate-exporter?label=AUR) +![AUR votes](https://img.shields.io/aur/votes/prometheus-x509-certificate-exporter) + +This repository contains build files to build the Arch Linux package `prometheus-x509-certificate-exporter`. Instead of +building the package yourself, it can also be obtained from the following private repository. More detailed are +described [here](#obtaining-pre-built-packages-from-a-repository). + +## Build + +Clone this repository and use `makepkg` to build the package by yourself. For example: + +```bash +git clone https://aur.archlinux.org/prometheus-x509-certificate-exporter.git +cd prometheus-x509-certificate-exporter +makepkg +``` + +## Yay + +The build files are also available via AUR and can be installed via an AUR helper like `yay`. + +```bash +yay --sync --aur prometheus-x509-certificate-exporter +``` + +## Obtaining pre-built packages from a repository + +Instead of building the packages locally, it is also possible to configure an additional repository to install the +package directly via `pacman`. The following commands are used to create the repository, configure the GPG key to verify +the packages and install the package: + +```bash +# Create drop-in directory +sudo mkdir --parents /etc/pacman.d/repos + +# Create configuration of the repository 'volker.raschek' +sudo tee /etc/pacman.d/repos/volker.raschek.conf > /dev/null <<'EOF' +[volker.raschek] +SigLevel = PackageRequired TrustedOnly +Include = /etc/pacman.d/repos/volker.raschek.list +EOF + +# Create mirror list of the repository 'volker.raschek' +sudo tee /etc/pacman.d/repos/volker.raschek.list > /dev/null <<'EOF' +Server = https://aur.cryptic.systems/$repo/$arch +EOF + +# Import gpg key of the repository 'volker.raschek' +sudo pacman-key --keyserver hkps://keys.openpgp.org --recv-keys 9B146D11A9ED6CA7E279EB1A852BCC170D81A982 + +# Extend existing pacman configuration of the repository 'volker.raschek' +sudo echo "Include = /etc/pacman.d/repos/*.conf" >> /etc/pacman.conf + +# Update pacman cache +sudo pacman --sync --refresh + +# Install the package and receive updates directly via pacman :) +sudo pacman --sync prometheus-x509-certificate-exporter +``` diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..29b2cb9 --- /dev/null +++ b/renovate.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "local>volker.raschek/renovate-config:default#master", + "local>volker.raschek/renovate-config:regexp#master" + ] +} \ No newline at end of file