mirror of
https://abf.rosa.ru/djam/dhcp.git
synced 2025-02-23 13:32:48 +00:00
Some spec clean up
This commit is contained in:
parent
9863cacf80
commit
4f36392da6
1 changed files with 11 additions and 6 deletions
17
dhcp.spec
17
dhcp.spec
|
@ -29,18 +29,24 @@ Source19: dhcrelay.tmpfiles
|
||||||
# sysusers.d(5) (systemd-sysusers)
|
# sysusers.d(5) (systemd-sysusers)
|
||||||
Source20: isc-dhcpd.conf
|
Source20: isc-dhcpd.conf
|
||||||
Source21: isc-dhcp-client.conf
|
Source21: isc-dhcp-client.conf
|
||||||
|
# Per-interface dhclient service from Arch Linux (modified)
|
||||||
Source22: dhclient@.service
|
Source22: dhclient@.service
|
||||||
Source100: ROSA-NEWS
|
Source100: ROSA-NEWS
|
||||||
|
|
||||||
Patch17: dhcp-4.2.0-add_timeout_when_NULL.patch
|
Patch17: dhcp-4.2.0-add_timeout_when_NULL.patch
|
||||||
Patch18: dhcp-4.3.0-64_bit_lease_parse.patch
|
Patch18: dhcp-4.3.0-64_bit_lease_parse.patch
|
||||||
Patch19: Arch-0002-iproute2.patch
|
Patch19: Arch-0002-iproute2.patch
|
||||||
BuildRequires: bind-devel
|
|
||||||
|
# Starting from dhcp 4.x built in Bind libs are used
|
||||||
|
#BuildRequires: bind-devel
|
||||||
BuildRequires: groff-base
|
BuildRequires: groff-base
|
||||||
BuildRequires: groff-for-man
|
BuildRequires: groff-for-man
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: openldap-devel
|
BuildRequires: openldap-devel
|
||||||
BuildRequires: systemd-units
|
BuildRequires: systemd-units
|
||||||
|
# --with-ldap-gssapi
|
||||||
|
BuildRequires: pkconfig(krb5-gssapi)
|
||||||
|
BuildRequires: pkgconfig(libcap-ng)
|
||||||
Requires(post,preun): rpm-helper
|
Requires(post,preun): rpm-helper
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
@ -163,9 +169,6 @@ pushd bind ; tar -xvf bind.tar.gz >/dev/null ; popd
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%serverbuild_hardened
|
%serverbuild_hardened
|
||||||
##/bin/cp configure.ac+lt configure.ac
|
|
||||||
#%autoreconf
|
|
||||||
##autoreconf -ifv
|
|
||||||
%configure2_5x \
|
%configure2_5x \
|
||||||
--with-srv-lease-file=%{var_dhcpd}/dhcpd.leases \
|
--with-srv-lease-file=%{var_dhcpd}/dhcpd.leases \
|
||||||
--with-srv6-lease-file=%{var_dhcpd}/dhcpd6.leases \
|
--with-srv6-lease-file=%{var_dhcpd}/dhcpd6.leases \
|
||||||
|
@ -178,7 +181,9 @@ pushd bind ; tar -xvf bind.tar.gz >/dev/null ; popd
|
||||||
--with-relay-pid-file=/run/dhcrelay/dhcrelay.pid \
|
--with-relay-pid-file=/run/dhcrelay/dhcrelay.pid \
|
||||||
--enable-paranoia \
|
--enable-paranoia \
|
||||||
--enable-early-chroot \
|
--enable-early-chroot \
|
||||||
--with-ldapcrypto
|
--with-ldap \
|
||||||
|
--with-ldapcrypto \
|
||||||
|
--with-ldap-gssapi
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
@ -306,11 +311,11 @@ EOF
|
||||||
%_preun_service dhcrelay
|
%_preun_service dhcrelay
|
||||||
|
|
||||||
%post client
|
%post client
|
||||||
#touch %{var_dhclient}/dhclient.leases
|
|
||||||
# migrate from root:root as it was before ROSA package v4.4.1
|
# migrate from root:root as it was before ROSA package v4.4.1
|
||||||
# create this directory if it does not esist and then chmod it to allow dhcpd to work properly
|
# create this directory if it does not esist and then chmod it to allow dhcpd to work properly
|
||||||
%sysusers_create isc-dhcp-client.conf
|
%sysusers_create isc-dhcp-client.conf
|
||||||
[ ! -d %{var_dhclient}/ ] && mkdir -p %{var_dhclient}/
|
[ ! -d %{var_dhclient}/ ] && mkdir -p %{var_dhclient}/
|
||||||
|
touch %{var_dhclient}/dhclient.leases || true
|
||||||
[ -d %{var_dhclient} ] && chown -R isc-dhcp-client:isc-dhcp-client %{var_dhclient}/
|
[ -d %{var_dhclient} ] && chown -R isc-dhcp-client:isc-dhcp-client %{var_dhclient}/
|
||||||
%tmpfiles_create dhclient.conf
|
%tmpfiles_create dhclient.conf
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue