Reorganize the Debian directory structure to conform to their packaging policy. This brings the number of Lintian errors+warning
s down from 383 to 16.
This commit is contained in:
2
debian/scripts/init
vendored
2
debian/scripts/init
vendored
@ -14,7 +14,7 @@ set -e
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
I2P () {
|
||||
su i2psvc -c "/usr/lib/i2p/i2prouter $1"
|
||||
su i2psvc -c "/usr/bin/i2prouter $1"
|
||||
}
|
||||
|
||||
if [ `id -un` != "root" ]; then
|
||||
|
2
debian/scripts/postinst
vendored
2
debian/scripts/postinst
vendored
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
SVCHOME=/var/lib/i2p
|
||||
I2P=/usr/lib/i2p
|
||||
I2P=/usr/share/i2p
|
||||
I2PUSER=i2psvc
|
||||
|
||||
useradd -d $SVCHOME -r $I2PUSER
|
||||
|
2
debian/scripts/postrm
vendored
2
debian/scripts/postrm
vendored
@ -9,6 +9,6 @@ fi
|
||||
|
||||
# if somebody did updates in-network, there may be new files that dpkg
|
||||
# doesn't know about, so just to be sure
|
||||
I2P=/usr/lib/i2p
|
||||
I2P=/usr/share/i2p
|
||||
rm -rf $I2P
|
||||
|
||||
|
3
debian/scripts/prerm
vendored
3
debian/scripts/prerm
vendored
@ -8,7 +8,8 @@ rm -f /tmp/wrapper.log /tmp/wrapper.log.1 /tmp/wrapper.log.2 /tmp/i2p.pid /tmp/r
|
||||
update-rc.d -f i2p remove
|
||||
|
||||
# dpkg doesn't know about these files, they were copied out of jbigi.jar by the router
|
||||
rm -f $I2P/libjbigi.so $I2P/libjcpuid.so
|
||||
LIB=/usr/lib/i2p
|
||||
rm -f $LIB/libjbigi.so $LIB/libjcpuid.so
|
||||
|
||||
# the home directory for the i2p daemon
|
||||
SVCHOME=/var/lib/i2p
|
||||
|
Reference in New Issue
Block a user