mirror of
https://github.com/opnsense/src.git
synced 2026-04-03 08:25:16 -04:00
Create a casper service for netdb functions. Initially only cap_getprotobyname is implemented. This is needed for capsicumizing sockstat. Reviewed by: oshogbo, bcr (manpages) Relnotes: yes Differential Revision: https://reviews.freebsd.org/D24832
32 lines
405 B
Makefile
32 lines
405 B
Makefile
# $FreeBSD$
|
|
|
|
SHLIBDIR?= /lib/casper
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PACKAGE= runtime
|
|
|
|
SHLIB_MAJOR= 1
|
|
INCSDIR?= ${INCLUDEDIR}/casper
|
|
|
|
.if ${MK_CASPER} != "no"
|
|
SHLIB= cap_netdb
|
|
|
|
SRCS= cap_netdb.c
|
|
.endif
|
|
|
|
INCS= cap_netdb.h
|
|
|
|
LIBADD= nv
|
|
|
|
CFLAGS+=-I${.CURDIR}
|
|
|
|
HAS_TESTS=
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
MAN+= cap_netdb.3
|
|
|
|
MLINKS+=cap_netdb.3 libcap_netdb.3
|
|
MLINKS+=cap_netdb.3 cap_getprotobyname.3
|
|
|
|
.include <bsd.lib.mk>
|