forked from I2P_Developers/i2p.i2p
merge of '1da5a6b3f2f42d9ddbe6b0a64e3c27313d61d86a'
and '5784df5facdf6e194dc3c052b2527a8c63c96c0f'
This commit is contained in:
4
debian/control
vendored
4
debian/control
vendored
@@ -9,8 +9,8 @@ Package: i2p
|
||||
Architecture: all
|
||||
Section: net
|
||||
Priority: optional
|
||||
Depends: java-runtime
|
||||
Description: load-balanced unspoofable packet switching network
|
||||
Depends: sun-java6-jre | default-jre | java-runtime
|
||||
Description: Load-balanced unspoofable packet switching network
|
||||
I2P is an anonymizing network, offering a simple layer that identity-sensitive
|
||||
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
|
||||
|
||||
12
debian/rules
vendored
12
debian/rules
vendored
@@ -1,5 +1,8 @@
|
||||
#!/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:
|
||||
ant preppkg-linux-only
|
||||
mkdir -p debian/tmp/usr/lib
|
||||
@@ -12,14 +15,12 @@ build:
|
||||
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
|
||||
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
|
||||
chmod +x debian/tmp/usr/bin/eepget
|
||||
ln -s /usr/lib/i2p/eepget 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|%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|%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
|
||||
chmod +x debian/tmp/usr/bin/i2prouter
|
||||
ln -s /usr/lib/i2p/i2prouter debian/tmp/usr/bin/i2prouter
|
||||
rm debian/tmp/usr/lib/i2p/a
|
||||
touch debian/build
|
||||
|
||||
@@ -34,3 +35,6 @@ clean:
|
||||
rm -rf debian/tmp/
|
||||
ant distclean
|
||||
@exit 0
|
||||
|
||||
get-orig-source:
|
||||
wget ${SOURCEURL}
|
||||
|
||||
5
debian/scripts/init
vendored
5
debian/scripts/init
vendored
@@ -17,6 +17,11 @@ I2P () {
|
||||
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
|
||||
start)
|
||||
log_daemon_msg "Starting I2P" "i2p"
|
||||
|
||||
8
debian/scripts/postinst
vendored
8
debian/scripts/postinst
vendored
@@ -11,4 +11,10 @@ chown $I2PUSER:$I2PUSER $SVCHOME
|
||||
update-rc.d i2p defaults
|
||||
|
||||
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
|
||||
|
||||
8
debian/scripts/postrm
vendored
8
debian/scripts/postrm
vendored
@@ -1,4 +1,12 @@
|
||||
#!/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
|
||||
exec userdel $I2PUSER
|
||||
|
||||
|
||||
Reference in New Issue
Block a user