blob: 346efb89616bfb586d50f4852db7d09331b9a526 (
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
|
# Contributor: Cameron <cbanta@gmail.com>
# Maintainer: Cameron <cbanta@gmail.com>
pkgname=pgpool
_opkgname=pgpool-II
pkgver=3.6.2
pkgrel=0
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="$_opkgname-$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 || return 1
update_config_sub || return 1
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}
sha512sums="b2869c40496f6a0b08a056e72fd0518088cce91f86d5a3c2bf4d3e25209280d51b05cbbadc5126a4ff21cc627c76c806ecfa3a19ad692a596bda3b20aae89129 pgpool-II-3.6.2.tar.gz
de36d7aab6806f1e303901ac80284bb9861edaf9b682901db9f1ead3843ba8cb528c814e5dabfc2c450ebed6450daf3fff14166d08a530e1c44a29e4d4e29a2c pgpool.initd"
|