1
Description: Fixes rebind wrapper
2
The default upstream wrapper expects rebind.so to be next to the wrapper,
3
this is not Debian policy compliant, so we're just fixing the wrapper.
4
Author: Philipp Hahn <hahn@univention.de>
5
Bug-Debian: http://bugs.debian.org/726304
7
Last-Update: 2013-12-08
9
--- websockify-0.5.1+dfsg1.orig/rebind
10
+++ websockify-0.5.1+dfsg1/rebind
14
+mydir="$(readlink -f "$(dirname "${0}")")"
15
+mylib="${mydir}/../lib/websockify/rebind.so"
16
+[ -e "${mylib}" ] || { echo "${mylib} not found" >&2; exit 1; }
19
echo "Usage: $(basename $0) OLD_PORT NEW_PORT COMMAND_LINE"
21
@@ -9,10 +13,9 @@ usage() {
25
-mydir=$(readlink -f $(dirname ${0}))
27
-export REBIND_PORT_OLD="${1}"; shift
28
-export REBIND_PORT_NEW="${1}"; shift
30
-LD_PRELOAD=${mydir}/rebind.so "${@}"
31
+export REBIND_PORT_OLD="${1}"
32
+export REBIND_PORT_NEW="${2}"
35
+LD_PRELOAD="${mylib}" exec "${@}"