# Contributor: G.J.R. Timmer # Maintainer: G.J.R. Timmer setglobal pkgname = 'check_postgres' setglobal pkgver = '2.22.0' setglobal pkgrel = '0' setglobal pkgdesc = '"PostgreSQL monitoring script'" setglobal url = '"https://bucardo.org/wiki/Check_postgres'" setglobal arch = '"noarch'" setglobal license = '"BSD'" setglobal depends = '"postgresql perl'" setglobal makedepends = '"perl-dev'" setglobal subpackages = ""$pkgname-doc"" setglobal source = ""$pkgname-$pkgver.tar.gz::https://github.com/bucardo/check_postgres/archive/$(pkgver).tar.gz"" setglobal builddir = ""$srcdir/$pkgname-$pkgver"" proc 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 } proc 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 } setglobal md5sums = '"40c1636e73b08908fc4a36a8e70d8543 check_postgres-2.22.0.tar.gz'" setglobal sha256sums = '"a70004a397ac9561e096974b43ba1dfda09d04af16ae7285d10d20bc4f80f0bf check_postgres-2.22.0.tar.gz'" setglobal sha512sums = '"d49b11df2c64c052ba67adabdcd12d0fff1a9aacd443efa8a884104678e84abf62fa89cfe0546fcd37313abdddb28d3123c556b1ceecd90f8dd50e16dec3c62c check_postgres-2.22.0.tar.gz'"