--- conf/Makefile +++ conf/Makefile @@ -1,4 +1,5 @@ sysconfdir ?= /etc +docdatadir ?= /usr/share/doc/packages/ EXAMPLES = targets.conf.example targets.conf.vtl.L700 targets.conf.vtl.MSL2024 @@ -11,9 +12,10 @@ if [ ! -f $(DESTDIR)$(sysconfdir)/tgt/targets.conf ] ; then \ install -m 644 targets.conf $(DESTDIR)$(sysconfdir)/tgt ; \ fi - install -d -m 755 $(DESTDIR)$(sysconfdir)/tgt/examples + install -d -m 755 $(DESTDIR)$(sysconfdir)/tgt/conf.d + install -d -m 755 $(DESTDIR)$(docdatadir)/tgt/examples for f in $(EXAMPLES) ; do \ - install -m 644 examples/$$f $(DESTDIR)$(sysconfdir)/tgt/examples ;\ + install -m 644 examples/$$f $(DESTDIR)$(docdatadir)/tgt/examples ;\ done .PHONY: clean --- conf/targets.conf +++ conf/targets.conf @@ -1,2 +1,7 @@ # Empty targets configuration file -- please see the package # documentation directory for an example. + +# +# Include configuration from directory +# +include /etc/tgt/conf.d/*.conf