mirror of
https://abf.rosa.ru/djam/dhcp.git
synced 2025-02-23 13:32:48 +00:00
Revert moving dhclient&dhclient-script from /sbin to /usr/sbin.
They can be used while booting a minimal system without /usr. They do not depend from anything in /usr, except locales.
This commit is contained in:
parent
9b22fdad45
commit
316b003afd
2 changed files with 6 additions and 5 deletions
|
@ -4,7 +4,7 @@ Wants=network.target
|
||||||
Before=network.target
|
Before=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/sbin/dhclient -lf /var/lib/dhclient/dhclient.leases -pf /run/dhclient@%i/dhclient.pid -d %I
|
ExecStart=/sbin/dhclient -lf /var/lib/dhclient/dhclient.leases -pf /run/dhclient@%i/dhclient.pid -d %I
|
||||||
RuntimeDirectory=dhclient@%i
|
RuntimeDirectory=dhclient@%i
|
||||||
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#ProtectSystem=
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#ProtectSystem=
|
||||||
# /var is not read-only
|
# /var is not read-only
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
Name: dhcp
|
Name: dhcp
|
||||||
Epoch: 3
|
Epoch: 3
|
||||||
Version: %{major_version}%{patch_version}
|
Version: %{major_version}%{patch_version}
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: The ISC DHCP (Dynamic Host Configuration Protocol) server/relay agent/client
|
Summary: The ISC DHCP (Dynamic Host Configuration Protocol) server/relay agent/client
|
||||||
License: Distributable
|
License: Distributable
|
||||||
Group: System/Servers
|
Group: System/Servers
|
||||||
|
@ -195,7 +195,8 @@ make
|
||||||
|
|
||||||
install -m0644 %{SOURCE10} doc
|
install -m0644 %{SOURCE10} doc
|
||||||
install -m0644 %{SOURCE100} ROSA-NEWS
|
install -m0644 %{SOURCE100} ROSA-NEWS
|
||||||
install -m 755 client/scripts/linux %{buildroot}%{_sbindir}/dhclient-script
|
mv %{buildroot}%{_sbindir}/dhclient %{buildroot}/sbin/dhclient
|
||||||
|
install -m 755 client/scripts/linux %{buildroot}/sbin/dhclient-script
|
||||||
|
|
||||||
install -d %{buildroot}%{_unitdir}
|
install -d %{buildroot}%{_unitdir}
|
||||||
install -m 644 %{SOURCE12} %{buildroot}%{_unitdir}/dhcpd.service
|
install -m 644 %{SOURCE12} %{buildroot}%{_unitdir}/dhcpd.service
|
||||||
|
@ -349,10 +350,10 @@ EOF
|
||||||
|
|
||||||
%files client
|
%files client
|
||||||
%doc client/dhclient.conf.example
|
%doc client/dhclient.conf.example
|
||||||
%attr (0755,root,root) %{_sbindir}/dhclient-script
|
%attr (0755,root,root) /sbin/dhclient-script
|
||||||
%{_tmpfilesdir}/dhclient.conf
|
%{_tmpfilesdir}/dhclient.conf
|
||||||
%{_unitdir}/dhclient@.service
|
%{_unitdir}/dhclient@.service
|
||||||
%{_sbindir}/dhclient
|
/sbin/dhclient
|
||||||
%{_mandir}/man5/dhclient.conf.5*
|
%{_mandir}/man5/dhclient.conf.5*
|
||||||
%{_mandir}/man5/dhclient.leases.5*
|
%{_mandir}/man5/dhclient.leases.5*
|
||||||
%{_mandir}/man8/dhclient.8*
|
%{_mandir}/man8/dhclient.8*
|
||||||
|
|
Loading…
Add table
Reference in a new issue