diff options
Diffstat (limited to 'testing/check_postgres/APKBUILD')
-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" |