git: 272b4b764bdf - main - devd: Don't install autofs.conf with WITHOUT_AUTOFS

From: Tijl Coosemans <tijl_at_FreeBSD.org>
Date: Fri, 22 Dec 2023 14:28:43 UTC
The branch main has been updated by tijl:

URL: https://cgit.FreeBSD.org/src/commit/?id=272b4b764bdfb563f655da37ef9ec8c01c77f386

commit 272b4b764bdfb563f655da37ef9ec8c01c77f386
Author:     Tijl Coosemans <tijl@FreeBSD.org>
AuthorDate: 2023-12-22 14:14:55 +0000
Commit:     Tijl Coosemans <tijl@FreeBSD.org>
CommitDate: 2023-12-22 14:27:50 +0000

    devd: Don't install autofs.conf with WITHOUT_AUTOFS
---
 sbin/devd/Makefile                       | 2 ++
 tools/build/mk/OptionalObsoleteFiles.inc | 1 +
 2 files changed, 3 insertions(+)

diff --git a/sbin/devd/Makefile b/sbin/devd/Makefile
index 68ff477f09c9..09a8ed5898e1 100644
--- a/sbin/devd/Makefile
+++ b/sbin/devd/Makefile
@@ -11,10 +11,12 @@ DEVDDIR=	/etc/devd
 DEVD+=	asus.conf
 .endif
 
+.if ${MK_AUTOFS} != "no"
 CONFGROUPS+=		AUTOFS
 AUTOFSDIR=		${DEVDDIR}
 AUTOFS+=		autofs.conf
 AUTOFSPACKAGE=		autofs
+.endif
 
 CONFGROUPS+=		DHCLIENT
 DHCLIENTDIR=		${DEVDDIR}
diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc
index bc244d18ab39..f9850b7b2e22 100644
--- a/tools/build/mk/OptionalObsoleteFiles.inc
+++ b/tools/build/mk/OptionalObsoleteFiles.inc
@@ -127,6 +127,7 @@ OLD_FILES+=etc/autofs/special_media
 OLD_FILES+=etc/autofs/special_noauto
 OLD_FILES+=etc/autofs/special_null
 OLD_FILES+=etc/auto_master
+OLD_FILES+=etc/devd/autofs.conf
 OLD_FILES+=etc/rc.d/automount
 OLD_FILES+=etc/rc.d/automountd
 OLD_FILES+=etc/rc.d/autounmountd