From: Sophie Brun <sophie@offensive-security.com>
Date: Mon, 11 Apr 2022 14:51:40 +0200
Subject: Install docs in /usr/share/doc

---
 src/mongo/SConscript | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mongo/SConscript b/src/mongo/SConscript
index 0e831e0..4d047f8 100644
--- a/src/mongo/SConscript
+++ b/src/mongo/SConscript
@@ -244,7 +244,7 @@ baseEnv.Library(
 
 distsrc = env.Dir('#distsrc')
 env.AutoInstall(
-    target='$PREFIX',
+    target='$PREFIX/share/doc/mongodb-clients',
     source=[
         distsrc.File('README'),
         # TODO: we need figure out what to do when we use a different
@@ -272,7 +272,7 @@ if not len(module_banner_filenames) == len(env['MODULE_BANNERS']):
     env.FatalError("ERROR: Filename conflicts exist in module banners.")
 
 env.AutoInstall(
-    target='$PREFIX',
+    target='$PREFIX/share/doc/mongodb-clients',
     source=env.get('MODULE_BANNERS', []),
     AIB_COMPONENT='common',
     AIB_COMPONENTS_EXTRA=['dist', 'dist-test'],
