I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 4186894a authored by zzz's avatar zzz
Browse files

* build.xml: Add a debian-source target

    * Startup: Disable browser launch for debian daemon
parent cfeafacd
No related branches found
No related tags found
No related merge requests found
...@@ -776,6 +776,7 @@ ...@@ -776,6 +776,7 @@
<echo message="... and mtn cert t:i2p-${release.number} branch i2p.i2p.release" /> <echo message="... and mtn cert t:i2p-${release.number} branch i2p.i2p.release" />
</target> </target>
<target name="debian"> <target name="debian">
<!-- binary only -->
<echo message="Did you update the version in these files?" /> <echo message="Did you update the version in these files?" />
<exec executable="ls" failonerror="true"> <exec executable="ls" failonerror="true">
<arg value="-l" /> <arg value="-l" />
...@@ -786,4 +787,18 @@ ...@@ -786,4 +787,18 @@
<arg value="-b" /> <arg value="-b" />
</exec> </exec>
</target> </target>
<target name="debian-source">
<!-- bundle the 20MB jetty 5 lib since there probably isn't a deb for it -->
<ant dir="apps/jetty" target="verifyJettylib" />
<echo message="Did you update the version in these files?" />
<exec executable="ls" failonerror="true">
<arg value="-l" />
<arg value="debian/changelog" />
</exec>
<echo message="====================" />
<exec executable="dpkg-buildpackage" failifexecutionfails="true" >
<arg value="-S" />
<arg value="-I_MTN" />
</exec>
</target>
</project> </project>
...@@ -48,6 +48,7 @@ public class WorkingDir { ...@@ -48,6 +48,7 @@ public class WorkingDir {
private final static String WORKING_DIR_DEFAULT_WINDOWS = "I2P"; private final static String WORKING_DIR_DEFAULT_WINDOWS = "I2P";
private final static String WORKING_DIR_DEFAULT = ".i2p"; private final static String WORKING_DIR_DEFAULT = ".i2p";
private final static String WORKING_DIR_DEFAULT_DAEMON = "i2p-config"; private final static String WORKING_DIR_DEFAULT_DAEMON = "i2p-config";
/** we do a couple of things differently if this is the username */
private final static String DAEMON_USER = "i2psvc"; private final static String DAEMON_USER = "i2psvc";
/** /**
...@@ -199,11 +200,15 @@ public class WorkingDir { ...@@ -199,11 +200,15 @@ public class WorkingDir {
out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), "UTF-8"))); out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), "UTF-8")));
out.println("# Modified by I2P User dir migration script"); out.println("# Modified by I2P User dir migration script");
String s = null; String s = null;
boolean isDaemon = DAEMON_USER.equals(System.getProperty("user.name"));
while ((s = DataHelper.readLine(in)) != null) { while ((s = DataHelper.readLine(in)) != null) {
if (s.endsWith("=\"eepsite/jetty.xml\"")) { if (s.endsWith("=\"eepsite/jetty.xml\"")) {
s = s.replace("=\"eepsite/jetty.xml\"", "=\"" + todir.getAbsolutePath() + s = s.replace("=\"eepsite/jetty.xml\"", "=\"" + todir.getAbsolutePath() +
File.separatorChar + "eepsite" + File.separatorChar + "eepsite" +
File.separatorChar + "jetty.xml\""); File.separatorChar + "jetty.xml\"");
} else if (isDaemon && s.equals("clientApp.4.startOnLoad=true")) {
// disable browser launch for daemon
s = "clientApp.4.startOnLoad=false";
} }
out.println(s); out.println(s);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment