Update to 0.9.0

This commit is contained in:
Manuel 2021-04-02 15:07:13 +02:00
parent 1bc2f91069
commit f0a6f43985
Signed by: Manuel
GPG key ID: 4085037435E1F07A
2 changed files with 20 additions and 19 deletions

View file

@ -1,17 +1,18 @@
pkgbase = prometheus-postgresql-exporter pkgbase = prometheus-postgresql-exporter
pkgdesc = Prometheus exporter for PostrgreSQL pkgdesc = Prometheus exporter for PostgreSQL
pkgver = 0.8.0 pkgver = 0.9.0
pkgrel = 3 pkgrel = 1
url = https://github.com/wrouesnel/postgres_exporter url = https://github.com/prometheus-community/postgres_exporter
arch = x86_64 arch = x86_64
license = Apache license = Apache
makedepends = git makedepends = git
makedepends = go makedepends = go
makedepends = make
backup = etc/conf.d/prometheus-postgresql-exporter backup = etc/conf.d/prometheus-postgresql-exporter
source = https://github.com/wrouesnel/postgres_exporter/archive/v0.8.0.tar.gz source = https://github.com/prometheus-community/postgres_exporter/archive/v0.9.0.tar.gz
source = prometheus-postgresql-exporter.service source = prometheus-postgresql-exporter.service
source = prometheus-postgresql-exporter.conf source = prometheus-postgresql-exporter.conf
sha256sums = 27877c9b3aa751c7c1265f39986218f6a2c2b66a126cf348c6cc2f20f5201b02 sha256sums = a92d30e9952dfb3387ef2a636d19891e226c396f769729431dac0bddc3f0b29e
sha256sums = 0d86e650d88c8d4a8bc5b26faecb75023e069eaf29582135bcb0202e4a69a9b9 sha256sums = 0d86e650d88c8d4a8bc5b26faecb75023e069eaf29582135bcb0202e4a69a9b9
sha256sums = 5436ad34fbcd6faab69da8675631f3eb5b89d964682eb23164bf4bb816ad1897 sha256sums = 5436ad34fbcd6faab69da8675631f3eb5b89d964682eb23164bf4bb816ad1897

View file

@ -2,18 +2,18 @@
# Contributor: Nils Czernia <nils@czserver.de> # Contributor: Nils Czernia <nils@czserver.de>
pkgname=prometheus-postgresql-exporter pkgname=prometheus-postgresql-exporter
pkgver=0.8.0 pkgver=0.9.0
pkgrel=3 pkgrel=1
pkgdesc="Prometheus exporter for PostrgreSQL" pkgdesc="Prometheus exporter for PostgreSQL"
arch=('x86_64') arch=('x86_64')
url="https://github.com/wrouesnel/postgres_exporter" url="https://github.com/prometheus-community/postgres_exporter"
license=('Apache') license=('Apache')
makedepends=('git' 'go') makedepends=('git' 'go' 'make')
backup=('etc/conf.d/prometheus-postgresql-exporter') backup=('etc/conf.d/prometheus-postgresql-exporter')
source=("https://github.com/wrouesnel/postgres_exporter/archive/v${pkgver}.tar.gz" source=("https://github.com/prometheus-community/postgres_exporter/archive/v${pkgver}.tar.gz"
"prometheus-postgresql-exporter.service" "prometheus-postgresql-exporter.service"
"prometheus-postgresql-exporter.conf") "prometheus-postgresql-exporter.conf")
sha256sums=('27877c9b3aa751c7c1265f39986218f6a2c2b66a126cf348c6cc2f20f5201b02' sha256sums=('a92d30e9952dfb3387ef2a636d19891e226c396f769729431dac0bddc3f0b29e'
'0d86e650d88c8d4a8bc5b26faecb75023e069eaf29582135bcb0202e4a69a9b9' '0d86e650d88c8d4a8bc5b26faecb75023e069eaf29582135bcb0202e4a69a9b9'
'5436ad34fbcd6faab69da8675631f3eb5b89d964682eb23164bf4bb816ad1897') '5436ad34fbcd6faab69da8675631f3eb5b89d964682eb23164bf4bb816ad1897')
@ -21,20 +21,20 @@ prepare() {
cd "postgres_exporter-${pkgver}" cd "postgres_exporter-${pkgver}"
export GOPATH="${srcdir}/gopath" export GOPATH="${srcdir}/gopath"
mkdir -p "${GOPATH}/src/github.com/wrouesnel" mkdir -p "${GOPATH}/src/github.com/prometheus-community"
ln -snf "${srcdir}/postgres_exporter-${pkgver}" "${GOPATH}/src/github.com/wrouesnel/postgres_exporter" ln -snf "${srcdir}/postgres_exporter-${pkgver}" "${GOPATH}/src/github.com/prometheus-community/postgres_exporter"
} }
build() { build() {
export GOPATH="${srcdir}/gopath" export GOPATH="${srcdir}/gopath"
cd "${GOPATH}/src/github.com/wrouesnel/postgres_exporter" cd "${GOPATH}/src/github.com/prometheus-community/postgres_exporter"
go run mage.go binary make build
} }
check() { check() {
export GOPATH="${srcdir}/gopath" export GOPATH="${srcdir}/gopath"
cd "${GOPATH}/src/github.com/wrouesnel/postgres_exporter" cd "${GOPATH}/src/github.com/prometheus-community/postgres_exporter"
go run mage.go test make test
} }
package() { package() {