Debian: Creating a new fourth package by splitting the i2p package in two

This commit splits the i2p package into a second package, i2p-router.
   * The new 'i2p-router' package does not depend on the java-wrapper nor jbigi.
     Jbigi is recommended. This package can be installed on the ports or 
     distributions that the java-wrapper is not available for.
   * The new 'i2p' package depends on i2p-router, libjbigi-jni, and the java-wrapper. 
     This package will add the i2psvc system user and the initscript. Existing
     users of the i2p package will have the i2p-router package pulled in
     automatically and for them there will be no usability changes.

 Executive summary: No functionality changes will take place for either those
		    that installed the i2p package in the past or those that
		    install the newly split i2p package. For them, "The Song
                    Remains the Same."
This commit is contained in:
kytv
2011-05-27 09:33:20 +00:00
parent e347ee5880
commit 164f060a40
15 changed files with 100 additions and 43 deletions

7
debian/NEWS vendored
View File

@ -1,4 +1,4 @@
i2p (0.8.6-5) UNRELEASED; urgency=low i2p (0.8.6-5) stable; urgency=low
The file /etc/i2p/wrapper.service is no longer shipped in this package. The file /etc/i2p/wrapper.service is no longer shipped in this package.
Instead the file /etc/i2p/wrapper.config is used with the changes that used to Instead the file /etc/i2p/wrapper.config is used with the changes that used to
@ -6,4 +6,7 @@ i2p (0.8.6-5) UNRELEASED; urgency=low
the amount of memory set aside for I2P, you'll need to make that change to the amount of memory set aside for I2P, you'll need to make that change to
/etc/i2p/wrapper.config. /etc/i2p/wrapper.config.
-- Kill Your TV <killyourtv@i2pmail.org> Wed, 25 May 2011 22:17:05 +0000 The I2P router is now split into four different packages: i2p, i2p-doc,
i2p-router, and libjbigi.
-- Kill Your TV <killyourtv@i2pmail.org> Wed, 25 May 2011 20:46:49 +0000

15
debian/changelog vendored
View File

@ -1,12 +1,15 @@
i2p (0.8.6-5) UNRELEASED; urgency=low i2p (0.8.6-5) stable; urgency=low
* Remove /etc/i2p/wrapper.service and add the changed configs to the * Remove /etc/i2p/wrapper.service. Changes have been moved to the
initscript. initscript.
* Create debian/copyright at build time. * Don't disable browser launch. This is handled automatically for the i2psvc
* Don't ship the standalone jetty-i2psnark. user.
* Create debian/copyright dynamically at build time
-- Kill Your TV <killyourtv@i2pmail.org> Wed, 25 May 2011 21:11:40 +0000 * Don't ship the standalone jetty-i2psnark
* Create split package so that the wrapper isn't required
* Install missing certificates directory
-- Kill Your TV <killyourtv@i2pmail.org> Fri, 27 May 2011 03:48:56 +0000
i2p (0.8.6-4) stable; urgency=low i2p (0.8.6-4) stable; urgency=low

45
debian/control vendored
View File

