From: Francis Dupont Date: Thu, 12 Jun 2025 15:29:23 +0000 (+0200) Subject: [#3924] Added runstatedir option X-Git-Tag: Kea-3.0.0~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80468a92d0570194778207b562635e6b8731a154;p=thirdparty%2Fkea.git [#3924] Added runstatedir option --- diff --git a/meson.build b/meson.build index 75afd119f8..73b568562a 100644 --- a/meson.build +++ b/meson.build @@ -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 diff --git a/meson.options b/meson.options index 0d8047b320..5c222d51df 100644 --- a/meson.options +++ b/meson.options @@ -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',