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