]> git.pld-linux.org Git - packages/rsync.git/blame - rsync.spec
- CVE reference
[packages/rsync.git] / rsync.spec
CommitLineData
b555150c 1#
18124c65 2# Conditional build:
3%bcond_with rsh # set remote shell command to rsh instead of ssh (old behaviour)
12461ec6 4%bcond_without tests # do not perform "make test"
18124c65 5#
082eeb69
ER
6%ifarch alpha
7%undefine with_tests
8%endif
e1feaa4b 9Summary: Program for efficient remote updates of files
24cc1053
ER
10Summary(es.UTF-8): Programa para actualizar archivos remotos de forma eficiente
11Summary(ko.UTF-8): 네트워크를 통한 파일동기화를 위한 프로그램
12Summary(pl.UTF-8): Program do wydajnego zdalnego uaktualniania plików
13Summary(pt_BR.UTF-8): Programa para atualizar arquivos remotos de forma eficiente
14Summary(ru.UTF-8): Программа для эффективного удаленного обновления файлов
15Summary(uk.UTF-8): Програма для ефективного віддаленого оновлення файлів
16Summary(zh_CN.UTF-8): [通讯]传输工具
17Summary(zh_TW.UTF-8): [喙啪]\e$(B6G?i火(c\e(B
44a71ba1 18Name: rsync
08c17532
AM
19Version: 2.6.9
20Release: 1
854040a4 21License: GPL
b7135bf0 22Group: Networking/Utilities
1e10d8f5 23Source0: http://rsync.samba.org/ftp/rsync/%{name}-%{version}.tar.gz
08c17532 24# Source0-md5: 996d8d8831dbca17910094e56dcb5942
1e10d8f5 25Source1: %{name}.inet
c0ab8b55
PG
26Source2: %{name}.init
27Source3: %{name}.sysconfig
3972ad9b 28Source4: %{name}d.logrotate
d32c1932
JB
29Patch0: %{name}-config.patch
30Patch1: %{name}-man.patch
7846f798 31URL: http://rsync.samba.org/
148780a3 32BuildRequires: acl-devel
3bf20053 33BuildRequires: autoconf >= 2.52
fd592fcf 34BuildRequires: automake
48d3c2cd 35BuildRequires: openssl-devel
bbd47287 36BuildRequires: popt-devel
36bd60dd 37BuildRequires: rpmbuild(macros) >= 1.318
9e694c62 38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
f6135b0e 39
b555150c
JB
40%define _sysconfdir /etc/rsyncd
41
f6135b0e 42%description
43rsync is a replacement for rcp that has many more features.
44
45rsync uses the "rsync algorithm" which provides a very fast method for
46bringing remote files into sync. It does this by sending just the
47differences in the files across the link, without requiring that both
48sets of files are present at one of the ends of the link beforehand.
49
50A technical report describing the rsync algorithm is included with
854040a4 51this package.
f6135b0e 52
829ded76
JR
53%description -l es.UTF-8
54rsync es un substituto más rápido y flexible para rcp que permite la
55sincronización de archivos o directorios, vía red, de forma rápida y
56eficiente, entre diferentes máquinas transfiriendo solamente las
1d21ccde 57diferencias entre estos directorios de forma compactada. No necesita
829ded76
JR
58que ninguna de las máquinas tengan una copia de lo que está en la
59otra. Está disponible en este paquete, una relación técnica
1d21ccde 60describiendo el algoritmo usado por el rsync.
61
829ded76
JR
62%description -l ko.UTF-8
63Rsync는 원격 호스트 파일을 매우 빨리 동기화하는데 신뢰할만한
64알고리즘을 사용한다. Rsync는 파일의 전체를 보내는 것 대신에 네트웍을
65통해 파일의 다른 부분만을 전송하기 때문에 빠르다. Rsync는 강력한 미러
66프로세스 혹은 rcp 커멘드를 통한 더 우수한 대체용으로써 사용된다. rsync
67알고리즘을 묘사하는 기술적인 내용은 이 꾸러미에 포함되어 있다.
68
69%description -l pl.UTF-8
70Rsync jest zamiennikiem programu rcp z bardziej rozbudowaną składnią
71poleceń. Program ten używa efektywnego algorytmu "rsync" w czasie
72komunikacji i transportu plików do systemu zdalnego. Dokumentacja
73techniczna nowego algorytmu została również dołączona do pakietu.
74
75%description -l pt_BR.UTF-8
76O rsync é um substituto mais rápido e flexível para o rcp permitindo
77sincronização de arquivos ou diretórios via rede de forma rápida e
78eficiente entre diferentes máquinas transferindo somente as diferenças
79entre estes diretórios de forma compactada. Ele não precisa que
80nenhuma das máquinas tenha uma cópia do que está na outra.
81
82Um relatório técnico descrevendo o algoritmo usado pelo rsync está
83disponível neste pacote.
84
85%description -l ru.UTF-8
86rsync - это более быстрая и гибкая альтернатива rcp, позволяющая
87быструю и эффективную по отношению к ресурсам сети синхронизацию
88файлов или каталогов на различных машинах путем передачи только
89различий между ними в компрессированном виде. При этом совершенно не
90обязательно, чтобы одна машина имела у себя копию того, что есть на
91другой машине.
92
93%description -l uk.UTF-8
94rsync - це швидша та гнучкіша альтернатива rcp, яка забезпечує швидку
95та ефективну по відношенню до ресурсів мережі синхронізацію файлів чи
96каталогів на різних машинах шляхом передачі лише відмінностей між ними
97в компресованому виді. При цьому зовсім не обов'язково, щоб одна
98машина мала в себе копію того, що є на іншій машині.
1d21ccde 99
c0ab8b55 100%package -n rsyncd-inetd
be076d3d 101Summary: Files necessary to run rsync in daemon mode
24cc1053 102Summary(pl.UTF-8): Pliki niezbędne do uruchomienia rsynca w trybie serwera
b7135bf0 103Group: Networking/Daemons
d32c1932 104Requires: %{name} = %{version}-%{release}
148780a3 105Requires: rc-inetd
c0ab8b55
PG
106Provides: rsyncd
107Obsoletes: rsyncd
108Obsoletes: rsyncd-standalone
be076d3d 109
c0ab8b55 110%description -n rsyncd-inetd
be076d3d
SZ
111rsync is a replacement for rcp that has many more features.
112
113rsync uses the "rsync algorithm" which provides a very fast method for
114bringing remote files into sync. It does this by sending just the
115differences in the files across the link, without requiring that both
116sets of files are present at one of the ends of the link beforehand.
117
118A technical report describing the rsync algorithm is included with
119this package.
120
829ded76
JR
121%description -n rsyncd-inetd -l pl.UTF-8
122Rsync jest zamiennikiem programu rcp z bardziej rozbudowaną składnią
123poleceń. Program ten używa efektywnego algorytmu "rsync" w czasie
124komunikacji i transportu plików do systemu zdalnego. Dokumentacja
125techniczna nowego algorytmu została również dołączona do pakietu.
c0ab8b55
PG
126
127%package -n rsyncd-standalone
128Summary: Files necessary to run rsync in daemon mode
24cc1053 129Summary(pl.UTF-8): Pliki niezbędne do uruchomienia rsynca w trybie serwera
b7135bf0 130Group: Networking/Daemons
94148ea8 131Requires(post,preun): /sbin/chkconfig
d32c1932 132Requires: %{name} = %{version}-%{release}
c0ab8b55 133Provides: rsyncd
b51fca32 134Obsoletes: rsyncd
c0ab8b55
PG
135Obsoletes: rsyncd-inetd
136
137%description -n rsyncd-standalone
138rsync is a replacement for rcp that has many more features.
139
140rsync uses the "rsync algorithm" which provides a very fast method for
141bringing remote files into sync. It does this by sending just the
142differences in the files across the link, without requiring that both
143sets of files are present at one of the ends of the link beforehand.
144
145A technical report describing the rsync algorithm is included with
146this package.
147
829ded76
JR
148%description -n rsyncd-standalone -l pl.UTF-8
149Rsync jest zamiennikiem programu rcp z bardziej rozbudowaną składnią
150poleceń. Program ten używa efektywnego algorytmu "rsync" w czasie
151komunikacji i transportu plików do systemu zdalnego. Dokumentacja
152techniczna nowego algorytmu została również dołączona do pakietu.
be076d3d 153
f6135b0e 154%prep
3bf20053 155%setup -q
8ecc7ace
AM
156patch -s -p1 < patches/acls.diff || exit 1
157patch -s -p1 < patches/xattrs.diff || exit 1
d7ff894b
AM
158%patch0 -p1
159%patch1 -p1
bff64584 160
f6135b0e 161%build
7846f798 162cp -f /usr/share/automake/config.sub .
48d3c2cd 163%{__autoheader}
4490f3a0 164%{__autoconf}
bbd47287 165%configure \
18124c65 166 %{?with_rsh:--with-rsh=rsh} \
fbf643ad 167 --enable-ipv6 \
8ecc7ace
AM
168 --enable-acl-support \
169 --enable-xattr-support \
d46e8c94 170 --disable-debug \
fbc75855 171 --with-rsyncd-conf=%{_sysconfdir}/rsyncd.conf
233a0aea 172%{__make} proto
0fef7fa8 173%{__make}
f6135b0e 174
8ecc7ace
AM
175%{?with_tests:%{__make} test}
176
f6135b0e 177%install
178rm -rf $RPM_BUILD_ROOT
464464f2 179install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{sysconfig/rc-inetd,rc.d/init.d,logrotate.d,env.d},/var/log}
44a71ba1 180
95bf7754 181%{__make} install \
a3e2831a 182 prefix=$RPM_BUILD_ROOT%{_prefix} \
183 mandir=$RPM_BUILD_ROOT%{_mandir} \
51d15609 184 bindir=$RPM_BUILD_ROOT%{_bindir}
d7ff894b 185
3972ad9b 186:> $RPM_BUILD_ROOT/var/log/rsyncd.log
854040a4 187:> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.secrets
44a71ba1 188
3972ad9b
PG
189cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.conf
190log file = /var/log/rsyncd.log
191EOF
192
7495c7e7 193cat << 'EOF' > $RPM_BUILD_ROOT/etc/env.d/CVSIGNORE
8d6034a2
PG
194#CVSIGNORE=
195EOF
7495c7e7 196cat << 'EOF' > $RPM_BUILD_ROOT/etc/env.d/RSYNC_RSH
8d6034a2
PG
197#RSYNC_RSH=
198EOF
7495c7e7 199cat << 'EOF' > $RPM_BUILD_ROOT/etc/env.d/RSYNC_PROXY
8d6034a2
PG
200#RSYNC_PROXY=
201EOF
7495c7e7 202cat << 'EOF' > $RPM_BUILD_ROOT/etc/env.d/RSYNC_PASSWORD
8d6034a2
PG
203#RSYNC_PASSWORD=
204EOF
205
be076d3d 206install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rsyncd
c0ab8b55
PG
207install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rsyncd
208install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rsyncd
3972ad9b 209install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/rsyncd
be076d3d 210
5e338362
JB
211%clean
212rm -rf $RPM_BUILD_ROOT
213
7495c7e7
ER
214%post
215%env_update
216
217%postun
218%env_update
219
c0ab8b55 220%post -n rsyncd-inetd
148780a3 221%service -q rc-inetd reload
be076d3d 222
c0ab8b55 223%postun -n rsyncd-inetd
148780a3
ER
224if [ "$1" = "0" ]; then
225 %service -q rc-inetd reload
46fe218b 226fi
be076d3d 227
c0ab8b55
PG
228%post -n rsyncd-standalone
229/sbin/chkconfig --add rsyncd
148780a3 230%service rsyncd restart "rsync server"
c0ab8b55 231
5e338362 232%preun -n rsyncd-standalone
c0ab8b55 233if [ "$1" = "0" ]; then
148780a3 234 %service rsyncd stop
c0ab8b55
PG
235 /sbin/chkconfig --del rsyncd
236fi
237
f6135b0e 238%files
44a71ba1 239%defattr(644,root,root,755)
78a7a489 240%doc README NEWS OLDNEWS TODO
6ec3691a 241%config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/*
51d15609 242%attr(755,root,root) %{_bindir}/*
be076d3d
SZ
243%{_mandir}/man1/*
244
c0ab8b55 245%files -n rsyncd-inetd
be076d3d
SZ
246%defattr(644,root,root,755)
247%dir %{_sysconfdir}
248%attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
249%attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
94148ea8 250%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/rsyncd
251%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/rsyncd
3972ad9b 252%attr(640,root,root) %ghost /var/log/rsyncd.log
be076d3d 253%{_mandir}/man5/*
c0ab8b55
PG
254
255%files -n rsyncd-standalone
256%defattr(644,root,root,755)
257%dir %{_sysconfdir}
258%attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
259%attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
94148ea8 260%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rsyncd
261%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/rsyncd
3972ad9b 262%attr(640,root,root) %ghost /var/log/rsyncd.log
86951d3a 263%attr(754,root,root) /etc/rc.d/init.d/rsyncd
c0ab8b55 264%{_mandir}/man5/*
This page took 0.073346 seconds and 4 git commands to generate.