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