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