2017-11-11 20:44:32 +03:00
|
|
|
--- enlightenment-0.22.0.orig/meson/meson_inst.sh 2017-09-25 10:55:43.000000000 -0300
|
2017-11-15 13:45:26 +03:00
|
|
|
+++ enlightenment-0.22.0/meson/meson_inst.sh 2017-11-15 08:31:03.336844920 -0200
|
2017-11-11 20:44:32 +03:00
|
|
|
@@ -1,6 +1,19 @@
|
|
|
|
-#!/bin/sh
|
|
|
|
+#!/bin/sh -x
|
|
|
|
+
|
|
|
|
+w="$out"/e-wrappers.nix
|
|
|
|
+
|
|
|
|
+echo "# Wrappers for programs installed by enlightenment that should be setuid" > $w
|
|
|
|
+echo "" >> $w
|
|
|
|
+echo "{" >> $w
|
|
|
|
+echo " security.wrappers = {" >> $w
|
|
|
|
|
|
|
|
for x in "$@" ; do
|
|
|
|
- chown root "$DESTDIR/$x"
|
|
|
|
- chmod a=rx,u+xs "$DESTDIR/$x"
|
2018-05-11 04:26:47 +03:00
|
|
|
+ f="$DESTDIR$x";
|
2017-11-11 20:44:32 +03:00
|
|
|
+ b=$(basename "$f".orig)
|
2018-05-11 04:26:47 +03:00
|
|
|
+ mv -v "$f" "$f".orig
|
2017-11-11 20:44:32 +03:00
|
|
|
+ ln -sv /run/wrappers/bin/"$b" "$f"
|
2017-11-15 13:45:26 +03:00
|
|
|
+ echo " \"$b\".source = \"$f.orig\";" >> $w
|
2017-11-11 20:44:32 +03:00
|
|
|
done
|
|
|
|
+
|
|
|
|
+echo " };" >> $w
|
|
|
|
+echo "}" >> $w
|