From nobody@FreeBSD.org  Sun Feb 23 04:11:25 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 7F75BD7
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Feb 2014 04:11:25 +0000 (UTC)
Received: from newred.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 50B1F13CC
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Feb 2014 04:11:25 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by newred.freebsd.org (8.14.7/8.14.7) with ESMTP id s1N4BPo7091218
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Feb 2014 04:11:25 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.7/8.14.7/Submit) id s1N4BP3I091212;
	Sun, 23 Feb 2014 04:11:25 GMT
	(envelope-from nobody)
Message-Id: <201402230411.s1N4BP3I091212@cgiserv.freebsd.org>
Date: Sun, 23 Feb 2014 04:11:25 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] install /etc/devd/zfs.conf if WITH_ZFS is set
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         186971
>Category:       conf
>Synopsis:       [devd] [patch] install /etc/devd/zfs.conf if WITH_ZFS is set
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 23 04:20:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Sun May 04 03:38:25 UTC 2014
>Originator:     Garrett Cooper
>Release:        11-CURRENT
>Organization:
>Environment:
FreeBSD fuji-current.local 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r261958+40e3169(master): Sat Feb 15 08:18:02 PST 2014     root@fuji-current.local:/usr/obj/usr/src/sys/FUJI-NOCOMPAT  i386
>Description:
r261894 moved all of the ZFS devd rules out of devd.conf into zfs.conf.

The attached patch enhances r261894 by only installing zfs.conf if WITH_ZFS is specified.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

From e6bc9c6903a43989fa95ea8e00adc72e836a4d32 Mon Sep 17 00:00:00 2001
From: Garrett Cooper <yanegomi@gmail.com>
Date: Sat, 22 Feb 2014 02:57:09 -0800
Subject: [PATCH] Make etc/devd/zfs.conf optional

---
 etc/devd/Makefile                        | 8 +++++++-
 tools/build/mk/OptionalObsoleteFiles.inc | 1 +
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/etc/devd/Makefile b/etc/devd/Makefile
index c744398..1ca0854 100644
--- a/etc/devd/Makefile
+++ b/etc/devd/Makefile
@@ -1,6 +1,8 @@
 # $FreeBSD$
 
-FILES=	uath.conf usb.conf zfs.conf
+.include <bsd.own.mk>
+
+FILES=	uath.conf usb.conf
 
 .if ${MACHINE} == "powerpc"
 FILES+=	apple.conf
@@ -10,6 +12,10 @@ FILES+=	apple.conf
 FILES+=	asus.conf
 .endif
 
+.if ${MK_ZFS} == "yes"
+FILES+= zfs.conf
+.endif
+
 NO_OBJ=
 FILESDIR=	/etc/devd
 FILESMODE=	644
diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc
index 703d1a9..85eb92b 100644
--- a/tools/build/mk/OptionalObsoleteFiles.inc
+++ b/tools/build/mk/OptionalObsoleteFiles.inc
@@ -485,6 +485,7 @@ OLD_FILES+=usr/share/man/man1/dtrace.1.gz
 OLD_FILES+=boot/gptzfsboot
 OLD_FILES+=boot/zfsboot
 OLD_FILES+=boot/zfsloader
+OLD_FILES+=etc/devd/zfs.conf
 OLD_FILES+=etc/periodic/daily/404.status-zfs
 OLD_FILES+=etc/periodic/daily/800.scrub-zfs
 OLD_LIBS+=lib/libzfs.so.2
-- 
1.8.5.2



>Release-Note:
>Audit-Trail:
>Unformatted:
