Commits

neko259 committed 794373d

Added i2p.

Comments (0)

Files changed (9)

net-p2p/i2p/Manifest

+AUX i2p 579 RMD160 7999dc37342b5e4df1ea4194d72e2315c81cac92 SHA1 7190686e4c74eddc33032a0e273f9fac251bedd3 SHA256 96712528ee5fa38b088581494799a8cc697264fbfdf01f0c1288d74a5d61e8d8
+DIST i2psource_0.8.10.tar.bz2 19813316 RMD160 8bb6771f13edb8083ff396902493ac86b41523b8 SHA1 0e6d602fcd0b4052b97571a703d9b45af43c918b SHA256 e5832bb49f46b0b6620e8492e6fc6454de4107b84bca5a4b35461c6b7ac0575e
+DIST i2psource_0.8.11.tar.bz2 19901386 RMD160 13085f8da7dab24650568dd53ae7c4509aa55a9a SHA1 4b6d0c0d340ed95fe028a17b589169d09081db84 SHA256 f7113da64bacea9a560e0f3c31c9fb663fc646d16bb621a9b8f1e97477d0a2d1
+DIST i2psource_0.8.12.tar.bz2 19842718 RMD160 6d0d80ca65e70faa52c3ead9277e653694ebedf3 SHA1 29f3ffe79b1f3070e9a08d4052e208fa43d23d82 SHA256 019d6018e7093650cf67fd883b0cf0f12aa2f4f0cddc5ef6a08e6147af07f142
+DIST i2psource_0.8.13.tar.bz2 19956899 RMD160 1bc11ed6e8ae020bd3def6b0741efe0f512e9b78 SHA1 3523c479983aca2793966409a44bb14e6a034cf5 SHA256 bdd510cc47b2cd78aa8d994e27694185c1f2deb48b049d61a93a795932ce5712
+DIST i2psource_0.8.8.tar.bz2 19407244 RMD160 4eda44d98c860c93f34a45c891e6e138df338589 SHA1 b63660f3d8dbca679958c6bd1735a356fc2a74bd SHA256 522adf14aeac28281ec469f2f45c9d5ead73dd510784d5ad148aa505784a4394
+DIST i2psource_0.8.9.tar.bz2 19809016 RMD160 3d1e379654131ba996dd227f234f0cba6432ea64 SHA1 2d85b200b87932d0636054bea2b8fc7562a5acf7 SHA256 c40d503c0ee2e90c75f3d635649490a8e49b60e1da8100db118e2097a133429e
+DIST jetty-5.1.15.tgz 11063548 RMD160 600062500383b985b0bfbb30d286aba3f6a6c1e4 SHA1 3a7a3de50f86f0cdb23c33aec632ea7f44132c5e SHA256 c866bfe7715941e343e66bd5d6696a743b9c0811ef9763848eb673070f4a53d6
+EBUILD i2p-0.8.10.ebuild 2762 RMD160 7bd2b9737068dbae5457a6427c3df6bf8da5f79f SHA1 4013169344923b7a8b175182bfc894abfb8b0421 SHA256 13603e9759f7ff1d5ab21df21544e69a41bbc12d466170e165d2eeac5b603427
+EBUILD i2p-0.8.11.ebuild 2762 RMD160 7bd2b9737068dbae5457a6427c3df6bf8da5f79f SHA1 4013169344923b7a8b175182bfc894abfb8b0421 SHA256 13603e9759f7ff1d5ab21df21544e69a41bbc12d466170e165d2eeac5b603427
+EBUILD i2p-0.8.12.ebuild 2893 RMD160 4d2050031718d0317f8d876e4b4b293da2259958 SHA1 7e6f14e028c5e7844dab89d57bbd7b17dbbf7f74 SHA256 85a639ad943e98fb24cc8e82be679b36eef960143bf580350e82070afb2ad007
+EBUILD i2p-0.8.13.ebuild 2893 RMD160 4d2050031718d0317f8d876e4b4b293da2259958 SHA1 7e6f14e028c5e7844dab89d57bbd7b17dbbf7f74 SHA256 85a639ad943e98fb24cc8e82be679b36eef960143bf580350e82070afb2ad007
+EBUILD i2p-0.8.8.ebuild 2762 RMD160 7bd2b9737068dbae5457a6427c3df6bf8da5f79f SHA1 4013169344923b7a8b175182bfc894abfb8b0421 SHA256 13603e9759f7ff1d5ab21df21544e69a41bbc12d466170e165d2eeac5b603427
+EBUILD i2p-0.8.9.ebuild 2762 RMD160 7bd2b9737068dbae5457a6427c3df6bf8da5f79f SHA1 4013169344923b7a8b175182bfc894abfb8b0421 SHA256 13603e9759f7ff1d5ab21df21544e69a41bbc12d466170e165d2eeac5b603427
+MISC metadata.xml 627 RMD160 4290215ecf4cb58669af966f12dd053e01e715f5 SHA1 fba868c2f3d50bcc9b7ce8744dae4896e3275e11 SHA256 cecae24b3e84e222b6bb2ae74bd77c8e49bf5ba2ad6034d30b44e9a524bf0938

