blob: 8e432b03cb4ee9bddaedd79d7663ca802b44d4a7 (
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=corosync
pkgver=1.4.3
pkgrel=0
pkgdesc="The Corosync Cluster Engine and Application Programming Interfaces"
url="http://www.corosync.org/"
arch="all"
license="BSD2"
depends=""
depends_dev="nss-dev net-snmp-dev"
makedepends="$depends_dev automake autoconf"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="ftp://ftp:downloads@corosync.org/downloads/corosync-$pkgver/corosync-$pkgver.tar.gz
$pkgname.initd"
_builddir="$srcdir"/corosync-$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"
./autogen.sh
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-snmp \
--enable-nss \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
install -m755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname || return 1
}
libs() {
pkgdesc="The Corosync Cluster Engine Libraries"
mkdir -p "$subpkgdir"/usr/lib
cd "$pkgdir"/usr/lib
mv libcfg.so.* libcpg.so.* libconfdb.so.* libevs.so.* \
libtotem_pg.so.* liblogsys.so.* libcoroipcc.so.* \
libcoroipcs.so.* libquorum.so.* libvotequorum.so.* \
libpload.so.* libsam.so.* \
"$subpkgdir"/usr/lib/ || return 1
}
md5sums="9e9943a7d9eb90fabd52d12b215c699c corosync-1.4.3.tar.gz
4d18555dfdd036b7a48eb5bdfd0ff053 corosync.initd"
|