3 %bcond_with rsh # set remote shell command to rsh instead of ssh (old behaviour)
4 %bcond_without tests # do not perform "make test"
6 Summary: Program for efficient remote updates of files
7 Summary(es): Programa para actualizar archivos remotos de forma eficiente
8 Summary(ko): ³×Æ®¿öÅ©¸¦ ÅëÇÑ ÆÄÀϵ¿±âȸ¦ À§ÇÑ ÇÁ·Î±×·¥
9 Summary(pl): Program do wydajnego zdalnego uaktualniania plików
10 Summary(pt_BR): Programa para atualizar arquivos remotos de forma eficiente
11 Summary(ru): ðÒÏÇÒÁÍÍÁ ÄÌÑ ÜÆÆÅËÔÉ×ÎÏÇÏ ÕÄÁÌÅÎÎÏÇÏ ÏÂÎÏ×ÌÅÎÉÑ ÆÁÊÌÏ×
12 Summary(uk): ðÒÏÇÒÁÍÁ ÄÌÑ ÅÆÅËÔÉ×ÎÏÇÏ ×¦ÄÄÁÌÅÎÏÇÏ ÏÎÏ×ÌÅÎÎÑ ÆÁÊ̦×
13 Summary(zh_CN): [ͨѶ]´«Ê乤¾ß
14 Summary(zh_TW): [³ñ°Ô]
\e$(B6G?i¤õ(c
\e(B
19 Group: Networking/Utilities
20 Source0: http://rsync.samba.org/ftp/rsync/%{name}-%{version}.tar.gz
21 # Source0-md5: fb51636c719e789244d5d4423cf157ac
24 Source3: %{name}.sysconfig
25 Source4: %{name}d.logrotate
26 Patch0: %{name}-config.patch
27 Patch1: %{name}-man.patch
28 Patch2: %{name}-exclude.patch
29 URL: http://rsync.samba.org/
30 BuildRequires: acl-devel
31 BuildRequires: autoconf >= 2.52
32 BuildRequires: automake
33 BuildRequires: openssl-devel
34 BuildRequires: popt-devel
35 BuildRequires: rpmbuild(macros) >= 1.268
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define _sysconfdir /etc/rsyncd
41 rsync is a replacement for rcp that has many more features.
43 rsync uses the "rsync algorithm" which provides a very fast method for
44 bringing remote files into sync. It does this by sending just the
45 differences in the files across the link, without requiring that both
46 sets of files are present at one of the ends of the link beforehand.
48 A technical report describing the rsync algorithm is included with
52 rsync es un substituto más rápido y flexible para rcp que permite la
53 sincronización de archivos o directorios, vía red, de forma rápida y
54 eficiente, entre diferentes máquinas transfiriendo solamente las
55 diferencias entre estos directorios de forma compactada. No necesita
56 que ninguna de las máquinas tengan una copia de lo que está en la
57 otra. Está disponible en este paquete, una relación técnica
58 describiendo el algoritmo usado por el rsync.
61 Rsync´Â ¿ø°Ý È£½ºÆ® ÆÄÀÏÀ» ¸Å¿ì »¡¸® µ¿±âÈÇϴµ¥ ½Å·ÚÇÒ¸¸ÇÑ
62 ¾Ë°í¸®ÁòÀ» »ç¿ëÇÑ´Ù. Rsync´Â ÆÄÀÏÀÇ Àüü¸¦ º¸³»´Â °Í ´ë½Å¿¡ ³×Æ®¿÷À»
63 ÅëÇØ ÆÄÀÏÀÇ ´Ù¸¥ ºÎºÐ¸¸À» Àü¼ÛÇϱ⠶§¹®¿¡ ºü¸£´Ù. Rsync´Â °·ÂÇÑ ¹Ì·¯
64 ÇÁ·Î¼¼½º ȤÀº rcp Ä¿¸àµå¸¦ ÅëÇÑ ´õ ¿ì¼öÇÑ ´ëü¿ëÀ¸·Î½á »ç¿ëµÈ´Ù. rsync
65 ¾Ë°í¸®ÁòÀ» ¹¦»çÇÏ´Â ±â¼úÀûÀÎ ³»¿ëÀº ÀÌ ²Ù·¯¹Ì¿¡ Æ÷ÇԵǾî ÀÖ´Ù.
68 Rsync jest zamiennikiem programu rcp z bardziej rozbudowan± sk³adni±
69 poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w czasie
70 komunikacji i transportu plików do systemu zdalnego. Dokumentacja
71 techniczna nowego algorytmu zosta³a równie¿ do³±czona do pakietu.
74 O rsync é um substituto mais rápido e flexível para o rcp permitindo
75 sincronização de arquivos ou diretórios via rede de forma rápida e
76 eficiente entre diferentes máquinas transferindo somente as diferenças
77 entre estes diretórios de forma compactada. Ele não precisa que
78 nenhuma das máquinas tenha uma cópia do que está na outra.
80 Um relatório técnico descrevendo o algoritmo usado pelo rsync está
81 disponível neste pacote.
84 rsync - ÜÔÏ ÂÏÌÅÅ ÂÙÓÔÒÁÑ É ÇÉÂËÁÑ ÁÌØÔÅÒÎÁÔÉ×Á rcp, ÐÏÚ×ÏÌÑÀÝÁÑ
85 ÂÙÓÔÒÕÀ É ÜÆÆÅËÔÉ×ÎÕÀ ÐÏ ÏÔÎÏÛÅÎÉÀ Ë ÒÅÓÕÒÓÁÍ ÓÅÔÉ ÓÉÎÈÒÏÎÉÚÁÃÉÀ
86 ÆÁÊÌÏ× ÉÌÉ ËÁÔÁÌÏÇÏ× ÎÁ ÒÁÚÌÉÞÎÙÈ ÍÁÛÉÎÁÈ ÐÕÔÅÍ ÐÅÒÅÄÁÞÉ ÔÏÌØËÏ
87 ÒÁÚÌÉÞÉÊ ÍÅÖÄÕ ÎÉÍÉ × ËÏÍÐÒÅÓÓÉÒÏ×ÁÎÎÏÍ ×ÉÄÅ. ðÒÉ ÜÔÏÍ ÓÏ×ÅÒÛÅÎÎÏ ÎÅ
88 ÏÂÑÚÁÔÅÌØÎÏ, ÞÔÏÂÙ ÏÄÎÁ ÍÁÛÉÎÁ ÉÍÅÌÁ Õ ÓÅÂÑ ËÏÐÉÀ ÔÏÇÏ, ÞÔÏ ÅÓÔØ ÎÁ
92 rsync - ÃÅ Û×ÉÄÛÁ ÔÁ ÇÎÕÞ˦ÛÁ ÁÌØÔÅÒÎÁÔÉ×Á rcp, ÑËÁ ÚÁÂÅÚÐÅÞÕ¤ Û×ÉÄËÕ
93 ÔÁ ÅÆÅËÔÉ×ÎÕ ÐÏ ×¦ÄÎÏÛÅÎÎÀ ÄÏ ÒÅÓÕÒÓ¦× ÍÅÒÅÖ¦ ÓÉÎÈÒÏΦÚÁæÀ ÆÁÊÌ¦× ÞÉ
94 ËÁÔÁÌÏÇ¦× ÎÁ Ò¦ÚÎÉÈ ÍÁÛÉÎÁÈ ÛÌÑÈÏÍ ÐÅÒÅÄÁÞ¦ ÌÉÛŠצÄͦÎÎÏÓÔÅÊ Í¦Ö ÎÉÍÉ
95 × ËÏÍÐÒÅÓÏ×ÁÎÏÍÕ ×ÉĦ. ðÒÉ ÃØÏÍÕ ÚÏ×Ó¦Í ÎÅ ÏÂÏ×'ÑÚËÏ×Ï, ÝÏ ÏÄÎÁ
96 ÍÁÛÉÎÁ ÍÁÌÁ × ÓÅÂÅ ËÏЦÀ ÔÏÇÏ, ÝÏ ¤ ÎÁ ¦ÎÛ¦Ê ÍÁÛÉΦ.
98 %package -n rsyncd-inetd
99 Summary: Files necessary to run rsync in daemon mode
100 Summary(pl): Pliki niezbêdne do uruchomienia rsynca w trybie serwera
101 Group: Networking/Daemons
102 Requires: %{name} = %{version}-%{release}
106 Obsoletes: rsyncd-standalone
108 %description -n rsyncd-inetd
109 rsync is a replacement for rcp that has many more features.
111 rsync uses the "rsync algorithm" which provides a very fast method for
112 bringing remote files into sync. It does this by sending just the
113 differences in the files across the link, without requiring that both
114 sets of files are present at one of the ends of the link beforehand.
116 A technical report describing the rsync algorithm is included with
119 %description -n rsyncd-inetd -l pl
120 Rsync jest zamiennikiem programu rcp z bardziej rozbudowan± sk³adni±
121 poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w czasie
122 komunikacji i transportu plików do systemu zdalnego. Dokumentacja
123 techniczna nowego algorytmu zosta³a równie¿ do³±czona do pakietu.
125 %package -n rsyncd-standalone
126 Summary: Files necessary to run rsync in daemon mode
127 Summary(pl): Pliki niezbêdne do uruchomienia rsynca w trybie serwera
128 Group: Networking/Daemons
129 Requires(post,preun): /sbin/chkconfig
130 Requires: %{name} = %{version}-%{release}
133 Obsoletes: rsyncd-inetd
135 %description -n rsyncd-standalone
136 rsync is a replacement for rcp that has many more features.
138 rsync uses the "rsync algorithm" which provides a very fast method for
139 bringing remote files into sync. It does this by sending just the
140 differences in the files across the link, without requiring that both
141 sets of files are present at one of the ends of the link beforehand.
143 A technical report describing the rsync algorithm is included with
146 %description -n rsyncd-standalone -l pl
147 Rsync jest zamiennikiem programu rcp z bardziej rozbudowan± sk³adni±
148 poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w czasie
149 komunikacji i transportu plików do systemu zdalnego. Dokumentacja
150 techniczna nowego algorytmu zosta³a równie¿ do³±czona do pakietu.
154 patch -s -p1 < patches/acls.diff || exit 1
155 patch -s -p1 < patches/xattrs.diff || exit 1
161 cp -f /usr/share/automake/config.sub .
165 %{?with_rsh:--with-rsh=rsh} \
167 --enable-acl-support \
168 --enable-xattr-support \
170 --with-rsyncd-conf=%{_sysconfdir}/rsyncd.conf
174 %{?with_tests:%{__make} test}
177 rm -rf $RPM_BUILD_ROOT
178 install -d $RPM_BUILD_ROOT/etc/env.d
181 prefix=$RPM_BUILD_ROOT%{_prefix} \
182 mandir=$RPM_BUILD_ROOT%{_mandir} \
183 bindir=$RPM_BUILD_ROOT%{_bindir}
185 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{sysconfig/rc-inetd,rc.d/init.d,logrotate.d},/var/log}
187 :> $RPM_BUILD_ROOT/var/log/rsyncd.log
188 :> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.secrets
190 cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.conf
191 log file = /var/log/rsyncd.log
194 cat << EOF > $RPM_BUILD_ROOT/etc/env.d/CVSIGNORE
197 cat << EOF > $RPM_BUILD_ROOT/etc/env.d/RSYNC_RSH
200 cat << EOF > $RPM_BUILD_ROOT/etc/env.d/RSYNC_PROXY
203 cat << EOF > $RPM_BUILD_ROOT/etc/env.d/RSYNC_PASSWORD
207 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rsyncd
208 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rsyncd
209 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rsyncd
210 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/rsyncd
213 rm -rf $RPM_BUILD_ROOT
215 %post -n rsyncd-inetd
216 %service -q rc-inetd reload
218 %postun -n rsyncd-inetd
219 if [ "$1" = "0" ]; then
220 %service -q rc-inetd reload
223 %post -n rsyncd-standalone
224 /sbin/chkconfig --add rsyncd
225 %service rsyncd restart "rsync server"
227 %preun -n rsyncd-standalone
228 if [ "$1" = "0" ]; then
230 /sbin/chkconfig --del rsyncd
234 %defattr(644,root,root,755)
235 %doc README NEWS OLDNEWS TODO
236 %attr(644,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/*
237 %attr(755,root,root) %{_bindir}/*
240 %files -n rsyncd-inetd
241 %defattr(644,root,root,755)
243 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
244 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
245 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/rsyncd
246 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/rsyncd
247 %attr(640,root,root) %ghost /var/log/rsyncd.log
250 %files -n rsyncd-standalone
251 %defattr(644,root,root,755)
253 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
254 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
255 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rsyncd
256 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/rsyncd
257 %attr(640,root,root) %ghost /var/log/rsyncd.log
258 %attr(754,root,root) /etc/rc.d/init.d/rsyncd