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