0007-allow-setting-rc_libexecdir-path.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. From 89c42e7e0d8d5913789a76b007ed6a0c43078c63 Mon Sep 17 00:00:00 2001
  2. From: artoo <artoo@artixlinux.org>
  3. Date: Wed, 8 Sep 2021 22:41:58 +0200
  4. Subject: [PATCH] allow setting rc_libexecdir path
  5. - Allow to change the rc dir name of the rc_libexecdir path
  6. - Introduce a librcdir option for override with value 'rc'6
  7. Upstream: https://github.com/OpenRC/openrc/pull/443
  8. Signed-off-by: artoo <artoo@artixlinux.org>
  9. [Adam: update for 0.56]
  10. Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
  11. ---
  12. meson.build | 2 +-
  13. meson_options.txt | 2 ++
  14. 2 files changed, 3 insertions(+), 1 deletion(-)
  15. diff --git a/meson.build b/meson.build
  16. index 5b3f8fa..40d4be1 100644
  17. --- a/meson.build
  18. +++ b/meson.build
  19. @@ -85,7 +85,7 @@ bindir = get_option('prefix') / get_option('bindir')
  20. libdir = get_option('prefix') / get_option('libdir')
  21. pluginsdir = libdir / 'rc/plugins'
  22. libexecdir = get_option('prefix') / get_option('libexecdir')
  23. -rc_libexecdir = libexecdir / 'rc'
  24. +rc_libexecdir = libexecdir / get_option('librcdir')
  25. rc_bindir = rc_libexecdir / 'bin'
  26. rc_sbindir = rc_libexecdir / 'sbin'
  27. rc_shdir = rc_libexecdir / 'sh'
  28. diff --git a/meson_options.txt b/meson_options.txt
  29. index 2c74152..d2f67e4 100644
  30. --- a/meson_options.txt
  31. +++ b/meson_options.txt
  32. @@ -26,3 +26,5 @@ option('sysvinit', type : 'boolean', value : false,
  33. description : 'enable SysVinit compatibility (linux only)')
  34. option('zsh-completions', type : 'boolean',
  35. description : 'install zsh completions')
  36. +option('librcdir', type : 'string', value : 'rc',
  37. + description : 'default location of rc libexec dir')
  38. --
  39. 2.41.0