Accepting request 459475 from network
1 OBS-URL: https://build.opensuse.org/request/show/459475 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bind?expand=0&rev=121
This commit is contained in:
commit
f36624c448
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Feb 18 17:24:58 UTC 2017 - kukuk@suse.com
|
||||||
|
|
||||||
|
- Don't require and call insserv if we use systemd
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 15 12:50:42 UTC 2017 - navin.kukreja@suse.com
|
Wed Feb 15 12:50:42 UTC 2017 - navin.kukreja@suse.com
|
||||||
|
|
||||||
|
39
bind.spec
39
bind.spec
@ -57,6 +57,8 @@ BuildRequires: openssl-devel
|
|||||||
BuildRequires: python-base
|
BuildRequires: python-base
|
||||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
|
%else
|
||||||
|
PreReq: %insserv_prereq
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
Provides: bind8
|
Provides: bind8
|
||||||
@ -66,7 +68,7 @@ Obsoletes: bind8 < %version
|
|||||||
Obsoletes: bind9 < %version
|
Obsoletes: bind9 < %version
|
||||||
Requires: %{name}-chrootenv
|
Requires: %{name}-chrootenv
|
||||||
Requires: %{name}-utils
|
Requires: %{name}-utils
|
||||||
PreReq: %fillup_prereq %insserv_prereq bind-utils /bin/grep /bin/sed /bin/mkdir /usr/bin/tee /bin/chmod /bin/chown /bin/mv /bin/cat /usr/bin/dirname /usr/bin/diff /usr/bin/old
|
PreReq: %fillup_prereq bind-utils /bin/grep /bin/sed /bin/mkdir /usr/bin/tee /bin/chmod /bin/chown /bin/mv /bin/cat /usr/bin/dirname /usr/bin/diff /usr/bin/old
|
||||||
Requires(pre): /usr/sbin/groupadd /usr/sbin/useradd /usr/sbin/usermod
|
Requires(pre): /usr/sbin/groupadd /usr/sbin/useradd /usr/sbin/usermod
|
||||||
Url: http://isc.org/sw/bind/
|
Url: http://isc.org/sw/bind/
|
||||||
|
|
||||||
@ -598,13 +600,16 @@ echo "NAMED_RUN_CHROOTED=\"${NAMED_RUN_CHROOTED}\"" >${TEMP_SYSCONFIG_FILE}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%stop_on_removal named
|
|
||||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230
|
||||||
%service_del_preun named.service
|
%service_del_preun named.service
|
||||||
|
%else
|
||||||
|
%stop_on_removal named
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
%if 0%{?suse_version} > 0 && 0%{?suse_version} <= 1230
|
||||||
%{fillup_and_insserv -nf named}
|
%{fillup_and_insserv -nf named}
|
||||||
|
%endif
|
||||||
%{fillup_only -nsa named named}
|
%{fillup_only -nsa named named}
|
||||||
if [ ! -f etc/rndc.key ]; then
|
if [ ! -f etc/rndc.key ]; then
|
||||||
usr/sbin/rndc-confgen -a -b 512 -r dev/urandom
|
usr/sbin/rndc-confgen -a -b 512 -r dev/urandom
|
||||||
@ -714,20 +719,22 @@ fi # End of 'Add include files to NAMED_CONF_INCLUDE_FILES'
|
|||||||
fi # End of 'Are we in update mode?'
|
fi # End of 'Are we in update mode?'
|
||||||
# Remove TEMP_SYSCONFIG_FILE in any case.
|
# Remove TEMP_SYSCONFIG_FILE in any case.
|
||||||
rm -f ${TEMP_SYSCONFIG_FILE}
|
rm -f ${TEMP_SYSCONFIG_FILE}
|
||||||
NAMED_ACTIVE_FILE="var/adm/named.was.active"
|
|
||||||
if [ -f ${NAMED_ACTIVE_FILE} ]; then
|
|
||||||
sbin/insserv named
|
|
||||||
test ! -s ${NAMED_ACTIVE_FILE} && rm -f ${NAMED_ACTIVE_FILE}
|
|
||||||
fi
|
|
||||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230
|
||||||
%service_add_post named.service
|
%service_add_post named.service
|
||||||
|
%else
|
||||||
|
NAMED_ACTIVE_FILE="var/adm/named.was.active"
|
||||||
|
if [ -f ${NAMED_ACTIVE_FILE} ]; then
|
||||||
|
sbin/insserv named
|
||||||
|
test ! -s ${NAMED_ACTIVE_FILE} && rm -f ${NAMED_ACTIVE_FILE}
|
||||||
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%restart_on_update named
|
|
||||||
%insserv_cleanup
|
|
||||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230
|
||||||
%service_del_postun named.service
|
%service_del_postun named.service
|
||||||
|
%else
|
||||||
|
%restart_on_update named
|
||||||
|
%insserv_cleanup
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post -n libbind9-140 -p /sbin/ldconfig
|
%post -n libbind9-140 -p /sbin/ldconfig
|
||||||
@ -777,24 +784,28 @@ fi
|
|||||||
if [ ! -s etc/lwresd.conf ]; then
|
if [ ! -s etc/lwresd.conf ]; then
|
||||||
rm -f etc/lwresd.conf
|
rm -f etc/lwresd.conf
|
||||||
fi
|
fi
|
||||||
if [ $1 -le 1 ]; then
|
|
||||||
%{fillup_and_insserv -fy lwresd}
|
|
||||||
fi;
|
|
||||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230
|
||||||
%service_add_post lwresd.service
|
%service_add_post lwresd.service
|
||||||
|
%else
|
||||||
|
if [ $1 -le 1 ]; then
|
||||||
|
%{fillup_and_insserv -fy lwresd}
|
||||||
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%preun lwresd
|
%preun lwresd
|
||||||
%stop_on_removal lwresd
|
%stop_on_removal lwresd
|
||||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230
|
||||||
%service_del_preun lwresd.service
|
%service_del_preun lwresd.service
|
||||||
|
%else
|
||||||
|
%stop_on_removal lwresd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%postun lwresd
|
%postun lwresd
|
||||||
%restart_on_update lwresd
|
|
||||||
%insserv_cleanup
|
|
||||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1230
|
||||||
%service_del_postun lwresd.service
|
%service_del_postun lwresd.service
|
||||||
|
%else
|
||||||
|
%restart_on_update lwresd
|
||||||
|
%insserv_cleanup
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post utils
|
%post utils
|
||||||
|
Loading…
Reference in New Issue
Block a user