2 # - SECURITY: http://securitytracker.com/alerts/2004/Aug/1010940.html
5 %bcond_with rsh # set remote shell command to rsh instead of ssh (old behaviour)
7 Summary: Program for efficient remote updates of files
8 Summary(es): Programa para actualizar archivos remotos de forma eficiente
9 Summary(ko): ³×Æ®¿öÅ©¸¦ ÅëÇÑ ÆÄÀϵ¿±âȸ¦ À§ÇÑ ÇÁ·Î±×·¥
10 Summary(pl): Program do wydajnego zdalnego uaktualniania plików
11 Summary(pt_BR): Programa para atualizar arquivos remotos de forma eficiente
12 Summary(ru): ðÒÏÇÒÁÍÍÁ ÄÌÑ ÜÆÆÅËÔÉ×ÎÏÇÏ ÕÄÁÌÅÎÎÏÇÏ ÏÂÎÏ×ÌÅÎÉÑ ÆÁÊÌÏ×
13 Summary(uk): ðÒÏÇÒÁÍÁ ÄÌÑ ÅÆÅËÔÉ×ÎÏÇÏ ×¦ÄÄÁÌÅÎÏÇÏ ÏÎÏ×ÌÅÎÎÑ ÆÁÊ̦×
14 Summary(zh_CN): [ͨѶ]´«Ê乤¾ß
15 Summary(zh_TW): [³ñ°Ô]
\e$(B6G?i¤õ(c
\e(B
21 Source0: http://rsync.samba.org/ftp/rsync/%{name}-%{version}.tar.gz
22 # Source0-md5: bcacd9a9108a9e4760832212ec3d658d
25 Source3: %{name}.sysconfig
26 Source4: %{name}d.logrotate
27 Patch0: %{name}-config.patch
28 Patch1: %{name}-man.patch
29 Patch2: %{name}-segv.patch
30 Patch3: %{name}-ipv6_socket.patch
31 BuildRequires: autoconf >= 2.52
32 BuildRequires: automake
33 BuildRequires: popt-devel
34 URL: http://rsync.samba.org/
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 %define _sysconfdir /etc/rsyncd
40 rsync is a replacement for rcp that has many more features.
42 rsync uses the "rsync algorithm" which provides a very fast method for
43 bringing remote files into sync. It does this by sending just the
44 differences in the files across the link, without requiring that both
45 sets of files are present at one of the ends of the link beforehand.
47 A technical report describing the rsync algorithm is included with
51 rsync es un substituto más rápido y flexible para rcp que permite la
52 sincronización de archivos o directorios, vía red, de forma rápida y
53 eficiente, entre diferentes máquinas transfiriendo solamente las
54 diferencias entre estos directorios de forma compactada. No necesita
55 que ninguna de las máquinas tengan una copia de lo que está en la
56 otra. Está disponible en este paquete, una relación técnica
57 describiendo el algoritmo usado por el rsync.
60 Rsync´Â ¿ø°Ý È£½ºÆ® ÆÄÀÏÀ» ¸Å¿ì »¡¸® µ¿±âÈÇϴµ¥ ½Å·ÚÇÒ¸¸ÇÑ
61 ¾Ë°í¸®ÁòÀ» »ç¿ëÇÑ´Ù. Rsync´Â ÆÄÀÏÀÇ Àüü¸¦ º¸³»´Â °Í ´ë½Å¿¡ ³×Æ®¿÷À»
62 ÅëÇØ ÆÄÀÏÀÇ ´Ù¸¥ ºÎºÐ¸¸À» Àü¼ÛÇϱ⠶§¹®¿¡ ºü¸£´Ù. Rsync´Â °·ÂÇÑ ¹Ì·¯
63 ÇÁ·Î¼¼½º ȤÀº rcp Ä¿¸àµå¸¦ ÅëÇÑ ´õ ¿ì¼öÇÑ ´ëü¿ëÀ¸·Î½á »ç¿ëµÈ´Ù. rsync
64 ¾Ë°í¸®ÁòÀ» ¹¦»çÇÏ´Â ±â¼úÀûÀÎ ³»¿ëÀº ÀÌ ²Ù·¯¹Ì¿¡ Æ÷ÇԵǾî ÀÖ´Ù.
67 Rsync jest zamiennikiem programu rcp z bardziej rozbudowan± sk³adni±
68 poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w czasie
69 komunikacji i transportu plików do systemu zdalnego. Dokumentacja
70 techniczna nowego algorytmu zosta³a równie¿ do³±czona do pakietu.
73 O rsync é um substituto mais rápido e flexível para o rcp permitindo
74 sincronização de arquivos ou diretórios via rede de forma rápida e
75 eficiente entre diferentes máquinas transferindo somente as diferenças
76 entre estes diretórios de forma compactada. Ele não precisa que
77 nenhuma das máquinas tenha uma cópia do que está na outra.
79 Um relatório técnico descrevendo o algoritmo usado pelo rsync está
80 disponível neste pacote.
83 rsync - ÜÔÏ ÂÏÌÅÅ ÂÙÓÔÒÁÑ É ÇÉÂËÁÑ ÁÌØÔÅÒÎÁÔÉ×Á rcp, ÐÏÚ×ÏÌÑÀÝÁÑ
84 ÂÙÓÔÒÕÀ É ÜÆÆÅËÔÉ×ÎÕÀ ÐÏ ÏÔÎÏÛÅÎÉÀ Ë ÒÅÓÕÒÓÁÍ ÓÅÔÉ ÓÉÎÈÒÏÎÉÚÁÃÉÀ
85 ÆÁÊÌÏ× ÉÌÉ ËÁÔÁÌÏÇÏ× ÎÁ ÒÁÚÌÉÞÎÙÈ ÍÁÛÉÎÁÈ ÐÕÔÅÍ ÐÅÒÅÄÁÞÉ ÔÏÌØËÏ
86 ÒÁÚÌÉÞÉÊ ÍÅÖÄÕ ÎÉÍÉ × ËÏÍÐÒÅÓÓÉÒÏ×ÁÎÎÏÍ ×ÉÄÅ. ðÒÉ ÜÔÏÍ ÓÏ×ÅÒÛÅÎÎÏ ÎÅ
87 ÏÂÑÚÁÔÅÌØÎÏ, ÞÔÏÂÙ ÏÄÎÁ ÍÁÛÉÎÁ ÉÍÅÌÁ Õ ÓÅÂÑ ËÏÐÉÀ ÔÏÇÏ, ÞÔÏ ÅÓÔØ ÎÁ
91 rsync - ÃÅ Û×ÉÄÛÁ ÔÁ ÇÎÕÞ˦ÛÁ ÁÌØÔÅÒÎÁÔÉ×Á rcp, ÑËÁ ÚÁÂÅÚÐÅÞÕ¤ Û×ÉÄËÕ
92 ÔÁ ÅÆÅËÔÉ×ÎÕ ÐÏ ×¦ÄÎÏÛÅÎÎÀ ÄÏ ÒÅÓÕÒÓ¦× ÍÅÒÅÖ¦ ÓÉÎÈÒÏΦÚÁæÀ ÆÁÊÌ¦× ÞÉ
93 ËÁÔÁÌÏÇ¦× ÎÁ Ò¦ÚÎÉÈ ÍÁÛÉÎÁÈ ÛÌÑÈÏÍ ÐÅÒÅÄÁÞ¦ ÌÉÛŠצÄͦÎÎÏÓÔÅÊ Í¦Ö ÎÉÍÉ
94 × ËÏÍÐÒÅÓÏ×ÁÎÏÍÕ ×ÉĦ. ðÒÉ ÃØÏÍÕ ÚÏ×Ó¦Í ÎÅ ÏÂÏ×'ÑÚËÏ×Ï, ÝÏ ÏÄÎÁ
95 ÍÁÛÉÎÁ ÍÁÌÁ × ÓÅÂÅ ËÏЦÀ ÔÏÇÏ, ÝÏ ¤ ÎÁ ¦ÎÛ¦Ê ÍÁÛÉΦ.
97 %package -n rsyncd-inetd
98 Summary: Files necessary to run rsync in daemon mode
99 Summary(pl): Pliki niezbêdne do uruchomienia rsynca w trybie serwera
105 Obsoletes: rsyncd-standalone
107 %description -n rsyncd-inetd
108 rsync is a replacement for rcp that has many more features.
110 rsync uses the "rsync algorithm" which provides a very fast method for
111 bringing remote files into sync. It does this by sending just the
112 differences in the files across the link, without requiring that both
113 sets of files are present at one of the ends of the link beforehand.
115 A technical report describing the rsync algorithm is included with
118 %description -n rsyncd-inetd -l pl
119 Rsync jest zamiennikiem programu rcp z bardziej rozbudowan± sk³adni±
120 poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w czasie
121 komunikacji i transportu plików do systemu zdalnego. Dokumentacja
122 techniczna nowego algorytmu zosta³a równie¿ do³±czona do pakietu.
124 %package -n rsyncd-standalone
125 Summary: Files necessary to run rsync in daemon mode
126 Summary(pl): Pliki niezbêdne do uruchomienia rsynca w trybie serwera
128 Requires(post,preun):/sbin/chkconfig
132 Obsoletes: rsyncd-inetd
134 %description -n rsyncd-standalone
135 rsync is a replacement for rcp that has many more features.
137 rsync uses the "rsync algorithm" which provides a very fast method for
138 bringing remote files into sync. It does this by sending just the
139 differences in the files across the link, without requiring that both
140 sets of files are present at one of the ends of the link beforehand.
142 A technical report describing the rsync algorithm is included with
145 %description -n rsyncd-standalone -l pl
146 Rsync jest zamiennikiem programu rcp z bardziej rozbudowan± sk³adni±
147 poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w czasie
148 komunikacji i transportu plików do systemu zdalnego. Dokumentacja
149 techniczna nowego algorytmu zosta³a równie¿ do³±czona do pakietu.
159 cp -f /usr/share/automake/config.sub .
162 %{?with_rsh:--with-rsh=rsh} \
165 --with-rsyncd-conf=%{_sysconfdir}/rsyncd.conf
170 rm -rf $RPM_BUILD_ROOT
171 install -d $RPM_BUILD_ROOT/etc/env.d
174 prefix=$RPM_BUILD_ROOT%{_prefix} \
175 mandir=$RPM_BUILD_ROOT%{_mandir} \
176 bindir=$RPM_BUILD_ROOT%{_bindir}
178 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{sysconfig/rc-inetd,rc.d/init.d,logrotate.d},/var/log}
180 :> $RPM_BUILD_ROOT/var/log/rsyncd.log
181 :> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.secrets
183 cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.conf
184 log file = /var/log/rsyncd.log
187 cat << EOF > $RPM_BUILD_ROOT/etc/env.d/CVSIGNORE
190 cat << EOF > $RPM_BUILD_ROOT/etc/env.d/RSYNC_RSH
193 cat << EOF > $RPM_BUILD_ROOT/etc/env.d/RSYNC_PROXY
196 cat << EOF > $RPM_BUILD_ROOT/etc/env.d/RSYNC_PASSWORD
200 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rsyncd
201 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rsyncd
202 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rsyncd
203 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/rsyncd
206 rm -rf $RPM_BUILD_ROOT
208 %post -n rsyncd-inetd
209 if [ -f /var/lock/subsys/rc-inetd ]; then
210 /etc/rc.d/init.d/rc-inetd restart 1>&2
212 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
215 %postun -n rsyncd-inetd
216 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
217 /etc/rc.d/init.d/rc-inetd reload 1>&2
220 %post -n rsyncd-standalone
221 /sbin/chkconfig --add rsyncd
222 if [ -f /var/lock/subsys/rsyncd ]; then
223 /etc/rc.d/init.d/rsyncd restart 1>&2
225 echo "Type \"/etc/rc.d/init.d/rsyncd start\" to start rsync server" 1>&2
228 %preun -n rsyncd-standalone
229 if [ "$1" = "0" ]; then
230 if [ -f /var/lock/subsys/rsyncd ]; then
231 /etc/rc.d/init.d/rsyncd stop 1>&2
233 /sbin/chkconfig --del rsyncd
237 %defattr(644,root,root,755)
239 %attr(644,root,root) %config(noreplace,missingok) %verify(not md5 size mtime) /etc/env.d/*
240 %attr(755,root,root) %{_bindir}/*
243 %files -n rsyncd-inetd
244 %defattr(644,root,root,755)
246 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
247 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
248 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/rsyncd
249 %attr(640,root,root) /etc/sysconfig/rc-inetd/rsyncd
250 %attr(640,root,root) %ghost /var/log/rsyncd.log
253 %files -n rsyncd-standalone
254 %defattr(644,root,root,755)
256 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
257 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
258 %attr(640,root,root) %config(noreplace) /etc/sysconfig/rsyncd
259 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/rsyncd
260 %attr(640,root,root) %ghost /var/log/rsyncd.log
261 %attr(754,root,root) /etc/rc.d/init.d/rsyncd