freebsd-skq/sbin/ping/Makefile
Pawel Jakub Dawidek 49133c6d52 Protect ping(8) using Capsicum and Casper. This is protection against malicious
network packets that we parse and not against local users trying to gain root
access through ping's set-uid bit - this is handled by dropping privileges very
early in ping.

Submitted by:	Mikhail <mp@lenta.ru>
2014-02-04 21:43:53 +00:00

27 lines
393 B
Makefile

# @(#)Makefile 8.1 (Berkeley) 6/5/93
# $FreeBSD$
.include <bsd.own.mk>
PROG= ping
MAN= ping.8
BINOWN= root
BINMODE=4555
WARNS?= 2
DPADD= ${LIBM}
LDADD= -lm
.if ${MK_CASPER} != "no" && !defined(RESCUE)
DPADD+= ${LIBCAPSICUM}
LDADD+= -lcapsicum
CFLAGS+=-DHAVE_LIBCAPSICUM
.endif
.if !defined(RELEASE_CRUNCH)
CFLAGS+=-DIPSEC
DPADD+= ${LIBIPSEC}
LDADD+= -lipsec
.endif
.include <bsd.prog.mk>