blob: df9f9edc556c5dcb04e89b91fc17ed616157deec (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=slony1
pkgver=2.2.3
pkgrel=0
pkgdesc="A master to multiple slaves replication system for PostgreSQL"
url="http://slony.info/"
arch="all"
license="BSD"
depends=""
makedepends="postgresql-dev"
install=""
subpackages=""
source="http://main.slony.info/downloads/${pkgver%.*}/source/slony1-$pkgver.tar.bz2
slony1.initd
slony1.confd
default-config.patch
"
_builddir="$srcdir"/slony1-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
install -Dm644 share/slon.conf-sample "$pkgdir"/etc/slon.conf \
|| return 1
install -Dm755 "$srcdir"/slony1.initd "$pkgdir"/etc/init.d/slony1 \
|| return 1
install -Dm644 "$srcdir"/slony1.confd "$pkgdir"/etc/conf.d/slony1 \
|| return 1
}
md5sums="91596f49e77734e2cbdbd469b9d3d032 slony1-2.2.3.tar.bz2
959728db4290340bfab359d12a16e16e slony1.initd
fb7dd8cf6a4feb1542db60fe5e5e6c2d slony1.confd
59affb1baef8ec9cbf4b69b2538f26a6 default-config.patch"
sha256sums="1321988b437bd3294a07dc5ed85dfa3c35d9413287a49e4503ec47763fa1d3a8 slony1-2.2.3.tar.bz2
0b0dab03a68c108739b88bab9e337671b7217950a89254c7be327286d2d71426 slony1.initd
69b46dc76eabd7fd7e2bd2d6816da9ed6438a56c0bcfb4541786947705cb3851 slony1.confd
07cbc82c4f534fb66eebc27f4006b56f179be14f382e3830d023f822e160577f default-config.patch"
sha512sums="6f762ec722eb844d0c0c2923e2c1bee48c6fbf973cf719553a9f40b090e2ba08885cd089818b17c56a662fe5f35eadb4b060554adcd5abab5a1a250356590519 slony1-2.2.3.tar.bz2
79e56198c2730363b6e17ab539eef62396c5667cadf74026ccc7a0f0cec29370819a99c62edc6a05ffd762f3222c669b06c95af151409ea0b4416c3a2ea08f66 slony1.initd
474fe25e49cd88a705911255d127417dabf9ba675aa67faad336dc419f19ea7416d48e84d26b03b63cec74524383b132439640b715c54fbd22389468342f0e4b slony1.confd
fa74f013e595faaa801375c41516c23801a4811ac5993a08da1d595550f8fa6fc092c1b7ffd769cd8c9118eb71f3029b0ef1bd24ec502f240512ee97f82ed028 default-config.patch"
|