From 0000e4f28dd7fe8a24fcd0d01fcb82e231539fed Mon Sep 17 00:00:00 2001
From: kytv <kytv@mail.i2p>
Date: Fri, 27 May 2011 17:43:05 +0000
Subject: [PATCH] Debian: Ship custom router.config to disable updates via the
 I2P router. Updates, to keep with Debian policy, must be done via the package
 manager.

---
 debian/changelog          | 8 ++++++++
 debian/i2p-router.install | 1 +
 debian/rules              | 1 +
 3 files changed, 10 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index e9fa8e1a5b..7eccd1f38b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+i2p (0.8.6-6~build9) UNRELEASED; urgency=low
+
+  * Ship own router.config with router.updatesDisabled=true to prevent
+    upgrades to be performed by the router itself. Upgrades *must* take place
+    via the package manager.
+
+ -- Kill Your TV <killyourtv@i2pmail.org>  Fri, 27 May 2011 17:33:21 +0000
+
 i2p (0.8.6-5) stable; urgency=low
 
   * Remove /etc/i2p/wrapper.service. Changes have been moved to the
diff --git a/debian/i2p-router.install b/debian/i2p-router.install
index 9d2f2fb142..f66ecda3eb 100644
--- a/debian/i2p-router.install
+++ b/debian/i2p-router.install
@@ -11,6 +11,7 @@ pkg-temp/i2prouter-nowrapper usr/bin
 pkg-temp/i2psnark.config usr/share/i2p
 pkg-temp/i2ptunnel.config usr/share/i2p
 pkg-temp/lib/*.jar usr/share/i2p/lib
+pkg-temp/router.config usr/share/i2p
 pkg-temp/systray.config usr/share/i2p
 pkg-temp/webapps usr/share/i2p
 pkg-temp/*.xml usr/share/i2p
diff --git a/debian/rules b/debian/rules
index b914edf029..d690bd998f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -52,6 +52,7 @@ build-indep:
 	# The next line is used by KYTV when building from source packages
 	#[ -r jetty/jetty-5.1.15.tgz ] && ln -sf $(CURDIR)/jetty/jetty-5.1.15.tgz $(CURDIR)/apps/jetty/jetty-5.1.15.tgz
 	ant preppkg-linux javadoc
+	echo router.updateDisabled=true > $(I2P)/router.config
 	mv build/javadoc build/api
 	mv $(I2P)/runplain.sh $(I2P)/i2prouter-nowrapper
 	-cp -fv /usr/share/tor/geoip $(CURDIR)/pkg-temp/geoip/geoip.txt
-- 
GitLab