summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorVadim A. Misbakh-Soloviov <mva@mva.name>2013-06-15 16:10:26 +0700
committerVadim A. Misbakh-Soloviov <mva@mva.name>2013-06-15 16:10:26 +0700
commitf685faa142562e4fd8daab5962aa116462b53142 (patch)
treefd7083d99676b1f0277fff56f29016107e9869c2 /net-im
parent[net-im/prosody-modules] prosody modules list update, metadata update (diff)
downloadlua-f685faa142562e4fd8daab5962aa116462b53142.tar.gz
lua-f685faa142562e4fd8daab5962aa116462b53142.tar.bz2
lua-f685faa142562e4fd8daab5962aa116462b53142.zip
[net-im/prosody] some LuaJIT-related and permissions improvements
Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
Diffstat (limited to 'net-im')
-rw-r--r--net-im/prosody/prosody-9999.ebuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/net-im/prosody/prosody-9999.ebuild b/net-im/prosody/prosody-9999.ebuild
index db7b560..a6201a3 100644
--- a/net-im/prosody/prosody-9999.ebuild
+++ b/net-im/prosody/prosody-9999.ebuild
@@ -53,6 +53,10 @@ src_prepare() {
sed -e "s!INSTALLEDMODULES = \$(PREFIX)/lib/!INSTALLEDMODULES = \$(PREFIX)/$(get_libdir)/!" -i Makefile
sed -e 's!\(os.execute(\)\(CFG_SOURCEDIR.."/../../bin/prosody"\)\();\)!\1"/usr/bin/prosody"\3!' -i util/prosodyctl.lua
sed -e 's!\(desired_user = .* or "\)\(prosody\)\(";\)!\1jabber\3!' -i prosodyctl
+
+ use luajit && {
+ find . -type f -name "*.lua" -print0 | xargs -0 sed -re "1s%#!.*%#!/usr/bin/env luajit%" -i
+ }
}
src_configure() {
@@ -101,6 +105,8 @@ src_install() {
insinto $($(tc-getPKG_CONFIG) lua --variable INSTALL_LMOD)
doins tools/erlparse.lua
rm tools/erlparse.lua
+ fowners "jabber:jabber" -R "/usr/$(get_libdir)/${PN}"
+ fperms "775" -R "/usr/$(get_libdir)/${PN}"
insinto "/usr/$(get_libdir)/${PN}"
doins -r tools
)