source:
debian/patches/0001-path-substitution.patch
@
9e6885d
Last change on this file since 9e6885d was 9e6885d, checked in by , 9 years ago | |
---|---|
|
|
File size: 7.1 KB |
-
installer/resources/eepget
From: Kill Your TV <killyourtv@i2pmail.org> Date: Mon, 18 Apr 2011 16:43:40 +0000 Subject: path substitution 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. --- 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 b 1 1 #!/bin/sh 2 I2P=" %INSTALL_PATH"2 I2P="/usr/share/i2p" 3 3 java -cp "$I2P/lib/i2p.jar" net.i2p.util.EepGet "$@" -
installer/resources/i2prouter
a b 28 28 # Note that (percent)INSTALL_PATH and (percent)SYSTEM_java_io_tmpdir 29 29 # should have been replaced by the izpack installer. 30 30 # If you did not run the installer, replace them with the appropriate path. 31 I2P=" %INSTALL_PATH"32 I2PTEMP=" %SYSTEM_java_io_tmpdir"31 I2P="/usr/share/i2p" 32 I2PTEMP="/tmp" 33 33 # PORTABLE installation: 34 34 # Use the following instead. 35 35 #I2PTEMP="%INSTALL_PATH" … … 49 49 #RUN_AS_USER= 50 50 51 51 # Wrapper 52 WRAPPER_CMD=" $I2P/i2psvc"53 WRAPPER_CONF=" $I2P/wrapper.config"52 WRAPPER_CMD="/usr/sbin/wrapper" 53 WRAPPER_CONF="/etc/i2p/wrapper.config" 54 54 55 55 # Priority at which to run the wrapper. See "man nice" for valid priorities. 56 56 # nice is only used if a priority is specified. -
installer/resources/runplain.sh
a b 11 11 # Note that (percent)INSTALL_PATH and (percent)SYSTEM_java_io_tmpdir 12 12 # should have been replaced by the izpack installer. 13 13 # If you did not run the installer, replace them with the appropriate path. 14 I2P=" %INSTALL_PATH"15 I2PTEMP=" %SYSTEM_java_io_tmpdir"14 I2P="/usr/share/i2p" 15 I2PTEMP="/tmp" 16 16 17 17 # Having IPv6 enabled can cause problems with certain configurations. Changing the 18 18 # next value to true may help. -
installer/resources/wrapper.config
a b 8 8 # click "Shutdown", wait 11 minutes, then start i2p. 9 9 # 10 10 # WARNING - The wrapper is NOT run (and this file is not used) 11 # if you start I2P with the 'no window' icon on Windows, or 12 # with the runplain.sh script on Linux. Use the 'restartable' 13 # icon on Windows or the i2prouter script on Linux to run the wrapper. 11 # if you start I2P with the i2prouter-nowrapper script in Linux. 12 # Use i2prouter or the initscript to run the wrapper. 14 13 # 15 14 # NOTE - Directory organization: 16 15 # The standard I2P Installation will set up a "split" directory structure 17 16 # with code in the install directory, data and configuration files in the 18 17 # user's home directory, and temporary files in the system temporary directory. 19 # To set up a single-directory "portable" installation suitable for20 # a USB stick, make several changes specified below (search for PORTABLE).21 #22 # NOTE - The izpack installer performs variable subsitiution on this23 # file upon installation. If you did not use izpack, you must24 # find and replace all instances of (dollar)INSTALL_PATH and25 # (dollar)SYSTEM_java_io_tmpdir with appropriate values26 # (perhaps . and /var/tmp, respectively)27 18 # 28 19 #******************************************************************** 29 20 # Java Application … … 53 44 # classes, or all the classes of i2p.jar, are in a different directory). 54 45 # Be sure there are no other duplicate classes. 55 46 # 56 wrapper.java.classpath.1=$INSTALL_PATH/lib/*.jar 47 wrapper.java.classpath.1=/usr/share/i2p/lib/*.jar 48 wrapper.java.classpath.2=/usr/share/java/wrapper.jar 57 49 # uncomment this to use the system classpath as well (e.g. to get tools.jar) 58 # wrapper.java.classpath. 2=%CLASSPATH%50 # wrapper.java.classpath.3=%CLASSPATH% 59 51 60 # Java Library Path (location of Wrapper.DLL or libwrapper.so)61 wrapper.java.library.path.1= $INSTALL_PATH62 wrapper.java.library.path.2= $INSTALL_PATH/lib52 # Java Library Path (location of libjbigi/libjcpuid) 53 wrapper.java.library.path.1=/usr/lib/jni 54 wrapper.java.library.path.2=/usr/share/java/lib 63 55 64 56 # Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode. 65 57 wrapper.java.additional.auto_bits=TRUE … … 69 61 wrapper.java.additional.1=-DloggerFilenameOverride=logs/log-router-@.txt 70 62 wrapper.java.additional.2=-Dorg.mortbay.http.Version.paranoid=true 71 63 wrapper.java.additional.3=-Dorg.mortbay.xml.XmlParser.NotValidating=true 72 wrapper.java.additional.4=-Di2p.dir.base= "$INSTALL_PATH"64 wrapper.java.additional.4=-Di2p.dir.base=/usr/share/i2p 73 65 wrapper.java.additional.4.stripquotes=TRUE 74 66 75 67 # On some IPv6 enabled systems, I2P and other network-enabled java applications … … 139 131 # tell the router where to find the wrapper log 140 132 # (change X to the next available number) 141 133 # wrapper.java.additional.X=-Dwrapper.logfile=/path/to/wrapper.log 142 wrapper.logfile=$SYSTEM_java_io_tmpdir/wrapper.log 143 # PORTABLE installation: 144 # Use the following instead. I2P will find the logfile here, 145 # no need for a wrapper.java.additional line too. 146 #wrapper.logfile=$INSTALL_PATH/wrapper.log 134 wrapper.logfile=/tmp/wrapper.log 147 135 148 136 # Format of output for the log file. 149 137 # The format consists of the tokens 'L' for log level, 'P' for prefix, 'D' for thread, … … 205 193 # you should copy this file, change the location or file name, 206 194 # and edit the i2prouter script to change the WRAPPER_CONF setting 207 195 # to point to the new wrapper.config location. 208 wrapper.java.pidfile=$SYSTEM_java_io_tmpdir/routerjvm.pid 209 # PORTABLE installation: 210 # Use the following instead. 211 #wrapper.java.pidfile=$INSTALL_PATH/routerjvm.pid 196 wrapper.java.pidfile=/tmp/routerjvm.pid 212 197 # pid file for the service monitoring the JVM 213 198 # 214 199 # From i2prouter: … … 219 204 # 220 205 # This means i2prouter looks for './i2p.pid'. 221 206 # See comments above for wrapper.java.pidfile 222 wrapper.pidfile=$SYSTEM_java_io_tmpdir/i2p.pid 223 # PORTABLE installation: 224 # Use the following instead. 225 #wrapper.pidfile=$INSTALL_PATH/i2p.pid 207 wrapper.pidfile=/tmp/i2p.pid 226 208 227 209 #******************************************************************** 228 210 # Wrapper General Properties … … 239 221 wrapper.umask=0022 240 222 wrapper.java.umask=0022 241 223 wrapper.logfile.umask=077 242 243 #********************************************************************244 # Wrapper NT Service Properties245 #********************************************************************246 # WARNING - Do not modify any of these properties when an application247 # using this configuration file has been installed as a service.248 # Please uninstall the service before modifying this section. The249 # service can then be reinstalled.250 251 # Name of the service252 wrapper.ntservice.name=i2p253 254 # Display name of the service255 wrapper.ntservice.displayname=I2P Service256 257 # Description of the service258 wrapper.ntservice.description=The I2P router service259 260 # Service dependencies. Add dependencies as needed starting from 1261 wrapper.ntservice.dependency.1=262 263 # Mode in which the service is installed. AUTO_START or DEMAND_START264 wrapper.ntservice.starttype=AUTO_START265 266 # Allow the service to interact with the desktop.267 wrapper.ntservice.interactive=false268
Note: See TracBrowser
for help on using the repository browser.