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

Skip to content
Snippets Groups Projects
Commit 7109061e authored by z3d's avatar z3d
Browse files

merge of '4dfe5728ed4951d32f89e2fddbdcdfc3b4755cad'

     and '62005c74e58b5fdbaf4659ffb65392ecfbd8bc0a'
parents f71dd25b 252473d7
No related branches found
No related tags found
No related merge requests found
...@@ -9,8 +9,8 @@ Package: i2p ...@@ -9,8 +9,8 @@ Package: i2p
Architecture: all Architecture: all
Section: net Section: net
Priority: optional Priority: optional
Depends: java-runtime Depends: sun-java6-jre | default-jre | java-runtime
Description: load-balanced unspoofable packet switching network Description: Load-balanced unspoofable packet switching network
I2P is an anonymizing network, offering a simple layer that identity-sensitive I2P is an anonymizing network, offering a simple layer that identity-sensitive
applications can use to securely communicate. All data is wrapped with several applications can use to securely communicate. All data is wrapped with several
layers of encryption, and the network is both distributed and dynamic, with no layers of encryption, and the network is both distributed and dynamic, with no
......
#!/usr/bin/make -f #!/usr/bin/make -f
VERSION=`grep String\ VERSION core/java/src/net/i2p/CoreVersion.java | cut -d\" -f2`
SOURCEURL=http://mirror.i2p2.de/i2psource_${VERSION}.tar.bz2
build: build:
ant preppkg-linux-only ant preppkg-linux-only
mkdir -p debian/tmp/usr/lib mkdir -p debian/tmp/usr/lib
...@@ -12,14 +15,12 @@ build: ...@@ -12,14 +15,12 @@ build:
mkdir -p debian/tmp/usr/bin mkdir -p debian/tmp/usr/bin
sed 's|%INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/eepget > debian/tmp/usr/lib/i2p/a sed 's|%INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/eepget > debian/tmp/usr/lib/i2p/a
mv debian/tmp/usr/lib/i2p/a debian/tmp/usr/lib/i2p/eepget mv debian/tmp/usr/lib/i2p/a debian/tmp/usr/lib/i2p/eepget
cp debian/tmp/usr/lib/i2p/eepget debian/tmp/usr/bin/eepget ln -s /usr/lib/i2p/eepget debian/tmp/usr/bin/eepget
chmod +x debian/tmp/usr/bin/eepget
sed 's|%INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/runplain.sh > debian/tmp/usr/lib/i2p/a sed 's|%INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/runplain.sh > 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/runplain.sh sed 's|%SYSTEM_java_io_tmpdir|/tmp|g' debian/tmp/usr/lib/i2p/a > debian/tmp/usr/lib/i2p/runplain.sh
sed 's|%INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/i2prouter > debian/tmp/usr/lib/i2p/a sed 's|%INSTALL_PATH|/usr/lib/i2p|g' debian/tmp/usr/lib/i2p/i2prouter > 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/i2prouter sed 's|%SYSTEM_java_io_tmpdir|/tmp|g' debian/tmp/usr/lib/i2p/a > debian/tmp/usr/lib/i2p/i2prouter
cp debian/tmp/usr/lib/i2p/i2prouter debian/tmp/usr/bin/i2prouter ln -s /usr/lib/i2p/i2prouter debian/tmp/usr/bin/i2prouter
chmod +x debian/tmp/usr/bin/i2prouter
rm debian/tmp/usr/lib/i2p/a rm debian/tmp/usr/lib/i2p/a
touch debian/build touch debian/build
...@@ -34,3 +35,6 @@ clean: ...@@ -34,3 +35,6 @@ clean:
rm -rf debian/tmp/ rm -rf debian/tmp/
ant distclean ant distclean
@exit 0 @exit 0
get-orig-source:
wget ${SOURCEURL}
...@@ -17,6 +17,11 @@ I2P () { ...@@ -17,6 +17,11 @@ I2P () {
su i2psvc -c "/usr/lib/i2p/i2prouter $1" su i2psvc -c "/usr/lib/i2p/i2prouter $1"
} }
if [ `id -un` != "root" ]; then
echo "This script ($0) must be run as root"
exit 1
fi
case "$1" in case "$1" in
start) start)
log_daemon_msg "Starting I2P" "i2p" log_daemon_msg "Starting I2P" "i2p"
......
...@@ -11,4 +11,10 @@ chown $I2PUSER:$I2PUSER $SVCHOME ...@@ -11,4 +11,10 @@ chown $I2PUSER:$I2PUSER $SVCHOME
update-rc.d i2p defaults update-rc.d i2p defaults
cd $I2P cd $I2P
exec su $I2PUSER ./postinstall.sh su $I2PUSER ./postinstall.sh
chmod 755 /usr/lib/i2p/eepget
chmod 755 /usr/lib/i2p/i2prouter
chmod 755 /usr/lib/i2p/i2psvc
invoke-rc.d i2p start
#!/bin/sh #!/bin/sh
# $1 is either "remove" or "purge". Since there are no config
# files left after a remove, exit here if called with "purge".
# This avoids calling userdel again which would cause an error.
if [ "$1" = "purge" ]; then
exit 0;
fi
I2PUSER=i2psvc I2PUSER=i2psvc
exec userdel $I2PUSER exec userdel $I2PUSER
......
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