Files
i2p.i2p/debian/patches/0005-update-launch-i2psnark-paths.patch
2011-05-25 23:09:58 +00:00

45 lines
1.7 KiB
Diff

From: Kill Your TV <killyourtv@i2pmail.org>
Date: Wed, 18 May 2011 11:32:14 +0000
Subject: update launch-i2psnark paths
---
apps/i2psnark/jetty-i2psnark.xml | 4 ++--
apps/i2psnark/launch-i2psnark | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/apps/i2psnark/jetty-i2psnark.xml b/apps/i2psnark/jetty-i2psnark.xml
index b5d6d1e..b9b375e 100644
--- a/apps/i2psnark/jetty-i2psnark.xml
+++ b/apps/i2psnark/jetty-i2psnark.xml
@@ -55,7 +55,7 @@
<Set name="rootWebApp">i2psnark</Set>
<Call name="addWebApplication">
<Arg>/</Arg>
- <Arg>webapps/i2psnark.war</Arg>
+ <Arg>/usr/share/i2p/webapps/i2psnark.war</Arg>
</Call>
<!-- this is so we can find the css -->
@@ -63,7 +63,7 @@
<Arg>
<New class="org.mortbay.http.HttpContext">
<Set name="contextPath">/themes</Set>
- <Set name="resourceBase">./docs/themes</Set>
+ <Set name="resourceBase">/usr/share/i2p/docs/themes</Set>
<Call name="addHandler">
<Arg>
<New class="org.mortbay.http.handler.ResourceHandler">
diff --git a/apps/i2psnark/launch-i2psnark b/apps/i2psnark/launch-i2psnark
index 023b5a2..03a4ed2 100755
--- a/apps/i2psnark/launch-i2psnark
+++ b/apps/i2psnark/launch-i2psnark
@@ -4,5 +4,6 @@
# The file jetty-i2psnark.xml must be present in the current directory.
# i2psnark will be accessed at http://127.0.0.1:8002/
#
-I2P="."
+cd /var/lib/i2p/i2p-config
+I2P="/usr/share/i2p"
java -cp "$I2P/lib/i2psnark.jar:$I2P/lib/i2p.jar:$I2P/lib/mstreaming.jar:$I2P/lib/streaming.jar:$I2P/lib/commons-el.jar:$I2P/lib/commons-logging.jar:$I2P/lib/jasper-compiler.jar:$I2P/lib/jasper-runtime.jar:$I2P/lib/javax.servlet.jar:$I2P/lib/org.mortbay.jetty.jar" org.klomp.snark.web.RunStandalone "$@"
--