aboutsummaryrefslogtreecommitdiffstats
path: root/community/ruby-ffi/ruby-ffi.post-install
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-10-23 22:14:12 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-10-23 22:14:12 +0200
commit21cc65393156af4cd058b7c06a3f0dfc6dbaa239 (patch)
tree9e891fc6bd9191056a7254788174989b03ffe5bd /community/ruby-ffi/ruby-ffi.post-install
parentf994013bb40eca91a3bb299d1455b8169bb7a28f (diff)
downloadaports-21cc65393156af4cd058b7c06a3f0dfc6dbaa239.tar.bz2
aports-21cc65393156af4cd058b7c06a3f0dfc6dbaa239.tar.xz
community/ruby-ffi: move from testing
Diffstat (limited to 'community/ruby-ffi/ruby-ffi.post-install')
-rw-r--r--community/ruby-ffi/ruby-ffi.post-install12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/ruby-ffi/ruby-ffi.post-install b/community/ruby-ffi/ruby-ffi.post-install
new file mode 100644
index 0000000000..17917cc4df
--- /dev/null
+++ b/community/ruby-ffi/ruby-ffi.post-install
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if grep -qw PaX /proc/$$/status 2>/dev/null; then
+ cat >&2 <<-EOF
+ !!
+ !! ruby-ffi does not work on kernel with PaX, unless you disable MPROTECT
+ !! for ruby binary. If you're aware of security implications, execute:
+ !!
+ !! apk add paxmark && paxmark -m /usr/bin/ruby
+ !!
+ EOF
+fi