summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-05-10 18:49:20 +0200
committerRalph Boehme <slow@samba.org>2019-10-09 14:35:28 +0000
commitafc90321ecd47ec1a8b6196c9b4aa15c2c654d41 (patch)
treea986b46d01c66567b3c22131a0d933a1dae1115c /buildtools
parent213ca6e4cc981b4a9550042ce927c677883810be (diff)
downloadsamba-afc90321ecd47ec1a8b6196c9b4aa15c2c654d41.tar.gz
build: add SAMBA_DATADIR as "samba" subdirectory of DATADIR
DATADIR should have been set to this path from the beginning, too late to change that now as ut's used as parent for two other directory varialbles: SETUPDIR and CODEPAGEDIR. From <https://www.gnu.org/prep/standards/html_node/Directory-Variables.html>: datadir The directory for installing idiosyncratic read-only architecture-independent data files for this program. This is usually the same place as ‘datarootdir’, but we use the two separate variables so that you can move these program-specific files without altering the location for Info files, man pages, etc. This should normally be /usr/local/share, but write it as $(datarootdir). (If you are using Autoconf, write it as ‘@datadir@’.) The definition of ‘datadir’ is the same for all packages, so you should install your data in a subdirectory thereof. Most packages install their data under $(datadir)/package-name/. Currently Samba doesn't install any application specific data files, but I'm going to do just that in a subsequent commit. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_patterns.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_patterns.py b/buildtools/wafsamba/samba_patterns.py
index d0fe965c730..43422a71f99 100644
--- a/buildtools/wafsamba/samba_patterns.py
+++ b/buildtools/wafsamba/samba_patterns.py
@@ -101,6 +101,8 @@ def write_build_options_header(fp):
fp.write(" output(screen,\" LOGFILEBASE: %s\\n\", get_dyn_LOGFILEBASE());\n")
fp.write(" output(screen,\" LMHOSTSFILE: %s\\n\",get_dyn_LMHOSTSFILE());\n")
fp.write(" output(screen,\" LIBDIR: %s\\n\",get_dyn_LIBDIR());\n")
+ fp.write(" output(screen,\" DATADIR: %s\\n\",get_dyn_DATADIR());\n")
+ fp.write(" output(screen,\" SAMBA_DATADIR: %s\\n\",get_dyn_SAMBA_DATADIR());\n")
fp.write(" output(screen,\" MODULESDIR: %s\\n\",get_dyn_MODULESDIR());\n")
fp.write(" output(screen,\" SHLIBEXT: %s\\n\",get_dyn_SHLIBEXT());\n")
fp.write(" output(screen,\" LOCKDIR: %s\\n\",get_dyn_LOCKDIR());\n")