New package: csync2-2.0

Closes #2680
This commit is contained in:
Jürgen Buchmüller 2015-10-06 16:41:44 +02:00
parent 2cb658588f
commit 3396588daa
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,36 @@
The declaration of strlcpy conflicts with the musl libc
implementation. The libc (GNU or musl) implementation
should be sufficient in any case.
--- rsync.c 2015-03-09 15:08:51.000000000 +0100
+++ rsync.c 2015-10-06 16:39:10.499186490 +0200
@@ -39,29 +39,6 @@
#endif
-/* This has been taken from rsync:lib/compat.c */
-
-/**
- * Like strncpy but does not 0 fill the buffer and always null
- * terminates.
- *
- * @param bufsize is the size of the destination buffer.
- *
- * @return index of the terminating byte.
- **/
-static size_t strlcpy(char *d, const char *s, size_t bufsize)
-{
- size_t len = strlen(s);
- size_t ret = len;
- if (bufsize > 0) {
- if (len >= bufsize)
- len = bufsize-1;
- memcpy(d, s, len);
- d[len] = 0;
- }
- return ret;
-}
-
/* splits filepath at the last '/', if any, like so:
* dirname basename filepath
* "/" "" "/"

15
srcpkgs/csync2/template Normal file
View file

@ -0,0 +1,15 @@
# Template file for 'csync2'
pkgname=csync2
version=2.0
revision=1
build_style=gnu-configure
conf_files="/etc/csync2.cfg"
hostmakedepends="pkg-config"
makedepends="librsync-devel sqlite-devel gnutls-devel"
short_desc="A cluster synchronization tool"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="GPL-3"
homepage="http://oss.linbit.com/csync2/"
distfiles="http://oss.linbit.com/csync2/csync2-${version}.tar.gz"
checksum=11cb37380fb185bce0c22b804fec9b01c385d9d83cc528cfd48d748453834fa2