]> git.pld-linux.org Git - packages/rsync.git/blob - rsync.spec
- rel 4
[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:        4
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 # from FC
28 Patch2:         %{name}-xattr.patch
29 Patch3:         %{name}-ssl.patch
30 URL:            http://rsync.samba.org/
31 BuildRequires:  autoconf >= 2.52
32 BuildRequires:  automake
33 BuildRequires:  acl-devel
34 BuildRequires:  openssl-devel
35 BuildRequires:  popt-devel
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %define         _sysconfdir     /etc/rsyncd
39
40 %description
41 rsync is a replacement for rcp that has many more features.
42
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.
47
48 A technical report describing the rsync algorithm is included with
49 this package.
50
51 %description -l es
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.
59
60 %description -l ko
61 Rsync´Â ¿ø°Ý È£½ºÆ® ÆÄÀÏÀ» ¸Å¿ì »¡¸® µ¿±âÈ­Çϴµ¥ ½Å·ÚÇÒ¸¸ÇÑ
62 ¾Ë°í¸®ÁòÀ» »ç¿ëÇÑ´Ù. Rsync´Â ÆÄÀÏÀÇ Àüü¸¦ º¸³»´Â °Í ´ë½Å¿¡ ³×Æ®¿÷À»
63 ÅëÇØ ÆÄÀÏÀÇ ´Ù¸¥ ºÎºÐ¸¸À» Àü¼ÛÇϱ⠶§¹®¿¡ ºü¸£´Ù. Rsync´Â °­·ÂÇÑ ¹Ì·¯
64 ÇÁ·Î¼¼½º È¤Àº rcp Ä¿¸àµå¸¦ ÅëÇÑ ´õ ¿ì¼öÇÑ ´ëü¿ëÀ¸·Î½á »ç¿ëµÈ´Ù. rsync
65 ¾Ë°í¸®ÁòÀ» ¹¦»çÇϴ ±â¼úÀûÀΠ³»¿ëÀº ÀÌ ²Ù·¯¹Ì¿¡ Æ÷ÇԵǾî ÀÖ´Ù.
66
67 %description -l pl
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.
72
73 %description -l pt_BR
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.
79
80 Um relatório técnico descrevendo o algoritmo usado pelo rsync está
81 disponível neste pacote.
82
83 %description -l ru
84 rsync - ÜÔÏ ÂÏÌÅÅ ÂÙÓÔÒÁÑ É ÇÉÂËÁÑ ÁÌØÔÅÒÎÁÔÉ×Á rcp, ÐÏÚ×ÏÌÑÀÝÁÑ
85 ÂÙÓÔÒÕÀ É ÜÆÆÅËÔÉ×ÎÕÀ ÐÏ ÏÔÎÏÛÅÎÉÀ Ë ÒÅÓÕÒÓÁÍ ÓÅÔÉ ÓÉÎÈÒÏÎÉÚÁÃÉÀ
86 ÆÁÊÌÏ× ÉÌÉ ËÁÔÁÌÏÇÏ× ÎÁ ÒÁÚÌÉÞÎÙÈ ÍÁÛÉÎÁÈ ÐÕÔÅÍ ÐÅÒÅÄÁÞÉ ÔÏÌØËÏ
87 ÒÁÚÌÉÞÉÊ ÍÅÖÄÕ ÎÉÍÉ × ËÏÍÐÒÅÓÓÉÒÏ×ÁÎÎÏÍ ×ÉÄÅ. ðÒÉ ÜÔÏÍ ÓÏ×ÅÒÛÅÎÎÏ ÎÅ
88 ÏÂÑÚÁÔÅÌØÎÏ, ÞÔÏÂÙ ÏÄÎÁ ÍÁÛÉÎÁ ÉÍÅÌÁ Õ ÓÅÂÑ ËÏÐÉÀ ÔÏÇÏ, ÞÔÏ ÅÓÔØ ÎÁ
89 ÄÒÕÇÏÊ ÍÁÛÉÎÅ.
90
91 %description -l uk
92 rsync - ÃÅ Û×ÉÄÛÁ ÔÁ ÇÎÕÞ˦ÛÁ ÁÌØÔÅÒÎÁÔÉ×Á rcp, ÑËÁ ÚÁÂÅÚÐÅÞÕ¤ Û×ÉÄËÕ
93 ÔÁ ÅÆÅËÔÉ×ÎÕ ÐϠצÄÎÏÛÅÎÎÀ ÄÏ ÒÅÓÕÒӦנÍÅÒÅÖ¦ ÓÉÎÈÒÏΦÚÁæÀ ÆÁÊ̦נÞÉ
94 ËÁÔÁÌÏǦנÎÁ Ò¦ÚÎÉÈ ÍÁÛÉÎÁÈ ÛÌÑÈÏÍ ÐÅÒÅÄÁÞ¦ ÌÉÛŠצÄͦÎÎÏÓÔÅʠͦ֠ÎÉÍÉ
95 × ËÏÍÐÒÅÓÏ×ÁÎÏÍÕ ×ÉĦ. ðÒÉ ÃØÏÍÕ ÚÏ×Ӧ͠ÎÅ ÏÂÏ×'ÑÚËÏ×Ï, ÝÏ ÏÄÎÁ
96 ÍÁÛÉÎÁ ÍÁÌÁ × ÓÅÂÅ ËÏЦÀ ÔÏÇÏ, ÝÏ ¤ ÎÁ ¦ÎۦʠÍÁÛÉΦ.
97
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:          Daemons
102 PreReq:         rc-inetd
103 Requires:       %{name} = %{version}-%{release}
104 Provides:       rsyncd
105 Obsoletes:      rsyncd
106 Obsoletes:      rsyncd-standalone
107
108 %description -n rsyncd-inetd
109 rsync is a replacement for rcp that has many more features.
110
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.
115
116 A technical report describing the rsync algorithm is included with
117 this package.
118
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.
124
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:          Daemons
129 Requires(post,preun):   /sbin/chkconfig
130 Requires:       %{name} = %{version}-%{release}
131 Provides:       rsyncd
132 Obsoletes:      rsyncd
133 Obsoletes:      rsyncd-inetd
134
135 %description -n rsyncd-standalone
136 rsync is a replacement for rcp that has many more features.
137
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.
142
143 A technical report describing the rsync algorithm is included with
144 this package.
145
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.
151
152 %prep
153 %setup -q
154 patch -p0 < patches/acls.diff || exit 1
155 %patch0 -p1
156 %patch1 -p1
157 %patch2 -p1
158 %patch3 -p1
159
160 %build
161 cp -f /usr/share/automake/config.sub .
162 %{__autoheader}
163 %{__autoconf}
164 %configure \
165         %{?with_rsh:--with-rsh=rsh} \
166         --enable-ipv6 \
167         --enable-openssl \
168         --with-acl-support \
169         --with-xattr-support \
170         --disable-debug \
171         --with-rsyncd-conf=%{_sysconfdir}/rsyncd.conf
172 %{__make} proto
173 %{__make}
174
175 %install
176 rm -rf $RPM_BUILD_ROOT
177 install -d $RPM_BUILD_ROOT/etc/env.d
178
179 %{__make} install \
180         prefix=$RPM_BUILD_ROOT%{_prefix} \
181         mandir=$RPM_BUILD_ROOT%{_mandir} \
182         bindir=$RPM_BUILD_ROOT%{_bindir}
183
184 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{sysconfig/rc-inetd,rc.d/init.d,logrotate.d},/var/log}
185
186 :> $RPM_BUILD_ROOT/var/log/rsyncd.log
187 :> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.secrets
188
189 cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.conf
190 log file = /var/log/rsyncd.log
191 EOF
192
193 cat << EOF > $RPM_BUILD_ROOT/etc/env.d/CVSIGNORE
194 #CVSIGNORE=
195 EOF
196 cat << EOF > $RPM_BUILD_ROOT/etc/env.d/RSYNC_RSH
197 #RSYNC_RSH=
198 EOF
199 cat << EOF > $RPM_BUILD_ROOT/etc/env.d/RSYNC_PROXY
200 #RSYNC_PROXY=
201 EOF
202 cat << EOF > $RPM_BUILD_ROOT/etc/env.d/RSYNC_PASSWORD
203 #RSYNC_PASSWORD=
204 EOF
205
206 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rsyncd
207 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rsyncd
208 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rsyncd
209 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/rsyncd
210
211 %clean
212 rm -rf $RPM_BUILD_ROOT
213
214 %post -n rsyncd-inetd
215 if [ -f /var/lock/subsys/rc-inetd ]; then
216         /etc/rc.d/init.d/rc-inetd restart 1>&2
217 else
218         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
219 fi
220
221 %postun -n rsyncd-inetd
222 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
223         /etc/rc.d/init.d/rc-inetd reload 1>&2
224 fi
225
226 %post -n rsyncd-standalone
227 /sbin/chkconfig --add rsyncd
228 if [ -f /var/lock/subsys/rsyncd ]; then
229         /etc/rc.d/init.d/rsyncd restart 1>&2
230 else
231         echo "Type \"/etc/rc.d/init.d/rsyncd start\" to start rsync server" 1>&2
232 fi
233
234 %preun -n rsyncd-standalone
235 if [ "$1" = "0" ]; then
236         if [ -f /var/lock/subsys/rsyncd ]; then
237                 /etc/rc.d/init.d/rsyncd stop 1>&2
238         fi
239         /sbin/chkconfig --del rsyncd
240 fi
241
242 %files
243 %defattr(644,root,root,755)
244 %doc README NEWS OLDNEWS TODO
245 %attr(644,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/*
246 %attr(755,root,root) %{_bindir}/*
247 %{_mandir}/man1/*
248
249 %files -n rsyncd-inetd
250 %defattr(644,root,root,755)
251 %dir %{_sysconfdir}
252 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
253 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
254 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/rsyncd
255 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/rsyncd
256 %attr(640,root,root) %ghost /var/log/rsyncd.log
257 %{_mandir}/man5/*
258
259 %files -n rsyncd-standalone
260 %defattr(644,root,root,755)
261 %dir %{_sysconfdir}
262 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
263 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
264 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rsyncd
265 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/rsyncd
266 %attr(640,root,root) %ghost /var/log/rsyncd.log
267 %attr(754,root,root) /etc/rc.d/init.d/rsyncd
268 %{_mandir}/man5/*
This page took 0.05162 seconds and 4 git commands to generate.