blob: e3c7da7e878cc166bd69bff81fddf40e08d27257 (
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
|
# vim:set ts=2 sw=2 et:
# Maintainer: Brian Bidulock <bidulock@openss7.org>
pkgname=csync2-git
_pkgname=csync2
pkgver=2.0.r22.gce67c55
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="Asynchronous cluster syncronisation tool based on librsync and inspired by Unison"
url="http://oss.linbit.com/csync2/"
license=('GPL')
provides=("$_pkgname=2.0")
conflicts=("$_pkgname")
makedepends=('texlive-latexextra' 'sqlite' 'git')
depends=('librsync' 'gnutls')
optdepends=('sqlite: for sqlite backend')
source=("$pkgname::git+https://github.com/LINBIT/csync2.git"
'csync2.socket'
'csync2@.service'
'csync2-rm-ssl-cert')
md5sums=('SKIP'
'276efe22ab32b540fbdd6ada3479f154'
'0b5c64016805a451ca440b679b3674b6'
'abadf30dbc4695a1686814937e2cd829')
pkgver() {
cd ${pkgname}
git describe --long --tags | sed -E 's/^csync2-//;s/([^-]*-g)/r\1/;s/-/./g'
}
prepare() {
cd ${pkgname}
sed -r 's,AC_PROG_CC$,AC_PROG_CC\nAC_PROG_CPP,' -i configure.ac
autoreconf -fiv
}
build() {
cd ${pkgname}
./configure \
--prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/bin \
--sysconfdir=/etc/csync2 \
--localstatedir=/var
make V=0
}
package() {
cd ${pkgname}
make -j1 DESTDIR="${pkgdir}" install
install -Dm644 ../'csync2.socket' "$pkgdir/usr/lib/systemd/system/csync2.socket"
install -Dm644 ../'csync2@.service' "$pkgdir/usr/lib/systemd/system/csync2@.service"
install -Dm755 ../'csync2-rm-ssl-cert' "$pkgdir/usr/bin/csync2-rm-ssl-cert"
rm -fr "${pkgdir}"/var
install -Dm644 /dev/stdin "${pkgdir}"/usr/lib/tmpfiles.d/${_pkgname}.conf <<-END
d /var/lib/${_pkgname} 0755 root root -
END
}
|