Hello community,
here is the log from the commit of package pdnsd for openSUSE:Factory checked in at 2019-06-01 09:47:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pdnsd (Old)
and /work/SRC/openSUSE:Factory/.pdnsd.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pdnsd"
Sat Jun 1 09:47:39 2019 rev:6 rq:705881 version:1.2.9a
Changes:
--------
--- /work/SRC/openSUSE:Factory/pdnsd/pdnsd.changes 2017-03-20 17:09:09.293325994 +0100
+++ /work/SRC/openSUSE:Factory/.pdnsd.new.5148/pdnsd.changes 2019-06-01 09:47:40.787361567 +0200
@@ -1,0 +2,6 @@
+Tue May 28 10:04:52 UTC 2019 - Jan Engelhardt
+
+- Do not ignore errors from groupadd.
+- Convert sysvinit script to systemd service unit. [boo#1116030]
+
+-------------------------------------------------------------------
Old:
----
pdnsd
New:
----
pdnsd.service
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ pdnsd.spec ++++++
--- /var/tmp/diff_new_pack.9Tzq2k/_old 2019-06-01 09:47:41.411361354 +0200
+++ /var/tmp/diff_new_pack.9Tzq2k/_new 2019-06-01 09:47:41.415361352 +0200
@@ -1,7 +1,7 @@
#
# spec file for package pdnsd
#
-# Copyright (c) 2017 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,23 +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/
#
Name: pdnsd
Version: 1.2.9a
Release: 0
-Summary: A caching dns proxy for small networks or dialin accounts
-License: GPL-3.0+
+Summary: A caching DNS proxy for small networks or dialin accounts
+License: GPL-3.0-or-later
Group: Productivity/Networking/DNS/Servers
Url: http://members.home.nl/p.a.rombouts/pdnsd.html
Source0: http://members.home.nl/p.a.rombouts/pdnsd/releases/pdnsd-%{version}-par.tar.gz
-Source1: pdnsd
+Source1: pdnsd.service
Recommends: %{name}-doc
-PreReq: %insserv_prereq
+BuildRequires: systemd-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
+%{?systemd_ordering}
%description
pdnsd is a proxy DNS daemon with permanent (disk-)cache and the ability
@@ -64,32 +65,35 @@
make %{?_smp_mflags}
%install
-make DESTDIR="%{buildroot}" install
+%make_install
mkdir -p %{buildroot}%{_sysconfdir}/init.d
-mkdir -p %{buildroot}%{_sbindir}/
-install -c -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/init.d/
+mkdir -p %{buildroot}/%{_unitdir}
+cp -a %{SOURCE1} %{buildroot}/%{_unitdir}/
cp %{buildroot}%{_sysconfdir}/%{name}.conf.sample %{buildroot}%{_sysconfdir}/%{name}.conf
-ln -s /etc/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
+ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%pre
-/usr/sbin/groupadd -r pdns 2> /dev/null || :
+getent group pdns >/dev/null || /usr/sbin/groupadd -r pdns
+%service_add_pre pdnsd.service
+
+%post
+%service_add_post pdnsd.service
%preun
-%stop_on_removal pdnsd
+%service_del_preun pdnsd.service
%postun
-%insserv_cleanup
-%restart_on_update pdnsd
+%service_del_postun pdnsd.service
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/pdnsd.conf
-%attr(755,root,root) %{_sysconfdir}/init.d/pdnsd
%{_sysconfdir}/pdnsd.conf.sample
%{_sbindir}/*%{name}*
%{_mandir}/man*/%{name}*
%config(noreplace) %attr(-,pdns,pdns) %ghost %{_localstatedir}/cache/%{name}/%{name}.cache
%dir %{_localstatedir}/cache/%{name}
+%{_unitdir}/*.service
%files doc
%defattr(-,root,root)
++++++ pdnsd.service ++++++
[Unit]
Description=Caching DNS proxy
Documentation=man:pdnsd(8)
After=network.target
[Service]
Type=simple
ExecStart=/usr/sbin/pdnsd
[Install]
WantedBy=multi-user.target