aboutsummaryrefslogtreecommitdiffstats
path: root/testing/csync2/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-12-18 11:59:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-12-18 12:03:20 +0000
commit69e2ae91103f30b9c6cd1df326ccb788d8ab7318 (patch)
treed692b04de8670673cd19bc2873c30220880631be /testing/csync2/APKBUILD
parent6fc7aa2d17af1ab39ee3255f46e516a851b1c8fb (diff)
downloadaports-69e2ae91103f30b9c6cd1df326ccb788d8ab7318.tar.bz2
aports-69e2ae91103f30b9c6cd1df326ccb788d8ab7318.tar.xz
testing/csync2: refactor the git release
- instead of basing the version on a non released 2.0_rc1, based it on latest release, 1.34 - use date of latest git commit instead of the date it was generated - instead of making a git snapshot, make a patch. This way we don't need upload the source archive any place.
Diffstat (limited to 'testing/csync2/APKBUILD')
-rw-r--r--testing/csync2/APKBUILD18
1 files changed, 11 insertions, 7 deletions
diff --git a/testing/csync2/APKBUILD b/testing/csync2/APKBUILD
index 6b2ff91982..48199b3051 100644
--- a/testing/csync2/APKBUILD
+++ b/testing/csync2/APKBUILD
@@ -1,6 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=csync2
-pkgver=2.0_rc1_git20121210
+pkgver=1.34_git20111201
+_ver=${pkgver%_git*}
pkgrel=0
pkgdesc="Cluster synchronization tool"
url="http://oss.linbit.com/csync2/"
@@ -10,12 +11,13 @@ depends=
makedepends="librsync-dev gnutls-dev sqlite-dev autoconf automake bison flex"
install=
subpackages="$pkgname-doc"
-source="$pkgname-$pkgver.tar.gz
+source="http://oss.linbit.com/csync2/csync2-${_ver}.tar.gz
+ git.patch
03-strlcpy_disable.patch"
# 01-csync2-sqlite3.patch
# 02-csync2-1.34-gnutls_pkgconfig.patch
-_builddir="$srcdir"/$pkgname-$pkgver
+_builddir="$srcdir"/$pkgname-$_ver
_giturl="http://git.linbit.com/csync2.git"
@@ -41,9 +43,10 @@ snapshot() {
prepare() {
cd "$_builddir"
- for i in ../*.patch; do
- msg "Applying $i"
- patch -p1 -i $i || return 1
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
done
autoreconf --install --force
}
@@ -62,5 +65,6 @@ package() {
make DESTDIR="$pkgdir" install
}
-md5sums="9c835a405db0ab3496239ef185bc43f2 csync2-2.0_rc1_git20121210.tar.gz
+md5sums="efc8a3548996b79cef2ad76af5e93cd8 csync2-1.34.tar.gz
+bd4957d25e984518d929ae4036bf0ae9 git.patch
e6d8aaff70cf847b11873cd1cfaaa8f6 03-strlcpy_disable.patch"