aboutsummaryrefslogtreecommitdiffstats
path: root/testing/csync2/APKBUILD
blob: f26da55cbc35abf7f492eff31e44a222cfa665de (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=csync2
pkgver=1.34_git20111201
_ver=${pkgver%_git*}
pkgrel=2
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="http://oss.linbit.com/csync2/csync2-${_ver}.tar.gz
	git.patch
	03-strlcpy_disable.patch
	csync2-1.34-librsync-1.0.0.patch
	"
#	01-csync2-sqlite3.patch
#	02-csync2-1.34-gnutls_pkgconfig.patch

_builddir="$srcdir"/$pkgname-$_ver
_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 $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	autoreconf --install --force 
}
    
build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="efc8a3548996b79cef2ad76af5e93cd8  csync2-1.34.tar.gz
bd4957d25e984518d929ae4036bf0ae9  git.patch
e6d8aaff70cf847b11873cd1cfaaa8f6  03-strlcpy_disable.patch
943227a4ca4bdd5ec37a315dba1844d3  csync2-1.34-librsync-1.0.0.patch"
sha256sums="32b250dd4a0353f71015c5c3961174b975dd5e799e4a084e8f6d00792bd8c833  csync2-1.34.tar.gz
7174ff0cb464b8f74c3816bfe3c5a89e9b876b50dcd6a7440b7488e3561668d7  git.patch
f4a44ca3f3a33a413a96ce837d5569c3d802bce4a6a960593b014d8dcbfbc136  03-strlcpy_disable.patch
320ac974d6bbebddea5bc08b92c944189733742e2db8c3580e193ca9a2b934ee  csync2-1.34-librsync-1.0.0.patch"
sha512sums="a24154446740f3362c10a23d526c29e96292f2ad56a9ed2f11ca0a6d7afed3730d0e96f8ebc2c6cdcc17031aa0e368f6ba93084ad3cf5f4828fbc279e6f004d8  csync2-1.34.tar.gz
ff47b30e86f6266b4be85a47db52409169597d97e4ec086653af3341978cce5e477054e5746f3824aed1d8c7949e5f8451b2bd675442a9a2c9c5c519918438a9  git.patch
1b82b25acfb988cd8f92117f6ea4bc22247648448751adc0958dae0ade3c1eb065ad15f7104e4860ea2f08a91a368d68e3959ef5dfa278c254857382ebb64625  03-strlcpy_disable.patch
f44e1df35aefff2900a5983fd1e368864396757e1fcfd6e3f5d39a55c1bad6e42e8bca5f0e16aa641dff3b62a27d7d5413dc907bcd19b9d4de068fd7be7214b0  csync2-1.34-librsync-1.0.0.patch"