]> git.pld-linux.org Git - packages/rsync.git/blob - rsync.spec
- release 5
[packages/rsync.git] / rsync.spec
1 Summary:        Program for efficient remote updates of files
2 Summary(pl):    Program efektywnego modyfikowania plików na zdalnym komputerze
3 Name:           rsync
4 Version:        2.4.6
5 Release:        5
6 License:        GPL
7 Group:          Daemons
8 Group(de):      Server
9 Group(pl):      Serwery
10 Source0:        http://rsync.samba.org/ftp/rsync/%{name}-%{version}.tar.gz
11 Source1:        %{name}.inet
12 Patch0:         %{name}-config.patch
13 Patch1:         %{name}-man.patch
14 Patch2:         %{name}-configure.patch
15 #Patch3:        http://www.misiek.eu.org/ipv6/%{name}-2.4.5-ipv6-20000821.patch.gz
16 Patch3:         %{name}-2.4.6-ipv6-20010419.patch.gz
17 URL:            http://samba.anu.edu.au/rsync/
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _sysconfdir     /etc/rsyncd
21
22 %description
23 rsync is a replacement for rcp that has many more features.
24
25 rsync uses the "rsync algorithm" which provides a very fast method for
26 bringing remote files into sync. It does this by sending just the
27 differences in the files across the link, without requiring that both
28 sets of files are present at one of the ends of the link beforehand.
29
30 A technical report describing the rsync algorithm is included with
31 this package.
32
33 %description -l pl
34 Rsync jest zamiennikiem programu rcp i jest bardziej rozbudowan±
35 sk³adniê poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w
36 czasie komunikacji i transportu plików do systemu zdalnego.
37 Dokumentacja techniczna nowego algorytmu zosta³a równie¿ do³±czona do
38 pakietu.
39
40 %package -n rsyncd
41 Summary:        Files necessary to run rsync in daemon mode
42 Summary(pl):    Pliki niezbêdne do uruchomienia rsynca w trybie serwera
43 Group:          Daemons
44 Group(de):      Server
45 Group(pl):      Serwery
46 Requires:       %{name}
47 Requires:       rc-inetd
48
49 %description -n rsyncd
50 rsync is a replacement for rcp that has many more features.
51
52 rsync uses the "rsync algorithm" which provides a very fast method for
53 bringing remote files into sync. It does this by sending just the
54 differences in the files across the link, without requiring that both
55 sets of files are present at one of the ends of the link beforehand.
56
57 A technical report describing the rsync algorithm is included with
58 this package.
59
60 %description -n rsyncd -l pl
61 Rsync jest zamiennikiem programu rcp i jest bardziej rozbudowan±
62 sk³adniê poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w
63 czasie komunikacji i transportu plików do systemu zdalnego.
64 Dokumentacja techniczna nowego algorytmu zosta³a równie¿ do³±czona do
65 pakietu.
66
67 %prep
68 %setup  -q
69 %patch0 -p1
70 %patch1 -p1
71 %patch2 -p1
72 %patch3 -p1
73
74 %build
75 autoconf 
76 %configure
77 %{__make} 
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         prefix=$RPM_BUILD_ROOT%{_prefix} \
84         mandir=$RPM_BUILD_ROOT%{_mandir} \
85         bindir=$RPM_BUILD_ROOT%{_bindir}
86
87 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/sysconfig/rc-inetd}
88
89 :> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.conf
90 :> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.secrets
91
92 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rsyncd
93
94 gzip -9nf README 
95
96 %post -n rsyncd
97 if [ -f /var/lock/subsys/rc-inetd ]; then
98         /etc/rc.d/init.d/rc-inetd restart 1>&2
99 else
100         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
101 fi
102
103 %postun -n rsyncd
104 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
105         /etc/rc.d/init.d/rc-inetd reload 1>&2
106 fi
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %files
112 %defattr(644,root,root,755)
113 %doc README.gz 
114 %attr(755,root,root) %{_bindir}/*
115 %{_mandir}/man1/*
116
117 %files -n rsyncd
118 %defattr(644,root,root,755)
119 %dir %{_sysconfdir}
120 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
121 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
122 %attr(640,root,root) /etc/sysconfig/rc-inetd/rsyncd
123 %{_mandir}/man5/*
This page took 0.24929 seconds and 3 git commands to generate.