@ -1,6 +1,5 @@
Source: i2p Source: i2p
Maintainer: Kill Your TV <killyourtv@i2pmail.org> Maintainer: Kill Your TV <killyourtv@i2pmail.org>
Uploaders: zzz <zzz@i2pmail.org>
Section: net Section: net
Standards-Version: 3.9.2 Standards-Version: 3.9.2
Priority: optional Priority: optional
@ -20,25 +19,19 @@ Section: net
Priority: optional Priority: optional
Depends: ${misc:Depends}, ${java:Depends}, ${shlibs:Depends}, default-jre | java5-runtime | java6-runtime, Depends: ${misc:Depends}, ${java:Depends}, ${shlibs:Depends}, default-jre | java5-runtime | java6-runtime,
adduser, adduser,
i2p-router (>= 0.8.6-5),
libjbigi-jni (>= ${source:Version}), libjbigi-jni (>= ${source:Version}),
libjbigi-jni (<< ${source:Version}.1~), libjbigi-jni (<< ${source:Version}.1~),
lsb-base (>= 3.2-14), lsb-base (>= 3.2-14),
service-wrapper service-wrapper
Suggests: tor,
i2pfox,
mail-client,
mail-reader,
news-reader,
polipo,
privoxy,
syndie,
www-browser,
xul-ext-torbutton
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
trusted parties. trusted parties.
.
This package depends on the router, jbigi, the java service wrapper, and
includes support to run I2P as a daemon.
Package: libjbigi-jni Package: libjbigi-jni
Architecture: any Architecture: any
@ -66,3 +59,33 @@ Description: Documentation for I2P
trusted parties. trusted parties.
. .
This package contains the Javadoc files. This package contains the Javadoc files.
Package: i2p-router
Architecture: all
Section: net
Priority: optional
Depends: ${misc:Depends}, ${java:Depends}, ${shlibs:Depends}, default-jre | java5-runtime | java6-runtime
Replaces: i2p ( << 0.8.6-5)
Breaks: i2p (<< 0.8.6-5)
Recommends: libjbigi-jni (>= ${source:Version}), libjbigi-jni (<< ${source:Version}.1~)
Suggests: tor,
i2p-messenger,
i2p-tahoe-lafs,
imule,
i2pfox,
irc-client,
jircii,
mail-client,
mail-reader,
news-reader,
polipo,
privoxy,
robert,
syndie,
www-browser,
xul-ext-torbutton
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
trusted parties.

11
debian/i2p-doc.preinst vendored Normal file
View File

@ -0,0 +1,11 @@
#!/bin/sh -e
exit 0
if [ ! -z $2 ]; then
if dpkg --compare-versions $2 lt 0.8.6-5; then
test -d /usr/share/doc/i2p-doc \
&& rm -rf /usr/share/doc/i2p-doc
fi
fi
#DEBHELPER#

16
debian/i2p-router.install vendored Normal file
View File

