freebsd-ports/net/spideroak/files/patch-usr__bin__SpiderOak
2014-01-13 01:31:03 +00:00

14 lines
619 B
Text

--- ./usr/bin/SpiderOak.orig 2014-01-12 18:44:59.000000000 +0100
+++ ./usr/bin/SpiderOak 2014-01-12 18:46:22.000000000 +0100
@@ -1,8 +1,8 @@
#!/bin/sh
-LD_LIBRARY_PATH="/opt/SpiderOak/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
+LD_LIBRARY_PATH="%%DATADIR%%${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH
-QT_PLUGIN_PATH="/opt/SpiderOak/lib/plugins/" ; export QT_PLUGIN_PATH
+QT_PLUGIN_PATH="%%DATADIR%%/plugins/" ; export QT_PLUGIN_PATH
SpiderOak_EXEC_SCRIPT=$(cd `dirname $0` ; pwd)/SpiderOak
export SpiderOak_EXEC_SCRIPT
-exec "/opt/SpiderOak/lib/SpiderOak" "$@"
+exec "%%DATADIR%%/SpiderOak" "$@"