diff options
author | Alan Somers <asomers@FreeBSD.org> | 2018-12-16 23:38:46 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2018-12-16 23:38:46 +0000 |
commit | 738ea87196c3cc90363e45694b0bfba7040c5d73 (patch) | |
tree | 699578034416c74dfe2d3f12b59981559c535233 /libexec/rc | |
parent | 96a3750174c7fdb4d2d2889e4ea4bd3e8aac4c3e (diff) | |
download | src-738ea87196c3cc90363e45694b0bfba7040c5d73.tar.gz src-738ea87196c3cc90363e45694b0bfba7040c5d73.zip |
Conditionally install /etc/rc.d/audit* based on ${MK_AUDIT}
/usr/sbin/audit(dist)?d are only installed if ${MK_AUDIT} == yes. Their
supporting scripts should only be installed in those instances as well.
Submitted by: ngie
Reviewed by: emaste
MFC after: 2 weeks
Pull Request: https://github.com/freebsd/freebsd/pull/242
Notes
Notes:
svn path=/head/; revision=342153
Diffstat (limited to 'libexec/rc')
-rw-r--r-- | libexec/rc/rc.d/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libexec/rc/rc.d/Makefile b/libexec/rc/rc.d/Makefile index c2a39b5b4f4b..d8d014cb167a 100644 --- a/libexec/rc/rc.d/Makefile +++ b/libexec/rc/rc.d/Makefile @@ -15,8 +15,6 @@ CONFS= DAEMON \ addswap \ adjkerntz \ archdep \ - auditd \ - auditdistd \ bgfsck \ ${_blacklistd} \ ${_bluetooth} \ @@ -164,6 +162,12 @@ APM+= apmd APMPACKAGE= apm .endif +.if ${MK_AUDIT} != "no" +CONFGROUPS+= AUDIT +AUDIT+= auditd +AUDIT+= auditdistd +.endif + .if ${MK_AUTOFS} != "no" CONFS+= automount CONFS+= automountd |