@ -0,0 +1,16 @@
history.txt usr/share/i2p
pkg-temp/blocklist.txt usr/share/i2p
pkg-temp/certificates usr/share/i2p
pkg-temp/clients.config usr/share/i2p
pkg-temp/docs usr/share/i2p/
pkg-temp/eepget usr/bin
pkg-temp/eepsite usr/share/i2p
pkg-temp/geoip usr/share/i2p
pkg-temp/hosts.txt usr/share/i2p
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/systray.config usr/share/i2p
pkg-temp/webapps usr/share/i2p
pkg-temp/*.xml usr/share/i2p

4
debian/i2p-router.links vendored Normal file
View File

@ -0,0 +1,4 @@
usr/share/common-licenses/GPL-2 usr/share/doc/i2p-router/licenses/LICENSE-GPLv2.txt
usr/share/common-licenses/LGPL-2.1 usr/share/doc/i2p-router/licenses/LICENSE-LGPLv2.1.txt
usr/share/common-licenses/Apache-2.0 usr/share/doc/i2p-router/licenses/LICENSE-Apache2.0.txt
usr/share/common-licenses/BSD usr/share/doc/i2p-router/licenses/LICENSE-BSD.txt

1
debian/i2p-router.manpages vendored Normal file
View File

@ -0,0 +1 @@
installer/resources/man/eepget.1

17
debian/i2p.install vendored
View File

@ -1,17 +1,2 @@
history.txt usr/share/i2p pkg-temp/i2prouter usr/bin
pkg-temp/blocklist.txt usr/share/i2p
pkg-temp/certificates usr/share/i2p
pkg-temp/clients.config usr/share/i2p
pkg-temp/docs usr/share/i2p/
pkg-temp/eepget usr/bin
pkg-temp/eepsite usr/share/i2p
pkg-temp/geoip usr/share/i2p
pkg-temp/hosts.txt usr/share/i2p
pkg-temp/i2prouter* 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/systray.config usr/share/i2p
pkg-temp/webapps usr/share/i2p
pkg-temp/wrapper.config etc/i2p pkg-temp/wrapper.config etc/i2p
pkg-temp/*.xml usr/share/i2p

9
debian/i2p.links vendored
View File

@ -1,10 +1,11 @@
usr/share/common-licenses/GPL-2 usr/share/doc/i2p/licenses/LICENSE-GPLv2.txt
usr/share/common-licenses/LGPL-2.1 usr/share/doc/i2p/licenses/LICENSE-LGPLv2.1.txt
usr/share/common-licenses/Apache-2.0 usr/share/doc/i2p/licenses/LICENSE-Apache2.0.txt
usr/share/common-licenses/BSD usr/share/doc/i2p/licenses/LICENSE-BSD.txt
var/lib/i2p/i2p-config/blocklist.txt etc/i2p/blocklist.txt var/lib/i2p/i2p-config/blocklist.txt etc/i2p/blocklist.txt
var/lib/i2p/i2p-config/bob.config etc/i2p/bob.config
var/lib/i2p/i2p-config/clients.config etc/i2p/clients.config var/lib/i2p/i2p-config/clients.config etc/i2p/clients.config
var/lib/i2p/i2p-config/hosts.txt etc/i2p/hosts.txt var/lib/i2p/i2p-config/hosts.txt etc/i2p/hosts.txt
var/lib/i2p/i2p-config/i2psnark.config etc/i2p/i2psnark.config var/lib/i2p/i2p-config/i2psnark.config etc/i2p/i2psnark.config
var/lib/i2p/i2p-config/i2ptunnel.config etc/i2p/i2ptunnel.config var/lib/i2p/i2p-config/i2ptunnel.config etc/i2p/i2ptunnel.config
var/lib/i2p/i2p-config/eepsite/jetty.xml etc/i2p/jetty.xml
var/lib/i2p/i2p-config/plugins.config etc/i2p/plugins.config
var/lib/i2p/i2p-config/router.config etc/i2p/router.config
var/lib/i2p/i2p-config/systray.config etc/i2p/systray.config var/lib/i2p/i2p-config/systray.config etc/i2p/systray.config
var/lib/i2p/i2p-config/webapps.config etc/i2p/webapps.config

2
debian/i2p.manpages vendored
View File

@ -1 +1 @@
installer/resources/man/*.1 installer/resources/man/i2prouter.1

10
debian/i2p.preinst vendored Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh -e
if [ ! -z $2 ]; then
if dpkg --compare-versions $2 lt 0.8.6-5; then
test -d /usr/share/doc/i2p \
&& rm -rf /usr/share/doc/i2p
fi
fi
#DEBHELPER#

View File

@ -1,7 +1,7 @@
#!/bin/sh -e #!/bin/sh -e
if [ ! -z $2 ]; then if [ ! -z $2 ]; then
if dpkg --compare-versions $2 lt 0.8.6-4; then if dpkg --compare-versions $2 lt 0.8.6-5; then
test -d /usr/share/doc/libjbigi-jni \ test -d /usr/share/doc/libjbigi-jni \
&& rm -rf /usr/share/doc/libjbigi-jni && rm -rf /usr/share/doc/libjbigi-jni
fi fi

2
debian/rules vendored
View File

@ -85,7 +85,7 @@ override_dh_installchangelogs:
dh_installchangelogs history.txt dh_installchangelogs history.txt
override_dh_installdocs: override_dh_installdocs:
dh_installdocs -plibjbigi-jni --link-doc=i2p dh_installdocs -pi2p -plibjbigi-jni --link-doc=i2p-router
dh_installdocs --remaining-packages dh_installdocs --remaining-packages
override_dh_dhlibdeps: override_dh_dhlibdeps: