groff/0002-load-site-font-and-site-tmac-from-etc-groff.patch
2019-09-30 10:51:56 -04:00

44 lines
1.5 KiB
Diff

From c6d8bb3e0ebc03274564d7b2c768e9932cc5f79d Mon Sep 17 00:00:00 2001
From: Jan Vcelak <jvcelak@redhat.com>
Date: Tue, 1 Jan 2013 15:33:45 +0100
Subject: [PATCH] load site-font and site-tmac from /etc/groff
Move site-font and site-tmac configuration from /usr/share/groff to
/etc/groff. That allows permanent custom changes. (Symlinking brought
a lot of problems with RPM. This is safer and cleaner.)
Signed-off-by: Jan Vcelak <jvcelak@redhat.com>
---
Makefile.in | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 505e9c3..fe1c56b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -3573,7 +3573,7 @@ fontdir = $(datasubdir)/font
oldfontdir = $(datasubdir)/oldfont
# `localfontdir' says where local fonts will be installed (as dev*/*).
-localfontdir = $(dataprogramdir)/site-font
+localfontdir=@sysconfdir@/groff/site-font
# `legacyfontdir' is for compatibility with non-GNU troff.
legacyfontdir = /usr/lib/font
@@ -3585,10 +3585,10 @@ fontpath = $(localfontdir)$(RT_SEP)$(fontdir)$(RT_SEP)$(legacyfontdir)
tmacdir = $(datasubdir)/tmac
# `systemtmacdir' says where to install platform-dependent macros.
-systemtmacdir = $(libprogramdir)/site-tmac
+systemtmacdir=@sysconfdir@/groff/site-tmac
# `localtmacdir' says where local files will be installed.
-localtmacdir = $(dataprogramdir)/site-tmac
+localtmacdir=@sysconfdir@/groff/site-tmac
# appresdir
# `appresdir' says where to install the application resource file for
--
2.19.1