2011-05-25 23:09:58 +00:00
|
|
|
From: Kill Your TV <killyourtv@i2pmail.org>
|
|
|
|
Date: Mon, 18 Apr 2011 16:43:40 +0000
|
2011-06-16 17:19:10 +00:00
|
|
|
Subject: path substitution
|
2011-05-25 23:09:58 +00:00
|
|
|
|
2011-06-16 17:19:10 +00:00
|
|
|
The purpose of this patch is the change the values handled by
|
|
|
|
the Izpack based installer.
|
|
|
|
|
|
|
|
Non-applicable sections (e.g., portable & windows) are also removed for the
|
|
|
|
Debian wrapper.config to try to prevent confusion.
|
2011-05-25 23:09:58 +00:00
|
|
|
---
|
|
|
|
installer/resources/eepget | 2 +-
|
|
|
|
installer/resources/i2prouter | 8 ++++----
|
|
|
|
installer/resources/runplain.sh | 6 +++---
|
|
|
|
installer/resources/wrapper.config | 17 ++++++++---------
|
|
|
|
4 files changed, 16 insertions(+), 17 deletions(-)
|
|
|
|
|
|
|
|
--- a/installer/resources/eepget
|
|
|
|
+++ b/installer/resources/eepget
|
|
|
|
@@ -1,3 +1,3 @@
|
|
|
|
#!/bin/sh
|
|
|
|
-I2P="%INSTALL_PATH"
|
|
|
|
+I2P="/usr/share/i2p"
|
|
|
|
java -cp "$I2P/lib/i2p.jar" net.i2p.util.EepGet "$@"
|
|
|
|
--- a/installer/resources/i2prouter
|
|
|
|
+++ b/installer/resources/i2prouter
|
2011-09-13 10:36:15 +00:00
|
|
|
@@ -28,8 +28,8 @@
|
2011-05-25 23:09:58 +00:00
|
|
|
# Note that (percent)INSTALL_PATH and (percent)SYSTEM_java_io_tmpdir
|
|
|
|
# should have been replaced by the izpack installer.
|
|
|
|
# If you did not run the installer, replace them with the appropriate path.
|
|
|
|
-I2P="%INSTALL_PATH"
|
|
|
|
-I2PTEMP="%SYSTEM_java_io_tmpdir"
|
|
|
|
+I2P="/usr/share/i2p"
|
|
|
|
+I2PTEMP="/tmp"
|
|
|
|
# PORTABLE installation:
|
|
|
|
# Use the following instead.
|
|
|
|
#I2PTEMP="%INSTALL_PATH"
|
2012-01-14 21:29:00 +00:00
|
|
|
@@ -53,8 +53,8 @@
|
2011-09-13 10:36:15 +00:00
|
|
|
#RUN_AS_USER=
|
2011-05-25 23:09:58 +00:00
|
|
|
|
|
|
|
# Wrapper
|
|
|
|
-WRAPPER_CMD="$I2P/i2psvc"
|
|
|
|
-WRAPPER_CONF="$I2P/wrapper.config"
|
|
|
|
+WRAPPER_CMD="/usr/sbin/wrapper"
|
|
|
|
+WRAPPER_CONF="/etc/i2p/wrapper.config"
|
|
|
|
|
2011-09-13 10:36:15 +00:00
|
|
|
# Priority at which to run the wrapper. See "man nice" for valid priorities.
|
|
|
|
# nice is only used if a priority is specified.
|
2011-05-25 23:09:58 +00:00
|
|
|
--- a/installer/resources/runplain.sh
|
|
|
|
+++ b/installer/resources/runplain.sh
|
2011-06-05 20:02:13 +00:00
|
|
|
@@ -11,8 +11,8 @@
|
2011-05-25 23:09:58 +00:00
|
|
|
# Note that (percent)INSTALL_PATH and (percent)SYSTEM_java_io_tmpdir
|
|
|
|
# should have been replaced by the izpack installer.
|
|
|
|
# If you did not run the installer, replace them with the appropriate path.
|
|
|
|
-I2P="%INSTALL_PATH"
|
|
|
|
-I2PTEMP="%SYSTEM_java_io_tmpdir"
|
|
|
|
+I2P="/usr/share/i2p"
|
|
|
|
+I2PTEMP="/tmp"
|
|
|
|
|
2011-06-05 20:02:13 +00:00
|
|
|
# Having IPv6 enabled can cause problems with certain configurations. Changing the
|
|
|
|
# next value to true may help.
|
2011-05-25 23:09:58 +00:00
|
|
|
--- a/installer/resources/wrapper.config
|
|
|
|
+++ b/installer/resources/wrapper.config
|
2011-08-27 23:28:07 +00:00
|
|
|
@@ -8,22 +8,13 @@
|
2011-06-16 17:19:10 +00:00
|
|
|
# click "Shutdown", wait 11 minutes, then start i2p.
|
|
|
|
#
|
|
|
|
# WARNING - The wrapper is NOT run (and this file is not used)
|
|
|
|
-# if you start I2P with the 'no window' icon on Windows, or
|
|
|
|
-# with the runplain.sh script on Linux. Use the 'restartable'
|
|
|
|
-# icon on Windows or the i2prouter script on Linux to run the wrapper.
|
|
|
|
+# if you start I2P with the i2prouter-nowrapper script in Linux.
|
2011-08-27 23:28:07 +00:00
|
|
|
+# Use i2prouter or the initscript to run the wrapper.
|
2011-06-16 17:19:10 +00:00
|
|
|
#
|
|
|
|
# NOTE - Directory organization:
|
|
|
|
# The standard I2P Installation will set up a "split" directory structure
|
|
|
|
# with code in the install directory, data and configuration files in the
|
|
|
|
# user's home directory, and temporary files in the system temporary directory.
|
|
|
|
-# To set up a single-directory "portable" installation suitable for
|
|
|
|
-# a USB stick, make several changes specified below (search for PORTABLE).
|
2011-08-27 23:28:07 +00:00
|
|
|
-#
|
2011-06-16 17:19:10 +00:00
|
|
|
-# NOTE - The izpack installer performs variable subsitiution on this
|
|
|
|
-# file upon installation. If you did not use izpack, you must
|
|
|
|
-# find and replace all instances of (dollar)INSTALL_PATH and
|
|
|
|
-# (dollar)SYSTEM_java_io_tmpdir with appropriate values
|
|
|
|
-# (perhaps . and /var/tmp, respectively)
|
|
|
|
#
|
|
|
|
#********************************************************************
|
|
|
|
# Java Application
|
2011-11-03 21:57:19 +00:00
|
|
|
@@ -53,13 +44,14 @@
|
2011-05-25 23:09:58 +00:00
|
|
|
# classes, or all the classes of i2p.jar, are in a different directory).
|
|
|
|
# Be sure there are no other duplicate classes.
|
|
|
|
#
|
|
|
|
-wrapper.java.classpath.1=$INSTALL_PATH/lib/*.jar
|
|
|
|
+wrapper.java.classpath.1=/usr/share/i2p/lib/*.jar
|
2011-06-16 17:19:10 +00:00
|
|
|
+wrapper.java.classpath.2=/usr/share/java/wrapper.jar
|
2011-05-25 23:09:58 +00:00
|
|
|
# uncomment this to use the system classpath as well (e.g. to get tools.jar)
|
|
|
|
-# wrapper.java.classpath.2=%CLASSPATH%
|
2011-06-16 17:19:10 +00:00
|
|
|
+# wrapper.java.classpath.3=%CLASSPATH%
|
|
|
|
|
|
|
|
-# Java Library Path (location of Wrapper.DLL or libwrapper.so)
|
2011-05-25 23:09:58 +00:00
|
|
|
-wrapper.java.library.path.1=$INSTALL_PATH
|
|
|
|
-wrapper.java.library.path.2=$INSTALL_PATH/lib
|
2011-06-16 17:19:10 +00:00
|
|
|
+# Java Library Path (location of libjbigi/libjcpuid)
|
2011-05-25 23:09:58 +00:00
|
|
|
+wrapper.java.library.path.1=/usr/lib/jni
|
|
|
|
+wrapper.java.library.path.2=/usr/share/java/lib
|
|
|
|
|
2011-08-27 23:28:07 +00:00
|
|
|
# Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode.
|
|
|
|
wrapper.java.additional.auto_bits=TRUE
|
2012-01-14 21:29:00 +00:00
|
|
|
@@ -69,7 +61,7 @@
|
2011-05-25 23:09:58 +00:00
|
|
|
wrapper.java.additional.1=-DloggerFilenameOverride=logs/log-router-@.txt
|
|
|
|
wrapper.java.additional.2=-Dorg.mortbay.http.Version.paranoid=true
|
|
|
|
wrapper.java.additional.3=-Dorg.mortbay.xml.XmlParser.NotValidating=true
|
|
|
|
-wrapper.java.additional.4=-Di2p.dir.base="$INSTALL_PATH"
|
2011-08-27 23:28:07 +00:00
|
|
|
+wrapper.java.additional.4=-Di2p.dir.base=/usr/share/i2p
|
2011-05-25 23:09:58 +00:00
|
|
|
wrapper.java.additional.4.stripquotes=TRUE
|
2011-06-05 20:02:13 +00:00
|
|
|
|
|
|
|
# On some IPv6 enabled systems, I2P and other network-enabled java applications
|
2012-01-14 21:29:00 +00:00
|
|
|
@@ -133,13 +125,7 @@
|
|
|
|
wrapper.console.loglevel=INFO
|
|
|
|
|
|
|
|
# Log file to use for wrapper output logging.
|
|
|
|
-# You may wish to change this on linux so the log is
|
|
|
|
-# preserved across OS restarts.
|
2011-05-25 23:09:58 +00:00
|
|
|
-wrapper.logfile=$SYSTEM_java_io_tmpdir/wrapper.log
|
2011-06-16 17:19:10 +00:00
|
|
|
-# PORTABLE installation:
|
|
|
|
-# Use the following instead. I2P will find the logfile here,
|
|
|
|
-# no need for a wrapper.java.additional line too.
|
|
|
|
-#wrapper.logfile=$INSTALL_PATH/wrapper.log
|
2011-05-25 23:09:58 +00:00
|
|
|
+wrapper.logfile=/tmp/wrapper.log
|
2011-06-16 17:19:10 +00:00
|
|
|
|
|
|
|
# Format of output for the log file.
|
|
|
|
# The format consists of the tokens 'L' for log level, 'P' for prefix, 'D' for thread,
|
2012-01-14 21:29:00 +00:00
|
|
|
@@ -205,10 +191,7 @@
|
2011-05-25 23:09:58 +00:00
|
|
|
# you should copy this file, change the location or file name,
|
|
|
|
# and edit the i2prouter script to change the WRAPPER_CONF setting
|
|
|
|
# to point to the new wrapper.config location.
|
|
|
|
-wrapper.java.pidfile=$SYSTEM_java_io_tmpdir/routerjvm.pid
|
2011-06-16 17:19:10 +00:00
|
|
|
-# PORTABLE installation:
|
|
|
|
-# Use the following instead.
|
|
|
|
-#wrapper.java.pidfile=$INSTALL_PATH/routerjvm.pid
|
2011-05-25 23:09:58 +00:00
|
|
|
+wrapper.java.pidfile=/tmp/routerjvm.pid
|
2011-06-16 17:19:10 +00:00
|
|
|
# pid file for the service monitoring the JVM
|
|
|
|
#
|
|
|
|
# From i2prouter:
|
2012-01-14 21:29:00 +00:00
|
|
|
@@ -219,10 +202,7 @@
|
2011-05-25 23:09:58 +00:00
|
|
|
#
|
|
|
|
# This means i2prouter looks for './i2p.pid'.
|
|
|
|
# See comments above for wrapper.java.pidfile
|
|
|
|
-wrapper.pidfile=$SYSTEM_java_io_tmpdir/i2p.pid
|
2011-06-16 17:19:10 +00:00
|
|
|
-# PORTABLE installation:
|
|
|
|
-# Use the following instead.
|
|
|
|
-#wrapper.pidfile=$INSTALL_PATH/i2p.pid
|
2011-08-27 23:28:07 +00:00
|
|
|
+wrapper.pidfile=/tmp/i2p.pid
|
|
|
|
|
|
|
|
#********************************************************************
|
|
|
|
# Wrapper General Properties
|
2012-01-14 21:29:00 +00:00
|
|
|
@@ -239,30 +219,3 @@
|
2011-09-14 01:21:15 +00:00
|
|
|
wrapper.umask=0022
|
|
|
|
wrapper.java.umask=0022
|
|
|
|
wrapper.logfile.umask=077
|
2011-06-16 17:19:10 +00:00
|
|
|
-
|
|
|
|
-#********************************************************************
|
|
|
|
-# Wrapper NT Service Properties
|
|
|
|
-#********************************************************************
|
|
|
|
-# WARNING - Do not modify any of these properties when an application
|
|
|
|
-# using this configuration file has been installed as a service.
|
|
|
|
-# Please uninstall the service before modifying this section. The
|
|
|
|
-# service can then be reinstalled.
|
|
|
|
-
|
|
|
|
-# Name of the service
|
|
|
|
-wrapper.ntservice.name=i2p
|
|
|
|
-
|
|
|
|
-# Display name of the service
|
|
|
|
-wrapper.ntservice.displayname=I2P Service
|
|
|
|
-
|
|
|
|
-# Description of the service
|
|
|
|
-wrapper.ntservice.description=The I2P router service
|
|
|
|
-
|
|
|
|
-# Service dependencies. Add dependencies as needed starting from 1
|
|
|
|
-wrapper.ntservice.dependency.1=
|
|
|
|
-
|
|
|
|
-# Mode in which the service is installed. AUTO_START or DEMAND_START
|
|
|
|
-wrapper.ntservice.starttype=AUTO_START
|
|
|
|
-
|
|
|
|
-# Allow the service to interact with the desktop.
|
2011-06-21 23:43:04 +00:00
|
|
|
-wrapper.ntservice.interactive=false
|
2011-06-16 17:19:10 +00:00
|
|
|
-
|