Accepting request 928834 from network:dhcp
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/928834 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dhcp?expand=0&rev=127
This commit is contained in:
commit
64d9155a32
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 26 11:58:59 UTC 2021 - Reinhard Max <max@suse.com>
|
||||||
|
|
||||||
|
- Add a fallback definition for %make_build to fix build on SLE-12.
|
||||||
|
- Handle sysusers with a bcond to improve readability and simplify
|
||||||
|
removal once we don't have to support SLE-12 anymore.
|
||||||
|
- bsc#1192020: Drop the obsolete dependency on "group(nogroup)".
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 5 11:33:54 UTC 2021 - Reinhard Max <max@suse.com>
|
Thu Aug 5 11:33:54 UTC 2021 - Reinhard Max <max@suse.com>
|
||||||
|
|
||||||
|
30
dhcp.spec
30
dhcp.spec
@ -26,6 +26,11 @@
|
|||||||
%else
|
%else
|
||||||
%define sbindir /sbin
|
%define sbindir /sbin
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?suse_version} >= 1330
|
||||||
|
%bcond_without sysusers
|
||||||
|
%else
|
||||||
|
%bcond_with sysusers
|
||||||
|
%endif
|
||||||
Name: dhcp
|
Name: dhcp
|
||||||
Version: 4.4.2.P1
|
Version: 4.4.2.P1
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -95,8 +100,7 @@ BuildRequires: automake
|
|||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: openldap2-devel
|
BuildRequires: openldap2-devel
|
||||||
%if 0%{?suse_version} >= 1330
|
%if %{with sysusers}
|
||||||
BuildRequires: sysuser-shadow
|
|
||||||
BuildRequires: sysuser-tools
|
BuildRequires: sysuser-tools
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -105,13 +109,12 @@ Summary: ISC DHCP Server
|
|||||||
Group: Productivity/Networking/Boot/Servers
|
Group: Productivity/Networking/Boot/Servers
|
||||||
Requires: dhcp = %{version}
|
Requires: dhcp = %{version}
|
||||||
Requires(post): %fillup_prereq
|
Requires(post): %fillup_prereq
|
||||||
%systemd_ordering
|
%{?systemd_ordering}
|
||||||
%if 0%{?suse_version} < 1500
|
%if 0%{?suse_version} < 1500
|
||||||
Requires: net-tools
|
Requires: net-tools
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} >= 1330
|
%if %{with sysusers}
|
||||||
Requires(pre): group(nogroup)
|
%sysusers_requires
|
||||||
# %sysusers_requires
|
|
||||||
%else
|
%else
|
||||||
Requires(pre): shadow
|
Requires(pre): shadow
|
||||||
%endif
|
%endif
|
||||||
@ -134,7 +137,7 @@ Summary: ISC DHCP Relay Agent
|
|||||||
Group: Productivity/Networking/Boot/Servers
|
Group: Productivity/Networking/Boot/Servers
|
||||||
Requires: dhcp = %{version}
|
Requires: dhcp = %{version}
|
||||||
Requires(post): %fillup_prereq
|
Requires(post): %fillup_prereq
|
||||||
%systemd_ordering
|
%{?systemd_ordering}
|
||||||
%if 0%{?suse_version} < 1500
|
%if 0%{?suse_version} < 1500
|
||||||
Requires: net-tools
|
Requires: net-tools
|
||||||
%endif
|
%endif
|
||||||
@ -260,13 +263,17 @@ export CFLAGS LDFLAGS FFLAGS CXXFLAGS
|
|||||||
--with-srv6-lease-file=%{_localstatedir}/lib/dhcp6/db/dhcpd6.leases
|
--with-srv6-lease-file=%{_localstatedir}/lib/dhcp6/db/dhcpd6.leases
|
||||||
#
|
#
|
||||||
: building bind sources
|
: building bind sources
|
||||||
|
%if 0%{?!make_build:1}
|
||||||
|
# SLE-12 compatbility still needed as of October 2021
|
||||||
|
%define make_build %{__make} %{?_smp_mflags}
|
||||||
|
%endif
|
||||||
%make_build -j1 -C bind all
|
%make_build -j1 -C bind all
|
||||||
cat bind/configure.log
|
cat bind/configure.log
|
||||||
cat bind/build.log
|
cat bind/build.log
|
||||||
cat bind/install.log
|
cat bind/install.log
|
||||||
: building dhcp sources
|
: building dhcp sources
|
||||||
%make_build
|
%make_build
|
||||||
%if 0%{?suse_version} >= 1330
|
%if %{with sysusers}
|
||||||
%sysusers_generate_pre %{SOURCE47} dhcp-server
|
%sysusers_generate_pre %{SOURCE47} dhcp-server
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -399,14 +406,15 @@ mv %{buildroot}%{_includedir}/{dhcpctl,omapip} \
|
|||||||
%{buildroot}%{_includedir}/dhcp/
|
%{buildroot}%{_includedir}/dhcp/
|
||||||
mv %{buildroot}%{_libdir}/lib*.* \
|
mv %{buildroot}%{_libdir}/lib*.* \
|
||||||
%{buildroot}%{_libdir}/dhcp/
|
%{buildroot}%{_libdir}/dhcp/
|
||||||
%if 0%{?suse_version} >= 1330
|
%if %{with sysusers}
|
||||||
mkdir -p %{buildroot}%{_sysusersdir}
|
mkdir -p %{buildroot}%{_sysusersdir}
|
||||||
install -m 644 %{SOURCE47} %{buildroot}%{_sysusersdir}/
|
install -m 644 %{SOURCE47} %{buildroot}%{_sysusersdir}/
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1330
|
%if %{with sysusers}
|
||||||
%pre server -f dhcp-server.pre
|
%pre server -f dhcp-server.pre
|
||||||
%else
|
%else
|
||||||
|
|
||||||
%pre server
|
%pre server
|
||||||
getent passwd dhcpd >/dev/null || useradd -r -g nogroup -s /bin/false -c "DHCP server daemon" -d %{_localstatedir}/lib/dhcp dhcpd
|
getent passwd dhcpd >/dev/null || useradd -r -g nogroup -s /bin/false -c "DHCP server daemon" -d %{_localstatedir}/lib/dhcp dhcpd
|
||||||
%endif
|
%endif
|
||||||
@ -479,7 +487,7 @@ fi
|
|||||||
%{_sbindir}/rcdhcpd6
|
%{_sbindir}/rcdhcpd6
|
||||||
%{_unitdir}/dhcpd.service
|
%{_unitdir}/dhcpd.service
|
||||||
%{_unitdir}/dhcpd6.service
|
%{_unitdir}/dhcpd6.service
|
||||||
%if 0%{?suse_version} >= 1330
|
%if %{with sysusers}
|
||||||
%{_sysusersdir}/dhcp-user.conf
|
%{_sysusersdir}/dhcp-user.conf
|
||||||
%endif
|
%endif
|
||||||
%dir %{_libexecdir}/initscripts/legacy-actions/dhcpd
|
%dir %{_libexecdir}/initscripts/legacy-actions/dhcpd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user