mirror of
https://github.com/opnsense/src.git
synced 2026-02-28 20:30:57 -05:00
These complement cap_sysctlbyname(3) to provide a drop-in replacement for the corresponding libc functions. Also revise the libcap_sysctl limit interface to provide access to sysctls by MIB, and to avoid direct manipulation of nvlists by the caller. Reviewed by: oshogbo Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17854
36 lines
591 B
Makefile
36 lines
591 B
Makefile
# $FreeBSD$
|
|
|
|
SHLIBDIR?= /lib/casper
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PACKAGE=libcasper
|
|
|
|
SHLIB_MAJOR= 2
|
|
INCSDIR?= ${INCLUDEDIR}/casper
|
|
|
|
.if ${MK_CASPER} != "no"
|
|
SHLIB= cap_sysctl
|
|
|
|
SRCS= cap_sysctl.c
|
|
.endif
|
|
|
|
INCS= cap_sysctl.h
|
|
|
|
LIBADD= nv
|
|
|
|
CFLAGS+=-I${.CURDIR}
|
|
|
|
HAS_TESTS=
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
MAN+= cap_sysctl.3
|
|
MLINKS+=cap_sysctl.3 libcap_sysctl.3 \
|
|
cap_sysctl.3 cap_sysctlbyname.3 \
|
|
cap_sysctl.3 cap_nametomib.3 \
|
|
cap_sysctl.3 cap_sysctl_limit_init.3 \
|
|
cap_sysctl.3 cap_sysctl_limit_mib.3 \
|
|
cap_sysctl.3 cap_sysctl_limit_name.3 \
|
|
cap_sysctl.3 cap_sysctl_limit.3
|
|
|
|
.include <bsd.lib.mk>
|