Hello community, here is the log from the commit of package ypbind for openSUSE:Factory checked in at 2017-11-14 14:06:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ypbind (Old) and /work/SRC/openSUSE:Factory/.ypbind.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ypbind" Tue Nov 14 14:06:57 2017 rev:49 rq:539862 version:2.4 Changes: -------- --- /work/SRC/openSUSE:Factory/ypbind/ypbind.changes 2017-10-13 14:07:21.695250991 +0200 +++ /work/SRC/openSUSE:Factory/.ypbind.new/ypbind.changes 2017-11-14 14:07:09.889628735 +0100 @@ -1,0 +2,11 @@ +Wed Nov 8 13:49:37 CET 2017 - [email protected] + +- Fix cleanup of /var/yp/binding dirctory on de-installation + +------------------------------------------------------------------- +Wed Nov 8 09:50:42 CET 2017 - [email protected] + +- Use tmpfiles.d for /var/yp hierachy in preparation of read-only + root filesystem and transactional-updates + +------------------------------------------------------------------- New: ---- ypbind.conf ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ypbind.spec ++++++ --- /var/tmp/diff_new_pack.xKpYL0/_old 2017-11-14 14:07:11.561567762 +0100 +++ /var/tmp/diff_new_pack.xKpYL0/_new 2017-11-14 14:07:11.561567762 +0100 @@ -22,26 +22,22 @@ Summary: NIS client daemon License: GPL-2.0 Group: Productivity/Networking/NIS -Url: http://www.linux-nis.org/nis/ypbind-mt +URL: http://www.linux-nis.org/nis/ypbind-mt Source: http://www.linux-nis.org/download/%{name}-mt/%{name}-mt-%{version}.tar.bz2 Source1: SuSEfirewall.ypbind Source2: ypbind.service Source3: ypbind-systemd-pre Source4: ypbind-systemd-post Source5: ypbind-systemd-exec -BuildRequires: pkgconfig -Requires: rpcbind -Requires: yp-tools -Requires: libnss_nis2 -Requires(pre): %fillup_prereq -%if 0%{?suse_version} >= 1310 +Source6: ypbind.conf +BuildRequires: pkg-config BuildRequires: pkgconfig(libnsl) >= 1.0.1 BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(libtirpc) >= 1.0.1 -%else -BuildRequires: libnsl-devel >= 1.0.1 -BuildRequires: libtirpc-devel >= 1.0.1 -%endif +Requires: libnss_nis2 +Requires: rpcbind +Requires: yp-tools +Requires(post): %fillup_prereq %description This package provides the ypbind daemon. The ypbind daemon binds NIS @@ -61,7 +57,6 @@ %install mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates -mkdir -p %{buildroot}%{_localstatedir}/yp/binding %make_install # Install SuSEfirewall2 service file install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ypbind @@ -79,6 +74,8 @@ install -m 755 %{SOURCE5} %{buildroot}%{_libexecdir}/ypbind/ypbind-systemd-exec # create symlink for rcypbind ln -s /sbin/service %{buildroot}%{_sbindir}/rcypbind +mkdir -p %{buildroot}%{_prefix}/lib/tmpfiles.d +install -m 644 %{SOURCE6} %{buildroot}%{_prefix}/lib/tmpfiles.d/ %pre %service_add_pre ypbind.service @@ -86,18 +83,20 @@ %post %{fillup_only -n ypbind} %service_add_post ypbind.service +if [ -z ${TRANSACTIONAL_UPDATE} ]; then + %tmpfiles_create ypbind.conf +fi %preun %service_del_preun ypbind.service -if [ "$1" = "0" ]; then - test -d %{_localstatedir}/yp/binding && rm -f %{_localstatedir}/yp/binding/* -fi %postun %service_del_postun ypbind.service +if [ "$1" = "0" ]; then + test -d %{_localstatedir}/yp/binding && rm -rf %{_localstatedir}/yp/binding ||: +fi %files -f ypbind-mt.lang -%defattr(-,root,root) %doc NEWS README COPYING %ghost %config(noreplace) %{_sysconfdir}/yp.conf %config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ypbind @@ -106,14 +105,9 @@ %{_mandir}/man8/ypbind.8%{ext_man} %{_sbindir}/ypbind %{_sbindir}/rcypbind -%dir %{_localstatedir}/yp -%dir %{_localstatedir}/yp/binding -%if 0%{?suse_version} >= 1310 %{_unitdir}/ypbind.service %dir %{_libexecdir}/ypbind %{_libexecdir}/ypbind/* -%else -%config %{_initddir}/ypbind -%endif +%{_prefix}/lib/tmpfiles.d/ypbind.conf %changelog ++++++ ypbind.conf ++++++ d /var/yp 0755 - - - d /var/yp/binding 0755 - - -
