Hello community,

here is the log from the commit of package finger for openSUSE:Factory checked 
in at 2017-06-21 13:51:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/finger (Old)
 and      /work/SRC/openSUSE:Factory/.finger.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "finger"

Wed Jun 21 13:51:15 2017 rev:22 rq:504580 version:1.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/finger/finger.changes    2011-09-23 
01:57:47.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.finger.new/finger.changes       2017-06-21 
13:51:16.325470704 +0200
@@ -1,0 +2,6 @@
+Thu Jun 15 14:10:30 UTC 2017 - tchva...@suse.com
+
+- Switch from xinetd service to systemd socket activated one
+- Cleanup a bit with spec-cleaner
+
+-------------------------------------------------------------------

Old:
----
  finger.xinetd

New:
----
  finger.socket
  finger@.service

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

Other differences:
------------------
++++++ finger.spec ++++++
--- /var/tmp/diff_new_pack.RznhtO/_old  2017-06-21 13:51:18.485166056 +0200
+++ /var/tmp/diff_new_pack.RznhtO/_new  2017-06-21 13:51:18.489165492 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package finger (Version 1.3)
+# spec file for package finger
 #
-# Copyright (c) 2010 SUSE LINUX Products 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
@@ -15,32 +15,33 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 Name:           finger
-License:        BSD-3-Clause
-Group:          Productivity/Networking/Other
-Requires:       netcfg
 Version:        1.3
-Release:        150
+Release:        0
 Summary:        Show User Information (Client)
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-Source:         finger-bsd-%version.tar.bz2
-Source1:        finger.xinetd
+License:        BSD-3-Clause
+Group:          Productivity/Networking/Other
+Source:         finger-bsd-%{version}.tar.bz2
 Source2:        finger.firewall
+Source3:        finger.socket
+Source4:        finger@.service
 Patch1:         finger-utf8_segfault.patch
 Patch2:         finger-memory-leak.patch
+Requires:       netcfg
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
 Finger is a utility that allows users to see information about system
 users (login name, home directory, name, and more) on local and remote
 systems.
 
-
-
 %package server
-License:        BSD-3-Clause
 Summary:        A Server for Showing User Information
 Group:          Productivity/Networking/Other
 Requires:       netcfg
+%{?systemd_requires}
+
 %description server
 The finger daemon implements a simple protocol based on RFC1196 that
 provides an interface to the Name and Finger programs at several
@@ -48,44 +49,56 @@
 human-oriented status report on either the system at the moment or a
 particular person.
 
-
-
 %prep
-%setup -q -n finger-bsd-%version
+%setup -q -n finger-bsd-%{version}
 %patch1
 %patch2 -p1
 
 %build
-export CFLAGS="$RPM_OPT_FLAGS -fpie" LDFLAGS="-pie"
+export CFLAGS="%{optflags} -fpie" LDFLAGS="-pie"
 %configure
-make
+make %{?_smp_mflags}
 
 %install
-install -d -m 755 $RPM_BUILD_ROOT/etc/xinetd.d
-install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
-install -d -m 755 $RPM_BUILD_ROOT%{_sbindir}
-install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
-install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man3
-install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man5
-install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man8
-make install DESTDIR=$RPM_BUILD_ROOT INSTALL_PROGRAM="install -m 755"
-install -m 644 %{S:1} $RPM_BUILD_ROOT/etc/xinetd.d/finger
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/
-install -m 644 %{S:2} 
$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}-server
+install -d -m 755 %{buildroot}%{_bindir}
+install -d -m 755 %{buildroot}%{_sbindir}
+install -d -m 755 %{buildroot}%{_mandir}/man1
+install -d -m 755 %{buildroot}%{_mandir}/man3
+install -d -m 755 %{buildroot}%{_mandir}/man5
+install -d -m 755 %{buildroot}%{_mandir}/man8
+make install DESTDIR=%{buildroot} INSTALL_PROGRAM="install -m 755"
+install -d %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/
+install -m 644 %{SOURCE2} 
%{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}-server
+
+install -D -m 0644 %{SOURCE3} %{buildroot}/%{_unitdir}/finger.socket
+install -D -m 0644 %{SOURCE4} %{buildroot}/%{_unitdir}/finger@.service
 %find_lang finger-bsd
 
+%pre server
+%service_add_pre finger.socket
+
+%post server
+%service_add_post finger.socket
+
+%preun server
+%service_del_preun finger.socket
+
+%postun server
+%service_del_postun finger.socket
+
 %files
 %defattr(-,root,root)
 %doc AUTHORS COPYING NEWS README
 %{_bindir}/finger
-%doc %{_mandir}/man1/finger.1.gz
+%{_mandir}/man1/finger.1%{ext_man}
 
 %files server -f finger-bsd.lang
 %defattr(-,root,root)
 %doc AUTHORS COPYING NEWS README
-%doc %{_mandir}/man8/fingerd.8.gz
-%doc %{_mandir}/man8/in.fingerd.8.gz
-%config(noreplace) /etc/xinetd.d/finger
+%{_unitdir}/finger.socket
+%{_unitdir}/finger@.service
+%{_mandir}/man8/fingerd.8%{ext_man}
+%{_mandir}/man8/in.fingerd.8%{ext_man}
 %config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}-server
 %{_sbindir}/in.fingerd
 

++++++ finger.socket ++++++
[Unit]
Description=Finger Socket for Per-Connection Servers

[Socket]
ListenStream=79
Accept=yes

[Install]
WantedBy=sockets.target
++++++ finger@.service ++++++
[Unit]
Description=Finger Per-Connection Server

[Service]
User=nobody
ExecStart=/usr/sbin/in.fingerd
StandardInput=socket

Reply via email to