mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 20:36:27 +00:00
26 lines
663 B
Diff
26 lines
663 B
Diff
|
--- enlightenment-0.22.0.orig/meson/meson_inst.sh 2017-09-25 10:55:43.000000000 -0300
|
||
|
+++ enlightenment-0.22.0/meson/meson_inst.sh 2017-11-12 09:04:33.356050746 -0200
|
||
|
@@ -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"
|
||
|
+ f="$DESTDIR/$x";
|
||
|
+ b=$(basename "$f".orig)
|
||
|
+ mv -v "$f"{,.orig}
|
||
|
+ ln -sv /run/wrappers/bin/"$b" "$f"
|
||
|
+ echo " \"$b\".source = \"$f\";" >> $w
|
||
|
done
|
||
|
+
|
||
|
+echo " };" >> $w
|
||
|
+echo "}" >> $w
|