diff --git a/debian/i2p.install b/debian/i2p.install index c87e3e1f0152efef6e428ef4447ddc4f576b0d33..49485c28e5bbb8a53585322dc232670358f7ceef 100644 --- a/debian/i2p.install +++ b/debian/i2p.install @@ -1,2 +1,3 @@ pkg-temp/i2prouter usr/bin pkg-temp/wrapper.config etc/i2p +pkg-temp/locale usr/share/i2p diff --git a/debian/patches/0001-path-substitution.patch b/debian/patches/0001-path-substitution.patch index 0aa45df404aff2ee1966e6f5a54d502548578d60..5fe1b90ca92b92e55e1dd59d0cfeda1ef7f1a252 100644 --- a/debian/patches/0001-path-substitution.patch +++ b/debian/patches/0001-path-substitution.patch @@ -14,8 +14,6 @@ Debian wrapper.config to try to prevent confusion. installer/resources/wrapper.config | 70 ++++++------------------------ 4 files changed, 24 insertions(+), 134 deletions(-) -diff --git a/installer/resources/eepget b/installer/resources/eepget -index 080bcc8..f2e84ba 100644 --- a/installer/resources/eepget +++ b/installer/resources/eepget @@ -1,3 +1,3 @@ @@ -23,8 +21,6 @@ index 080bcc8..f2e84ba 100644 -I2P="%INSTALL_PATH" +I2P="/usr/share/i2p" java -cp "$I2P/lib/i2p.jar" net.i2p.util.EepGet "$@" -diff --git a/installer/resources/i2prouter b/installer/resources/i2prouter -index cdf3e71..266dc16 100644 --- a/installer/resources/i2prouter +++ b/installer/resources/i2prouter @@ -10,7 +10,7 @@ @@ -38,7 +34,7 @@ index cdf3e71..266dc16 100644 # You shall use it only in accordance with the terms of the @@ -24,16 +24,9 @@ # These settings can be modified to fit the needs of your application - # Optimized for use with version 3.5.16 of the Wrapper. + # Optimized for use with version 3.5.17 of the Wrapper. -# Paths -# Note that (percent)INSTALL_PATH, (percent)USER_HOME, and (percent)SYSTEM_java_io_tmpdir @@ -56,7 +52,7 @@ index cdf3e71..266dc16 100644 # Application APP_NAME="i2p" -@@ -61,8 +54,8 @@ fi +@@ -61,8 +54,8 @@ #RUN_AS_USER= # Wrapper @@ -67,7 +63,7 @@ index cdf3e71..266dc16 100644 # Priority at which to run the wrapper. See "man nice" for valid priorities. # nice is only used if a priority is specified. -@@ -173,48 +166,6 @@ fi +@@ -167,48 +160,6 @@ # Workaround for Gentoo JAVABINARY=$(awk -F'=' '/^ *wrapper\.java\.command/{print $2}' "$WRAPPER_CONF") @@ -96,7 +92,7 @@ index cdf3e71..266dc16 100644 -} - -failed() { -- echo "**Failed to load the wrapper**" +- echo "**`gettext 'Failed to load the wrapper'`**" - case `uname -s` in - FreeBSD) - echo @@ -116,9 +112,9 @@ index cdf3e71..266dc16 100644 if [ -n "$FIXED_COMMAND" ] then COMMAND="$FIXED_COMMAND" -@@ -918,9 +869,6 @@ console() { +@@ -912,9 +863,6 @@ # The string passed to eval must handles spaces in paths correctly. - COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" \"$WRAPPER_CONF\" wrapper.syslog.ident=\"$APP_NAME\" wrapper.java.command=\"$JAVABINARY\" wrapper.pidfile=\"$PIDFILE\" wrapper.name=\"$APP_NAME\" wrapper.displayname=\"$APP_LONG_NAME\" $ANCHORPROP $STATUSPROP $COMMANDPROP $LOCKPROP $LOGPROP $ADDITIONAL_PARA" + COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" \"$WRAPPER_CONF\" wrapper.syslog.ident=\"$APP_NAME\" wrapper.java.command=\"$JAVABINARY\" wrapper.pidfile=\"$PIDFILE\" wrapper.name=\"$APP_NAME\" wrapper.displayname=\"$APP_LONG_NAME\" $ANCHORPROP $STATUSPROP $COMMANDPROP $LOCKPROP $LOGPROP wrapper.script.version=3.5.17 $ADDITIONAL_PARA" eval $COMMAND_LINE - if [ "$?" -ne "0" ]; then - failed @@ -126,9 +122,9 @@ index cdf3e71..266dc16 100644 else eval echo `gettext '$APP_LONG_NAME is already running.'` exit 1 -@@ -1044,9 +992,6 @@ start() { +@@ -1038,9 +986,6 @@ # The string passed to eval must handles spaces in paths correctly. - COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" \"$WRAPPER_CONF\" wrapper.syslog.ident=\"$APP_NAME\" wrapper.java.command=\"$JAVABINARY\" wrapper.pidfile=\"$PIDFILE\" wrapper.name=\"$APP_NAME\" wrapper.displayname=\"$APP_LONG_NAME\" wrapper.daemonize=TRUE $ANCHORPROP $IGNOREPROP $STATUSPROP $COMMANDPROP $LOCKPROP $LOGPROP $ADDITIONAL_PARA" + COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" \"$WRAPPER_CONF\" wrapper.syslog.ident=\"$APP_NAME\" wrapper.java.command=\"$JAVABINARY\" wrapper.pidfile=\"$PIDFILE\" wrapper.name=\"$APP_NAME\" wrapper.displayname=\"$APP_LONG_NAME\" wrapper.daemonize=TRUE $ANCHORPROP $IGNOREPROP $STATUSPROP $COMMANDPROP $LOCKPROP $LOGPROP wrapper.script.version=3.5.17 $ADDITIONAL_PARA" eval $COMMAND_LINE - if [ "$?" -ne "0" ]; then - failed @@ -136,7 +132,7 @@ index cdf3e71..266dc16 100644 else eval echo `gettext '$APP_LONG_NAME is already running.'` exit 1 -@@ -1887,18 +1832,9 @@ docommand() { +@@ -1850,18 +1795,9 @@ status ;; @@ -158,8 +154,6 @@ index cdf3e71..266dc16 100644 ;; 'dump') -diff --git a/installer/resources/runplain.sh b/installer/resources/runplain.sh -index 949a7ab..48b82fb 100644 --- a/installer/resources/runplain.sh +++ b/installer/resources/runplain.sh @@ -11,8 +11,8 @@ @@ -173,8 +167,6 @@ index 949a7ab..48b82fb 100644 # Having IPv6 enabled can cause problems with certain configurations. Changing the # next value to true may help. -diff --git a/installer/resources/wrapper.config b/installer/resources/wrapper.config -index cfc5918..d4a5de9 100644 --- a/installer/resources/wrapper.config +++ b/installer/resources/wrapper.config @@ -8,22 +8,13 @@ @@ -202,7 +194,7 @@ index cfc5918..d4a5de9 100644 # #******************************************************************** # Java Application -@@ -60,13 +51,14 @@ wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp +@@ -60,13 +51,14 @@ # classes, or all the classes of i2p.jar, are in a different directory). # Be sure there are no other duplicate classes. # @@ -222,7 +214,7 @@ index cfc5918..d4a5de9 100644 # Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode. wrapper.java.additional.auto_bits=TRUE -@@ -76,7 +68,7 @@ wrapper.java.additional.auto_bits=TRUE +@@ -76,7 +68,7 @@ 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 @@ -231,7 +223,7 @@ index cfc5918..d4a5de9 100644 wrapper.java.additional.4.stripquotes=TRUE # On some IPv6 enabled systems, I2P and other network-enabled java applications -@@ -144,11 +136,7 @@ wrapper.console.loglevel=INFO +@@ -144,11 +136,7 @@ # NOTE: On Linux/Mac this is overridden in the i2prouter script; changes here will have no effect. # Windows users may wish to change this to %APPDATA%\I2P\wrapper.log # System temp directory: @@ -244,7 +236,7 @@ index cfc5918..d4a5de9 100644 # Format of output for the log file. # The format consists of the tokens 'L' for log level, 'P' for prefix, 'D' for thread, -@@ -218,11 +206,7 @@ wrapper.use_system_time=false +@@ -218,11 +206,7 @@ # Linux/Mac users, do not set here, see settings in the i2prouter script. # Directory must exist or the wrapper will fail to start. # System temp directory: @@ -257,7 +249,7 @@ index cfc5918..d4a5de9 100644 # # From i2prouter: # -@@ -236,10 +220,7 @@ wrapper.use_system_time=false +@@ -236,10 +220,7 @@ # Linux/Mac users, do not set here, see settings in the i2prouter script. # Directory must exist or the wrapper will fail to start. # System temp directory: @@ -269,7 +261,7 @@ index cfc5918..d4a5de9 100644 #******************************************************************** # Wrapper General Properties -@@ -256,30 +237,3 @@ wrapper.console.title=I2P Service +@@ -256,30 +237,3 @@ wrapper.umask=0022 wrapper.java.umask=0022 wrapper.logfile.umask=077