You've already forked prometheus-bind-exporter-pkg
Compare commits
21 Commits
19017e50a6
...
master
Author | SHA1 | Date | |
---|---|---|---|
aaaebf3edc
|
|||
322aaeaa7f
|
|||
b8c137b759
|
|||
54a740bbfe
|
|||
d78c979d99
|
|||
0714bcb0f7
|
|||
8fec624ff2
|
|||
3a5e461636
|
|||
d439659952
|
|||
da72df1849
|
|||
3fa232faf6
|
|||
b94290fc27
|
|||
24b64ebd1c
|
|||
0f49a0fcee
|
|||
21565c982e
|
|||
c02bd62eef
|
|||
5ff8f02d13
|
|||
76fcefb343
|
|||
63d09cb177
|
|||
9762e9c152
|
|||
58a6b36231
|
97
.drone.yml
97
.drone.yml
@ -1,97 +0,0 @@
|
|||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: kubernetes
|
|
||||||
name: linter
|
|
||||||
|
|
||||||
clone:
|
|
||||||
disable: true
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: clone
|
|
||||||
image: git.cryptic.systems/volker.raschek/git:1.3.1
|
|
||||||
|
|
||||||
- name: markdown lint
|
|
||||||
commands:
|
|
||||||
- markdownlint *.md
|
|
||||||
image: git.cryptic.systems/volker.raschek/markdownlint:0.39.0
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 150
|
|
||||||
memory: 150M
|
|
||||||
|
|
||||||
- name: email-notification
|
|
||||||
environment:
|
|
||||||
SMTP_FROM_ADDRESS:
|
|
||||||
from_secret: smtp_from_address
|
|
||||||
SMTP_FROM_NAME:
|
|
||||||
from_secret: smtp_from_name
|
|
||||||
SMTP_HOST:
|
|
||||||
from_secret: smtp_host
|
|
||||||
SMTP_USERNAME:
|
|
||||||
from_secret: smtp_username
|
|
||||||
SMTP_PASSWORD:
|
|
||||||
from_secret: smtp_password
|
|
||||||
image: git.cryptic.systems/volker.raschek/drone-email:0.1.5
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 150
|
|
||||||
memory: 150M
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- changed
|
|
||||||
- failure
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: kubernetes
|
|
||||||
name: sync-to-aur.archlinux.org
|
|
||||||
|
|
||||||
clone:
|
|
||||||
disable: true
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: clone
|
|
||||||
image: git.cryptic.systems/volker.raschek/git:1.3.1
|
|
||||||
|
|
||||||
- name: git-push
|
|
||||||
image: docker.io/appleboy/drone-git-push:1.0.6
|
|
||||||
settings:
|
|
||||||
branch: master
|
|
||||||
remote: ssh://aur@aur.archlinux.org/prometheus-bind-exporter.git
|
|
||||||
force: false
|
|
||||||
commit: false
|
|
||||||
ssh_key:
|
|
||||||
from_secret: aur_ssh_key
|
|
||||||
|
|
||||||
- name: email-notification
|
|
||||||
environment:
|
|
||||||
SMTP_FROM_ADDRESS:
|
|
||||||
from_secret: smtp_from_address
|
|
||||||
SMTP_FROM_NAME:
|
|
||||||
from_secret: smtp_from_name
|
|
||||||
SMTP_HOST:
|
|
||||||
from_secret: smtp_host
|
|
||||||
SMTP_USERNAME:
|
|
||||||
from_secret: smtp_username
|
|
||||||
SMTP_PASSWORD:
|
|
||||||
from_secret: smtp_password
|
|
||||||
image: git.cryptic.systems/volker.raschek/drone-email:0.1.5
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 150
|
|
||||||
memory: 150M
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- changed
|
|
||||||
- failure
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
repo:
|
|
||||||
- volker.raschek/prometheus-bind-exporter-pkg
|
|
@ -1,145 +0,0 @@
|
|||||||
# markdownlint YAML configuration
|
|
||||||
# https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml
|
|
||||||
|
|
||||||
# Default state for all rules
|
|
||||||
default: true
|
|
||||||
|
|
||||||
# Path to configuration file to extend
|
|
||||||
extends: null
|
|
||||||
|
|
||||||
# MD003/heading-style/header-style - Heading style
|
|
||||||
MD003:
|
|
||||||
# Heading style
|
|
||||||
style: "atx"
|
|
||||||
|
|
||||||
# MD004/ul-style - Unordered list style
|
|
||||||
MD004:
|
|
||||||
style: "dash"
|
|
||||||
|
|
||||||
# MD007/ul-indent - Unordered list indentation
|
|
||||||
MD007:
|
|
||||||
# Spaces for indent
|
|
||||||
indent: 2
|
|
||||||
# Whether to indent the first level of the list
|
|
||||||
start_indented: false
|
|
||||||
|
|
||||||
# MD009/no-trailing-spaces - Trailing spaces
|
|
||||||
MD009:
|
|
||||||
# Spaces for line break
|
|
||||||
br_spaces: 2
|
|
||||||
# Allow spaces for empty lines in list items
|
|
||||||
list_item_empty_lines: false
|
|
||||||
# Include unnecessary breaks
|
|
||||||
strict: false
|
|
||||||
|
|
||||||
# MD010/no-hard-tabs - Hard tabs
|
|
||||||
MD010:
|
|
||||||
# Include code blocks
|
|
||||||
code_blocks: true
|
|
||||||
|
|
||||||
# MD012/no-multiple-blanks - Multiple consecutive blank lines
|
|
||||||
MD012:
|
|
||||||
# Consecutive blank lines
|
|
||||||
maximum: 1
|
|
||||||
|
|
||||||
# MD013/line-length - Line length
|
|
||||||
MD013:
|
|
||||||
# Number of characters
|
|
||||||
line_length: 120
|
|
||||||
# Number of characters for headings
|
|
||||||
heading_line_length: 120
|
|
||||||
# Number of characters for code blocks
|
|
||||||
code_block_line_length: 120
|
|
||||||
# Include code blocks
|
|
||||||
code_blocks: false
|
|
||||||
# Include tables
|
|
||||||
tables: false
|
|
||||||
# Include headings
|
|
||||||
headings: true
|
|
||||||
# Include headings
|
|
||||||
headers: true
|
|
||||||
# Strict length checking
|
|
||||||
strict: false
|
|
||||||
# Stern length checking
|
|
||||||
stern: false
|
|
||||||
|
|
||||||
# MD022/blanks-around-headings/blanks-around-headers - Headings should be surrounded by blank lines
|
|
||||||
MD022:
|
|
||||||
# Blank lines above heading
|
|
||||||
lines_above: 1
|
|
||||||
# Blank lines below heading
|
|
||||||
lines_below: 1
|
|
||||||
|
|
||||||
# MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
|
|
||||||
MD024:
|
|
||||||
# Only check sibling headings
|
|
||||||
allow_different_nesting: true
|
|
||||||
|
|
||||||
# MD025/single-title/single-h1 - Multiple top-level headings in the same document
|
|
||||||
MD025:
|
|
||||||
# Heading level
|
|
||||||
level: 1
|
|
||||||
# RegExp for matching title in front matter
|
|
||||||
front_matter_title: "^\\s*title\\s*[:=]"
|
|
||||||
|
|
||||||
# MD026/no-trailing-punctuation - Trailing punctuation in heading
|
|
||||||
MD026:
|
|
||||||
# Punctuation characters
|
|
||||||
punctuation: ".,;:!。,;:!"
|
|
||||||
|
|
||||||
# MD029/ol-prefix - Ordered list item prefix
|
|
||||||
MD029:
|
|
||||||
# List style
|
|
||||||
style: "one_or_ordered"
|
|
||||||
|
|
||||||
# MD030/list-marker-space - Spaces after list markers
|
|
||||||
MD030:
|
|
||||||
# Spaces for single-line unordered list items
|
|
||||||
ul_single: 1
|
|
||||||
# Spaces for single-line ordered list items
|
|
||||||
ol_single: 1
|
|
||||||
# Spaces for multi-line unordered list items
|
|
||||||
ul_multi: 1
|
|
||||||
# Spaces for multi-line ordered list items
|
|
||||||
ol_multi: 1
|
|
||||||
|
|
||||||
# MD033/no-inline-html - Inline HTML
|
|
||||||
MD033:
|
|
||||||
# Allowed elements
|
|
||||||
allowed_elements: []
|
|
||||||
|
|
||||||
# MD035/hr-style - Horizontal rule style
|
|
||||||
MD035:
|
|
||||||
# Horizontal rule style
|
|
||||||
style: "---"
|
|
||||||
|
|
||||||
# MD036/no-emphasis-as-heading/no-emphasis-as-header - Emphasis used instead of a heading
|
|
||||||
MD036:
|
|
||||||
# Punctuation characters
|
|
||||||
punctuation: ".,;:!?。,;:!?"
|
|
||||||
|
|
||||||
# MD041/first-line-heading/first-line-h1 - First line in a file should be a top-level heading
|
|
||||||
MD041:
|
|
||||||
# Heading level
|
|
||||||
level: 1
|
|
||||||
# RegExp for matching title in front matter
|
|
||||||
front_matter_title: "^\\s*title\\s*[:=]"
|
|
||||||
|
|
||||||
# MD044/proper-names - Proper names should have the correct capitalization
|
|
||||||
MD044:
|
|
||||||
# List of proper names
|
|
||||||
names:
|
|
||||||
- Arch Linux
|
|
||||||
- Linux Mint
|
|
||||||
# Include code blocks
|
|
||||||
code_blocks: false
|
|
||||||
|
|
||||||
# MD046/code-block-style - Code block style
|
|
||||||
MD046:
|
|
||||||
# Block style
|
|
||||||
style: "fenced"
|
|
||||||
|
|
||||||
# MD048/code-fence-style - Code fence style
|
|
||||||
MD048:
|
|
||||||
# Code fence syle
|
|
||||||
style: "backtick"
|
|
43
PKGBUILD
43
PKGBUILD
@ -2,64 +2,31 @@
|
|||||||
|
|
||||||
pkgname=prometheus-bind-exporter
|
pkgname=prometheus-bind-exporter
|
||||||
_pkgname=bind_exporter
|
_pkgname=bind_exporter
|
||||||
pkgver=0.6.1 # renovate: datasource=github-releases depName=prometheus-community/bind_exporter
|
pkgver=0.8.0 # renovate: datasource=github-releases depName=prometheus-community/bind_exporter
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Prometheus exporter for BIND metrics'
|
pkgdesc='Prometheus exporter for BIND metrics'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url='https://github.com/prometheus-community/bind_exporter'
|
url='https://github.com/prometheus-community/bind_exporter'
|
||||||
license=('Apache')
|
license=('Apache')
|
||||||
depends=('glibc')
|
|
||||||
makedepends=('go')
|
|
||||||
optdepends=('bind: for monitoring a local BIND server')
|
optdepends=('bind: for monitoring a local BIND server')
|
||||||
options=('!lto')
|
options=('!lto')
|
||||||
source=(
|
source=(
|
||||||
"$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
|
"$pkgname-$pkgver.tar.gz::$url/releases/download/v$pkgver/bind_exporter-$pkgver.linux-amd64.tar.gz"
|
||||||
'systemd.service'
|
'systemd.service'
|
||||||
'sysusers.conf'
|
'sysusers.conf'
|
||||||
)
|
)
|
||||||
sha512sums=('d710b7228587e12a101a1d626ec5e0290b0740074f3976eee02463165030b361d3b6df556ab949d632488582ef6d4a3197270afc197d6d756a99c16e55c5448c'
|
sha512sums=('ef53c4c5b78e8018f7f528d415f7bb0c91197d951c1ea9fa00bcb44bc2fa18a0125f1dae56a54c661d564a5a617e9d90189c26e67e16ff5a22c091a4610ac61f'
|
||||||
'8c22cfadddd8820258e02f53253de78cc1707f6220da13f36e682b79d58a3b59ef615b3f0c74ced01bcb6afb19c35414821575d265227512f5192182aca2d042'
|
'8c22cfadddd8820258e02f53253de78cc1707f6220da13f36e682b79d58a3b59ef615b3f0c74ced01bcb6afb19c35414821575d265227512f5192182aca2d042'
|
||||||
'143591ed6c2550085a2ab5c292aa57a6ab047826158270c630acaf1dd1afc9e3cbccb612f0b684206832c8d641eb432bf4f474dd07b9dc744cfd7174d320b552')
|
'143591ed6c2550085a2ab5c292aa57a6ab047826158270c630acaf1dd1afc9e3cbccb612f0b684206832c8d641eb432bf4f474dd07b9dc744cfd7174d320b552')
|
||||||
b2sums=('ad2def162e0fac5e857328bb142bc20655d0d1ea4a9d90a3bd8d305a3d86f9247671ca92f90d5ccdcb1a8bd147ed56858a9782feeac019b87666b4b18b7219c1'
|
b2sums=('edee8966849d472bf602d35de93c53e00ba2e9ab57ea3e7c0b889383bb5bccc41ff7c83683d66ccd35ab5bf65244b300e962296498d7a9b4ee775cf786297676'
|
||||||
'83ac2fb9b39f10f9eb130fc566887a5dc70447265d9d567221ceccf83a9fe7ad8035dfa751ecefe9681c64fd8ddb260b3e370f956350b9cab699eed507d9affc'
|
'83ac2fb9b39f10f9eb130fc566887a5dc70447265d9d567221ceccf83a9fe7ad8035dfa751ecefe9681c64fd8ddb260b3e370f956350b9cab699eed507d9affc'
|
||||||
'739b1e4e7ab277096d0875ed14d61f223e7b990e7081721e4638aebad9c3beccc270ce9944384784af8eab035dbb34a86badae687c065291bfb384abfb42573a')
|
'739b1e4e7ab277096d0875ed14d61f223e7b990e7081721e4638aebad9c3beccc270ce9944384784af8eab035dbb34a86badae687c065291bfb384abfb42573a')
|
||||||
|
|
||||||
prepare() {
|
|
||||||
cd "$_pkgname-$pkgver"
|
|
||||||
|
|
||||||
# create folder for build output
|
|
||||||
mkdir build
|
|
||||||
|
|
||||||
# download dependencies
|
|
||||||
go mod download
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd "$_pkgname-$pkgver"
|
|
||||||
go build -v \
|
|
||||||
-buildmode=pie \
|
|
||||||
-trimpath \
|
|
||||||
-mod=readonly \
|
|
||||||
-modcacherw \
|
|
||||||
-ldflags "-linkmode external -extldflags ${LDFLAGS} \
|
|
||||||
-X github.com/prometheus/common/version.Version=$pkgver \
|
|
||||||
-X github.com/prometheus/common/version.Revision=$pkgver \
|
|
||||||
-X github.com/prometheus/common/version.Branch=tarball \
|
|
||||||
-X github.com/prometheus/common/version.BuildUser=someone@builder \
|
|
||||||
-X github.com/prometheus/common/version.BuildDate=$(date -d@"$SOURCE_DATE_EPOCH" +%Y%m%d-%H:%M:%S)" \
|
|
||||||
-o build .
|
|
||||||
}
|
|
||||||
|
|
||||||
#check() {
|
|
||||||
# cd "$_pkgname-$pkgver"
|
|
||||||
# go test ./...
|
|
||||||
#}
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
# systemd integration
|
# systemd integration
|
||||||
install -Dm644 systemd.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
install -Dm644 systemd.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
||||||
install -Dm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
|
install -Dm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
|
||||||
|
|
||||||
# binary
|
# binary
|
||||||
install -Dm755 -t "$pkgdir/usr/bin" "$_pkgname-$pkgver/build/$_pkgname"
|
install -Dm755 -t "$pkgdir/usr/bin" "$_pkgname-$pkgver.linux-amd64/$_pkgname"
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
# prometheus-bind-exporter
|
# prometheus-bind-exporter
|
||||||
|
|
||||||

