blob: 6b2ff91982900867a8627b2d1f05fb7a80785f95 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=csync2
pkgver=2.0_rc1_git20121210
pkgrel=0
pkgdesc="Cluster synchronization tool"
url="http://oss.linbit.com/csync2/"
arch="all"
license="GPL-2+"
depends=
makedepends="librsync-dev gnutls-dev sqlite-dev autoconf automake bison flex"
install=
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz
03-strlcpy_disable.patch"
# 01-csync2-sqlite3.patch
# 02-csync2-1.34-gnutls_pkgconfig.patch
_builddir="$srcdir"/$pkgname-$pkgver
_giturl="http://git.linbit.com/csync2.git"
snapshot() {
local _pkg=$pkgname-$pkgver.tar.gz
mkdir -p "$srcdir"
cd "$srcdir"
msg "Creating snapshot: $_pkg"
rm -rf ${_giturl##*/}
git clone --bare $_giturl || return 1
git --git-dir ${_giturl##*/} archive -o $_pkg \
--prefix=$pkgname-$pkgver/ HEAD \
|| return 1
msg "New snapshot: $_pkg"
if [ -n "$_upload" ]; then
msg "Uploading to $_upload"
scp $_pkg $_upload || return 1
abump $pkgname-$_tag
fi
#abuild checksum
}
prepare() {
cd "$_builddir"
for i in ../*.patch; do
msg "Applying $i"
patch -p1 -i $i || return 1
done
autoreconf --install --force
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
}
md5sums="9c835a405db0ab3496239ef185bc43f2 csync2-2.0_rc1_git20121210.tar.gz
e6d8aaff70cf847b11873cd1cfaaa8f6 03-strlcpy_disable.patch"
|