freebsd-src/usr.sbin/ngctl/Makefile
Jamie Gritton 72d01e62b0 netgraph: teach ngctl to attach and run itself in a jail
Add -j <jail> flag to ngctl to allow ngctl to attach and run inside
a jail. This allow parent to manipulate netgraph nodes in the jail
even if ngctl is not available.

Submitted by:	David Marker <dave_freedave.net>
Reviewed by:	kevans, zlei, jamie
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D50241
2025-08-29 16:02:14 -07:00

21 lines
396 B
Makefile

# $Whistle: Makefile,v 1.3 1999/01/16 00:10:11 archie Exp $
.include <src.opts.mk>
PROG= ngctl
MAN= ngctl.8
SRCS= main.c mkpeer.c config.c connect.c dot.c name.c show.c list.c \
msg.c debug.c shutdown.c rmhook.c status.c types.c write.c
WARNS?= 3
LIBADD= netgraph
CFLAGS+= -DEDITLINE
LIBADD+= edit pthread
.if ${MK_JAIL} != "no"
CFLAGS+= -DJAIL
LIBADD+= jail
.endif
.include <bsd.prog.mk>