]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3924] Added runstatedir option
authorFrancis Dupont <fdupont@isc.org>
Thu, 12 Jun 2025 15:29:23 +0000 (17:29 +0200)
committerFrancis Dupont <fdupont@isc.org>
Tue, 17 Jun 2025 14:27:56 +0000 (16:27 +0200)
meson.build
meson.options

index 75afd119f879276add44df570dad8c78c6ad7903..73b568562a242dd83feb437d3bdb4845e3134cb8 100644 (file)
@@ -51,6 +51,7 @@ LIBDIR = get_option('libdir')
 LOCALSTATEDIR = get_option('localstatedir')
 MANDIR = get_option('mandir')
 PREFIX = get_option('prefix')
+RUNSTATEDIR = get_option('runstatedir')
 SBINDIR = get_option('sbindir')
 SYSCONFDIR = get_option('sysconfdir')
 
@@ -71,7 +72,11 @@ LOCALSTATEDIR_INSTALLED = PREFIX / LOCALSTATEDIR
 LIBDIR_INSTALLED = PREFIX / LIBDIR
 LOGDIR = LOCALSTATEDIR / 'log/kea'
 LOGDIR_INSTALLED = PREFIX / LOGDIR
-RUNSTATEDIR = LOCALSTATEDIR / 'run/kea'
+if RUNSTATEDIR = ''
+    RUNSTATEDIR = LOCALSTATEDIR / 'run/kea'
+else
+    RUNSTATEDIR = RUNSTATEDIR / 'kea'
+endif
 RUNSTATEDIR_INSTALLED = PREFIX / RUNSTATEDIR
 SHAREDSTATEDIR = LOCALSTATEDIR / 'lib/kea'
 SHAREDSTATEDIR_INSTALLED = PREFIX / SHAREDSTATEDIR
index 0d8047b320febfcf9eeb3f542ba29c7f3ad7f660..5c222d51dfb267b74e7d46c77262c40f84a14755 100644 (file)
@@ -1,3 +1,12 @@
+# Missing in meson, default 'var/run', can be set to 'run'
+# Note if/when meson will implement it the 'runstatedir' option name
+# will be reserved and meson will raise an error...
+option(
+    'runstatedir',
+    type: 'string',
+    description: 'The directory for installing data files which the programs modify while they run.',
+)
+
 # Dependency-related options
 option(
     'crypto',