tgt/tgt-install-examples-in-documentation-dir.patch
Lee Duncan 760bb9986f - Update to version 1.0.95+0.2b6396622346:
* tgt 1.0.95
  * Fix IP and initiator ACL testing logic to allow undefined initiator name ACL
  * tgt 1.0.94
  * Fix returning data from virtual tape when the output is bigger than the tape block
  * tgt 1.0.93
  * chap: Use proper entropy source
  * tgt 1.0.92
  * CI: build on Alpine Linux
  * usr: do not rely on LFS64 interfaces
  * usr: do not rely on non-portable __WORDSIZE
- Update patch that partially duplicates upstream:
  * tgt-install-examples-in-documentation-dir.patch
- Starting using _service file to fetch code

OBS-URL: https://build.opensuse.org/package/show/Base:System/tgt?expand=0&rev=67
2025-03-25 23:49:55 +00:00

37 lines
1.2 KiB
Diff

From 4711fc19b6b83d572fd6eafd64a834559cae8ce2 Mon Sep 17 00:00:00 2001
From: Hannes Reinecke <hare@suse.de>
Date: Wed, 26 Feb 2014 12:50:09 +0100
Subject: Install examples in documentation directory
The examples should be installed in the documentation directory,
not the standard configuration directory.
[lduncan: modified to not duplicate upstream]
Signed-off-by: Dirk Mueller <dmueller@suse.com>
Acked-by: Hannes Reinecke <hare@suse.de>
---
conf/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- a/conf/Makefile
+++ b/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,9 @@ install:
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)$(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
install -d $(DESTDIR)$(sysconfdir)/tgt/conf.d