blob: 2dc80cf6b4012971d250994ef91fb43ef9d96378 (
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
|
# Contributor: Cameron <cbanta@gmail.com>
# Maintainer: Cameron <cbanta@gmail.com>
pkgname=pgpool
_opkgname=pgpool-II
pkgver=3.2.2
pkgrel=1
pkgdesc="A connection pooling/replication server for PostgreSQL"
url="http://www.pgpool.net"
arch="all"
license="BSD"
makedepends="postgresql-dev"
subpackages="$pkgname-doc $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"
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
}
md5sums="707f0f6328b669cb643b936c21365440 pgpool-II-3.2.2.tar.gz
f7cbfc39162cd4805d8059fb9f54f2b3 pgpool.initd"
sha256sums="307bab80dcefdcc5c1a2a7b2f294d5734d9c258985503e550b3cbf8d1858cfb0 pgpool-II-3.2.2.tar.gz
ca0f76a79bb8573376ba5ab57021e9ac6e10a45ac561eb23bc3826535d1c173d pgpool.initd"
sha512sums="e02091ab5aa336d01e3a0d314b856868452880c4f86aa92e4f73105d4e9aa0c21914e18587f06a2f67282e30e3a50ffff0c0b3825efc5f91529de06206dbdfb8 pgpool-II-3.2.2.tar.gz
de36d7aab6806f1e303901ac80284bb9861edaf9b682901db9f1ead3843ba8cb528c814e5dabfc2c450ebed6450daf3fff14166d08a530e1c44a29e4d4e29a2c pgpool.initd"
|