Commit 7b46736f authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Use whereis to find setcap install location and cut to trim the output

<Dan_C> DigitalMan: minor install issue noted today - during a fresh (Linux) install on a test box, the build failed because it was unable to execute the "sudo setcap ..." command.  This was on Slackware 15.0, where the setcap executable is located in /sbin , and that directory is not in the $PATH of a normal user, or even when a normal user uses the 'sudo' command.
parent 1ffe08c8
Pipeline #2887 passed with stage
in 11 minutes and 30 seconds
...@@ -133,7 +133,7 @@ endif ...@@ -133,7 +133,7 @@ endif
ifeq ($(os),linux) ifeq ($(os),linux)
.PHONY: setcap .PHONY: setcap
setcap: all setcap: all
sudo setcap 'cap_net_bind_service=+ep' $(EXEODIR)/sbbs sudo $(whereis -b setcap | cut -d" " -f2) 'cap_net_bind_service=+ep' $(EXEODIR)/sbbs
endif endif
.PHONY: sexyz .PHONY: sexyz
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment