aboutsummaryrefslogblamecommitdiffstats
path: root/community/check_postgres/APKBUILD
blob: f18c62779e22d97d3d77cf43e53bd0912679a5a6 (plain) (tree)
1
2
3
4
5
6
                                                

                                                   
                  
                      
             







                                             
                                                                                            



                                   
 

                                   



                                                        
            




                      
                                      




                                                                               
                                                                                                                                                                           
# Contributor: Pedro Filipe <xpecex@outlook.com>
# Contributor: G.J.R. Timmer <gjr.timmer@gmail.com>
# Maintainer: G.J.R. Timmer <gjr.timmer@gmail.com>
# TODO: run tests!
pkgname=check_postgres
pkgver=2.24.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/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"

	perl Makefile.PL \
		INSTALL_BASE=/usr \
		INSTALLMAN1DIR=/usr/share/man/man1 \
		INSTALLSITEMAN1DIR=/usr/share/man/man1 \
		INSTALLMAN3DIR=/usr/share/man/man3 \
		INSTALLSITEMAN3DIR=/usr/share/man/man3
	make
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir" install

	# Fix file extension because MakeMaker cannot do this
	mv "$pkgdir"/usr/bin/check_postgres.pl "$pkgdir"/usr/bin/check_postgres
}

sha512sums="17567b7cd141797748b117a607663d5c3a151d3b3ea9956d35fe8b087f7987ed9dde773951c85b84d89ba2d06f1ce205e1b92e9162649ae894ef1ba200cc8a83  check_postgres-2.24.0.tar.gz"