2007-01-16 00:35:29 +01:00
|
|
|
#
|
2010-02-19 16:50:26 +01:00
|
|
|
# spec file for package rsync (Version 3.0.7)
|
2007-01-16 00:35:29 +01:00
|
|
|
#
|
2010-02-19 16:50:26 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:35:29 +01:00
|
|
|
#
|
2008-08-14 02:17:50 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:35:29 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-08-21 17:37:49 +02:00
|
|
|
%define with_system_zlib 0
|
2008-03-11 17:58:40 +01:00
|
|
|
|
2007-01-16 00:35:29 +01:00
|
|
|
Name: rsync
|
2009-08-21 17:37:49 +02:00
|
|
|
Summary: Replacement for RCP/mirror that has Many More Features
|
2010-02-19 16:50:26 +01:00
|
|
|
Version: 3.0.7
|
|
|
|
Release: 1
|
|
|
|
License: GPLv3+
|
2007-01-16 00:35:29 +01:00
|
|
|
Group: Productivity/Networking/Other
|
2007-09-14 16:27:39 +02:00
|
|
|
AutoReqProv: on
|
2009-08-21 17:37:49 +02:00
|
|
|
Url: http://rsync.samba.org/
|
2009-08-07 21:45:49 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: %{name}-patches-%{version}.tar.bz2
|
2008-03-11 17:58:40 +01:00
|
|
|
Source2: logrotate.rsync
|
|
|
|
Source3: rsync.xinetd
|
|
|
|
Source4: rsyncd.rc
|
|
|
|
Source5: rsyncd.conf
|
|
|
|
Source6: rsyncd.secrets
|
2009-02-19 23:48:22 +01:00
|
|
|
Source7: rsync-server.firewall
|
2007-05-08 02:24:27 +02:00
|
|
|
Patch3: system-zlib.diff
|
2009-03-24 20:49:34 +01:00
|
|
|
#PATCH-FIX-UPSTREAM rsync-3.0.5-doc-fix.patch bnc487591 petr.uzel@suse.cz -- based on upstream changes to rsync.yo
|
|
|
|
Patch4: rsync-3.0.5-doc-fix.patch
|
2007-01-16 00:35:29 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-08-21 17:37:49 +02:00
|
|
|
PreReq: %fillup_prereq %insserv_prereq sed grep
|
|
|
|
BuildRequires: libacl-devel libpng openslp-devel
|
|
|
|
BuildRequires: popt-devel zlib-devel
|
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
BuildRequires: texlive-latex
|
|
|
|
%else
|
|
|
|
BuildRequires: te_ams te_latex
|
|
|
|
%endif
|
|
|
|
Recommends: logrotate
|
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
|
2009-08-07 21:45:49 +02:00
|
|
|
%setup -q -b 1 -n %{name}-%{version}
|
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
|
|
|
patch -p1 < patches/acls.diff
|
|
|
|
patch -p1 < patches/xattrs.diff
|
2008-03-11 17:58:40 +01:00
|
|
|
patch -p1 < patches/slp.diff
|
2009-03-24 20:49:34 +01:00
|
|
|
%patch4 -p1
|
2007-01-16 00:35:29 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoheader
|
|
|
|
autoconf
|
2008-09-06 03:26:25 +02:00
|
|
|
%configure \
|
|
|
|
--disable-debug \
|
|
|
|
--enable-slp \
|
|
|
|
--enable-acl-support \
|
|
|
|
--enable-xattr-support
|
2007-09-12 17:01:19 +02:00
|
|
|
make %{?jobs:-j %jobs}
|
2008-08-14 02:17:50 +02:00
|
|
|
latex tech_report
|
|
|
|
latex tech_report
|
|
|
|
dvips tech_report -o tech_report.ps
|
|
|
|
|
2007-01-16 00:35:29 +01:00
|
|
|
%install
|
2008-09-06 03:26:25 +02:00
|
|
|
%makeinstall
|
2007-01-16 00:35:29 +01:00
|
|
|
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
|
2007-09-12 17:01:19 +02:00
|
|
|
ln -sf ../bin/rsync $RPM_BUILD_ROOT/usr/sbin/rsyncd
|
2007-01-16 00:35:29 +01:00
|
|
|
install -m 755 support/rsyncstats $RPM_BUILD_ROOT/usr/bin
|
2008-03-11 17:58:40 +01:00
|
|
|
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/rsync
|
|
|
|
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/xinetd.d/rsync
|
|
|
|
install -m 755 %{SOURCE4} $RPM_BUILD_ROOT/etc/init.d/rsyncd
|
|
|
|
install -m 644 %{SOURCE5} $RPM_BUILD_ROOT/etc/rsyncd.conf
|
|
|
|
install -m 600 %{SOURCE6} $RPM_BUILD_ROOT/etc/rsyncd.secrets
|
2007-01-16 00:35:29 +01:00
|
|
|
ln -sf ../../etc/init.d/rsyncd $RPM_BUILD_ROOT/usr/sbin/rcrsyncd
|
2009-02-19 23:48:22 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services
|
|
|
|
install -m 644 %{S:7} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/rsync-server
|
2007-01-16 00:35:29 +01:00
|
|
|
|
|
|
|
%preun
|
|
|
|
%stop_on_removal rsyncd
|
|
|
|
|
|
|
|
%post
|
|
|
|
%fillup_and_insserv rsyncd
|
2007-09-14 16:27:39 +02:00
|
|
|
if ! grep -q "^pid file" /etc/rsyncd.conf ; then
|
|
|
|
sed -i -e "/^log file/{;p;s@\(.*\)@pid file = /var/run/rsyncd.pid@;}" /etc/rsyncd.conf
|
|
|
|
fi
|
2007-01-16 00:35:29 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%restart_on_update rsyncd
|
|
|
|
%insserv_cleanup
|
|
|
|
|
2009-08-21 17:37:49 +02:00
|
|
|
%clean
|
|
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
2007-01-16 00:35:29 +01:00
|
|
|
%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
|
2008-09-06 03:26:25 +02:00
|
|
|
%{_sbindir}/rcrsyncd
|
|
|
|
%{_sbindir}/rsyncd
|
|
|
|
%{_bindir}/rsyncstats
|
|
|
|
%{_bindir}/rsync
|
2009-08-21 17:37:49 +02:00
|
|
|
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/*
|
2007-01-16 00:35:29 +01:00
|
|
|
%doc %{_mandir}/man1/rsync.1.gz
|
|
|
|
%doc %{_mandir}/man5/rsyncd.conf.5.gz
|
2009-02-19 23:48:22 +01:00
|
|
|
%doc COPYING NEWS README tech_report.ps tech_report.tex
|
2008-01-10 03:03:34 +01:00
|
|
|
|
2007-04-19 01:02:48 +02:00
|
|
|
%changelog
|