Hello community,
here is the log from the commit of package libnss_usrfiles for openSUSE:Factory
checked in at 2019-02-15 10:02:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libnss_usrfiles (Old)
and /work/SRC/openSUSE:Factory/.libnss_usrfiles.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libnss_usrfiles"
Fri Feb 15 10:02:45 2019 rev:4 rq:676055 version:2.27
Changes:
--------
--- /work/SRC/openSUSE:Factory/libnss_usrfiles/libnss_usrfiles.changes
2018-03-19 23:40:09.149513029 +0100
+++
/work/SRC/openSUSE:Factory/.libnss_usrfiles.new.28833/libnss_usrfiles.changes
2019-02-15 10:02:46.647618489 +0100
@@ -1,0 +2,9 @@
+Sat Feb 2 09:48:41 UTC 2019 - [email protected]
+
+- Update to version 2.27
+ - Sync with glibc 2.27 source code
+ - Add support for alias, ethers, protocols, services and rpc
+- Add usrfiles to /etc/nsswitch.conf only on first installation,
+ remove it during de-installation.
+
+-------------------------------------------------------------------
Old:
----
libnss_usrfiles-2.25.tar.bz2
New:
----
libnss_usrfiles-2.27.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libnss_usrfiles.spec ++++++
--- /var/tmp/diff_new_pack.FXwDWz/_old 2019-02-15 10:02:47.663618161 +0100
+++ /var/tmp/diff_new_pack.FXwDWz/_new 2019-02-15 10:02:47.667618160 +0100
@@ -1,7 +1,7 @@
#
# spec file for package libnss_usrfiles
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -12,26 +12,24 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
-# We need some private NSS functions
-%define __filter_GLIBC_PRIVATE 1
Name: libnss_usrfiles
-Version: 2.25
+Version: 2.27
Release: 0
Summary: NSS usrfiles plugin for glibc
License: LGPL-2.1-only
Group: System/Base
-URL: http://github.com/thkukuk/libnss_usrfiles
-Source: %{name}-%{version}.tar.bz2
+URL: http://github.com/kubic-project/libnss_usrfiles
+Source: %{name}-%{version}.tar.xz
Source1: baselibs.conf
BuildRequires: autoconf
BuildRequires: libtool
%description
-The NSS usrfiles plugin additionally looks in %{_prefix}%{_sysconfdir} for
passwd and
+The NSS usrfiles plugin additionally looks in /usr/etc for passwd and
group data.
%package -n libnss_usrfiles2
@@ -41,6 +39,8 @@
Requires(post): coreutils
Requires(post): glibc
Requires(post): sed
+Requires(postun): glibc
+Requires(postun): sed
%description -n libnss_usrfiles2
The NSS usrfiles plugin looks additional in %{_prefix}%{_sysconfdir} for
passwd and
@@ -60,10 +60,22 @@
%post -n libnss_usrfiles2
/sbin/ldconfig
-cp -a %{_sysconfdir}/nsswitch.conf %{_sysconfdir}/nsswitch.conf.nss_usrfiles
-sed -i -e 's|^passwd: compat$|passwd: files usrfiles|g' -e 's|^group:
compat$|group: files usrfiles|g' %{_sysconfdir}/nsswitch.conf
+if [ "$1" = 1 ] ; then
+ cp -a %{_sysconfdir}/nsswitch.conf
%{_sysconfdir}/nsswitch.conf.nss_usrfiles
+ sed -i -e 's|^passwd: compat$|passwd: files usrfiles|g' -e 's|^group:
compat$|group: files usrfiles|g' %{_sysconfdir}/nsswitch.conf
+ for service in aliases ethers protocols rpc services ; do
+ sed -i -e "s|\(^${service}:[[:space:]]\+files\)|\1 usrfiles|g"
%{_sysconfdir}/nsswitch.conf
+ done
+fi
-%postun -n libnss_usrfiles2 -p /sbin/ldconfig
+%postun -n libnss_usrfiles2
+/sbin/ldconfig
+if [ "$1" = 0 ] ; then
+ sed -i -e 's|^passwd: files usrfiles$|passwd: compat|g' -e 's|^group:
files usrfiles$|group: compat|g' %{_sysconfdir}/nsswitch.conf
+ for service in aliases ethers protocols rpc services ; do
+ sed -i -e "s|usrfiles||g" %{_sysconfdir}/nsswitch.conf
+ done
+fi
%files -n libnss_usrfiles2
%license COPYING