Skip to content

Commit

Permalink
add notes about libcap
Browse files Browse the repository at this point in the history
  • Loading branch information
nunziotocci committed May 8, 2018
1 parent d9e22f9 commit 83df5fa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions INSTALL.md
Expand Up @@ -19,6 +19,15 @@ Or if you choose LibreSSL, make sure its `openssl` is first in the $PATH (On Ope

*\* Apple does not include a good enough version of OpenSSL. We officially support the `brew` versions of OpenSSL. If installing OpenSSL from source (untested) make sure to install static libraries.*

### Linux Capabilities
In order to setuid/setgid on linux, we require that you have libcap headers installed.

```
sudo apt install libcap-dev # Ubuntu
sudo dnf install libcap-devel # Fedora
sudo yum install libcap-devel # CentOS/RHEL
```

#### Downloading Envelope

https://github.com/workflowproducts/envelope/releases
Expand Down
7 changes: 7 additions & 0 deletions src/configure
Expand Up @@ -58,6 +58,13 @@ if test $(uname -s) = "Linux"; then
}
echo "yes"

HEADER="sys/capability.h"
. scripts/check_header
if test "x$HAVE_HEADER" = "x0"; then
echo >&2 "Cannot use sys/capability.h! Install libcap-dev (apt) or libcap-devel (yum) and re-run configure."
exit 1
fi

elif test $(uname -s) = "Darwin"; then
LDFLAGS="-lm"
echo "Darwin"
Expand Down

0 comments on commit 83df5fa

Please sign in to comment.