net-p2p/i2p/files/i2p

+#!/sbin/runscript
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+	need net
+}
+
+start() {
+	ebegin "Starting I2P"
+	PIDFILE=/var/run/i2p.pid
+	I2P=/opt/i2p
+	WRAPPER_CMD="$I2P/i2psvc"
+	WRAPPER_CONF="$I2P/wrapper.config"
+	start-stop-daemon --start -b -m -u i2p --pidfile "${PIDFILE}" --quiet --exec $WRAPPER_CMD $WRAPPER_CONF wrapper.daemonize=FALSE
+	sleep 1
+	[ -e /var/run/i2p.pid -a -e /proc/$(cat /var/run/i2p.pid) ]
+	eend $?
+}
+
+stop() {
+	ebegin "Stopping I2P"
+	/usr/bin/i2prouter stop
+	eend $?
+}
+

net-p2p/i2p/i2p-0.8.10.ebuild

+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit eutils java-pkg-2 java-ant-2 pax-utils
+
+JETTY_V="5.1.15"
+
+DESCRIPTION="I2P is an anonymous network."
+
+SRC_URI="http://mirror.i2p2.de/${PN}source_${PV}.tar.bz2
+	http://dist.codehaus.org/jetty/jetty-5.1.x/jetty-${JETTY_V}.tgz"
+HOMEPAGE="http://www.i2p.net/"
+
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+LICENSE="GPL-2"
+IUSE="initscript"
+DEPEND=">=virtual/jdk-1.5"
+RDEPEND="${DEPEND}"
+
+QA_TEXTRELS="opt/i2p/i2psvc"
+QA_TEXTRELS="opt/i2p/lib/libwrapper.so"
+
+src_unpack() {
+	unpack "i2psource_${PV}.tar.bz2"
+	cp "${DISTDIR}/jetty-${JETTY_V}.tgz" -P "${S}/apps/jetty" || die
+}
+
+src_compile() {
+	eant pkg || die
+}
+
+src_install() {
+	cd pkg-temp || die
+	sed -i 's:[%$]INSTALL_PATH:/opt/i2p:g' \
+		eepget i2prouter runplain.sh *.config || die
+	sed -i 's:[%$]SYSTEM_java_io_tmpdir:/tmp:g' \
+		runplain.sh || die
+	if use initscript ; then
+		sed -i 's:^#\?PIDDIR=.*:PIDDIR="/var/run/":g' \
+			i2prouter || die
+		sed -i 's:[%$]SYSTEM_java_io_tmpdir:/opt/i2p/home:g' \
+			eepget i2prouter *.config || die
+	else
+		sed -i 's:[%$]SYSTEM_java_io_tmpdir:/tmp:g' \
+			eepget i2prouter *.config || die
+	fi
+	exeinto /opt/i2p
+	insinto /opt/i2p
+# 	Install to package root
+# 	Install files
+	doins ${S}/apps/i2psnark/jetty-i2psnark.xml ${S}/pkg-temp/blocklist.txt ${S}/apps/i2psnark/launch-i2psnark ${S}/pkg-temp/hosts.txt || die
+	doexe eepget i2prouter ${S}/apps/i2psnark/launch-i2psnark osid postinstall.sh runplain.sh *.config || die
+	if use x86; then
+		doexe lib/wrapper/linux/i2psvc || die
+	elif use amd64; then
+		doexe lib/wrapper/linux64/i2psvc || die
+	fi
+	dodoc history.txt LICENSE.txt INSTALL-headless.txt || die
+	doman man/* || die
+# 	Install dirs
+	doins -r docs geoip eepsite scripts certificates webapps || die
+	dodoc -r licenses || die
+# 	Install files to package lib
+	insinto /opt/i2p/lib
+	exeinto /opt/i2p/lib
+	find lib/ -maxdepth 1 -type f '!' -name '*.dll' -print0 | xargs -0 doins || die
+	if use x86; then
+		doexe lib/wrapper/linux/libwrapper.so \
+		lib/wrapper.jar || die
+	elif use amd64; then
+		doexe lib/wrapper/linux64/libwrapper.so \
+		lib/wrapper.jar || die
+	fi
+	dosym "${D}"/opt/i2p/i2prouter /usr/bin/i2prouter
+	dosym "${D}"/opt/i2p/eepget /usr/bin/eepget
+	if use initscript; then
+		doinitd "${FILESDIR}"/i2p || die
+	fi
+	pax-mark m "$D/opt/i2p/i2psvc"
+}
+
+pkg_postinst() {
+	if use initscript; then
+		enewgroup ${PN}
+		enewuser ${PN} -1 -1 /opt/i2p/home/ ${PN} -m
+		einfo "Configure the router now : http://localhost:7657/index.jsp"
+		einfo "Use /etc/init.d/i2p start to start I2P"
+	else
+		einfo "Configure the router now : http://localhost:7657/index.jsp"
+		einfo "Use 'i2prouter start' to run I2P and 'i2prouter stop' to stop it."
+	fi
+}

net-p2p/i2p/i2p-0.8.11.ebuild

+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit eutils java-pkg-2 java-ant-2 pax-utils
+
+JETTY_V="5.1.15"
+
+DESCRIPTION="I2P is an anonymous network."
+
+SRC_URI="http://mirror.i2p2.de/${PN}source_${PV}.tar.bz2
+	http://dist.codehaus.org/jetty/jetty-5.1.x/jetty-${JETTY_V}.tgz"
+HOMEPAGE="http://www.i2p.net/"
+
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+LICENSE="GPL-2"
+IUSE="initscript"
+DEPEND=">=virtual/jdk-1.5"
+RDEPEND="${DEPEND}"
+
+QA_TEXTRELS="opt/i2p/i2psvc"
+QA_TEXTRELS="opt/i2p/lib/libwrapper.so"
+
+src_unpack() {
+	unpack "i2psource_${PV}.tar.bz2"
+	cp "${DISTDIR}/jetty-${JETTY_V}.tgz" -P "${S}/apps/jetty" || die
+}
+
+src_compile() {
+	eant pkg || die
+}
+
+src_install() {
+	cd pkg-temp || die
+	sed -i 's:[%$]INSTALL_PATH:/opt/i2p:g' \
+		eepget i2prouter runplain.sh *.config || die
+	sed -i 's:[%$]SYSTEM_java_io_tmpdir:/tmp:g' \
+		runplain.sh || die
+	if use initscript ; then
+		sed -i 's:^#\?PIDDIR=.*:PIDDIR="/var/run/":g' \
+			i2prouter || die
+		sed -i 's:[%$]SYSTEM_java_io_tmpdir:/opt/i2p/home:g' \
+			eepget i2prouter *.config || die
+	else
+		sed -i 's:[%$]SYSTEM_java_io_tmpdir:/tmp:g' \
+			eepget i2prouter *.config || die
+	fi
+	exeinto /opt/i2p
+	insinto /opt/i2p
+# 	Install to package root
+# 	Install files
+	doins ${S}/apps/i2psnark/jetty-i2psnark.xml ${S}/pkg-temp/blocklist.txt ${S}/apps/i2psnark/launch-i2psnark ${S}/pkg-temp/hosts.txt || die
+	doexe eepget i2prouter ${S}/apps/i2psnark/launch-i2psnark osid postinstall.sh runplain.sh *.config || die
+	if use x86; then
+		doexe lib/wrapper/linux/i2psvc || die
+	elif use amd64; then
+		doexe lib/wrapper/linux64/i2psvc || die
+	fi
+	dodoc history.txt LICENSE.txt INSTALL-headless.txt || die
+	doman man/* || die
+# 	Install dirs
+	doins -r docs geoip eepsite scripts certificates webapps || die
+	dodoc -r licenses || die
+# 	Install files to package lib
+	insinto /opt/i2p/lib
+	exeinto /opt/i2p/lib
+	find lib/ -maxdepth 1 -type f '!' -name '*.dll' -print0 | xargs -0 doins || die
+	if use x86; then
+		doexe lib/wrapper/linux/libwrapper.so \
+		lib/wrapper.jar || die
+	elif use amd64; then
+		doexe lib/wrapper/linux64/libwrapper.so \
+		lib/wrapper.jar || die
+	fi
+	dosym "${D}"/opt/i2p/i2prouter /usr/bin/i2prouter
+	dosym "${D}"/opt/i2p/eepget /usr/bin/eepget
+	if use initscript; then
+		doinitd "${FILESDIR}"/i2p || die
+	fi
+	pax-mark m "$D/opt/i2p/i2psvc"
+}
+
+pkg_postinst() {
+	if use initscript; then
+		enewgroup ${PN}
+		enewuser ${PN} -1 -1 /opt/i2p/home/ ${PN} -m
+		einfo "Configure the router now : http://localhost:7657/index.jsp"
+		einfo "Use /etc/init.d/i2p start to start I2P"
+	else
+		einfo "Configure the router now : http://localhost:7657/index.jsp"
+		einfo "Use 'i2prouter start' to run I2P and 'i2prouter stop' to stop it."
+	fi
+}

net-p2p/i2p/i2p-0.8.12.ebuild

+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit eutils java-pkg-2 java-ant-2 pax-utils
+
+JETTY_V="5.1.15"
+
+DESCRIPTION="I2P is an anonymous network."
+
+SRC_URI="http://mirror.i2p2.de/${PN}source_${PV}.tar.bz2
+	http://dist.codehaus.org/jetty/jetty-5.1.x/jetty-${JETTY_V}.tgz"
+HOMEPAGE="http://www.i2p.net/"
+
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+LICENSE="GPL-2"
+IUSE="initscript"
+DEPEND=">=virtual/jdk-1.5"
+RDEPEND="${DEPEND}"
+
+QA_TEXTRELS="opt/i2p/i2psvc"
+QA_TEXTRELS="opt/i2p/lib/libwrapper.so"
+
+src_unpack() {
+	unpack "i2psource_${PV}.tar.bz2"
+	cp "${DISTDIR}/jetty-${JETTY_V}.tgz" -P "${S}/apps/jetty" || die
+}
+
+src_compile() {
+	eant pkg || die
+}
+
+src_install() {
+	cd pkg-temp || die
+	sed -i 's:[%$]INSTALL_PATH:/opt/i2p:g' \
+		eepget i2prouter runplain.sh *.config || die
+	sed -i 's:[%$]SYSTEM_java_io_tmpdir:/tmp:g' \
+		runplain.sh || die
+	sed -i 's:wrapper.java.command=java:wrapper.java.command=/etc/java-config-2/current-system-vm/bin/java:' \
+	wrapper.config || die
+	if use initscript ; then
+		sed -i 's:^#\?PIDDIR=.*:PIDDIR="/var/run/":g' \
+			i2prouter || die
+		sed -i 's:[%$]SYSTEM_java_io_tmpdir:/opt/i2p/home:g' \
+			eepget i2prouter *.config || die
+	else
+		sed -i 's:[%$]SYSTEM_java_io_tmpdir:/tmp:g' \
+			eepget i2prouter *.config || die
+	fi
+	exeinto /opt/i2p
+	insinto /opt/i2p
+# 	Install to package root
+# 	Install files
+	doins ${S}/apps/i2psnark/jetty-i2psnark.xml ${S}/pkg-temp/blocklist.txt ${S}/apps/i2psnark/launch-i2psnark ${S}/pkg-temp/hosts.txt || die
+	doexe eepget i2prouter ${S}/apps/i2psnark/launch-i2psnark osid postinstall.sh runplain.sh *.config || die
+	if use x86; then
+		doexe lib/wrapper/linux/i2psvc || die
+	elif use amd64; then
+		doexe lib/wrapper/linux64/i2psvc || die
+	fi
+	dodoc history.txt LICENSE.txt INSTALL-headless.txt || die
+	doman man/* || die
+# 	Install dirs
+	doins -r docs geoip eepsite scripts certificates webapps || die
+	dodoc -r licenses || die
+# 	Install files to package lib
+	insinto /opt/i2p/lib
+	exeinto /opt/i2p/lib
+	find lib/ -maxdepth 1 -type f '!' -name '*.dll' -print0 | xargs -0 doins || die
+	if use x86; then
+		doexe lib/wrapper/linux/libwrapper.so \
+		lib/wrapper.jar || die
+	elif use amd64; then
+		doexe lib/wrapper/linux64/libwrapper.so \
+		lib/wrapper.jar || die
+	fi
+	dosym "${D}"/opt/i2p/i2prouter /usr/bin/i2prouter
+	dosym "${D}"/opt/i2p/eepget /usr/bin/eepget
+	if use initscript; then
+		doinitd "${FILESDIR}"/i2p || die
+	fi
+	pax-mark m "$D/opt/i2p/i2psvc"
+}
+
+pkg_postinst() {
+	if use initscript; then
+		enewgroup ${PN}
+		enewuser ${PN} -1 -1 /opt/i2p/home/ ${PN} -m
+		einfo "Configure the router now : http://localhost:7657/index.jsp"
+		einfo "Use /etc/init.d/i2p start to start I2P"
+	else
+		einfo "Configure the router now : http://localhost:7657/index.jsp"
+		einfo "Use 'i2prouter start' to run I2P and 'i2prouter stop' to stop it."
+	fi
+}

net-p2p/i2p/i2p-0.8.13.ebuild

+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit eutils java-pkg-2 java-ant-2 pax-utils
+
+JETTY_V="5.1.15"
+
+DESCRIPTION="I2P is an anonymous network."
+
+SRC_URI="http://mirror.i2p2.de/${PN}source_${PV}.tar.bz2
+	http://dist.codehaus.org/jetty/jetty-5.1.x/jetty-${JETTY_V}.tgz"
+HOMEPAGE="http://www.i2p.net/"
+
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+LICENSE="GPL-2"
+IUSE="initscript"
+DEPEND=">=virtual/jdk-1.5"
+RDEPEND="${DEPEND}"
+
+QA_TEXTRELS="opt/i2p/i2psvc"
+QA_TEXTRELS="opt/i2p/lib/libwrapper.so"
+
+src_unpack() {
+	unpack "i2psource_${PV}.tar.bz2"
+	cp "${DISTDIR}/jetty-${JETTY_V}.tgz" -P "${S}/apps/jetty" || die
+}
+
+src_compile() {
+	eant pkg || die
+}
+
+src_install() {
+	cd pkg-temp || die
+	sed -i 's:[%$]INSTALL_PATH:/opt/i2p:g' \
+		eepget i2prouter runplain.sh *.config || die
+	sed -i 's:[%$]SYSTEM_java_io_tmpdir:/tmp:g' \
+		runplain.sh || die
+	sed -i 's:wrapper.java.command=java:wrapper.java.command=/etc/java-config-2/current-system-vm/bin/java:' \
+	wrapper.config || die
+	if use initscript ; then
+		sed -i 's:^#\?PIDDIR=.*:PIDDIR="/var/run/":g' \
+			i2prouter || die
+		sed -i 's:[%$]SYSTEM_java_io_tmpdir:/opt/i2p/home:g' \
+			eepget i2prouter *.config || die
+	else
+		sed -i 's:[%$]SYSTEM_java_io_tmpdir:/tmp:g' \
+			eepget i2prouter *.config || die
+	fi
+	exeinto /opt/i2p
+	insinto /opt/i2p
+# 	Install to package root
+# 	Install files
+	doins ${S}/apps/i2psnark/jetty-i2psnark.xml ${S}/pkg-temp/blocklist.txt ${S}/apps/i2psnark/launch-i2psnark ${S}/pkg-temp/hosts.txt || die
+	doexe eepget i2prouter ${S}/apps/i2psnark/launch-i2psnark osid postinstall.sh runplain.sh *.config || die
+	if use x86; then
+		doexe lib/wrapper/linux/i2psvc || die
+	elif use amd64; then
+		doexe lib/wrapper/linux64/i2psvc || die
+	fi
+	dodoc history.txt LICENSE.txt INSTALL-headless.txt || die
+	doman man/* || die
+# 	Install dirs
+	doins -r docs geoip eepsite scripts certificates webapps || die
+	dodoc -r licenses || die
+# 	Install files to package lib
+	insinto /opt/i2p/lib
+	exeinto /opt/i2p/lib
+	find lib/ -maxdepth 1 -type f '!' -name '*.dll' -print0 | xargs -0 doins || die
+	if use x86; then
+		doexe lib/wrapper/linux/libwrapper.so \
+		lib/wrapper.jar || die
+	elif use amd64; then
+		doexe lib/wrapper/linux64/libwrapper.so \
+		lib/wrapper.jar || die
+	fi
+	dosym "${D}"/opt/i2p/i2prouter /usr/bin/i2prouter
+	dosym "${D}"/opt/i2p/eepget /usr/bin/eepget
+	if use initscript; then
+		doinitd "${FILESDIR}"/i2p || die
+	fi
+	pax-mark m "$D/opt/i2p/i2psvc"
+}
+
+pkg_postinst() {
+	if use initscript; then
+		enewgroup ${PN}
+		enewuser ${PN} -1 -1 /opt/i2p/home/ ${PN} -m
+		einfo "Configure the router now : http://localhost:7657/index.jsp"
+		einfo "Use /etc/init.d/i2p start to start I2P"
+	else
+		einfo "Configure the router now : http://localhost:7657/index.jsp"
+		einfo "Use 'i2prouter start' to run I2P and 'i2prouter stop' to stop it."
+	fi
+}

net-p2p/i2p/i2p-0.8.8.ebuild

+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit eutils java-pkg-2 java-ant-2 pax-utils
+
+JETTY_V="5.1.15"
+
+DESCRIPTION="I2P is an anonymous network."
+
+SRC_URI="http://mirror.i2p2.de/${PN}source_${PV}.tar.bz2
+	http://dist.codehaus.org/jetty/jetty-5.1.x/jetty-${JETTY_V}.tgz"
+HOMEPAGE="http://www.i2p.net/"
+
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+LICENSE="GPL-2"
+IUSE="initscript"
+DEPEND=">=virtual/jdk-1.5"
+RDEPEND="${DEPEND}"
+
+QA_TEXTRELS="opt/i2p/i2psvc"
+QA_TEXTRELS="opt/i2p/lib/libwrapper.so"
+
+src_unpack() {
+	unpack "i2psource_${PV}.tar.bz2"
+	cp "${DISTDIR}/jetty-${JETTY_V}.tgz" -P "${S}/apps/jetty" || die
+}
+
+src_compile() {
+	eant pkg || die
+}
+
+src_install() {
+	cd pkg-temp || die
+	sed -i 's:[%$]INSTALL_PATH:/opt/i2p:g' \
+		eepget i2prouter runplain.sh *.config || die
+	sed -i 's:[%$]SYSTEM_java_io_tmpdir:/tmp:g' \
+		runplain.sh || die
+	if use initscript ; then
+		sed -i 's:^#\?PIDDIR=.*:PIDDIR="/var/run/":g' \
+			i2prouter || die
+		sed -i 's:[%$]SYSTEM_java_io_tmpdir:/opt/i2p/home:g' \
+			eepget i2prouter *.config || die
+	else
+		sed -i 's:[%$]SYSTEM_java_io_tmpdir:/tmp:g' \
+			eepget i2prouter *.config || die
+	fi
+	exeinto /opt/i2p
+	insinto /opt/i2p
+# 	Install to package root
+# 	Install files
+	doins ${S}/apps/i2psnark/jetty-i2psnark.xml ${S}/pkg-temp/blocklist.txt ${S}/apps/i2psnark/launch-i2psnark ${S}/pkg-temp/hosts.txt || die
+	doexe eepget i2prouter ${S}/apps/i2psnark/launch-i2psnark osid postinstall.sh runplain.sh *.config || die
+	if use x86; then
+		doexe lib/wrapper/linux/i2psvc || die
+	elif use amd64; then
+		doexe lib/wrapper/linux64/i2psvc || die
+	fi
+	dodoc history.txt LICENSE.txt INSTALL-headless.txt || die
+	doman man/* || die
+# 	Install dirs
+	doins -r docs geoip eepsite scripts certificates webapps || die
+	dodoc -r licenses || die
+# 	Install files to package lib
+	insinto /opt/i2p/lib
+	exeinto /opt/i2p/lib
+	find lib/ -maxdepth 1 -type f '!' -name '*.dll' -print0 | xargs -0 doins || die
+	if use x86; then
+		doexe lib/wrapper/linux/libwrapper.so \
+		lib/wrapper.jar || die
+	elif use amd64; then
+		doexe lib/wrapper/linux64/libwrapper.so \
+		lib/wrapper.jar || die
+	fi
+	dosym "${D}"/opt/i2p/i2prouter /usr/bin/i2prouter
+	dosym "${D}"/opt/i2p/eepget /usr/bin/eepget
+	if use initscript; then
+		doinitd "${FILESDIR}"/i2p || die
+	fi
+	pax-mark m "$D/opt/i2p/i2psvc"
+}
+
+pkg_postinst() {
+	if use initscript; then
+		enewgroup ${PN}
+		enewuser ${PN} -1 -1 /opt/i2p/home/ ${PN} -m
+		einfo "Configure the router now : http://localhost:7657/index.jsp"
+		einfo "Use /etc/init.d/i2p start to start I2P"
+	else
+		einfo "Configure the router now : http://localhost:7657/index.jsp"
+		einfo "Use 'i2prouter start' to run I2P and 'i2prouter stop' to stop it."
+	fi
+}

net-p2p/i2p/i2p-0.8.9.ebuild

+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit eutils java-pkg-2 java-ant-2 pax-utils
+
+JETTY_V="5.1.15"
+
+DESCRIPTION="I2P is an anonymous network."
+
+SRC_URI="http://mirror.i2p2.de/${PN}source_${PV}.tar.bz2
+	http://dist.codehaus.org/jetty/jetty-5.1.x/jetty-${JETTY_V}.tgz"
+HOMEPAGE="http://www.i2p.net/"
+
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+LICENSE="GPL-2"
+IUSE="initscript"
+DEPEND=">=virtual/jdk-1.5"
+RDEPEND="${DEPEND}"
+
+QA_TEXTRELS="opt/i2p/i2psvc"
+QA_TEXTRELS="opt/i2p/lib/libwrapper.so"
+
+src_unpack() {
+	unpack "i2psource_${PV}.tar.bz2"
+	cp "${DISTDIR}/jetty-${JETTY_V}.tgz" -P "${S}/apps/jetty" || die
+}
+
+src_compile() {
+	eant pkg || die
+}
+
+src_install() {
+	cd pkg-temp || die
+	sed -i 's:[%$]INSTALL_PATH:/opt/i2p:g' \
+		eepget i2prouter runplain.sh *.config || die
+	sed -i 's:[%$]SYSTEM_java_io_tmpdir:/tmp:g' \
+		runplain.sh || die
+	if use initscript ; then
+		sed -i 's:^#\?PIDDIR=.*:PIDDIR="/var/run/":g' \
+			i2prouter || die
+		sed -i 's:[%$]SYSTEM_java_io_tmpdir:/opt/i2p/home:g' \
+			eepget i2prouter *.config || die
+	else
+		sed -i 's:[%$]SYSTEM_java_io_tmpdir:/tmp:g' \
+			eepget i2prouter *.config || die
+	fi
+	exeinto /opt/i2p
+	insinto /opt/i2p
+# 	Install to package root
+# 	Install files
+	doins ${S}/apps/i2psnark/jetty-i2psnark.xml ${S}/pkg-temp/blocklist.txt ${S}/apps/i2psnark/launch-i2psnark ${S}/pkg-temp/hosts.txt || die
+	doexe eepget i2prouter ${S}/apps/i2psnark/launch-i2psnark osid postinstall.sh runplain.sh *.config || die
+	if use x86; then
+		doexe lib/wrapper/linux/i2psvc || die
+	elif use amd64; then
+		doexe lib/wrapper/linux64/i2psvc || die
+	fi
+	dodoc history.txt LICENSE.txt INSTALL-headless.txt || die
+	doman man/* || die
+# 	Install dirs
+	doins -r docs geoip eepsite scripts certificates webapps || die
+	dodoc -r licenses || die
+# 	Install files to package lib
+	insinto /opt/i2p/lib
+	exeinto /opt/i2p/lib
+	find lib/ -maxdepth 1 -type f '!' -name '*.dll' -print0 | xargs -0 doins || die
+	if use x86; then
+		doexe lib/wrapper/linux/libwrapper.so \
+		lib/wrapper.jar || die
+	elif use amd64; then
+		doexe lib/wrapper/linux64/libwrapper.so \
+		lib/wrapper.jar || die
+	fi
+	dosym "${D}"/opt/i2p/i2prouter /usr/bin/i2prouter
+	dosym "${D}"/opt/i2p/eepget /usr/bin/eepget
+	if use initscript; then
+		doinitd "${FILESDIR}"/i2p || die
+	fi
+	pax-mark m "$D/opt/i2p/i2psvc"
+}
+
+pkg_postinst() {
+	if use initscript; then
+		enewgroup ${PN}
+		enewuser ${PN} -1 -1 /opt/i2p/home/ ${PN} -m
+		einfo "Configure the router now : http://localhost:7657/index.jsp"
+		einfo "Use /etc/init.d/i2p start to start I2P"
+	else
+		einfo "Configure the router now : http://localhost:7657/index.jsp"
+		einfo "Use 'i2prouter start' to run I2P and 'i2prouter stop' to stop it."
+	fi
+}

net-p2p/i2p/metadata.xml

+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-p2p</herd>
+<maintainer>
+  <email>ycarus@zugaina.org</email>
+  <description>This ebuild come from http://gentoo.zugaina.org/</description>
+</maintainer>
+    <longdescription lang="en">I2P is an anonymous network, exposing a simple layer that applications can use to anonymously and securely send messages to each other.</longdescription>
+    <longdescription lang="fr">I2P est un reseau anonyme que les applications peuvent utilise pour s'envoyer des messages.</longdescription>
+</pkgmetadata>