]> git.pld-linux.org Git - packages/rsync.git/blobdiff - rsync.spec
- updated to 2.5.6
[packages/rsync.git] / rsync.spec
index ab34837685455139f860d0296ccccacf18d61088..61a1aff61ba3ded51cae9ccd1f651918a12fa90a 100644 (file)
@@ -7,17 +7,18 @@ Summary(uk):  
 Summary(zh_CN):        [ͨѶ]´«Ê乤¾ß
 Summary(zh_TW):        [³ñ°Ô]\e$(B6G?i¤õ(c\e(B
 Name:          rsync
-Version:       2.5.5
-Release:       3
+Version:       2.5.6
+Release:       1
 License:       GPL
 Group:         Daemons
 Source0:       http://rsync.samba.org/ftp/rsync/%{name}-%{version}.tar.gz
 Source1:       %{name}.inet
+Source2:       %{name}.init
+Source3:       %{name}.sysconfig
 Patch0:                %{name}-config.patch
 Patch1:                %{name}-man.patch
 BuildRequires: autoconf
 BuildRequires: popt-devel
-Requires:      rsh
 URL:           http://samba.anu.edu.au/rsync/
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -74,14 +75,17 @@ rsync - 
 × ËÏÍÐÒÅÓÏ×ÁÎÏÍÕ ×ÉĦ. ðÒÉ ÃØÏÍÕ ÚÏ×Ӧ͠ÎÅ ÏÂÏ×'ÑÚËÏ×Ï, ÝÏ ÏÄÎÁ
 ÍÁÛÉÎÁ ÍÁÌÁ × ÓÅÂÅ ËÏЦÀ ÔÏÇÏ, ÝÏ ¤ ÎÁ ¦ÎۦʠÍÁÛÉΦ.
 
-%package -n rsyncd
+%package -n rsyncd-inetd
 Summary:       Files necessary to run rsync in daemon mode
 Summary(pl):   Pliki niezbêdne do uruchomienia rsynca w trybie serwera
 Group:         Daemons
+PreReq:                rc-inetd
 Requires:      %{name}
-Requires:      rc-inetd
+Provides:      rsyncd
+Obsoletes:     rsyncd
+Obsoletes:     rsyncd-standalone
 
-%description -n rsyncd
+%description -n rsyncd-inetd
 rsync is a replacement for rcp that has many more features.
 
 rsync uses the "rsync algorithm" which provides a very fast method for
@@ -92,7 +96,34 @@ sets of files are present at one of the ends of the link beforehand.
 A technical report describing the rsync algorithm is included with
 this package.
 
-%description -n rsyncd -l pl
+%description -n rsyncd-inetd -l pl
+Rsync jest zamiennikiem programu rcp z bardziej rozbudowan± sk³adni±
+poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w czasie
+komunikacji i transportu plików do systemu zdalnego. Dokumentacja
+techniczna nowego algorytmu zosta³a równie¿ do³±czona do pakietu.
+
+%package -n rsyncd-standalone
+Summary:       Files necessary to run rsync in daemon mode
+Summary(pl):   Pliki niezbêdne do uruchomienia rsynca w trybie serwera
+Group:         Daemons
+Requires(post,preun):  /sbin/chkconfig
+Requires:      %{name}
+Provides:      rsyncd
+Obsoletes:     rsyncd
+Obsoletes:     rsyncd-inetd
+
+%description -n rsyncd-standalone
+rsync is a replacement for rcp that has many more features.
+
+rsync uses the "rsync algorithm" which provides a very fast method for
+bringing remote files into sync. It does this by sending just the
+differences in the files across the link, without requiring that both
+sets of files are present at one of the ends of the link beforehand.
+
+A technical report describing the rsync algorithm is included with
+this package.
+
+%description -n rsyncd-standalone -l pl
 Rsync jest zamiennikiem programu rcp z bardziej rozbudowan± sk³adni±
 poleceñ. Program ten u¿ywa efektywnego algorytmu "rsync" w czasie
 komunikacji i transportu plików do systemu zdalnego. Dokumentacja
@@ -106,7 +137,8 @@ techniczna nowego algorytmu zosta
 %build
 %{__autoconf}
 %configure \
-       --enable-ipv6
+       --enable-ipv6 \
+       --disable-debug
 
 %{__make}
 
@@ -118,27 +150,45 @@ rm -rf $RPM_BUILD_ROOT
        mandir=$RPM_BUILD_ROOT%{_mandir} \
        bindir=$RPM_BUILD_ROOT%{_bindir}
 
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/sysconfig/rc-inetd}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{sysconfig/rc-inetd,rc.d/init.d}}
 
 :> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.conf
 :> $RPM_BUILD_ROOT%{_sysconfdir}/rsyncd.secrets
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/rsyncd
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rsyncd
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rsyncd
+
+%clean
+rm -rf $RPM_BUILD_ROOT
 
-%post -n rsyncd
+%post -n rsyncd-inetd
 if [ -f /var/lock/subsys/rc-inetd ]; then
         /etc/rc.d/init.d/rc-inetd restart 1>&2
 else
         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
 fi
 
-%postun -n rsyncd
+%postun -n rsyncd-inetd
 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
        /etc/rc.d/init.d/rc-inetd reload 1>&2
 fi
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+%post -n rsyncd-standalone
+/sbin/chkconfig --add rsyncd
+if [ -f /var/lock/subsys/rsyncd ]; then
+       /etc/rc.d/init.d/rsyncd restart 1>&2
+else
+       echo "Type \"/etc/rc.d/init.d/rsyncd start\" to start rsync server" 1>&2
+fi
+
+%preun -n rsyncd-standalone
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/rsyncd ]; then
+               /etc/rc.d/init.d/rsyncd stop 1>&2
+       fi
+       /sbin/chkconfig --del rsyncd
+fi
 
 %files
 %defattr(644,root,root,755)
@@ -146,10 +196,19 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/*
 %{_mandir}/man1/*
 
-%files -n rsyncd
+%files -n rsyncd-inetd
 %defattr(644,root,root,755)
 %dir %{_sysconfdir}
 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
 %attr(640,root,root) /etc/sysconfig/rc-inetd/rsyncd
 %{_mandir}/man5/*
+
+%files -n rsyncd-standalone
+%defattr(644,root,root,755)
+%dir %{_sysconfdir}
+%attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.conf
+%attr(640,root,root) %config(noreplace) %{_sysconfdir}/rsyncd.secrets
+%attr(640,root,root) %config(noreplace) /etc/sysconfig/rsyncd
+%attr(755,root,root) /etc/rc.d/init.d/rsyncd
+%{_mandir}/man5/*
This page took 0.086289 seconds and 4 git commands to generate.