Commit 2869cfb8 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Make the default SETCAP value to be /sbin/setcap

<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.

Also include SETCAP in the set of documented make variables.
parent e530a12c
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
# SYMLINK = Don't copy binaries, rather create symlinks in $(SBBSDIR)/exec # SYMLINK = Don't copy binaries, rather create symlinks in $(SBBSDIR)/exec
# SBBSDIR = Directory to do install to # SBBSDIR = Directory to do install to
# REPODIR = Directory where source files are cloned # REPODIR = Directory where source files are cloned
# SETCAP = First portion of set file capabilities (setcap) command-line (e.g. /sbin/setcap)
# NOCAP = Set to defeat sbbs3 bind-capabilities (setcap) build target on Linux # NOCAP = Set to defeat sbbs3 bind-capabilities (setcap) build target on Linux
# bcc = Set to use Borland compiler # bcc = Set to use Borland compiler
# os = Set to the OS name (Not required) # os = Set to the OS name (Not required)
...@@ -81,7 +82,7 @@ MKFLAGS += os=$(os) ...@@ -81,7 +82,7 @@ MKFLAGS += os=$(os)
ifndef NOCAP ifndef NOCAP
ifeq ($(os),linux) ifeq ($(os),linux)
SETCAP := setcap SETCAP := /sbin/setcap
endif endif
endif endif
......
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