docs: Document --with-selinux/-Dselinux options centrally
authorAndres Freund
Fri, 17 Nov 2023 18:23:02 +0000 (10:23 -0800)
committerAndres Freund
Fri, 17 Nov 2023 18:23:02 +0000 (10:23 -0800)
Previously --with-selinux was documented only in the in the sepgsql
documentation and there was no corresponding documentation for meson. There
are further improvements that could be made, but this change seems worthwhile
even on its own.

Reviewed-by: Peter Eisentraut
Reported-by: Christoph Berg
Discussion: https://postgr.es/m/20231103163848[email protected]

doc/src/sgml/installation.sgml
doc/src/sgml/sepgsql.sgml

index a3dc6eb855ff49eb7cd8992b8b9a280bf235f2d4..8e926a3a8cbeb7cc415b16e2da3d9dd676aef529 100644 (file)
@@ -1198,6 +1198,16 @@ build-postgresql:
        
       
 
+      
+       
+       
+        
+         Build with SElinux support, enabling the 
+         extension.
+        
+       
+      
+
      
 
    
@@ -2629,6 +2639,17 @@ ninja install
        
       
      
+
+     
+      
+      
+       
+        Build with SElinux support, enabling the 
+        extension.  Defaults to auto.
+       
+      
+     
+
     
    
 
index b368e587cbf81d4088df5bbb5caf37c904fc52d7..1b848f1977c297830691c2a1381f77f9f54ecf37 100644 (file)
@@ -87,9 +87,14 @@ Policy from config file:        targeted
   
 
   
-   To build this module, include the option --with-selinux in
-   your PostgreSQL configure command.  Be sure that the
-   libselinux-devel RPM is installed at build time.
+   To build this module specify 
+   linkend="configure-option-with-sepgsql"/> (when using 
+   linkend="install-make">make and autoconf ) or 
+   linkend="configure-with-sepgsql-meson"/> (when using 
+   linkend="install-meson">meson).
+
+   Be sure that the libselinux-devel RPM is installed at
+   build time.