aboutsummaryrefslogtreecommitdiffstats
path: root/main/pgpool/APKBUILD
blob: 9831cc0536de48af9903a904e387271aaba0a57d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Cameron <cbanta@gmail.com>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname="pgpool"
_opkgname="${pkgname}-II"
pkgver=3.7.4
pkgrel=1
pkgdesc="A connection pooling/replication server for PostgreSQL"
url="http://www.pgpool.net"
arch="all"
license="BSD"
makedepends="postgresql-dev linux-headers"
subpackages="${pkgname}-dev"
source="${pkgname}-${pkgver}.tar.gz::http://www.pgpool.net/download.php?f=${_opkgname}-${pkgver}.tar.gz
	${pkgname}.initd"

builddir="${srcdir}/${_opkgname}-${pkgver}"

prepare() {
	cd "$builddir"
	default_prepare
	update_config_sub
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install

	install -m755 -D "${srcdir}/${pkgname}.initd" "${pkgdir}/etc/init.d/${pkgname}"
}

sha512sums="fea7daa2f45ec5237cd18837231643b9b8a05696af825313c30105c8b4c143bf12b93f7af72490b1a8942e0ec044c283484e9f9b4f6f7c2efc9bf81488c8392c  pgpool-3.7.4.tar.gz
de36d7aab6806f1e303901ac80284bb9861edaf9b682901db9f1ead3843ba8cb528c814e5dabfc2c450ebed6450daf3fff14166d08a530e1c44a29e4d4e29a2c  pgpool.initd"