summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-06-17 21:30:21 +0000
committered <ed@FreeBSD.org>2011-06-17 21:30:21 +0000
commite75cd7ae0e980477aff17703a337dee702ecd2fb (patch)
treeda84081292245c979214c2758c0344668b632ac7 /etc/periodic
parent2becca5d18eb351990ba0b4e68e407a4853be744 (diff)
downloadFreeBSD-src-e75cd7ae0e980477aff17703a337dee702ecd2fb.zip
FreeBSD-src-e75cd7ae0e980477aff17703a337dee702ecd2fb.tar.gz
Add WITHOUT_UTMPX switch to the build system.
This knob removes the tools that are exclusively used to view and maintain the databases maintained by utmpx, namely last, users, who, wtmpcvt, ac, lastlogin and utxrm. The tool w is not in this list, because it has some other functionality which is unrelated to utmpx; it is hardlinked to the uptime tool.
Diffstat (limited to 'etc/periodic')
-rw-r--r--etc/periodic/monthly/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/periodic/monthly/Makefile b/etc/periodic/monthly/Makefile
index b7f0ecd..77c1d66 100644
--- a/etc/periodic/monthly/Makefile
+++ b/etc/periodic/monthly/Makefile
@@ -2,7 +2,12 @@
.include <bsd.own.mk>
-FILES= 200.accounting \
- 999.local
+FILES= 999.local
+
+# NB: keep these sorted by MK_* knobs
+
+.if ${MK_UTMPX} != "no"
+FILES+= 200.accounting
+.endif
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud