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