$OpenBSD: patch-packages_files_apache_icingaweb2_conf,v 1.1 2021/03/24 12:49:53 sthen Exp $

Index: packages/files/apache/icingaweb2.conf
--- packages/files/apache/icingaweb2.conf.orig
+++ packages/files/apache/icingaweb2.conf
@@ -1,4 +1,4 @@
-Alias /icingaweb2 "/usr/share/icingaweb2/public"
+Alias /icingaweb2 "${TRUEPREFIX}/icinga-web2/public"
 
 # Remove comments if you want to use PHP FPM and your Apache version is older than 2.4
 #<IfVersion < 2.4>
@@ -9,7 +9,7 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public"
 #    </LocationMatch>
 #</IfVersion>
 
-<Directory "/usr/share/icingaweb2/public">
+<Directory "${TRUEPREFIX}/icinga-web2/public">
     Options SymLinksIfOwnerMatch
     AllowOverride None
 
@@ -28,7 +28,7 @@ Alias /icingaweb2 "/usr/share/icingaweb2/public"
         Allow from all
     </IfModule>
 
-    SetEnv ICINGAWEB_CONFIGDIR "/etc/icingaweb2"
+    SetEnv ICINGAWEB_CONFIGDIR "${TRUEPREFIX}/etc/icingaweb2"
 
     EnableSendfile Off
 
