Commits

neko259 committed 10fe9d6

Added i2p-0.9

Comments (0)

Files changed (3)

net-p2p/i2p/ChangeLog

+# ChangeLog for net-p2p/i2p
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*i2p-0.9 (05 May 2012)
+
+  05 May 2012; <vurdalak@gentoo.org> +i2p-0.9.ebuild:
+  Version bump to 0.9
+

net-p2p/i2p/Manifest

 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 i2psource_0.9.tar.bz2 21750559 RMD160 1ab5011336716e03b491f2a9cd472ae717e67d90 SHA1 a1d16d6809d84a7434b0cab31939acc124e4d7af SHA256 8a3654a13781a9aacf9db94081e057be73322f88db2931eba4f2cfa467ead429
 DIST jetty-5.1.15.tgz 11063548 RMD160 600062500383b985b0bfbb30d286aba3f6a6c1e4 SHA1 3a7a3de50f86f0cdb23c33aec632ea7f44132c5e SHA256 c866bfe7715941e343e66bd5d6696a743b9c0811ef9763848eb673070f4a53d6
+DIST jetty-6.1.26.zip 25894195 RMD160 6e960763e720641e1bfd69ca8e5d54f0bc7d8def SHA1 9485913f1a1945a849a90f1a34853d22350bc524 SHA256 96c08eb87ec3772dccc2b3dba54fea85ccc3f804faf7429eecfba3ed55648187
 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
+EBUILD i2p-0.9.ebuild 2894 RMD160 890db063924ff96e39079408d00d13c0e6bdfdc1 SHA1 ccd8f2edae8bf8cff297184782540803ed3c6780 SHA256 d09c68a6e4f5ae3c5a54fb91bcb9017e45f3e6a983669fa46e5d117e262986f5
+MISC ChangeLog 213 RMD160 6abb5d3e9b0cdc52c9aab710dfb89595fe149537 SHA1 698b3252d1bb95d2570c48037758b41255867677 SHA256 e075fa8cad4a4dd3d0f601e14084ac8a7325b4ccc0dad955a179253d6c5ceeaa
 MISC metadata.xml 627 RMD160 4290215ecf4cb58669af966f12dd053e01e715f5 SHA1 fba868c2f3d50bcc9b7ce8744dae4896e3275e11 SHA256 cecae24b3e84e222b6bb2ae74bd77c8e49bf5ba2ad6034d30b44e9a524bf0938

net-p2p/i2p/i2p-0.9.ebuild

+# Copyright 1999-2012 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="6.1.26"
+
+DESCRIPTION="I2P is an anonymous network."
+
+SRC_URI="http://mirror.i2p2.de/${PN}source_${PV}.tar.bz2
+	http://dist.codehaus.org/jetty/jetty-6.1.26/jetty-${JETTY_V}.zip"
+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}.zip" -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
+}