]> git.pld-linux.org Git - packages/csync2.git/blame - csync2.spec
- inetd and standalone subpackages.
[packages/csync2.git] / csync2.spec
CommitLineData
5b28d328 1Summary: Cluster sync tool
b391c563 2Summary(pl.UTF-8): Narzędzie do synchronizacji klastra
5b28d328 3Name: csync2
937b5387 4Version: 1.33
d2d621ce 5Release: 0.9
66e3dbf6 6License: GPL v2
5b28d328 7Group: Daemons
492ff691 8Source0: http://oss.linbit.com/csync2/%{name}-%{version}.tar.gz
937b5387 9# Source0-md5: e16e3c0f4285439cef09a6b63319a0b0
d2d621ce
PG
10Source1: %{name}.init
11Source2: %{name}.inet
12Source3: %{name}.sysconfig
b102ec5d 13Patch0: %{name}-man_fix.patch
492ff691 14URL: http://oss.linbit.com/csync2/
5b28d328 15BuildRequires: bison
16BuildRequires: flex
937b5387 17BuildRequires: gnutls-devel
5b28d328 18BuildRequires: librsync-devel
19BuildRequires: openssl-devel
20BuildRequires: sqlite-devel
84c5ea66 21Requires: setup > 2.4.10-4
5b28d328 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
b102ec5d
PG
24%define _sysconfdir /etc/%{name}
25
5b28d328 26%description
27Csync2 is a cluster synchronization tool. It can be used to keep files
28on multiple hosts in a cluster in sync. Csync2 can handle complex
29setups with much more than just 2 hosts, handle file deletions and can
30detect conflicts. It is expedient for HA-clusters, HPC-clusters, COWs
31and server farms.
32
5a18bca3
JR
33%description -l pl.UTF-8
34Csync2 to narzędzie do synchronizacji klastra. Może być używane do
35utrzymywania zgodności plików na wielu hostach w klastrze. Csync2 jest
36w stanie obsłużyć złożone konfiguracje z więcej niż 2 hostami,
37obsługiwać usuwanie plików i wykrywać konflikty. Jest praktyczne dla
38klastrów HA, HPC, COW oraz farm serwerów.
5899c1d9 39
d2d621ce
PG
40%package -n csync2-inetd
41Summary: Files necessary to run csync2 in inetd service mode
42Summary(pl.UTF-8): Pliki niezbędne do uruchomienia csync2 w trybie usługi inetd
43Group: Networking/Daemons
44Requires: %{name} = %{version}-%{release}
45Requires: rc-inetd
46Provides: csyncd
47Provides: csyncd-inetd
48Obsoletes: csyncd
49Obsoletes: csync2-standalone
50Obsoletes: csyncd-standalone
51
52%description -n csync2-inetd
53Csync2 is a cluster synchronization tool. It can be used to keep files
54on multiple hosts in a cluster in sync. Csync2 can handle complex
55setups with much more than just 2 hosts, handle file deletions and can
56detect conflicts. It is expedient for HA-clusters, HPC-clusters, COWs
57and server farms.
58
59%description -n csync2-inetd -l pl.UTF-8
60Csync2 to narzędzie do synchronizacji klastra. Może być używane do
61utrzymywania zgodności plików na wielu hostach w klastrze. Csync2 jest
62w stanie obsłużyć złożone konfiguracje z więcej niż 2 hostami,
63obsługiwać usuwanie plików i wykrywać konflikty. Jest praktyczne dla
64klastrów HA, HPC, COW oraz farm serwerów.
65
66%package -n csync2-standalone
67Summary: Files necessary to run csync2 in standalone daemon mode
68Summary(pl.UTF-8): Pliki niezbędne do uruchomienia csync2 w trybie samodzielnego serwera
69Group: Networking/Daemons
70Requires(post,preun): /sbin/chkconfig
71Requires: %{name} = %{version}-%{release}
72Provides: csyncd
73Provides: csyncd-standalone
74Obsoletes: csyncd
75Obsoletes: csync2-inetd
76Obsoletes: csyncd-inetd
77
78%description -n csync2-standalone
79Csync2 is a cluster synchronization tool. It can be used to keep files
80on multiple hosts in a cluster in sync. Csync2 can handle complex
81setups with much more than just 2 hosts, handle file deletions and can
82detect conflicts. It is expedient for HA-clusters, HPC-clusters, COWs
83and server farms.
84
85%description -n csync2-standalone -l pl.UTF-8
86Csync2 to narzędzie do synchronizacji klastra. Może być używane do
87utrzymywania zgodności plików na wielu hostach w klastrze. Csync2 jest
88w stanie obsłużyć złożone konfiguracje z więcej niż 2 hostami,
89obsługiwać usuwanie plików i wykrywać konflikty. Jest praktyczne dla
90klastrów HA, HPC, COW oraz farm serwerów.
91
5b28d328 92%prep
93%setup -q
b102ec5d 94%patch0 -p1
5b28d328 95
96%build
97%configure
937b5387 98%{__make}
5b28d328 99
100%install
101rm -rf $RPM_BUILD_ROOT
d2d621ce 102install -d $RPM_BUILD_ROOT{%{_var}/lib/csync2,/etc/{sysconfig/rc-inetd,rc.d/init.d}}
5b28d328 103
66e3dbf6
PG
104%{__make} install \
105 DESTDIR=$RPM_BUILD_ROOT
106
d2d621ce
PG
107install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
108install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/%{name}
109install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
110
5b28d328 111%clean
112rm -rf $RPM_BUILD_ROOT
113
d2d621ce
PG
114%post -n csync2-inetd
115%service -q rc-inetd reload
116
117%postun -n csync2-inetd
118if [ "$1" = "0" ]; then
119 %service -q rc-inetd reload
120fi
121
122%post -n csync2-standalone
123/sbin/chkconfig --add csync2
124%service csync2 restart "csync2 server"
125
126%preun -n csync2-standalone
127if [ "$1" = "0" ]; then
128 %service csync2 stop
129 /sbin/chkconfig --del csync2
130fi
131
5b28d328 132%files
133%defattr(644,root,root,755)
66e3dbf6 134%doc AUTHORS ChangeLog README TODO csync2.xinetd csync2_locheck.sh paper.pdf
b102ec5d 135%dir %{_sysconfdir}
06ec8dbf 136%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/csync2.cfg
5b28d328 137%attr(755,root,root) %{_sbindir}/csync2
66e3dbf6 138%attr(755,root,root) %{_sbindir}/csync2-compare
5b28d328 139%dir %{_var}/lib/csync2
06ec8dbf 140%{_mandir}/man1/*.1*
d2d621ce
PG
141
142%files -n csync2-inetd
143%defattr(644,root,root,755)
144%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/%{name}
145
146%files -n csync2-standalone
147%defattr(644,root,root,755)
148%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
149%attr(754,root,root) /etc/rc.d/init.d/%{name}
This page took 0.120356 seconds and 4 git commands to generate.