propagate from branch 'i2p.i2p.zzz.test' (head 1d4b529f1b52692195f1547338e186819dbd0cab)
to branch 'i2p.i2p' (head 1b8226cb70a7d72f0f674908d8213f8d29eb64eb)
This commit is contained in:
@ -9,12 +9,40 @@
|
||||
<author name="I2P" email="http://forum.i2p2.de/"/>
|
||||
</authors>
|
||||
<url>http://www.i2p2.de/</url>
|
||||
|
||||
<!-- use pack200 compression, saves about 33%
|
||||
see http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/pack200.html
|
||||
However it makes the unpacked jars much larger...
|
||||
For further testing...
|
||||
<pack200 />
|
||||
-->
|
||||
|
||||
<!-- adding this element will make the installer attempt to launch itself with administrator permissions,
|
||||
but see http://www.nabble.com/Classpath-security-issues-on-Vista-td22456230.html
|
||||
which says it isn't sufficient:
|
||||
|
||||
Just to let you know that I managed to identify and resolve the problem (in
|
||||
case anyone else has it). The default installation directory for Vista is
|
||||
under "Program Files" which is a "special" directory which can only be
|
||||
written to (create sub-directories) by administrators. However, stupid
|
||||
Vista downgrades an administrator to a normal user when the program is run
|
||||
via the application shortcut menu. As you suggested, I added a script which
|
||||
runs ICACLS which resolved the problem, i.e.
|
||||
|
||||
icacls %1 /grant Users:F /T > priv.log
|
||||
|
||||
The command needs to be run as a Process rather than as an executable tag in
|
||||
order to pass $INSTALL_PATH as a parameter.
|
||||
-->
|
||||
<run-privileged condition="izpack.windowsinstall.vista|izpack.windowsinstall.7"/>
|
||||
</info>
|
||||
|
||||
<guiprefs width="590" height="356" resizable="yes">
|
||||
<laf name="liquid">
|
||||
<os family="unix"/>
|
||||
</laf>
|
||||
<!-- full names, not iso3 codes -->
|
||||
<modifier key="langDisplayType" value="native" />
|
||||
</guiprefs>
|
||||
|
||||
<locale>
|
||||
@ -24,11 +52,16 @@
|
||||
<langpack iso3="cze"/>
|
||||
<langpack iso3="dan"/>
|
||||
<langpack iso3="deu"/>
|
||||
<langpack iso3="ell"/>
|
||||
<langpack iso3="fa"/>
|
||||
<langpack iso3="fin"/>
|
||||
<langpack iso3="fra"/>
|
||||
<langpack iso3="glg"/>
|
||||
<langpack iso3="hun"/>
|
||||
<langpack iso3="ind"/>
|
||||
<langpack iso3="ita"/>
|
||||
<langpack iso3="jpn"/>
|
||||
<langpack iso3="kor"/>
|
||||
<langpack iso3="mys"/>
|
||||
<langpack iso3="ned"/>
|
||||
<langpack iso3="nor"/>
|
||||
@ -41,6 +74,7 @@
|
||||
<langpack iso3="svk"/>
|
||||
<langpack iso3="swe"/>
|
||||
<langpack iso3="tur"/>
|
||||
<langpack iso3="twn"/>
|
||||
<langpack iso3="ukr"/>
|
||||
</locale>
|
||||
|
||||
@ -67,32 +101,51 @@
|
||||
<pack name="Base" required="yes">
|
||||
<description>Base installation files</description>
|
||||
<fileset dir="pkg-temp" includes="**/*" targetdir="$INSTALL_PATH"/>
|
||||
<!--
|
||||
Do variable substitution in the wrapper.config and i2prouter files. See:
|
||||
http://www.javalobby.org/forums/thread.jspa?threadID=15967&tstart=0
|
||||
and the izpack docs for some guidance.
|
||||
-->
|
||||
<parsable targetfile="$INSTALL_PATH/wrapper.config" type="javaprop" />
|
||||
<parsable targetfile="$INSTALL_PATH/i2prouter" type="shell" os="unix|mac" />
|
||||
|
||||
<!-- postinstall stuff for windows -->
|
||||
<executable targetfile="$INSTALL_PATH/lib/copy.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<executable targetfile="$INSTALL_PATH/installer/copy.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<args><arg value="$INSTALL_PATH\lib\wrapper\win32\I2Psvc.exe" /><arg value="$INSTALL_PATH" /></args></executable>
|
||||
<executable targetfile="$INSTALL_PATH/lib/copy.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<executable targetfile="$INSTALL_PATH/installer/copy.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<args><arg value="$INSTALL_PATH\lib\wrapper\win32\wrapper.dll" /><arg value="$INSTALL_PATH\lib" /></args></executable>
|
||||
<executable targetfile="$INSTALL_PATH/lib/copy.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<executable targetfile="$INSTALL_PATH/installer/copy.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<args><arg value="$INSTALL_PATH\lib\wrapper\win32\wrapper.jar" /><arg value="$INSTALL_PATH\lib" /></args></executable>
|
||||
<executable targetfile="$INSTALL_PATH/lib/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<args><arg value="$INSTALL_PATH\i2prouter" /></args></executable>
|
||||
<executable targetfile="$INSTALL_PATH/lib/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<args><arg value="$INSTALL_PATH\install_i2p_service_unix" /></args></executable>
|
||||
<executable targetfile="$INSTALL_PATH/lib/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<args><arg value="$INSTALL_PATH\install-headless.txt" /></args></executable>
|
||||
<executable targetfile="$INSTALL_PATH/lib/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<args><arg value="$INSTALL_PATH\osid" /></args></executable>
|
||||
<executable targetfile="$INSTALL_PATH/lib/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<args><arg value="$INSTALL_PATH\postinstall.sh" /></args></executable>
|
||||
<executable targetfile="$INSTALL_PATH/lib/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<args><arg value="$INSTALL_PATH\postinstall.bat" /></args></executable>
|
||||
<executable targetfile="$INSTALL_PATH/lib/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<args><arg value="$INSTALL_PATH\uninstall_i2p_service_unix" /></args></executable>
|
||||
<executable targetfile="$INSTALL_PATH/lib/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<args><arg value="$INSTALL_PATH\lib\wrapper" /></args></executable>
|
||||
|
||||
<!-- workaround for vista permission problems - see comments above -->
|
||||
<executable targetfile="$INSTALL_PATH/fixperms.bat" type="bin" stage="postinstall" keep="true" failure="warn"
|
||||
condition="izpack.windowsinstall.vista|izpack.windowsinstall.7" >
|
||||
<args><arg value="$INSTALL_PATH" /></args>
|
||||
</executable>
|
||||
<!-- else delete it -->
|
||||
<executable targetfile="$INSTALL_PATH/installer/delete.jar" type="jar" stage="postinstall" keep="true" failure="warn"
|
||||
condition="izpack.windowsinstall.xp|izpack.windowsinstall.2003" >
|
||||
<args><arg value="$INSTALL_PATH\fixperms.bat" /></args>
|
||||
</executable>
|
||||
|
||||
<!--
|
||||
<executable targetfile="$INSTALL_PATH/lib/exec.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<executable targetfile="$INSTALL_PATH/installer/exec.jar" type="jar" stage="postinstall" keep="true" failure="warn"> <os family="windows" />
|
||||
<args><arg value="$INSTALL_PATH" /><arg value="$INSTALL_PATH\I2Psvc.exe" /><arg value="-c" /><arg value="$INSTALL_PATH\wrapper.config" /></args></executable>
|
||||
-->
|
||||
|
||||
|
Binary file not shown.
11
installer/resources/fixperms.bat
Executable file
11
installer/resources/fixperms.bat
Executable file
@ -0,0 +1,11 @@
|
||||
:: Fix Vista permission problems
|
||||
:: From http://www.nabble.com/Classpath-security-issues-on-Vista-td22456230.html
|
||||
::
|
||||
:: 'echo Y' to get past the 'are you sure' question...
|
||||
:: cacls requires it on XP, icacls doesnt appear so, but can't hurt
|
||||
:: F : full control
|
||||
:: /c : continue on error
|
||||
:: /q : quiet
|
||||
:: /t : recursive
|
||||
::
|
||||
echo Y|icacls %1 /grant Users:F /c /t > %1%\fixperms.log
|
@ -8,6 +8,10 @@
|
||||
# if you have changed the default location set in the
|
||||
# wrapper configuration file.
|
||||
#
|
||||
# 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.
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# These settings can be modified to fit the needs of your application
|
||||
@ -17,15 +21,15 @@ APP_NAME="i2p"
|
||||
APP_LONG_NAME="I2P Service"
|
||||
|
||||
# Wrapper
|
||||
WRAPPER_CMD="./i2psvc"
|
||||
WRAPPER_CONF="wrapper.config"
|
||||
WRAPPER_CMD="%INSTALL_PATH/i2psvc"
|
||||
WRAPPER_CONF="%INSTALL_PATH/wrapper.config"
|
||||
|
||||
# Priority at which to run the wrapper. See "man nice" for valid priorities.
|
||||
# nice is only used if a priority is specified.
|
||||
PRIORITY=
|
||||
|
||||
# Location of the pid file.
|
||||
PIDDIR="."
|
||||
PIDDIR="%SYSTEM_java_io_tmpdir"
|
||||
|
||||
# If uncommented, causes the Wrapper to be shutdown using an anchor file.
|
||||
# When launched with the 'start' command, it will also ignore all INT and
|
||||
|
@ -73,6 +73,7 @@ rm -rf ./lib/wrapper
|
||||
rm -f ./lib/*.dll
|
||||
rm -f ./*.bat
|
||||
rm -f ./*.exe
|
||||
rm -rf ./installer
|
||||
./i2prouter start
|
||||
exit 0
|
||||
|
||||
|
@ -11,6 +11,12 @@
|
||||
# with the runplain.sh script on Linux. Use the 'restartable'
|
||||
# icon on Windows or the i2prouter script on Linux to run the wrapper.
|
||||
#
|
||||
# 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
|
||||
wrapper.java.command=java
|
||||
@ -23,44 +29,22 @@ wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
|
||||
|
||||
# Java Classpath (include wrapper.jar) Add class path elements as
|
||||
# needed starting from 1
|
||||
# i2p sdk, public domain/BSD/Cryptix
|
||||
wrapper.java.classpath.1=lib/i2p.jar
|
||||
# router, depends on i2p.jar, public domain
|
||||
wrapper.java.classpath.2=lib/router.jar
|
||||
# compiled jbigi libraries, contains static libGMP, lgpl
|
||||
wrapper.java.classpath.3=lib/jbigi.jar
|
||||
# sam bridge, public domain (depends on i2p.jar)
|
||||
wrapper.java.classpath.4=lib/sam.jar
|
||||
# ministreaming lib -interfaces for streaming, BSD (depends on i2p.jar)
|
||||
wrapper.java.classpath.5=lib/mstreaming.jar
|
||||
# full streaming lib, public domain (depends on mstreaming.jar, i2p.jar)
|
||||
wrapper.java.classpath.6=lib/streaming.jar
|
||||
# router console, public domain (depends on i2p.jar, router.jar)
|
||||
wrapper.java.classpath.7=lib/routerconsole.jar
|
||||
# i2ptunnel, GPL (depends on mstreaming.jar, i2p.jar)
|
||||
wrapper.java.classpath.8=lib/i2ptunnel.jar
|
||||
# jetty libraries (and dependencies), apache licensed
|
||||
wrapper.java.classpath.9=lib/org.mortbay.jetty.jar
|
||||
wrapper.java.classpath.10=lib/javax.servlet.jar
|
||||
wrapper.java.classpath.11=lib/jasper-compiler.jar
|
||||
wrapper.java.classpath.12=lib/jasper-runtime.jar
|
||||
wrapper.java.classpath.13=lib/commons-logging.jar
|
||||
wrapper.java.classpath.14=lib/commons-el.jar
|
||||
# java service wrapper, BSD
|
||||
wrapper.java.classpath.15=lib/wrapper.jar
|
||||
# systray, LGPL
|
||||
wrapper.java.classpath.16=lib/systray.jar
|
||||
wrapper.java.classpath.17=lib/systray4j.jar
|
||||
# BOB
|
||||
wrapper.java.classpath.18=lib/BOB.jar
|
||||
# desktopgui
|
||||
wrapper.java.classpath.19=lib/appframework.jar
|
||||
wrapper.java.classpath.20=lib/swing-worker.jar
|
||||
wrapper.java.classpath.21=lib/desktopgui.jar
|
||||
#
|
||||
# Doing it this way means we can add new apps without asking people
|
||||
# to update their wrapper.config.
|
||||
# The downside is that we lose control over classpath order,
|
||||
# This is fine for new installs (where the uninstall jars
|
||||
# copy.jar, delete.jar, and exec.jar containing duplicate FileUtil
|
||||
# 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
|
||||
# uncomment this to use the system classpath as well (e.g. to get tools.jar)
|
||||
# wrapper.java.classpath.2=%CLASSPATH%
|
||||
|
||||
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
|
||||
wrapper.java.library.path.1=.
|
||||
wrapper.java.library.path.2=lib
|
||||
wrapper.java.library.path.1=$INSTALL_PATH
|
||||
wrapper.java.library.path.2=$INSTALL_PATH/lib
|
||||
|
||||
# Java Additional Parameters
|
||||
wrapper.java.additional.1=-DloggerFilenameOverride=logs/log-router-@.txt
|
||||
@ -153,7 +137,11 @@ wrapper.ping.timeout=605
|
||||
wrapper.use_system_time=false
|
||||
|
||||
# pid file for the JVM
|
||||
wrapper.java.pidfile=routerjvm.pid
|
||||
# If you plan to have multiple wrappers running on the same machine,
|
||||
# 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
|
||||
# pid file for the service monitoring the JVM
|
||||
#
|
||||
# From i2prouter:
|
||||
@ -163,7 +151,8 @@ wrapper.java.pidfile=routerjvm.pid
|
||||
# PIDFILE="$PIDDIR/$APP_NAME.pid"
|
||||
#
|
||||
# This means i2prouter looks for './i2p.pid'.
|
||||
wrapper.pidfile=i2p.pid
|
||||
# See comments above for wrapper.java.pidfile
|
||||
wrapper.pidfile=$SYSTEM_java_io_tmpdir/i2p.pid
|
||||
|
||||
#********************************************************************
|
||||
# Wrapper NT Service Properties
|
||||
|
Reference in New Issue
Block a user