Description: add a conf.d include in default tgt config
 config.d function is massively useful if you want to allow other packages
 to add configuration.
Forwarded: No
Author: Scott Moser <smoser@ubuntu.com>
Bug: https://bugs.launchpad.net/bugs/978507
Last-Update: 2012-04-10
--- a/conf/targets.conf
+++ b/conf/targets.conf
@@ -1,2 +1,5 @@
 # Empty targets configuration file -- please see the package
 # documentation directory for an example.
+#
+# You can drop individual config snippets into /etc/tgt/conf.d
+include /etc/tgt/conf.d/*.conf
--- a/conf/Makefile
+++ b/conf/Makefile
@@ -15,6 +15,7 @@ install:
 	for f in $(EXAMPLES) ; do \
 		install -m 644 examples/$$f $(DESTDIR)/usr/share/doc/tgt/examples ;\
 	done
+	install -d $(DESTDIR)$(sysconfdir)/tgt/conf.d
 
 .PHONY: clean
 clean:
