Deleted package: prometheus-postgresql-exporter: moved to extra
This commit is contained in:
parent
96da01cf90
commit
d992d9b5ee
4 changed files with 0 additions and 94 deletions
|
@ -1,19 +0,0 @@
|
|||
pkgbase = prometheus-postgresql-exporter
|
||||
pkgdesc = Prometheus exporter for PostgreSQL
|
||||
pkgver = 0.15.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/prometheus-community/postgres_exporter
|
||||
arch = x86_64
|
||||
license = Apache
|
||||
makedepends = git
|
||||
makedepends = go
|
||||
makedepends = make
|
||||
backup = etc/conf.d/prometheus-postgresql-exporter
|
||||
source = https://github.com/prometheus-community/postgres_exporter/archive/v0.15.0/postgres_exporter-0.15.0.tar.gz
|
||||
source = prometheus-postgresql-exporter.service
|
||||
source = prometheus-postgresql-exporter.conf
|
||||
sha512sums = 332700809454dba11e1e6b9cbc46be9683925a6c692e110efa1204ce1ad1457a8d2237ee8af20f1ee6d5c663266fc1629da6f4f5ff9151faf294a26af8be7682
|
||||
sha512sums = 598d201054de604ac78e2b335ad9a219c5d130de6901a6fe64643ac5c9d74314548b65ba2ee675095d8a140b0b48a896cadf6745848e210143761d81e2534402
|
||||
sha512sums = 70e5f4a0a184322d21204a7a7a17fd604dc425b106e9ab1897c6805c52469ecad732e96f7b0f0d35763f6bc3945dc5562cd27459776e83c609834c931d09508f
|
||||
|
||||
pkgname = prometheus-postgresql-exporter
|
|
@ -1,47 +0,0 @@
|
|||
# Maintainer: Manuel Hüsers <aur@huesers.de>
|
||||
# Contributor: Nils Czernia <nils@czserver.de>
|
||||
|
||||
pkgname=prometheus-postgresql-exporter
|
||||
pkgver=0.15.0
|
||||
pkgrel=1
|
||||
pkgdesc="Prometheus exporter for PostgreSQL"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/prometheus-community/postgres_exporter"
|
||||
license=('Apache')
|
||||
makedepends=('git' 'go' 'make')
|
||||
backup=('etc/conf.d/prometheus-postgresql-exporter')
|
||||
source=("https://github.com/prometheus-community/postgres_exporter/archive/v${pkgver}/postgres_exporter-${pkgver}.tar.gz"
|
||||
"prometheus-postgresql-exporter.service"
|
||||
"prometheus-postgresql-exporter.conf")
|
||||
sha512sums=('332700809454dba11e1e6b9cbc46be9683925a6c692e110efa1204ce1ad1457a8d2237ee8af20f1ee6d5c663266fc1629da6f4f5ff9151faf294a26af8be7682'
|
||||
'598d201054de604ac78e2b335ad9a219c5d130de6901a6fe64643ac5c9d74314548b65ba2ee675095d8a140b0b48a896cadf6745848e210143761d81e2534402'
|
||||
'70e5f4a0a184322d21204a7a7a17fd604dc425b106e9ab1897c6805c52469ecad732e96f7b0f0d35763f6bc3945dc5562cd27459776e83c609834c931d09508f')
|
||||
|
||||
prepare() {
|
||||
cd "postgres_exporter-${pkgver}"
|
||||
|
||||
export GOPATH="${srcdir}/gopath"
|
||||
mkdir -p "${GOPATH}/src/github.com/prometheus-community"
|
||||
ln -snf "${srcdir}/postgres_exporter-${pkgver}" "${GOPATH}/src/github.com/prometheus-community/postgres_exporter"
|
||||
}
|
||||
|
||||
build() {
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CFLAGS="${CFLAGS}"
|
||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||
export CGO_LDFLAGS="${LDFLAGS}"
|
||||
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
|
||||
export GOPATH="${srcdir}/gopath"
|
||||
cd "${GOPATH}/src/github.com/prometheus-community/postgres_exporter"
|
||||
make build
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm644 "prometheus-postgresql-exporter.service" \
|
||||
"${pkgdir}/usr/lib/systemd/system/prometheus-postgresql-exporter.service"
|
||||
install -Dm644 "prometheus-postgresql-exporter.conf" \
|
||||
"${pkgdir}/etc/conf.d/prometheus-postgresql-exporter"
|
||||
|
||||
cd "postgres_exporter-${pkgver}"
|
||||
install -Dm755 "postgres_exporter" "${pkgdir}/usr/bin/prometheus_postgresql_exporter"
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
DATA_SOURCE_NAME=""
|
||||
POSTGRES_EXPORTER_ARGS=""
|
|
@ -1,26 +0,0 @@
|
|||
[Unit]
|
||||
Description=Prometheus exporter for PostgreSQL
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-/etc/conf.d/prometheus-postgresql-exporter
|
||||
ExecStart=/usr/bin/prometheus_postgresql_exporter $POSTGRES_EXPORTER_ARGS
|
||||
Restart=on-failure
|
||||
|
||||
DynamicUser=true
|
||||
ProtectKernelModules=true
|
||||
ProtectKernelTunables=true
|
||||
LockPersonality=true
|
||||
ProtectHostname=true
|
||||
ProtectHome=true
|
||||
ProtectClock=true
|
||||
ProtectControlGroups=true
|
||||
ProtectKernelLogs=true
|
||||
PrivateDevices=true
|
||||
PrivateUsers=true
|
||||
RestrictRealtime=true
|
||||
CapabilityBoundingSet=
|
||||
MemoryDenyWriteExecute=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue