mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 04:05:40 +03:00
testing/check_postgres: new apor
https://bucardo.org/wiki/Check_postgres PostgreSQL monitoring script
This commit is contained in:
parent
a8147f8153
commit
e51acf064d
1 changed files with 39 additions and 0 deletions
39
testing/check_postgres/APKBUILD
Normal file
39
testing/check_postgres/APKBUILD
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Contributor: G.J.R. Timmer <gjr.timmer@gmail.com>
|
||||
# Maintainer: G.J.R. Timmer <gjr.timmer@gmail.com>
|
||||
pkgname=check_postgres
|
||||
pkgver=2.22.0
|
||||
pkgrel=0
|
||||
pkgdesc="PostgreSQL monitoring script"
|
||||
url="https://bucardo.org/wiki/Check_postgres"
|
||||
arch="noarch"
|
||||
license="BSD"
|
||||
depends="postgresql perl"
|
||||
makedepends="perl-dev"
|
||||
subpackages="$pkgname-doc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/bucardo/check_postgres/archive/${pkgver}.tar.gz"
|
||||
builddir="$srcdir/$pkgname-$pkgver"
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
perl Makefile.PL \
|
||||
INSTALL_BASE=/usr \
|
||||
INSTALLMAN1DIR=/usr/share/man \
|
||||
INSTALLSITEMAN1DIR=/usr/share/man \
|
||||
INSTALLMAN3DIR=/usr/share/man \
|
||||
INSTALLSITEMAN3DIR=/usr/share/man \
|
||||
|| return 1
|
||||
make || return 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
|
||||
# Fix file extension because MakeMaker cannot do this
|
||||
mv "$pkgdir"/usr/bin/check_postgres.pl "$pkgdir"/usr/bin/check_postgres
|
||||
}
|
||||
|
||||
md5sums="40c1636e73b08908fc4a36a8e70d8543 check_postgres-2.22.0.tar.gz"
|
||||
sha256sums="a70004a397ac9561e096974b43ba1dfda09d04af16ae7285d10d20bc4f80f0bf check_postgres-2.22.0.tar.gz"
|
||||
sha512sums="d49b11df2c64c052ba67adabdcd12d0fff1a9aacd443efa8a884104678e84abf62fa89cfe0546fcd37313abdddb28d3123c556b1ceecd90f8dd50e16dec3c62c check_postgres-2.22.0.tar.gz"
|
Loading…
Add table
Add a link
Reference in a new issue