]> git.pld-linux.org Git - packages/csync2.git/commitdiff
- new
authorzbyniu <zbyniu@pld-linux.org>
Sun, 25 Sep 2005 01:35:32 +0000 (01:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    csync2.spec -> 1.1

csync2.spec [new file with mode: 0644]

diff --git a/csync2.spec b/csync2.spec
new file mode 100644 (file)
index 0000000..ac38783
--- /dev/null
@@ -0,0 +1,49 @@
+Summary:       Cluster sync tool
+Name:          csync2
+Version:       1.22
+Release:       0.1
+License:       GPL
+Group:         Daemons
+Source0:       %{name}-%{version}.tar.gz
+# Source0-md5: 6504aba35683d1663fb530b50f4c1dfd
+URL:           http://oss.linbit.com/csync2
+BuildRequires: bison
+BuildRequires: flex
+BuildRequires: librsync-devel
+BuildRequires: openssl-devel
+BuildRequires: sqlite-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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. It is expedient for HA-clusters, HPC-clusters, COWs
+and server farms.
+
+%prep
+%setup -q
+
+%build
+%configure
+%{__make} all
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sbindir}
+install csync2 $RPM_BUILD_ROOT%{_sbindir}
+install -d $RPM_BUILD_ROOT%{_var}/lib/csync2
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if ! grep -q "^csync2" /etc/services ; then
+     echo -e "csync2\t\t30865/tcp\t\t# Cluster sync" >> /etc/services
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README TODO
+%attr(755,root,root) %{_sbindir}/csync2
+%dir %{_var}/lib/csync2
This page took 0.070993 seconds and 4 git commands to generate.