Hello community,

here is the log from the commit of package git for openSUSE:Factory checked in 
at 2017-12-03 10:06:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/git (Old)
 and      /work/SRC/openSUSE:Factory/.git.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "git"

Sun Dec  3 10:06:55 2017 rev:210 rq:547590 version:2.15.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/git/git.changes  2017-11-30 12:36:24.913500686 
+0100
+++ /work/SRC/openSUSE:Factory/.git.new/git.changes     2017-12-03 
10:06:58.249060345 +0100
@@ -1,0 +2,17 @@
+Fri Dec  1 01:48:24 UTC 2017 - [email protected]
+
+- git 2.15.1:
+  * fix "auto" column output 
+  * fixes to moved lines diffing
+  * documentation updates
+  * fix use of repositories immediately under the root directory
+  * improve usage of libsecret
+  * fixes to various error conditions in git commands
+
+-------------------------------------------------------------------
+Tue Nov 28 15:14:59 CET 2017 - [email protected]
+
+- Rewrite from sysv init to systemd unit file for git-daemon
+  (bsc#1069803)
+
+-------------------------------------------------------------------

Old:
----
  git-2.15.0.tar.sign
  git-2.15.0.tar.xz
  git-daemon.init

New:
----
  git-2.15.1.tar.sign
  git-2.15.1.tar.xz
  git-daemon.service

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

Other differences:
------------------
++++++ git.spec ++++++
--- /var/tmp/diff_new_pack.XBjTZe/_old  2017-12-03 10:06:59.197025880 +0100
+++ /var/tmp/diff_new_pack.XBjTZe/_new  2017-12-03 10:06:59.201025734 +0100
@@ -33,7 +33,7 @@
 %bcond_without docs
 
 Name:           git
-Version:        2.15.0
+Version:        2.15.1
 Release:        0
 Summary:        Fast, scalable, distributed revision control system
 License:        GPL-2.0
@@ -44,7 +44,7 @@
 Source7:        
https://www.kernel.org/pub/software/scm/git/%{name}-%{version}.tar.sign
 Source1:        apache2-gitweb.conf
 Source2:        sysconfig.git-daemon
-Source3:        git-daemon.init
+Source3:        git-daemon.service
 Source4:        git.xinetd
 Source5:        usr.share.git-web.gitweb.cgi
 Source6:        susefirewall-git-daemon
@@ -83,10 +83,12 @@
 BuildRequires:  perl-Error
 BuildRequires:  python3
 BuildRequires:  sgml-skel
+BuildRequires:  systemd-rpm-macros
 BuildRequires:  tcsh
 BuildRequires:  update-desktop-files
 BuildRequires:  xmlto
 BuildRequires:  xz
+%{?systemd_requires}
 Requires:       git-core = %{version}
 Recommends:     git-svn git-cvs git-email gitk git-gui
 Suggests:       git-daemon git-web
@@ -210,7 +212,7 @@
 Summary:        Simple Server for Git Repositories
 Group:          Development/Tools/Version Control
 Requires:       git-core = %{version}
-PreReq:         /usr/sbin/useradd %fillup_prereq %insserv_prereq
+PreReq:         /usr/sbin/useradd %fillup_prereq
 
 %description daemon
 A really simple TCP git daemon. In the default configuration it allows
@@ -311,10 +313,10 @@
 install -d %{buildroot}/etc/apache2/conf.d
 install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/apache2/conf.d/gitweb.conf
 ### git-daemon
-install -d -m 755 $RPM_BUILD_ROOT/etc/init.d
-install -m 755 %{SOURCE3} $RPM_BUILD_ROOT/etc/init.d/git-daemon
+install -d -m 755 $RPM_BUILD_ROOT%{_unitdir}
+install -m 644 %{SOURCE3} $RPM_BUILD_ROOT/%{_unitdir}/git-daemon.service
 install -d -m 755 $RPM_BUILD_ROOT%{_sbindir}
-ln -s ../../etc/init.d/git-daemon $RPM_BUILD_ROOT%{_sbindir}/rcgit-daemon
+ln -s /usr/sbin/service $RPM_BUILD_ROOT%{_sbindir}/rcgit-daemon
 install -d -m 755 $RPM_BUILD_ROOT%{_fillupdir}
 install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_fillupdir}/sysconfig.git-daemon
 install -d -m 755 $RPM_BUILD_ROOT/srv/git
@@ -393,16 +395,17 @@
 if ! /usr/bin/getent passwd git-daemon >/dev/null; then
   /usr/sbin/useradd -r -d /var/lib/empty -s /bin/false -c "git daemon" -g 
nogroup git-daemon || :
 fi
+%service_add_pre git-daemon.service
 
 %post daemon
-%{fillup_and_insserv -n git-daemon}
-
-%postun daemon
-%{restart_on_update git-daemon}
-%{insserv_cleanup}
+%{fillup_only -n git-daemon}
+%service_add_post git-daemon.service
 
 %preun daemon
-%{stop_on_removal git-daemon}
+%service_del_preun git-daemon.service
+
+%postun daemon
+%service_del_postun git-daemon.service
 
 %files
 %defattr(-,root,root)
@@ -451,7 +454,7 @@
 %files daemon
 %defattr(-,root,root)
 %{gitexecdir}/git-daemon
-/etc/init.d/git-daemon
+%{_unitdir}/git-daemon.service
 %{_sbindir}/rcgit-daemon
 %dir /srv/git
 %{_fillupdir}/sysconfig.git-daemon

++++++ git-2.15.0.tar.xz -> git-2.15.1.tar.xz ++++++
++++ 2778 lines of diff (skipped)

++++++ git-daemon.service ++++++
[Unit]
Description=Start Git Daemon

[Service]
EnvironmentFile=-/etc/sysconfig/git-daemon
ExecStart=/bin/sh -c 'exec git daemon --reuseaddr 
--base-path=${GIT_DAEMON_BASE_PATH:-/srv/git/} 
--user=${GIT_DAEMON_USER:-git-daemon} --group=${GIT_DAEMON_GROUP:-nogroup} 
$GIT_DAEMON_ARGS'

Restart=always
RestartSec=500ms

StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=git-daemon

[Install]
WantedBy=multi-user.target


Reply via email to