Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
rsync.26436
rsync.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rsync.spec of Package rsync.26436
# # spec file for package rsync # # Copyright (c) 2022 SUSE LLC # # 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. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define with_system_zlib 0 %if 0%{?suse_version} < 1120 %define _initddir %{_sysconfdir}/init.d %endif Name: rsync Version: 3.1.0 Release: 0 Summary: Versatile tool for fast incremental file transfer License: GPL-3.0-or-later Group: Productivity/Networking/Other URL: http://rsync.samba.org/ Source: http://rsync.samba.org/ftp/rsync/src/rsync-%{version}.tar.gz Source1: http://rsync.samba.org/ftp/rsync/src/rsync-patches-%{version}.tar.gz Source2: logrotate.rsync Source3: rsync.xinetd Source4: rsyncd.rc Source5: rsyncd.conf Source6: rsyncd.secrets Source7: rsync-server.firewall Source8: rsyncd.service Source10: http://rsync.samba.org/ftp/rsync/src/rsync-%{version}.tar.gz.asc Source11: http://rsync.samba.org/ftp/rsync/src/rsync-patches-%{version}.tar.gz.asc Source12: %{name}.keyring Patch3: system-zlib.diff Patch4: 0001-use-lp_num_modules-instead-of-the-removed-lp_numserv.patch Patch5: rsync-CVE-2014-2855.patch #PATCH-FIX-SUSE vcizek@suse.com boo#922710 slp Patch6: rsync-add_back_use_slp_directive.patch Patch7: rsync-equivalent_of_CVE-2014-8242.patch #PATCH-FIX-UPSTREAM two patches for CVE-2014-9512 Patch8: 0001-Receiver-now-rejects-invalid-filenames-in-filelist.patch Patch9: 0001-Complain-if-an-inc-recursive-path-is-not-right-for-i.patch Patch10: 0001-Add-parent-dir-validation-for-no-inc-recurse-too.patch #PATCH-FIX-UPSTREAM CVE-2017-16548 bsc#1066644 Missing trailing '\0' check could lead to remote DoS Patch11: rsync-CVE-2017-16548.patch #PATCH-FIX-UPSTREAM CVE-2017-17433 bsc#1071459 Patch12: rsync-3.1.0-CVE-2017-17433.patch #PATCH-FIX-UPSTREAM CVE-2017-17434 bsc#1071460 Patch13: rsync-3.1.0-CVE-2017-17434_1_of_2.patch Patch14: rsync-3.1.0-CVE-2017-17434_2_of_2.patch #PATCH-FIX-UPSTREAM bsc#1062063 rsync doesn't stop on errors Patch15: rsync-send_error_to_sender.patch Patch16: rsync-avoid-uploading-after-error.patch #PATCH-FIX-UPSTREAM bsc#1028842 kiwi not preserving extended attributes, # file capabilities stripped Patch17: 0001-Change-owner-group-before-setting-xattrs-to-avoid-xa.patch #PATCH-FIX-UPSTREAM bsc#1076503 CVE-2018-5764 parse_arguments function # does not prevent multiple --protect-arg Patch18: rsync-3.1.0-CVE-2018-5764.patch #PATCH-FIX-UPSTREAM bsc#1083017 - Error in rsync protocol data stream io.c Patch19: rsync-3.1.0-avoid-useless-keepalive.patch #PATCH-FIX-UPSTREAM bsc#1188258 Fix iconv crash Patch20: rsync-iconv-segfault.patch Patch21: rsync-CVE-2022-29154.patch #SUSE-PATCH: add support for --trust-sender (related to bsc#1202970, bsc#1201840, CVE-2022-29154) Patch22: rsync-CVE-2022-29154-trust-sender-1.patch Patch23: rsync-CVE-2022-29154-trust-sender-2.patch BuildRequires: autoconf BuildRequires: libacl-devel BuildRequires: openslp-devel BuildRequires: popt-devel BuildRequires: zlib-devel %if %suse_version >= 1230 BuildRequires: gpg-offline %endif PreReq: grep PreReq: sed BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} > 1010 Recommends: logrotate %endif %if 0%{?suse_version} > 1140 BuildRequires: systemd %{?systemd_requires} %define has_systemd 1 %else PreReq: %fillup_prereq PreReq: %insserv_prereq %endif %description Rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon. It offers a large number of options that control every aspect of its behavior and permit very flexible specification of the set of files to be copied. It is famous for its delta-transfer algorithm, which reduces the amount of data sent over the network by sending only the differences between the source files and the existing files in the destination. Rsync is widely used for backups and mirroring and as an improved copy command for everyday use. %prep %{?gpg_verify: %gpg_verify %{S:10}} %{?gpg_verify: %gpg_verify %{S:11}} %setup -q -b 1 -n %{name}-%{version} %if %with_system_zlib rm -f zlib/*.h %patch3 %endif %patch4 -p1 %patch5 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 patch -p1 < patches/acls.diff patch -p1 < patches/xattrs.diff patch -p1 < patches/slp.diff %patch6 -p1 # fate#312479 patch -p1 < patches/time-limit.diff %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 %patch16 %patch17 -p1 %patch18 -p1 %patch19 -p1 %patch20 -p1 %patch21 -p1 %patch22 -p1 %patch23 -p1 %build autoreconf -fiv export CFLAGS="%optflags -fPIC -DPIC -fPIE" export LDFLAGS="-Wl,-z,relro,-z,now -pie" %configure \ --disable-debug \ --enable-slp \ --enable-acl-support \ --enable-xattr-support make %{?_smp_mflags} %check make %{?_smp_mflags} check %install make install DESTDIR="%buildroot" rm -f %{buildroot}%{_sbindir}/rsyncd install -d %{buildroot}%{_sysconfdir}/logrotate.d install -d %{buildroot}%{_sysconfdir}/init.d install -d %{buildroot}%{_sysconfdir}/xinetd.d install -d %{buildroot}%{_prefix}/sbin ln -sf ../bin/rsync %{buildroot}%{_sbindir}/rsyncd install -m 755 support/rsyncstats %{buildroot}%{_prefix}/bin install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/rsync install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/xinetd.d/rsync install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/rsyncd.conf install -m 600 %{SOURCE6} %{buildroot}%{_sysconfdir}/rsyncd.secrets mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services install -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/rsync-server %if 0%{?has_systemd} install -D -m 0644 %SOURCE8 %{buildroot}%{_unitdir}/rsyncd.service ln -sf /usr/sbin/service %{buildroot}%{_sbindir}/rcrsyncd %else install -m 755 %{SOURCE4} %{buildroot}%{_initddir}/rsyncd ln -sf ../../etc/init.d/rsyncd %{buildroot}%{_sbindir}/rcrsyncd %endif %pre %if 0%{?has_systemd} %service_add_pre rsyncd.service %endif %preun %if 0%{?has_systemd} %service_del_preun rsyncd.service %else %stop_on_removal rsyncd %endif %post 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 %if 0%{?has_systemd} %service_add_post rsyncd.service %else %fillup_and_insserv rsyncd %endif %postun %if 0%{?has_systemd} %service_del_postun rsyncd.service %else %restart_on_update rsyncd %insserv_cleanup %endif %files %defattr(-,root,root) %if 0%{?has_systemd} %{_unitdir}/rsyncd.service %else %config %{_sysconfdir}/init.d/rsyncd %endif %config(noreplace) %{_sysconfdir}/rsyncd.conf %config(noreplace) %{_sysconfdir}/rsyncd.secrets %config(noreplace) %{_sysconfdir}/logrotate.d/rsync %config(noreplace) %{_sysconfdir}/xinetd.d/rsync %{_sbindir}/rcrsyncd %{_sbindir}/rsyncd %{_bindir}/rsyncstats %{_bindir}/rsync %config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/* %doc %{_mandir}/man1/rsync.1.gz %doc %{_mandir}/man5/rsyncd.conf.5.gz %doc COPYING NEWS README tech_report.tex %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor