Dirk Mueller
fa1096cd51
- move examples to docdir OBS-URL: https://build.opensuse.org/package/show/Base:System/tgt?expand=0&rev=17
32 lines
958 B
Diff
32 lines
958 B
Diff
--- 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
|