Improved sed command

This commit is contained in:
Mikhail Novosyolov 2018-10-10 01:27:24 +03:00
parent 6fb0cd0559
commit 9b22fdad45

View file

@ -167,8 +167,8 @@ pushd bind ; tar -xvf bind.tar.gz >/dev/null ; popd
%patch18 -p1 -b .64-bit_lease_parse
# change ipconfig to modern ip (from Arch)
%patch19 -p1
# change hardcoded path /sbin/dhclient-script to /usr/sbin/dhclient-script
sed -i 'includes/dhcpd.h' -e 's,/sbin/dhclient-script,/usr/sbin/dhclient-script,g' || true
# change hardcoded paths from /sbin/dhc* to /usr/sbin/dhc*, if there are any
sed -i 'includes/dhcpd.h' -e 's,\"/sbin/dhc,\"/usr/sbin/dhc,g' || true
%build
%serverbuild_hardened