summaryrefslogtreecommitdiffstats
path: root/testing/slony1/APKBUILD
blob: e6fdc6e8e8718172a3ca0f9207101c745400c262 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=slony1
pkgver=2.2.2
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"

_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 -Dm755 "$srcdir"/slony1.initd "$pkgdir"/etc/init.d/slony1 \
		|| return 1
	install -Dm644 "$srcdir"/slony1.confd "$pkgdir"/etc/conf.d/slony1 \
		|| return 1
}

md5sums="1f5bb881f068c3e249c4a536725ad8f5  slony1-2.2.2.tar.bz2
a4d6b16ff6f23fbb578af35472f1ec97  slony1.initd
27fe1a24fcab45c0e3ad4dd3e53287cf  slony1.confd"
sha256sums="ef5f0fa6d95fd3a6a6b2fb5bdb4610ba437b85d2ad9210caabcfb1a9a98405d2  slony1-2.2.2.tar.bz2
e25c1e302d6e578c56ae88a7c24cdb1042f7dc986f00565b5e7d933d8224e08a  slony1.initd
f722568539e1dbb3a86aa65a2c44582780841823dbc6957ff9861a48ec38a0e3  slony1.confd"
sha512sums="320d871fc0fa58bd8c7bc4af50f160ff8d8ea008fed3cb69aa15de14adc6bcfbee2d9659fbf196140af8764d192a5914f2a0b1e486c43533b101b91a73dca36c  slony1-2.2.2.tar.bz2
5c83eff781c2c3bfcadf26f657fc6420b6934a4531a10b2fc08a490a96b663aebac4f3cfc533e05ad87b300cb8a0f5ad577b4326bac538082dd549b10b7a80f6  slony1.initd
769c47812dbc27b2d688e262b9287cbf975fbb5bbcbed8ccf65781edc1437e13e4be5c923f3b77b47fc81589bb429018489bec5235d03361e1032b356ad638ae  slony1.confd"