Sisyphus repository
Last update: 29 may 2023 | SRPMs: 18431 | Visits: 27865728
en ru br
ALT Linux repos
5.0: 1.34-alt1
4.1: 1.34-alt1
4.0: 1.33-alt0.1

Group :: File tools
RPM: csync2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/pdftotext
# END SourceDeps(oneline)
%define svn_rev r409

Name: csync2
Version: 2.0
Release: alt2

Summary: Csync2 is a cluster synchronization tool

License: GPLv2
Group: File tools
Source: %name-%version.tar
Source2: %name.init
Source3: csync2.socket
Source4: csync2 at .service
Source5: gen-cert

# Automatically added by buildreq on Fri Mar 31 2006

BuildRequires: flex libgnutls-openssl-devel librsync-devel libtasn1-devel libsqlite3-devel xpdf-utils
# for broken checking code (add libs depends)
BuildRequires: zlib-devel
BuildRequires: gcc-c++

# we have incompatibility in ALT

%define _localstatedir /var

Csync2 is a cluster synchronization tool. It can be used to keep files on
multiple hosts in a cluster in sync. Csync2 can handle complex setups with
much more than just 2 hosts, handle file deletions and can detect conflicts.

%ifarch %e2k
# name collision with existing function from "string.h"
sed -i "s/strlcpy/rsync_strlcpy/" rsync.c

%configure --sysconfdir=%_sysconfdir/%name --enable-sqlite3
sed -i 's,,,' db_mysql.c
sed -i 's,,,' db_sqlite.c
sed -i 's,,,' db_postgres.c
pdftotext %SOURCE1 paper.txt

%make_install DESTDIR=%buildroot install
install -m 644 -D csync2.xinetd %buildroot%_sysconfdir/xinetd.d/%name
install -m 755 -D %SOURCE2 %buildroot%_initrddir/%name
install -p -m 644 -D %SOURCE3 %buildroot%_unitdir/csync2.socket
install -p -m 644 -D %SOURCE4 %buildroot%_unitdir/csync2 at .service
install -m 755 -D %SOURCE5 %buildroot%_sysconfdir/%name/gen-cert
mkdir -p %buildroot%_localstatedir/lib/%name
touch %buildroot/etc/%name/csync2_ssl_cert.pem
touch %buildroot/etc/%name/csync2_ssl_key.pem

%post_service %name

%preun_service %name

%doc ChangeLog README AUTHORS paper.txt
%dir %_sysconfdir/%name
%config(noreplace) %_sysconfdir/%name/csync2.cfg
%config(noreplace) %_localstatedir/lib/%name
%config(noreplace) %_sysconfdir/xinetd.d/%name
%_unitdir/%name at .service
%ghost /etc/%name/csync2_ssl_cert.pem
%ghost /etc/%name/csync2_ssl_key.pem


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin