netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=be08de2b1a95d628f2b00cc21f97db35499eee30

commit be08de2b1a95d628f2b00cc21f97db35499eee30
Author: Alastair Poole <[email protected]>
Date:   Thu Apr 16 15:34:39 2020 +0100

    BSD: Run post-install script to use efficient engine.
    
    FreeBSD needs sgid kmem in order to access KVM. If this isn't
    set, we use a slow-assed fallback method.
---
 src/bin/meson.build | 4 ++++
 src/bin/perms.sh    | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/src/bin/meson.build b/src/bin/meson.build
index bcb4da0..98797d3 100644
--- a/src/bin/meson.build
+++ b/src/bin/meson.build
@@ -17,3 +17,7 @@ executable('evisum', [
    dependencies        : [ deps, deps_os ],
    gui_app             : true,
    install             : true)
+
+if host_os == 'freebsd' or host_os == 'dragonfly'
+   meson.add_install_script('perms.sh')
+endif
diff --git a/src/bin/perms.sh b/src/bin/perms.sh
new file mode 100644
index 0000000..2b3fbed
--- /dev/null
+++ b/src/bin/perms.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# We do this to allow us to poll for processes efficiently.
+# Specifically for FreeBSD and DragonFlyBSD.
+chown root:kmem "${DESTDIR}/${MESON_INSTALL_PREFIX}/bin/evisum"
+chmod g+s "${DESTDIR}/${MESON_INSTALL_PREFIX}/bin/evisum"

-- 


Reply via email to