|

|
||||||
[](https://drone.cryptic.systems/volker.raschek/prometheus-bind-exporter-pkg)
|
|
||||||

|

|
||||||
|
|
||||||
This repository contains build files to build the Arch Linux package `prometheus-bind-exporter`. Instead of building the
|
This repository contains build files to build the Arch Linux package `prometheus-bind-exporter`. Instead of building the
|
||||||
|
@ -1,26 +1,16 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"assignees": [ "volker.raschek" ],
|
"extends": [
|
||||||
"customManagers": [
|
"local>volker.raschek/renovate-config:default#master",
|
||||||
{
|
"local>volker.raschek/renovate-config:regexp#master"
|
||||||
"description": "Update PKGBUILD version",
|
|
||||||
"fileMatch": [
|
|
||||||
"^PKGBUILD$"
|
|
||||||
],
|
|
||||||
"matchStrings": [
|
|
||||||
"pkgver=(?<currentValue>.*) # renovate: datasource=(?<datasource>.*) depName=(?<depName>.*)( lookupName=(?<lookupName>.*))?( versioning=(?<versioning>.*))?"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"labels": [ "renovate" ],
|
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"addLabels": [ "renovate/droneci", "renovate/automerge" ],
|
"automerge": false,
|
||||||
"automerge": true,
|
"enabled": false,
|
||||||
"matchManagers": "droneci",
|
"matchDepNames": [
|
||||||
"matchUpdateTypes": [ "minor", "patch"]
|
"prometheus-community/bind_exporter"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"rebaseLabel": "renovate/rebase",
|
}
|
||||||
"rebaseWhen": "behind-base-branch"
|
|
||||||
}
|
|
Reference in New Issue
Block a user