mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 06:42:56 -04:00
Allow Debug{On,Off} to run associated hooks.
This makes it feasible to collect extra debug info at runtime
without needing to modify any potentially verified and hence immutable
scripts.
Like debug.sh, hooks.sh is extremely handy and used extensively
in many parts of Junos and its build environment.
It is provided here in the hope that others may benefit.
We do not dot hooks.sh by default to reduce overhead, but it can
but done from rc.conf et al using
$_HOOKS_SH . /libexec/hooks.sh
to avoid including more than once.
Reviewed by: stevek
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D46552
31 lines
698 B
Makefile
31 lines
698 B
Makefile
.include <src.opts.mk>
|
|
|
|
CONFGROUPS= CONFETC CONFETCEXEC CONFETCDEFAULTS
|
|
CONFETCDIR= /etc
|
|
CONFETC= network.subr rc rc.initdiskless rc.subr rc.shutdown rc.bsdextended
|
|
CONFETCPACKAGE= rc
|
|
|
|
.if ${MK_IPFW} != "no"
|
|
CONFETC+= rc.firewall
|
|
.endif
|
|
CONFETCMODE= 644
|
|
CONFETCEXEC= netstart pccard_ether rc.resume rc.suspend
|
|
CONFETCEXECDIR= /etc
|
|
CONFETCEXECMODE= 755
|
|
CONFETCEXECPACKAGE= rc
|
|
CONFETCDEFAULTSDIR= /etc/defaults
|
|
CONFETCDEFAULTS= rc.conf
|
|
CONFETCDEFAULTSPACKAGE= rc
|
|
|
|
FILESGROUPS= LIBEXEC_SCRIPTS
|
|
LIBEXEC_SCRIPTS= debug.sh hooks.sh safe_eval.sh
|
|
LIBEXEC_SCRIPTSDIR= /libexec
|
|
LIBEXEC_SCRIPTSMODE= 755
|
|
LIBEXEC_SCRIPTSPACKAGE= rc
|
|
|
|
SUBDIR+= rc.d
|
|
|
|
HAS_TESTS=
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
.include <bsd.prog.mk>
|