2007-01-16 00:35:29 +01:00
|
|
|
#
|
2007-05-08 02:24:27 +02:00
|
|
|
# spec file for package rsync (Version 2.6.9)
|
2007-01-16 00:35:29 +01:00
|
|
|
#
|
2007-04-19 01:02:48 +02:00
|
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:35:29 +01:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: rsync
|
2007-05-17 11:56:27 +02:00
|
|
|
BuildRequires: libacl-devel libpng openslp-devel
|
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
BuildRequires: texlive-latex
|
|
|
|
%else
|
|
|
|
BuildRequires: te_ams te_latex
|
|
|
|
%endif
|
2007-05-08 02:24:27 +02:00
|
|
|
BuildRequires: popt-devel zlib-devel
|
2007-08-15 21:56:39 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:35:29 +01:00
|
|
|
Group: Productivity/Networking/Other
|
|
|
|
PreReq: %fillup_prereq %insserv_prereq
|
|
|
|
Autoreqprov: on
|
2007-05-08 02:24:27 +02:00
|
|
|
Version: 2.6.9
|
2007-09-11 18:36:05 +02:00
|
|
|
Release: 45
|
2007-01-16 00:35:29 +01:00
|
|
|
Summary: Replacement for RCP/mirror that has Many More Features
|
|
|
|
Source: samba.org/ftp/rsync/rsync-%{version}.tar.bz2
|
|
|
|
Source1: logrotate.rsync
|
|
|
|
Source2: rsync.xinetd
|
|
|
|
Source3: rsyncd.rc
|
|
|
|
Source4: rsyncd.conf
|
|
|
|
Source5: rsyncd.secrets
|
2007-05-08 02:24:27 +02:00
|
|
|
Patch1: slp-fix.diff
|
|
|
|
Patch2: slp.diff
|
|
|
|
Patch3: system-zlib.diff
|
2007-08-15 21:56:39 +02:00
|
|
|
Patch4: rsync-overlong.patch
|
2007-08-17 19:01:29 +02:00
|
|
|
Patch5: lutimes-hack.diff
|
2007-09-11 18:36:05 +02:00
|
|
|
Patch6: rsync-fix_fuzzy.patch
|
2007-01-16 00:35:29 +01:00
|
|
|
URL: http://rsync.samba.org/
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-05-08 20:10:02 +02:00
|
|
|
%define with_system_zlib 0
|
2007-01-16 00:35:29 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
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 be present at one of the ends of the link beforehand. At
|
|
|
|
first glance, this may seem impossible because the calculation of diffs
|
|
|
|
between two files normally requires local access to both files.
|
|
|
|
|
|
|
|
A technical report describing the rsync algorithm is included with this
|
|
|
|
package.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Andrew Tridgell <tridge@samba.org>
|
|
|
|
Paul Mackerras <Paul.Mackerras@cs.anu.edu.au>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2007-05-08 20:10:02 +02:00
|
|
|
%if %with_system_zlib
|
|
|
|
rm -f zlib/*.h
|
2007-05-08 02:24:27 +02:00
|
|
|
%patch3
|
2007-05-08 20:10:02 +02:00
|
|
|
%endif
|
2007-01-16 00:35:29 +01:00
|
|
|
cp configure configure.orig
|
|
|
|
patch -p1 < patches/acls.diff
|
|
|
|
patch -p1 < patches/xattrs.diff
|
|
|
|
cp configure.orig configure
|
2007-05-08 02:24:27 +02:00
|
|
|
#patch -p1 < patches/slp.diff
|
|
|
|
%patch2 -p1
|
|
|
|
%patch1
|
2007-08-15 21:56:39 +02:00
|
|
|
%patch4 -p1
|
2007-08-17 19:01:29 +02:00
|
|
|
%patch5
|
2007-09-11 18:36:05 +02:00
|
|
|
%patch6
|
2007-01-16 00:35:29 +01:00
|
|
|
cp configure.orig configure
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoheader
|
|
|
|
autoconf
|
|
|
|
CFLAGS=$RPM_OPT_FLAGS \
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--infodir=/usr/share/info \
|
2007-05-08 02:24:27 +02:00
|
|
|
--disable-debug \
|
2007-01-16 00:35:29 +01:00
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--enable-slp \
|
|
|
|
--enable-acl-support \
|
|
|
|
--enable-xattr-support
|
|
|
|
make
|
|
|
|
%ifarch s390x
|
|
|
|
make test || :
|
|
|
|
%else
|
|
|
|
make test
|
|
|
|
%endif
|
|
|
|
latex tech_report
|
|
|
|
latex tech_report
|
|
|
|
dvips tech_report -o tech_report.ps
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/sbin/rsyncd
|
|
|
|
install -d $RPM_BUILD_ROOT/etc/logrotate.d
|
|
|
|
install -d $RPM_BUILD_ROOT/etc/init.d
|
|
|
|
install -d $RPM_BUILD_ROOT/etc/xinetd.d
|
|
|
|
install -d $RPM_BUILD_ROOT/usr/sbin
|
|
|
|
ln -f $RPM_BUILD_ROOT/usr/bin/rsync $RPM_BUILD_ROOT/usr/sbin/rsyncd
|
|
|
|
install -m 755 support/rsyncstats $RPM_BUILD_ROOT/usr/bin
|
|
|
|
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/rsync
|
|
|
|
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/xinetd.d/rsync
|
|
|
|
install -m 755 %{SOURCE3} $RPM_BUILD_ROOT/etc/init.d/rsyncd
|
|
|
|
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT/etc/rsyncd.conf
|
|
|
|
install -m 600 %{SOURCE5} $RPM_BUILD_ROOT/etc/rsyncd.secrets
|
|
|
|
ln -sf ../../etc/init.d/rsyncd $RPM_BUILD_ROOT/usr/sbin/rcrsyncd
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%stop_on_removal rsyncd
|
|
|
|
|
|
|
|
%post
|
|
|
|
%fillup_and_insserv rsyncd
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%restart_on_update rsyncd
|
|
|
|
%insserv_cleanup
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config(noreplace) /etc/rsyncd.conf
|
|
|
|
%config(noreplace) /etc/rsyncd.secrets
|
|
|
|
%config(noreplace) /etc/logrotate.d/rsync
|
|
|
|
%config(noreplace) /etc/xinetd.d/rsync
|
|
|
|
%config /etc/init.d/rsyncd
|
|
|
|
/usr/sbin/rcrsyncd
|
|
|
|
/usr/bin/rsync
|
|
|
|
/usr/sbin/rsyncd
|
|
|
|
/usr/bin/rsyncstats
|
|
|
|
%doc %{_mandir}/man1/rsync.1.gz
|
|
|
|
%doc %{_mandir}/man5/rsyncd.conf.5.gz
|
2007-05-08 02:24:27 +02:00
|
|
|
%doc COPYING NEWS README tech_report.ps tech_report.tex
|
2007-01-16 00:35:29 +01:00
|
|
|
|
2007-04-19 01:02:48 +02:00
|
|
|
%changelog
|
2007-09-11 18:36:05 +02:00
|
|
|
* Mon Sep 10 2007 - ro@suse.de
|
|
|
|
- fix abort in rsync when acls and fuzzy are used together
|
|
|
|
(#306263)
|
2007-08-17 19:01:29 +02:00
|
|
|
* Fri Aug 17 2007 - cthiel@suse.de
|
|
|
|
- added lutimes-hack.diff to work around a glibc bug in lutimes.c
|
2007-08-15 21:56:39 +02:00
|
|
|
* Thu Aug 02 2007 - ro@suse.de
|
|
|
|
- protect from overlong filenames (#294073) CVE-2007-4091
|
2007-05-17 11:56:27 +02:00
|
|
|
* Mon May 14 2007 - mrueckert@suse.de
|
|
|
|
- make build work on older distros again.
|
2007-05-08 20:10:02 +02:00
|
|
|
* Tue May 08 2007 - dmueller@suse.de
|
|
|
|
- use builtin zlib copy again
|
2007-05-08 02:24:27 +02:00
|
|
|
* Mon May 07 2007 - dmueller@suse.de
|
|
|
|
- update to 2.6.9:
|
|
|
|
* several important bugfixes
|
|
|
|
* new features, see included NEWS file
|
|
|
|
- build against system zlib instead of own zlib copy
|
|
|
|
- build against system popt instead of own popt copy
|
2007-04-19 01:02:48 +02:00
|
|
|
* Wed Apr 18 2007 - aj@suse.de
|
|
|
|
- Use texlive for building.
|
2007-01-16 00:35:29 +01:00
|
|
|
* Tue Sep 12 2006 - ro@suse.de
|
|
|
|
- apply fix for xattr.diff from rsync mailing list
|
|
|
|
* Tue Aug 22 2006 - ro@suse.de
|
|
|
|
- apply patches/xattr.diff as well (fate#300565)
|
|
|
|
* Thu Aug 10 2006 - dmueller@suse.de
|
|
|
|
- fix rc script error code when there's an error in the config
|
|
|
|
file (#198406)
|
|
|
|
* Wed Jun 21 2006 - ro@suse.de
|
|
|
|
- added tag-3 patch from cvs (will be in 2.6.9)
|
|
|
|
to avoid aborts with "unexpected tag 3"
|
|
|
|
* Mon Jun 12 2006 - ro@suse.de
|
|
|
|
- update to version 2.6.8
|
2007-04-19 01:02:48 +02:00
|
|
|
- use slp patch as included upstream
|
|
|
|
- several bugfixes
|
|
|
|
- errors now include version number
|
|
|
|
- special files as pipes now printed as "S", no longer "D"
|
|
|
|
- escaping of unreadable chars has changed
|
|
|
|
- new --append, --min-size and --prune-empty-dirs options
|
2007-01-16 00:35:29 +01:00
|
|
|
* Tue Apr 18 2006 - ro@suse.de
|
|
|
|
- ignore testsuite failure on s390x (filesystem mtimes)
|
|
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
|
|
- converted neededforbuild to BuildRequires
|
|
|
|
* Thu Jan 19 2006 - schwab@suse.de
|
|
|
|
- Don't strip binaries.
|
|
|
|
* Fri Oct 14 2005 - ro@suse.de
|
|
|
|
- fix problem in configure to re-enable ACLs (#128323)
|
|
|
|
* Tue Aug 02 2005 - ro@suse.de
|
|
|
|
- added acl-fix.patch from wayne to make testsuite pass with acls
|
|
|
|
* Fri Jul 29 2005 - ro@suse.de
|
|
|
|
- update to 2.6.6
|
|
|
|
* Mon Jun 06 2005 - ro@suse.de
|
|
|
|
- update to 2.6.5
|
|
|
|
- use acl patch as shipped in rsync/patches directory
|
|
|
|
* Fri Feb 18 2005 - mmj@suse.de
|
|
|
|
- Glibc doesn't cache the timezone as much as it used to, so export
|
|
|
|
the TZ variable after doing chroot. [#49878]
|
|
|
|
* Thu Feb 10 2005 - ro@suse.de
|
|
|
|
- added libpng to neededforbuild (for tetex)
|
|
|
|
* Wed Dec 01 2004 - ro@suse.de
|
|
|
|
- re-register before SLP really times out
|
|
|
|
* Wed Dec 01 2004 - ro@suse.de
|
|
|
|
- re-worked slp.diff
|
|
|
|
do not use a timer but hook into central select call
|
|
|
|
* Thu Nov 11 2004 - ro@suse.de
|
|
|
|
- update to 2.6.3 final
|
|
|
|
* Mon Aug 16 2004 - bk@suse.de
|
|
|
|
- updated to 2.6.3-pre1, which is currently in release-testing
|
|
|
|
(and includes a security fix)
|
|
|
|
* Fri Jul 23 2004 - ro@suse.de
|
|
|
|
- fixing problems apparently introduced with the update to 2.6.2:
|
|
|
|
- fix from cvs to not abort trying to create already created
|
|
|
|
backup directories (#42780)
|
|
|
|
- fix from cvs to avoid crash on large trees (#42933)
|
|
|
|
* Mon May 10 2004 - ro@suse.de
|
|
|
|
- update to 2.6.2 / ported patches
|
|
|
|
- fixes a problem with non-chroot modules
|
|
|
|
* Thu Apr 01 2004 - mls@suse.de
|
|
|
|
- fix hostname calculation in slp registration code
|
|
|
|
* Tue Mar 16 2004 - ro@suse.de
|
|
|
|
- add -4 and -6 options to manpage (#36144)
|
|
|
|
* Tue Jan 13 2004 - ro@suse.de
|
|
|
|
- update to version 2.6.0
|
|
|
|
* Thu Dec 04 2003 - ro@suse.de
|
|
|
|
- update to real 2.5.7
|
|
|
|
* Thu Dec 04 2003 - okir@suse.de
|
|
|
|
- fix heap overflow (#33478)
|
|
|
|
* Sun Nov 23 2003 - adrian@suse.de
|
|
|
|
- add patch for SLP support, based on Brad Hards demo implementation
|
|
|
|
* Thu Nov 06 2003 - schwab@suse.de
|
|
|
|
- Fix quoting in configure script.
|
|
|
|
* Fri Oct 24 2003 - ro@suse.de
|
|
|
|
- added make test
|
|
|
|
- added acl patch, build with acl support
|
|
|
|
* Fri Oct 17 2003 - ro@suse.de
|
|
|
|
- don't build as root
|
|
|
|
* Mon Aug 18 2003 - ro@suse.de
|
|
|
|
- added stop_on_removal and restart_on_update macro calls
|
|
|
|
* Tue May 13 2003 - ro@suse.de
|
|
|
|
- use defattr
|
|
|
|
* Wed Mar 05 2003 - ro@suse.de
|
|
|
|
- add xinetd-config to filelist
|
|
|
|
* Tue Jan 28 2003 - ro@suse.de
|
|
|
|
- update to 2.5.6
|
|
|
|
- can combine ssh and daemon access
|
|
|
|
- supports URL like syntax rsync://
|
|
|
|
- IPv6 support in hosts.allow/deny
|
|
|
|
- recursive hang fixed upstream
|
|
|
|
* Fri Jan 24 2003 - ro@suse.de
|
|
|
|
- added xinetd-config snippet
|
|
|
|
* Wed Jan 15 2003 - ro@suse.de
|
|
|
|
- added logrotate config
|
|
|
|
* Tue Oct 08 2002 - ro@suse.de
|
|
|
|
- fix recursive hangup in server process on broken pipe
|
|
|
|
* Wed Aug 14 2002 - poeml@suse.de
|
|
|
|
- fix comment in init script
|
|
|
|
* Thu Aug 01 2002 - ro@suse.de
|
|
|
|
- use BuildRoot
|
|
|
|
- added PreReqs
|
|
|
|
* Mon Jul 22 2002 - kukuk@suse.de
|
|
|
|
- Don't source /etc/rc.config in init script [Bug 17123]
|
|
|
|
* Mon Jun 17 2002 - ro@suse.de
|
|
|
|
- update to 2.5.5
|
|
|
|
setgroups patch removed, has been integrated
|
|
|
|
zfree patch removed, rsync has current zlib fixes
|
|
|
|
unsigned patch removed, has been integrated
|
|
|
|
* Wed Mar 06 2002 - okir@suse.de
|
|
|
|
- applied setgroups security fix
|
|
|
|
* Fri Feb 08 2002 - okir@suse.de
|
|
|
|
- applied zlib security fix
|
|
|
|
* Wed Feb 06 2002 - ro@suse.de
|
|
|
|
- make rsyncd a hardlink (#13041)
|
|
|
|
* Fri Feb 01 2002 - ro@suse.de
|
|
|
|
- added patch for segmentation fault
|
|
|
|
* Mon Jan 21 2002 - draht@suse.de
|
|
|
|
- corrected diff for log.c
|
|
|
|
* Mon Jan 21 2002 - ro@suse.de
|
|
|
|
- applied security patch for various signed/unsigned fixes
|
|
|
|
* Fri Dec 14 2001 - ro@suse.de
|
|
|
|
- removed START_RSYNCD
|
|
|
|
* Tue Aug 28 2001 - ro@suse.de
|
|
|
|
- on uninstall, call insserv to cleanup
|
|
|
|
* Tue Aug 28 2001 - ro@suse.de
|
|
|
|
- added rc-script and rc-config variable START_RSYNCD
|
|
|
|
if someone wants to run rsyncd standalone (w/o inetd) (#9496)
|
|
|
|
* Mon Sep 25 2000 - ro@suse.de
|
|
|
|
- sorted
|
|
|
|
* Wed Sep 13 2000 - aj@suse.de
|
|
|
|
- Work with LFS; fix spec file to not print while building.
|
|
|
|
* Mon Sep 11 2000 - ro@suse.de
|
|
|
|
- update to 2.4.6
|
|
|
|
* Fri Aug 18 2000 - ro@suse.de
|
|
|
|
- update to 2.4.4
|
|
|
|
* Thu Jan 20 2000 - aj@suse.de
|
|
|
|
- rsync 2.3.2, install man pages -> /usr/share/man.
|
|
|
|
* Mon Sep 13 1999 - bs@suse.de
|
|
|
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
|
|
|
* Fri Aug 13 1999 - fehr@suse.de
|
|
|
|
- update to 2.3.1
|
|
|
|
- added rsyncstats shell script
|
|
|
|
* Thu Dec 17 1998 - ro@suse.de
|
|
|
|
- update to 2.2.1
|
|
|
|
* Sat Nov 28 1998 - bs@suse.de
|
|
|
|
- added symlink /usr/sbin/rsyncd (to let it work with tcpd)
|
|
|
|
- added example configs
|
|
|
|
* Tue Nov 24 1998 - ro@suse.de
|
|
|
|
- update to 2.2.0
|
|
|
|
* Sat Sep 19 1998 - ro@suse.de
|
|
|
|
- defined _GNU_SOURCE where getopt_long is needed
|
|
|
|
* Mon Aug 24 1998 - ro@suse.de
|
|
|
|
- update to 2.1.0
|
|
|
|
added manpage for rsyncd.conf
|
|
|
|
* Tue May 12 1998 - ro@suse.de
|
|
|
|
- update to 1.7.4
|
|
|
|
generate tech_report.ps from tex-src
|
|
|
|
* Mon Nov 10 1997 - kfr@suse.de
|
|
|
|
- first version for S.u.S.E. (1.6.3)
|