build: add SAMBA_DATADIR as "samba" subdirectory of DATADIR
authorRalph Boehme <slow@samba.org>
Fri, 10 May 2019 16:49:20 +0000 (18:49 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 9 Oct 2019 14:35:28 +0000 (14:35 +0000)
commitafc90321ecd47ec1a8b6196c9b4aa15c2c654d41
treea986b46d01c66567b3c22131a0d933a1dae1115c
parent213ca6e4cc981b4a9550042ce927c677883810be
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>
buildtools/wafsamba/samba_patterns.py
docs-xml/smbdotconf/generate-file-list.sh
dynconfig/dynconfig.c
dynconfig/dynconfig.h
dynconfig/wscript