summaryrefslogtreecommitdiffstats
path: root/packages/net-firewall/ufw/files/ufw-0.36.1-shebang.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/net-firewall/ufw/files/ufw-0.36.1-shebang.patch')
-rw-r--r--packages/net-firewall/ufw/files/ufw-0.36.1-shebang.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/net-firewall/ufw/files/ufw-0.36.1-shebang.patch b/packages/net-firewall/ufw/files/ufw-0.36.1-shebang.patch
new file mode 100644
index 0000000..aaafaac
--- /dev/null
+++ b/packages/net-firewall/ufw/files/ufw-0.36.1-shebang.patch
@@ -0,0 +1,15 @@
+--- a/setup.py 2019-03-21 01:51:55.751971770 +0300
++++ b/setup.py 2019-03-21 01:54:40.142513567 +0300
+@@ -121,12 +121,6 @@
+ for f in [ script, manpage, manpage_f ]:
+ self.mkpath(os.path.dirname(f))
+
+- # update the interpreter to that of the one the user specified for setup
+- print("Updating staging/ufw to use %s" % (sys.executable))
+- subprocess.call(["sed",
+- "-i",
+- "1s%^#.*python.*%#! /usr/bin/env " + sys.executable + "%g",
+- 'staging/ufw'])
+ self.copy_file('staging/ufw', script)
+ self.copy_file('doc/ufw.8', manpage)
+ self.copy_file('doc/ufw-framework.8', manpage_f)