diff --git a/install/GNUmakefile b/install/GNUmakefile index 82077183c617f45b33373310978d4da0d66c65f6..7b6abd6a4ce375d8e5642c4e61e1938533cfeff0 100644 --- a/install/GNUmakefile +++ b/install/GNUmakefile @@ -12,6 +12,7 @@ # SYMLINK = Don't copy binaries, rather create symlinks in $(SBBSDIR)/exec # SBBSDIR = Directory to do install to # REPODIR = Directory where source files are cloned +# NOCAP = Set to defeat sbbs3 bind-capabilities (setcap) build target on Linux # bcc = Set to use Borland compiler # os = Set to the OS name (Not required) # SBBSUSER = Owner for the installed files @@ -79,6 +80,12 @@ endif MKFLAGS += os=$(os) +ifndef NOCAP +ifeq (($os),linux) + SETCAP := setcap +endif +endif + ifdef DEBUG BUILD := debug MKFLAGS += DEBUG=1 @@ -147,11 +154,7 @@ binaries: sbbs3 gtkuseredit gtkchat gtkmonitor gtkuserlist syncview sexpots externals: sbj dpoker tbd sbbs3: src -ifeq ($(os),linux) - $(MAKE) -C $(REPODIR)/src/sbbs3 $(MKFLAGS) setcap -else - $(MAKE) -C $(REPODIR)/src/sbbs3 $(MKFLAGS) -endif + $(MAKE) -C $(REPODIR)/src/sbbs3 $(MKFLAGS) $(SETCAP) sexpots: src $(MAKE) -C $(REPODIR)/src/sexpots $(MKFLAGS)