Hello community, here is the log from the commit of package bind for openSUSE:Factory checked in at 2017-03-31 15:04:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/bind (Old) and /work/SRC/openSUSE:Factory/.bind.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "bind" Fri Mar 31 15:04:55 2017 rev:122 rq:482314 version:unknown Changes: -------- --- /work/SRC/openSUSE:Factory/bind/bind.changes 2017-02-25 00:48:57.494647786 +0100 +++ /work/SRC/openSUSE:Factory/.bind.new/bind.changes 2017-03-31 15:04:58.174707912 +0200 @@ -1,0 +2,6 @@ +Mon Mar 20 15:02:16 CET 2017 - kukuk@suse.de + +- Add with_systemd define with default off, since we still use init + scripts and no systemd units. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bind.spec ++++++ --- /var/tmp/diff_new_pack.c4vCxV/_old 2017-03-31 15:05:00.866327394 +0200 +++ /var/tmp/diff_new_pack.c4vCxV/_new 2017-03-31 15:05:00.870326829 +0200 @@ -21,6 +21,7 @@ %define pkg_vers 9.10.4-P5 %define rpm_vers 9.10.4P5 %define idn_vers 1.0 +%define with_systemd 0 Summary: Domain Name System (DNS) Server (named) License: ISC Group: Productivity/Networking/DNS/Servers @@ -55,7 +56,7 @@ BuildRequires: openssl BuildRequires: openssl-devel BuildRequires: python-base -%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230 +%if %{with_systemd} BuildRequires: systemd-rpm-macros %else PreReq: %insserv_prereq @@ -339,6 +340,9 @@ Requires: %{name}-chrootenv Provides: dns_daemon Requires(pre): /usr/sbin/groupadd /usr/sbin/useradd +%if !%{with_systemd} +PreReq: %insserv_prereq +%endif %if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230 PreReq: sysvinit(network) sysvinit(syslog) %endif @@ -595,19 +599,19 @@ test -e ${TEMP_SYSCONFIG_FILE} && \ old ${TEMP_SYSCONFIG_FILE} echo "NAMED_RUN_CHROOTED=\"${NAMED_RUN_CHROOTED}\"" >${TEMP_SYSCONFIG_FILE} -%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230 +%if %{with_systemd} %service_add_pre named.service %endif %preun -%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230 +%if %{with_systemd} %service_del_preun named.service %else %stop_on_removal named %endif %post -%if 0%{?suse_version} > 0 && 0%{?suse_version} <= 1230 +%if !%{with_systemd} %{fillup_and_insserv -nf named} %endif %{fillup_only -nsa named named} @@ -719,7 +723,7 @@ fi # End of 'Are we in update mode?' # Remove TEMP_SYSCONFIG_FILE in any case. rm -f ${TEMP_SYSCONFIG_FILE} -%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230 +%if %{with_systemd} %service_add_post named.service %else NAMED_ACTIVE_FILE="var/adm/named.was.active" @@ -730,7 +734,7 @@ %endif %postun -%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230 +%if %{with_systemd} %service_del_postun named.service %else %restart_on_update named @@ -769,7 +773,7 @@ %pre lwresd %{GROUPADD_NAMED} %{USERADD_NAMED} -%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230 +%if %{with_systemd} %service_add_pre lwresd.service %endif @@ -784,7 +788,7 @@ if [ ! -s etc/lwresd.conf ]; then rm -f etc/lwresd.conf fi -%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230 +%if %{with_systemd} %service_add_post lwresd.service %else if [ $1 -le 1 ]; then @@ -794,14 +798,14 @@ %preun lwresd %stop_on_removal lwresd -%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230 +%if %{with_systemd} %service_del_preun lwresd.service %else %stop_on_removal lwresd %endif %postun lwresd -%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230 +%if %{with_systemd} %service_del_postun lwresd.service %else %restart_on_update lwresd