ipp-usb: fix man page being installed into double PREFIX, use --replace-fail everywhere
(cherry picked from commit 4ed34a26057d00ebcdb0b482f7ca3971f8a519ba)
This commit is contained in:
@@ -21,11 +21,13 @@ buildGoModule rec {
|
|||||||
postPatch = ''
|
postPatch = ''
|
||||||
# rebuild with patched paths
|
# rebuild with patched paths
|
||||||
rm ipp-usb.8
|
rm ipp-usb.8
|
||||||
substituteInPlace Makefile --replace "install: all" "install: man"
|
substituteInPlace Makefile \
|
||||||
substituteInPlace systemd-udev/ipp-usb.service --replace "/sbin" "$out/bin"
|
--replace-fail "install: all" "install: man" \
|
||||||
for i in Makefile paths.go ipp-usb.8.md; do
|
--replace-fail "/usr/" "/"
|
||||||
substituteInPlace $i --replace "/usr" "$out"
|
substituteInPlace systemd-udev/ipp-usb.service --replace-fail "/sbin" "$out/bin"
|
||||||
substituteInPlace $i --replace "/var/ipp-usb" "/var/lib/ipp-usb"
|
for i in paths.go ipp-usb.8.md; do
|
||||||
|
substituteInPlace $i --replace-fail "/usr" "$out"
|
||||||
|
substituteInPlace $i --replace-fail "/var/ipp-usb" "/var/lib/ipp-usb"
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@@ -43,7 +45,7 @@ buildGoModule rec {
|
|||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# to accomodate the makefile
|
# to accommodate the makefile
|
||||||
cp $out/bin/ipp-usb .
|
cp $out/bin/ipp-usb .
|
||||||
make install DESTDIR=$out
|
make install DESTDIR=$out
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user