diff --git a/build.xml b/build.xml
index 62a1f0abf1..39b598659d 100644
--- a/build.xml
+++ b/build.xml
@@ -254,73 +254,30 @@
-->
+
+
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -330,19 +287,68 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
@@ -367,6 +373,7 @@
+
diff --git a/debian/README.txt b/debian/README.txt
index 2953a76ced..683d506239 100644
--- a/debian/README.txt
+++ b/debian/README.txt
@@ -14,7 +14,7 @@ This sets up a binary package with the following:
Todo:
-- Remove 1MB lib/jbigi.jar, just build and include dynamic libjbigi
+- Remove lib/jbigi.jar, just build and include dynamic libjbigi
and the linux libjcpuid (and add dependency on libgmp)
- Initial router.config for i2psvc (without confusing i2p that
the router directory already exists):
diff --git a/debian/rules b/debian/rules
index 06a78d8e9b..21009d70a0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,19 +1,11 @@
#!/usr/bin/make -f
build:
- ant preppkg
+ ant preppkg-linux-only
mkdir -p debian/tmp/usr/lib
mkdir -p debian/tmp/etc/init.d
cp -a debian/scripts/init debian/tmp/etc/init.d/i2p
cp -a pkg-temp debian/tmp/usr/lib/i2p
- rm -f debian/tmp/usr/lib/i2p/*.bat
- rm -f debian/tmp/usr/lib/i2p/i2p.exe
- rm -rf debian/tmp/usr/lib/i2p/icons
- rm -f debian/tmp/usr/lib/i2p/lib/systray4j.dll
- rm -rf debian/tmp/usr/lib/i2p/lib/wrapper/freebsd
- rm -rf debian/tmp/usr/lib/i2p/lib/wrapper/macosx
- rm -rf debian/tmp/usr/lib/i2p/lib/wrapper/solaris
- rm -rf debian/tmp/usr/lib/i2p/lib/wrapper/win32
chmod +x debian/tmp/usr/lib/i2p/postinstall.sh
sed 's|$$INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/wrapper.config > debian/tmp/usr/lib/i2p/a
sed 's|$$SYSTEM_java_io_tmpdir|/tmp|g' debian/tmp/usr/lib/i2p/a > debian/tmp/usr/lib/i2p/wrapper.config
diff --git a/debian/scripts/prerm b/debian/scripts/prerm
index 176a067a25..7fe9471218 100755
--- a/debian/scripts/prerm
+++ b/debian/scripts/prerm
@@ -10,6 +10,8 @@ update-rc.d -f i2p remove
# dpkg doesn't know about these files, created by postinstall.sh
I2P=/usr/lib/i2p
rm -f $I2P/i2psvc $I2P/lib/libwrapper.so $I2P/lib/wrapper.jar
+# copied out of jbigi.jar by the router
+rm -f $I2P/libjbigi.so $I2P/libjcpuid.so
# the home directory for the i2p daemon
SVCHOME=/var/lib/i2p