groff/groff-config-etc.patch

31 lines
1.1 KiB
Diff

Move site-font and site-tmac configuration from /usr/share/groff to /etc/groff
(Symlinking brought a lot of problems with RPM. This is safer and cleaner.)
Author: Jan Vcelak <jvcelak@redhat.com>
diff -uNPrp a/Makefile.in b/Makefile.in
--- a/Makefile.in
+++ b/Makefile.in
@@ -167,7 +167,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
@@ -179,10 +179,10 @@ fontpath=$(localfontdir)$(RT_SEP)$(fontd
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' says where to install the application resource file for
# gxditview.