forked from I2P_Developers/i2p.i2p
debian: refresh patches
This commit is contained in:
37
debian/patches/0001-path-substitution.patch
vendored
37
debian/patches/0001-path-substitution.patch
vendored
@ -8,7 +8,14 @@ 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 | 82 ++++--------------------------------
|
||||
installer/resources/runplain.sh | 4 +-
|
||||
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 @@
|
||||
@ -16,6 +23,8 @@ Debian wrapper.config to try to prevent confusion.
|
||||
-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 @@
|
||||
@ -29,7 +38,7 @@ Debian wrapper.config to try to prevent confusion.
|
||||
# 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.14 of the Wrapper.
|
||||
# Optimized for use with version 3.5.16 of the Wrapper.
|
||||
|
||||
-# Paths
|
||||
-# Note that (percent)INSTALL_PATH, (percent)USER_HOME, and (percent)SYSTEM_java_io_tmpdir
|
||||
@ -47,7 +56,7 @@ Debian wrapper.config to try to prevent confusion.
|
||||
|
||||
# Application
|
||||
APP_NAME="i2p"
|
||||
@@ -61,8 +54,8 @@
|
||||
@@ -61,8 +54,8 @@ fi
|
||||
#RUN_AS_USER=
|
||||
|
||||
# Wrapper
|
||||
@ -58,7 +67,7 @@ Debian wrapper.config to try to prevent confusion.
|
||||
|
||||
# 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 @@
|
||||
@@ -173,48 +166,6 @@ fi
|
||||
# Workaround for Gentoo
|
||||
JAVABINARY=$(awk -F'=' '/^ *wrapper\.java\.command/{print $2}' "$WRAPPER_CONF")
|
||||
|
||||
@ -107,7 +116,7 @@ Debian wrapper.config to try to prevent confusion.
|
||||
if [ -n "$FIXED_COMMAND" ]
|
||||
then
|
||||
COMMAND="$FIXED_COMMAND"
|
||||
@@ -908,9 +859,6 @@
|
||||
@@ -918,9 +869,6 @@ console() {
|
||||
# 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"
|
||||
eval $COMMAND_LINE
|
||||
@ -117,7 +126,7 @@ Debian wrapper.config to try to prevent confusion.
|
||||
else
|
||||
eval echo `gettext '$APP_LONG_NAME is already running.'`
|
||||
exit 1
|
||||
@@ -1034,9 +982,6 @@
|
||||
@@ -1044,9 +992,6 @@ start() {
|
||||
# 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"
|
||||
eval $COMMAND_LINE
|
||||
@ -127,7 +136,7 @@ Debian wrapper.config to try to prevent confusion.
|
||||
else
|
||||
eval echo `gettext '$APP_LONG_NAME is already running.'`
|
||||
exit 1
|
||||
@@ -1877,18 +1822,9 @@
|
||||
@@ -1887,18 +1832,9 @@ docommand() {
|
||||
status
|
||||
;;
|
||||
|
||||
@ -149,6 +158,8 @@ Debian wrapper.config to try to prevent confusion.
|
||||
;;
|
||||
|
||||
'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 @@
|
||||
@ -162,6 +173,8 @@ Debian wrapper.config to try to prevent confusion.
|
||||
|
||||
# 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 @@
|
||||
@ -189,7 +202,7 @@ Debian wrapper.config to try to prevent confusion.
|
||||
#
|
||||
#********************************************************************
|
||||
# Java Application
|
||||
@@ -60,13 +51,14 @@
|
||||
@@ -60,13 +51,14 @@ wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
|
||||
# classes, or all the classes of i2p.jar, are in a different directory).
|
||||
# Be sure there are no other duplicate classes.
|
||||
#
|
||||
@ -209,7 +222,7 @@ Debian wrapper.config to try to prevent confusion.
|
||||
|
||||
# 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 @@
|
||||
@@ -76,7 +68,7 @@ wrapper.java.additional.auto_bits=TRUE
|
||||
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
|
||||
@ -218,7 +231,7 @@ Debian wrapper.config to try to prevent confusion.
|
||||
wrapper.java.additional.4.stripquotes=TRUE
|
||||
|
||||
# On some IPv6 enabled systems, I2P and other network-enabled java applications
|
||||
@@ -144,11 +136,7 @@
|
||||
@@ -144,11 +136,7 @@ wrapper.console.loglevel=INFO
|
||||
# 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:
|
||||
@ -231,7 +244,7 @@ Debian wrapper.config to try to prevent confusion.
|
||||
|
||||
# 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 @@
|
||||
@@ -218,11 +206,7 @@ wrapper.use_system_time=false
|
||||
# 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:
|
||||
@ -244,7 +257,7 @@ Debian wrapper.config to try to prevent confusion.
|
||||
#
|
||||
# From i2prouter:
|
||||
#
|
||||
@@ -236,10 +220,7 @@
|
||||
@@ -236,10 +220,7 @@ wrapper.use_system_time=false
|
||||
# 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:
|
||||
@ -256,7 +269,7 @@ Debian wrapper.config to try to prevent confusion.
|
||||
|
||||
#********************************************************************
|
||||
# Wrapper General Properties
|
||||
@@ -256,30 +237,3 @@
|
||||
@@ -256,30 +237,3 @@ wrapper.console.title=I2P Service
|
||||
wrapper.umask=0022
|
||||
wrapper.java.umask=0022
|
||||
wrapper.logfile.umask=077
|
||||
|
Reference in New Issue
Block a user