]> git.pld-linux.org Git - packages/rsync.git/blob - rsync.spec
- skipping the IPV6 socket, ./configure needs fixes.
[packages/rsync.git] / rsync.spec
1 #
2 # Conditional build:
3 %bcond_with     rsh     # set remote shell command to rsh instead of ssh (old behaviour)
4 #
5 Summary:        Program for efficient remote updates of files
6 Summary(es):    Programa para actualizar archivos remotos de forma eficiente
7 Summary(ko):    ³×Æ®¿öÅ©¸¦ ÅëÇÑ ÆÄÀϵ¿±âÈ­¸¦ À§ÇÑ ÇÁ·Î±×·¥
8 Summary(pl):    Program do wydajnego zdalnego uaktualniania plików
9 Summary(pt_BR): Programa para atualizar arquivos remotos de forma eficiente
10 Summary(ru):    ðÒÏÇÒÁÍÍÁ ÄÌÑ ÜÆÆÅËÔÉ×ÎÏÇÏ ÕÄÁÌÅÎÎÏÇÏ ÏÂÎÏ×ÌÅÎÉÑ ÆÁÊÌÏ×
11 Summary(uk):    ðÒÏÇÒÁÍÁ ÄÌÑ ÅÆÅËÔÉ×ÎÏÇϠצÄÄÁÌÅÎÏÇÏ ÏÎÏ×ÌÅÎÎÑ ÆÁÊ̦×
12 Summary(zh_CN): [ͨѶ]´«Ê乤¾ß
13 Summary(zh_TW): [³ñ°Ô]\e$(B6G?i¤õ(c\e(B
14 Name:           rsync
15 Version:        2.6.2
16 Release:        3.1
17 License:        GPL
18 Group:          Daemons
19 Source0:        http://rsync.samba.org/ftp/rsync/%{name}-%{version}.tar.gz
20 # Source0-md5:  bcacd9a9108a9e4760832212ec3d658d
21 Source1:        %{name}.inet
22 Source2:        %{name}.init
23 Source3:        %{name}.sysconfig
24 Source4:        %{name}d.logrotate
25 Patch0:         %{name}-config.patch
26 Patch1:         %{name}-man.patch
27 Patch2:         %{name}-segv.patch
28 Patch3:         %{name}-ipv6_socket.patch
29 BuildRequires:  autoconf >= 2.52
30 BuildRequires:  popt-devel
31 URL:            http://samba.anu.edu.au/rsync/
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %define         _sysconfdir     /etc/rsyncd
35
36 %description
37 rsync is a replacement for rcp that has many more features.
38
39 rsync uses the "rsync algorithm" which provides a very fast method for
40 bringing remote files into sync. It does this by sending just the
41 differences in the files across the link, without requiring that both
42 sets of files are present at one of the ends of the link beforehand.
43
44 A technical report describing the rsync algorithm is included with
45 this package.
46
47 %description -l es
48 rsync es un substituto más rápido y flexible para rcp que permite la
49 sincronización de archivos o directorios, vía red, de forma rápida y
50 eficiente, entre diferentes máquinas transfiriendo solamente las
51 diferencias entre estos directorios de forma compactada. No necesita
52 que ninguna de las máquinas tengan una copia de lo que está en la
53 otra. Está disponible en este paquete, una relación técnica
54 describiendo el algoritmo usado por el rsync.
55
56 %description -l ko
57 Rsync´Â ¿ø°Ý È£½ºÆ® ÆÄÀÏÀ» ¸Å¿ì »¡¸® µ¿±âÈ­Çϴµ¥ ½Å·ÚÇÒ¸¸ÇÑ
58 ¾Ë°í¸®ÁòÀ» »ç¿ëÇÑ´Ù. Rsync´Â ÆÄÀÏÀÇ Àüü¸¦ º¸³»´Â °Í ´ë½Å¿¡ ³×Æ®¿÷À»
59 ÅëÇØ ÆÄÀÏÀÇ ´Ù¸¥ ºÎºÐ¸¸À» Àü¼ÛÇϱ⠶§¹®¿¡ ºü¸£´Ù. Rsync´Â °­·ÂÇÑ ¹Ì·¯
60 ÇÁ·Î¼¼½º È¤Àº rcp Ä¿¸àµå¸¦ ÅëÇÑ ´õ ¿ì¼öÇÑ ´ëü¿ëÀ¸·Î½á »ç¿ëµÈ´Ù. rsync
61 ¾Ë°í¸®ÁòÀ» ¹¦»çÇϴ ±â¼úÀûÀΠ³»¿ëÀº ÀÌ ²Ù·¯¹Ì¿¡ Æ÷ÇԵǾî ÀÖ´Ù.
62
63 %description -l pl
64 Rsync jest zamiennikiem programu rcp z bardziej rozbudowan± sk³adni±
65 poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w czasie
66 komunikacji i transportu plików do systemu zdalnego. Dokumentacja
67 techniczna nowego algorytmu zosta³a równie¿ do³±czona do pakietu.
68
69 %description -l pt_BR
70 O rsync é um substituto mais rápido e flexível para o rcp permitindo
71 sincronização de arquivos ou diretórios via rede de forma rápida e
72 eficiente entre diferentes máquinas transferindo somente as diferenças
73 entre estes diretórios de forma compactada. Ele não precisa que
74 nenhuma das máquinas tenha uma cópia do que está na outra.
75
76 Um relatório técnico descrevendo o algoritmo usado pelo rsync está
77 disponível neste pacote.
78
79 %description -l ru
80 rsync - ÜÔÏ ÂÏÌÅÅ ÂÙÓÔÒÁÑ É ÇÉÂËÁÑ ÁÌØÔÅÒÎÁÔÉ×Á rcp, ÐÏÚ×ÏÌÑÀÝÁÑ
81 ÂÙÓÔÒÕÀ É ÜÆÆÅËÔÉ×ÎÕÀ ÐÏ ÏÔÎÏÛÅÎÉÀ Ë ÒÅÓÕÒÓÁÍ ÓÅÔÉ ÓÉÎÈÒÏÎÉÚÁÃÉÀ
82 ÆÁÊÌÏ× ÉÌÉ ËÁÔÁÌÏÇÏ× ÎÁ ÒÁÚÌÉÞÎÙÈ ÍÁÛÉÎÁÈ ÐÕÔÅÍ ÐÅÒÅÄÁÞÉ ÔÏÌØËÏ
83 ÒÁÚÌÉÞÉÊ ÍÅÖÄÕ ÎÉÍÉ × ËÏÍÐÒÅÓÓÉÒÏ×ÁÎÎÏÍ ×ÉÄÅ. ðÒÉ ÜÔÏÍ ÓÏ×ÅÒÛÅÎÎÏ ÎÅ
84 ÏÂÑÚÁÔÅÌØÎÏ, ÞÔÏÂÙ ÏÄÎÁ ÍÁÛÉÎÁ ÉÍÅÌÁ Õ ÓÅÂÑ ËÏÐÉÀ ÔÏÇÏ, ÞÔÏ ÅÓÔØ ÎÁ
85 ÄÒÕÇÏÊ ÍÁÛÉÎÅ.
86
87 %description -l uk
88 rsync - ÃÅ Û×ÉÄÛÁ ÔÁ ÇÎÕÞ˦ÛÁ ÁÌØÔÅÒÎÁÔÉ×Á rcp, ÑËÁ ÚÁÂÅÚÐÅÞÕ¤ Û×ÉÄËÕ
89 ÔÁ ÅÆÅËÔÉ×ÎÕ ÐϠצÄÎÏÛÅÎÎÀ ÄÏ ÒÅÓÕÒӦנÍÅÒÅÖ¦ ÓÉÎÈÒÏΦÚÁæÀ ÆÁÊ̦נÞÉ
90 ËÁÔÁÌÏǦנÎÁ Ò¦ÚÎÉÈ ÍÁÛÉÎÁÈ ÛÌÑÈÏÍ ÐÅÒÅÄÁÞ¦ ÌÉÛŠצÄͦÎÎÏÓÔÅʠͦ֠ÎÉÍÉ
91 × ËÏÍÐÒÅÓÏ×ÁÎÏÍÕ ×ÉĦ. ðÒÉ ÃØÏÍÕ ÚÏ×Ӧ͠ÎÅ ÏÂÏ×'ÑÚËÏ×Ï, ÝÏ ÏÄÎÁ
92 ÍÁÛÉÎÁ ÍÁÌÁ × ÓÅÂÅ ËÏЦÀ ÔÏÇÏ, ÝÏ ¤ ÎÁ ¦ÎۦʠÍÁÛÉΦ.
93
94 %package -n rsyncd-inetd
95 Summary:        Files necessary to run rsync in daemon mode
96 Summary(pl):    Pliki niezbêdne do uruchomienia rsynca w trybie serwera
97 Group:          Daemons
98 PreReq:         rc-inetd
99 Requires:       %{name}
100 Provides:       rsyncd
101 Obsoletes:      rsyncd
102 Obsoletes:      rsyncd-standalone
103
104 %description -n rsyncd-inetd
105 rsync is a replacement for rcp that has many more features.
106
107 rsync uses the "rsync algorithm" which provides a very fast method for
108 bringing remote files into sync. It does this by sending just the
109 differences in the files across the link, without requiring that both
110 sets of files are present at one of the ends of the link beforehand.
111
112 A technical report describing the rsync algorithm is included with
113 this package.
114
115 %description -n rsyncd-inetd -l pl
116 Rsync jest zamiennikiem programu rcp z bardziej rozbudowan± sk³adni±
117 poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w czasie
118 komunikacji i transportu plików do systemu zdalnego. Dokumentacja
119 techniczna nowego algorytmu zosta³a równie¿ do³±czona do pakietu.
120
121 %package -n rsyncd-standalone
122 Summary:        Files necessary to run rsync in daemon mode
123 Summary(pl):    Pliki niezbêdne do uruchomienia rsynca w trybie serwera
124 Group:          Daemons
125 Requires(post,preun):/sbin/chkconfig
126 Requires:       %{name}
127 Provides:       rsyncd
128 Obsoletes:      rsyncd
129 Obsoletes:      rsyncd-inetd
130
131 %description -n rsyncd-standalone
132 rsync is a replacement for rcp that has many more features.
133
134 rsync uses the "rsync algorithm" which provides a very fast method for
135 bringing remote files into sync. It does this by sending just the
136 differences in the files across the link, without requiring that both
137 sets of files are present at one of the ends of the link beforehand.
138
139 A technical report describing the rsync algorithm is included with
140 this package.
141
142 %description -n rsyncd-standalone -l pl
143 Rsync jest zamiennikiem programu rcp z bardziej rozbudowan± sk³adni±
144 poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w czasie
145 komunikacji i transportu plików do systemu zdalnego. Dokumentacja
146 techniczna nowego algorytmu zosta³a równie¿ do³±czona do pakietu.
147
148 %prep
149 %setup -q
150 %patch0 -p1
151 %patch1 -p1
152 %patch2 -p1
153 %patch3 -p1
154
155 %build
156 cp -f /usr/share/automake/config.sub .
157 %{__autoconf}
158 %configure \
159         %{?with_rsh:--with-rsh=rsh} \
160         --enable-ipv6 \
161         --disable-debug \
162         --with-rsyncd-conf=%{_sysconfdir}/rsyncd.conf
163
164 %{__make}
165
166 %install
167 rm -rf $RPM_BUILD_ROOT
168
169 %{__make} install \
170         prefix=$RPM_BUILD_ROOT%{_prefix} \
171         mandir=$RPM_BUILD_ROOT%{_mandir} \
172         bindir=$RPM_BUILD_ROOT%{_bindir}
173
174 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{sysconfig/rc-inetd,rc.d/init.d,logrotate.d},/var/log}
175
176 :> $RPM_BUILD_ROOT/var/log/rsyncd.log
177 :> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.secrets
178
179 cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.conf
180 log file = /var/log/rsyncd.log
181 EOF
182
183 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rsyncd
184 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rsyncd
185 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rsyncd
186 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/rsyncd
187
188 %clean
189 rm -rf $RPM_BUILD_ROOT
190
191 %post -n rsyncd-inetd
192 if [ -f /var/lock/subsys/rc-inetd ]; then
193         /etc/rc.d/init.d/rc-inetd restart 1>&2
194 else
195         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
196 fi
197
198 %postun -n rsyncd-inetd
199 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
200         /etc/rc.d/init.d/rc-inetd reload 1>&2
201 fi
202
203 %post -n rsyncd-standalone
204 /sbin/chkconfig --add rsyncd
205 if [ -f /var/lock/subsys/rsyncd ]; then
206         /etc/rc.d/init.d/rsyncd restart 1>&2
207 else
208         echo "Type \"/etc/rc.d/init.d/rsyncd start\" to start rsync server" 1>&2
209 fi
210
211 %preun -n rsyncd-standalone
212 if [ "$1" = "0" ]; then
213         if [ -f /var/lock/subsys/rsyncd ]; then
214                 /etc/rc.d/init.d/rsyncd stop 1>&2
215         fi
216         /sbin/chkconfig --del rsyncd
217 fi
218
219 %files
220 %defattr(644,root,root,755)
221 %doc README
222 %attr(755,root,root) %{_bindir}/*
223 %{_mandir}/man1/*
224
225 %files -n rsyncd-inetd
226 %defattr(644,root,root,755)
227 %dir %{_sysconfdir}
228 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
229 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
230 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/rsyncd
231 %attr(640,root,root) /etc/sysconfig/rc-inetd/rsyncd
232 %attr(640,root,root) %ghost /var/log/rsyncd.log
233 %{_mandir}/man5/*
234
235 %files -n rsyncd-standalone
236 %defattr(644,root,root,755)
237 %dir %{_sysconfdir}
238 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
239 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
240 %attr(640,root,root) %config(noreplace) /etc/sysconfig/rsyncd
241 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/rsyncd
242 %attr(640,root,root) %ghost /var/log/rsyncd.log
243 %attr(754,root,root) /etc/rc.d/init.d/rsyncd
244 %{_mandir}/man5/*
This page took 0.071658 seconds and 4 git commands to generate.