Initial Commit
This commit is contained in:
commit
6d54b01324
12
.editorconfig
Normal file
12
.editorconfig
Normal file
@ -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
|
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
pkg
|
||||
src
|
||||
*tar.gz
|
||||
*tar.zst
|
||||
*tar.zst.sig
|
||||
*zip
|
28
PKGBUILD
Normal file
28
PKGBUILD
Normal file
@ -0,0 +1,28 @@
|
||||
# Maintainer: Markus Pesch <markus.pesch plus apps at cryptic.systems>
|
||||
|
||||
pkgname=git-sv
|
||||
pkgver=2.0.1 # renovate: datasource=github-releases depName=thegeeklab/git-sv extractVersion='^v?(?<version>.*)$'
|
||||
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"
|
||||
}
|
61
README.md
Normal file
61
README.md
Normal file
@ -0,0 +1,61 @@
|
||||
# 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
|
||||
```
|
7
renovate.json
Normal file
7
renovate.json
Normal file
@ -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"
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user