Hello community,

here is the log from the commit of package rsync for openSUSE:Factory checked 
in at 2017-06-20 10:58:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rsync (Old)
 and      /work/SRC/openSUSE:Factory/.rsync.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rsync"

Tue Jun 20 10:58:34 2017 rev:59 rq:503737 version:3.1.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/rsync/rsync.changes      2016-01-09 
23:09:33.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.rsync.new/rsync.changes 2017-06-20 
10:59:22.120232604 +0200
@@ -1,0 +2,14 @@
+Wed Jun 14 12:21:21 UTC 2017 - [email protected]
+
+- We no longer need to inject the pid in post as we do not use
+  the iniscript relying on it
+- Add socket activation service instead of the xinetd service
+- Verify in services the configuration to run actually exist
+- Drop sle11 support as it does not autoreconf anymore
+- Drop patch system-zlib.diff that was never applied
+- Switch to system popt and zlib:
+  * This should not cause issues now because upstream states the
+    underlying issue why we used the bundled one was fixed by
+    using more safeguarded error detection
+
+-------------------------------------------------------------------

Old:
----
  rsync.xinetd
  system-zlib.diff

New:
----
  rsyncd.socket
  [email protected]

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rsync.spec ++++++
--- /var/tmp/diff_new_pack.tXxKyD/_old  2017-06-20 10:59:22.748144096 +0200
+++ /var/tmp/diff_new_pack.tXxKyD/_new  2017-06-20 10:59:22.752143533 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rsync
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,11 +16,6 @@
 #
 
 
-%define with_system_zlib 0
-%if 0%{?suse_version} < 1120
-%define _initddir %{_sysconfdir}/init.d
-%endif
-
 Name:           rsync
 Version:        3.1.2
 Release:        0
@@ -28,20 +23,19 @@
 License:        GPL-3.0+
 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
+Source3:        rsyncd.socket
 Source4:        rsyncd.rc
 Source5:        rsyncd.conf
 Source6:        rsyncd.secrets
 Source7:        rsync-server.firewall
 Source8:        rsyncd.service
+Source9:        [email protected]
 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
 Patch5:         rsync-no-libattr.patch
 #PATCH-FIX-SUSE boo#922710 slp
 Patch6:         rsync-add_back_use_slp_directive.patch
@@ -50,22 +44,13 @@
 BuildRequires:  libacl-devel
 BuildRequires:  openslp-devel
 BuildRequires:  popt-devel
+BuildRequires:  systemd-rpm-macros
 BuildRequires:  zlib-devel
-
-PreReq:         %fillup_prereq
-PreReq:         grep
-PreReq:         sed
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} > 1010
+Requires(post): grep
+Requires(post): sed
 Recommends:     logrotate
-%endif
-%if 0%{?suse_version} > 1140
-BuildRequires:  systemd
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %{?systemd_requires}
-%define has_systemd 1
-%else
-PreReq:         %insserv_prereq
-%endif
 
 %description
 Rsync is a fast and extraordinarily versatile file  copying  tool. It can copy
@@ -78,11 +63,8 @@
 for backups and mirroring and as an improved copy command for everyday use.
 
 %prep
-%setup -q -b 1 -n %{name}-%{version}
-%if %with_system_zlib
+%setup -q -b 1
 rm -f zlib/*.h
-%patch3
-%endif
 patch -p1 < patches/acls.diff
 patch -p1 < patches/xattrs.diff
 patch -p1 < patches/slp.diff
@@ -90,20 +72,23 @@
 # fate#312479
 patch -p1 < patches/time-limit.diff
 %patch5 -p1
+
 %build
 autoreconf -fiv
-export CFLAGS="%optflags -fPIC -DPIC -fPIE"
+export CFLAGS="%{optflags} -fPIC -DPIC -fPIE"
 export LDFLAGS="-Wl,-z,relro,-z,now -pie"
 %configure \
+  --with-included-popt=no \
+  --with-included-zlib=no \
   --disable-debug \
   --enable-slp \
   --enable-acl-support \
   --enable-xattr-support
-make reconfigure
+make %{?_smp_mflags} reconfigure
 make %{?_smp_mflags}
 
 %install
-make install DESTDIR="%buildroot"
+%make_install
 rm -f %{buildroot}%{_sbindir}/rsyncd
 install -d %{buildroot}%{_sysconfdir}/logrotate.d
 install -d %{buildroot}%{_sysconfdir}/init.d
@@ -112,67 +97,42 @@
 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
+install -D -m 0644 %{SOURCE9} %{buildroot}%{_unitdir}/[email protected]
+install -D -m 0644 %{SOURCE8} %{buildroot}%{_unitdir}/rsyncd.service
+install -D -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/rsyncd.socket
+ln -sf service %{buildroot}%{_sbindir}/rcrsyncd
 
 %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}/[email protected]
 %{_unitdir}/rsyncd.service
-%else
-%config %{_sysconfdir}/init.d/rsyncd
-%endif
+%{_unitdir}/rsyncd.socket
 %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
+%{_mandir}/man1/rsync.1%{ext_man}
+%{_mandir}/man5/rsyncd.conf.5%{ext_man}
 %doc COPYING NEWS README tech_report.tex
 
 %changelog



++++++ rsyncd.service ++++++
--- /var/tmp/diff_new_pack.tXxKyD/_old  2017-06-20 10:59:22.904122110 +0200
+++ /var/tmp/diff_new_pack.tXxKyD/_new  2017-06-20 10:59:22.904122110 +0200
@@ -1,6 +1,7 @@
 [Unit]
 Description=Start the rsync server daemon
 After=network.target
+ConditionPathExists=/etc/rsyncd.conf
 
 [Service]
 ExecStart=/usr/sbin/rsyncd --daemon --no-detach
@@ -9,4 +10,4 @@
 PrivateTmp=true
 
 [Install]
-WantedBy=multi-user.target
\ No newline at end of file
+WantedBy=multi-user.target

++++++ rsyncd.socket ++++++
[Unit]
Description=Rsync Server Socket
Conflicts=rsyncd.service

[Socket]
ListenStream=873
Accept=yes

[Install]
WantedBy=sockets.target 
++++++ [email protected] ++++++
[Unit]
Description=Start the rsync server daemon
After=network.target
ConditionPathExists=/etc/rsyncd.conf

[Service]
ExecStart=/usr/sbin/rsyncd --daemon --no-detach
IOSchedulingClass=idle
CPUSchedulingPolicy=batch
PrivateTmp=true
StandardInput=socket

Reply via email to