move pid backward to /run and fix rpm-helper requires

This commit is contained in:
akdengi 2013-08-01 00:40:17 +04:00
parent 37aa612021
commit 99c59873d0

View file

@ -41,8 +41,8 @@ Patch17: dhcp-4.2.0-add_timeout_when_NULL.patch
Patch18: dhcp-4.2.4-64_bit_lease_parse.patch
BuildRequires: groff-for-man
BuildRequires: openldap-devel
Requires(post): rpm-helper >= 0.24.8-1
Requires(preun): rpm-helper >= 0.24.8-1
Requires(post): rpm-helper
Requires(preun): rpm-helper
%description
DHCP (Dynamic Host Configuration Protocol) is a protocol which allows
@ -93,8 +93,8 @@ Summary: The ISC DHCP (Dynamic Host Configuration Protocol) server
Group: System/Servers
Requires: dhcp-common = %{epoch}:%{version}-%{release}
Requires(post): systemd
Requires(post): rpm-helper >= 0.24.8-1
Requires(preun): rpm-helper >= 0.24.8-1
Requires(post): rpm-helper
Requires(preun): rpm-helper
%description server
DHCP server is the Internet Software Consortium (ISC) DHCP server for various
@ -124,8 +124,8 @@ Summary: The ISC DHCP (Dynamic Host Configuration Protocol) relay
Group: System/Servers
Requires: dhcp-common = %{epoch}:%{version}-%{release}
Requires(post): systemd
Requires(post): rpm-helper >= 0.24.8-1
Requires(preun): rpm-helper >= 0.24.8-1
Requires(post): rpm-helper
Requires(preun): rpm-helper
%description relay
DHCP relay is the Internet Software Consortium (ISC) relay agent for DHCP
@ -176,11 +176,11 @@ install -m0644 %{SOURCE10} doc
--with-srv6-lease-file=%{_var}/lib/dhcpd/dhcpd6.leases \
--with-cli-lease-file=%{_var}/lib/dhclient/dhclient.leases \
--with-cli6-lease-file=%{_var}/lib/dhclient/dhclient6.leases \
--with-srv-pid-file=%{_var}/run/dhcpd/dhcpd.pid \
--with-srv6-pid-file=%{_var}/run/dhcpd/dhcpd6.pid \
--with-cli-pid-file=%{_var}/run/dhclient/dhclient.pid \
--with-cli6-pid-file=%{_var}/run/dhclient/dhclient6.pid \
--with-relay-pid-file=%{_var}/run/dhcrelay/dhcrelay.pid \
--with-srv-pid-file=/run/dhcpd/dhcpd.pid \
--with-srv6-pid-file=/run/dhcpd/dhcpd6.pid \
--with-cli-pid-file=/run/dhclient/dhclient.pid \
--with-cli6-pid-file=/run/dhclient/dhclient6.pid \
--with-relay-pid-file=/run/dhcrelay/dhcrelay.pid \
--disable-static
%make