aboutsummaryrefslogtreecommitdiff
path: root/bin/cat/Makefile
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2021-01-15 20:22:29 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2021-01-15 20:23:42 +0000
commitaefe30c5437159a5399bdbc1974d6fbf40f2ba0f (patch)
tree9095ef25506c9543345d18af125a56a2c2e549a9 /bin/cat/Makefile
parentf64329bcdc4f7cf41c03bfbcf7e6a7525dad68fd (diff)
downloadsrc-aefe30c5437159a5399bdbc1974d6fbf40f2ba0f.tar.gz
src-aefe30c5437159a5399bdbc1974d6fbf40f2ba0f.zip
cat: capsicumize it
Reviewed by: markj, arichardson Differential Revision: https://reviews.freebsd.org/D28083
Diffstat (limited to 'bin/cat/Makefile')
-rw-r--r--bin/cat/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/cat/Makefile b/bin/cat/Makefile
index cba55d2870bb..abfdcbcfbb2e 100644
--- a/bin/cat/Makefile
+++ b/bin/cat/Makefile
@@ -15,4 +15,11 @@ CFLAGS+=-DBOOTSTRAP_CAT
HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
+.if ${MK_CASPER} != "no" && !defined(RESCUE) && !defined(BOOTSTRAPPING)
+LIBADD+= casper
+LIBADD+= cap_fileargs
+LIBADD+= cap_net
+CFLAGS+=-DWITH_CASPER
+.endif
+
.include <bsd.prog.mk>