]> git.pld-linux.org Git - packages/csync2.git/blob - csync2.spec
- new
[packages/csync2.git] / csync2.spec
1 Summary:        Cluster sync tool
2 Name:           csync2
3 Version:        1.22
4 Release:        0.1
5 License:        GPL
6 Group:          Daemons
7 Source0:        %{name}-%{version}.tar.gz
8 # Source0-md5:  6504aba35683d1663fb530b50f4c1dfd
9 URL:            http://oss.linbit.com/csync2
10 BuildRequires:  bison
11 BuildRequires:  flex
12 BuildRequires:  librsync-devel
13 BuildRequires:  openssl-devel
14 BuildRequires:  sqlite-devel
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Csync2 is a cluster synchronization tool. It can be used to keep files
19 on multiple hosts in a cluster in sync. Csync2 can handle complex
20 setups with much more than just 2 hosts, handle file deletions and can
21 detect conflicts. It is expedient for HA-clusters, HPC-clusters, COWs
22 and server farms.
23
24 %prep
25 %setup -q
26
27 %build
28 %configure
29 %{__make} all
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{_sbindir}
34 install csync2 $RPM_BUILD_ROOT%{_sbindir}
35 install -d $RPM_BUILD_ROOT%{_var}/lib/csync2
36
37 %clean
38 rm -rf $RPM_BUILD_ROOT
39
40 %post
41 if ! grep -q "^csync2" /etc/services ; then
42      echo -e "csync2\t\t30865/tcp\t\t# Cluster sync" >> /etc/services
43 fi
44
45 %files
46 %defattr(644,root,root,755)
47 %doc AUTHORS ChangeLog README TODO
48 %attr(755,root,root) %{_sbindir}/csync2
49 %dir %{_var}/lib/csync2
This page took 0.072771 seconds and 3 git commands to generate.