diff options
author | G.J.R. Timmer <gjr.timmer@gmail.com> | 2017-02-01 16:48:44 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-02-03 04:49:47 +0100 |
commit | e51acf064d991d3cb1c9279d94dbc6bd66096021 (patch) | |
tree | 482e9b6f909020efeb5883ba0cf3d4e30262e87b /testing | |
parent | a8147f81537b6613466b2a87b0756febb5bb9f62 (diff) | |
download | aports-e51acf064d991d3cb1c9279d94dbc6bd66096021.tar.bz2 aports-e51acf064d991d3cb1c9279d94dbc6bd66096021.tar.xz |
testing/check_postgres: new apor
https://bucardo.org/wiki/Check_postgres
PostgreSQL monitoring script
Diffstat (limited to 'testing')
-rw-r--r-- | testing/check_postgres/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/check_postgres/APKBUILD b/testing/check_postgres/APKBUILD new file mode 100644 index 0000000000..ebc5063de2 --- /dev/null +++ b/testing/check_postgres/APKBUILD @@ -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" |