summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Sachau <tommy@gentoo.org>2012-08-02 18:19:48 +0000
committerThomas Sachau <tommy@gentoo.org>2012-08-02 18:19:48 +0000
commitf95857a35cd6a7ed43b40bf6e69c45a8edc5a5eb (patch)
tree9ceb64641210afc2ddb09357bb53709dae756a63 /net-p2p/freenet
parent[app-admin/logrotate] Version bump. (diff)
downloadhistorical-f95857a35cd6a7ed43b40bf6e69c45a8edc5a5eb.tar.gz
historical-f95857a35cd6a7ed43b40bf6e69c45a8edc5a5eb.tar.bz2
historical-f95857a35cd6a7ed43b40bf6e69c45a8edc5a5eb.zip
Version bump
Package-Manager: portage-2.2.0_alpha116-r1/cvs/Linux x86_64
Diffstat (limited to 'net-p2p/freenet')
-rw-r--r--net-p2p/freenet/ChangeLog8
-rw-r--r--net-p2p/freenet/Manifest46
-rw-r--r--net-p2p/freenet/freenet-0.7.5_p1409.ebuild148
3 files changed, 179 insertions, 23 deletions
diff --git a/net-p2p/freenet/ChangeLog b/net-p2p/freenet/ChangeLog
index d11010ba168a..4eca430b46d0 100644
--- a/net-p2p/freenet/ChangeLog
+++ b/net-p2p/freenet/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-p2p/freenet
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/freenet/ChangeLog,v 1.151 2012/06/22 18:37:41 tommy Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/freenet/ChangeLog,v 1.152 2012/08/02 18:19:48 tommy Exp $
+
+*freenet-0.7.5_p1409 (02 Aug 2012)
+
+ 02 Aug 2012; Thomas Sachau (Tommy[D]) <tommy@gentoo.org>
+ +freenet-0.7.5_p1409.ebuild:
+ Version bump
22 Jun 2012; Thomas Sachau (Tommy[D]) <tommy@gentoo.org>
freenet-0.7.5_p1407.ebuild:
diff --git a/net-p2p/freenet/Manifest b/net-p2p/freenet/Manifest
index 91d3d8c29aaa..d1bd131eadcf 100644
--- a/net-p2p/freenet/Manifest
+++ b/net-p2p/freenet/Manifest
@@ -1,29 +1,31 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-AUX 0.7.5_p1302-ext.patch 947 RMD160 5931df622dca62591cbffce5176330acce82567d SHA1 94a91e0a3f1598a26c569b14f81ca50f53d983ee SHA256 66eae4637f9248bf2407e8bb5361b86aa3f1d04acdfca4207a3596877430fbdc
-AUX freenet 476 RMD160 fdce44749587d73cb3f5b916e893e3bb95ef3200 SHA1 48eb8bfbd27a17b0bb3b29248ce4c43b59a76bda SHA256 4a8482117a434e9885438b7ca5384851bff49fefa28b13e33494a746c781342f
-AUX freenet-0.7.5_p1384-libraryloader-just-try-loading.patch 833 RMD160 eec3bec210ec4389e2f446d021238024ff854e0f SHA1 96dd2400bdb5e4489816b750898613483f0ae44f SHA256 ea583fd3893240c9e28b0e0ab652902b7b2819686f06beb17995bd591fe1b36e
-AUX freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch 932 RMD160 816bd5e83c8edfef277b70db431cf16247e796fb SHA1 d7758412ebf8cf820cb643a9f7ed71376a17d307 SHA256 1bb91a57f71044ee3dd51bb07eb7523644b60232445757c28a19b48a56a95e0a
-AUX freenet-0.7.5_p1389-wrapper.conf 1680 RMD160 bcb6122d7b9960e75d850765b005e521f521e47a SHA1 cfe240aa8b43f39c0e4a3f38485fd82245f9cd17 SHA256 f9e8e37b4e7eacbd5534fabce20a6597ae8123b4c63267393ed0d593a2c79a82
-AUX freenet.old 452 RMD160 e9e834fedf4270c14f3e8d754c58eb05f3f570c5 SHA1 edb5d0ab062d46f494db88560885d7ee7b026e29 SHA256 b3047b40128bbd7843dc370ab0aa150a9836ed789f48181bd6d8fc72f1714fa6
-AUX libraryloader-revert-using-of-absolute-path.patch 854 RMD160 6219c6019adca2f2d31b98d80b51bbbd96fb3f78 SHA1 f5e6928f0d3f820d00f388e815449e2926017b36 SHA256 b8bc840cc0c35a32bf000c23bdb5a7c7cb30508f6f39e3a3d29bb149996e6209
-AUX run.sh-20090501 16217 RMD160 f8b03990d011e1f149ec43aa536fd7540a19f01a SHA1 123fb5cf1c9b50357156fa300c5015a7e0ca65ad SHA256 470aa99d083a16d2f620282502a59546611f1903e21aef50b93b10d9fada7d7a
-DIST freenet-0.7.5_p1406.zip 4207605 RMD160 ca9631f34a9c17f551d57e7f40f39b5b9234f39f SHA1 bd11da9b65961fd00e4673a23694b10e83f5576a SHA256 0258b3123ddf0c7442bab33a640f6b25b1d92e41da18b2b3ef43cfae5d1321bb
-DIST freenet-0.7.5_p1407.zip 4213058 RMD160 5d621f6954a8d92026e3eddd10da4589fa52ad71 SHA1 e9b9784dbaa8b67091e4760c0bb742282256d01e SHA256 a08ab7e01816bcb2d2c4e9e56d4817ca2bc82bbc1e447019222c6476dad5d393
-DIST freenet-ant-1.7.1.jar 1327167 RMD160 2ff5fa9c7041aa475bc1374763897fd8f19ca1f4 SHA1 ab21c797797d9e216ff1e05dfaac969a74191cd1 SHA256 634e0b616d65d611419920e8b379b7b66399e44f520baa772147ed73743433b1
-DIST seednodes-20120404.fref.bz2 10744 RMD160 d4002fe18a609b5c0b1d3afbed040db776db3943 SHA1 d8b8119c7d05118205f4e9e3b2699c7ccfffe1c1 SHA256 c74d50f9f5c5bcfde58e02f1d98d84bca757b41497554a10cdeb0b51f32518f2
-DIST seednodes-20120415.fref.bz2 8988 RMD160 37c3e34652140fe6012a960142cb51c673f5d0be SHA1 24b54010e5a9901c4fab5e7cda355da685efc6b4 SHA256 b7dc53dd27fe8fecf523641136b5b37ec6e63b1c9c7c5f5a71552054319ee3e8
-EBUILD freenet-0.7.5_p1406.ebuild 4726 RMD160 1d590c12ef8f0697072c06ddf50deab4fa2f0380 SHA1 ca382e5bac08ccccb57fad96e9c04973154fcfe7 SHA256 a3a49145f024901f22346a761436c26808fe2bb7a2147d970f57f6beb4b517a0
-EBUILD freenet-0.7.5_p1407.ebuild 4526 RMD160 ca600d9f91b8fe8dc4a424c5e5fb35511e03503f SHA1 19a8c66ec5c19af3324d2e75ae63e520760d6b1b SHA256 31e74ca4a7483fd709a4695a87bdc45abe6d42c3d96ba6697dc2bdec300d68c9
-MISC ChangeLog 20023 RMD160 bcc1e477943b4b4db22c257ac1fd76493f2b802e SHA1 cc463cacbbc2d1f69eb0a743f69bf340c14a7205 SHA256 ee8e14a58b9ad5a645ab42277a70b909140fd5f770d26dafdc6fbbd5e96f5da6
-MISC metadata.xml 310 RMD160 94e7e4cefcf1deb4bbff792a0cbf30ef63e7b264 SHA1 8f8368b809a3e803ab488945087827a41f1b40f5 SHA256 e614c0ca7fa5d32c3e94ccd6d822fd0aa482ce31439e0206f26b0f7a76113950
+AUX 0.7.5_p1302-ext.patch 947 SHA256 66eae4637f9248bf2407e8bb5361b86aa3f1d04acdfca4207a3596877430fbdc SHA512 e8fb05fcffb895a319d5f0abad0275cdb9c938e3f95fded659a7720b42738c253cd4908be9813dc341a9aa7b8b54e7dbe1c487aac2de46e171360a6e04e39667 WHIRLPOOL 232aa033ac968ed5214b34e748479c32658ff604fd4c7e5e9dfc0cb50c83fa16256fe9363b2f6a9674fd7b8d03a1289140f227e7b75be790d7c901ba6c0acaf3
+AUX freenet 476 SHA256 4a8482117a434e9885438b7ca5384851bff49fefa28b13e33494a746c781342f SHA512 3dba34e1d660de3dbe980bc77afb54956cacb0053f9958c067c2b89ee2652af0654f77589528d71da33cce6c1941b717c510a7899c8d884edcbc6f15e7acfdb9 WHIRLPOOL 18f8e455d9423024a8fbbd5407c88cfd35891b973627e3e04e12612892ac93926e2518e39ae0e7e8d2fa03fc2fc9a05f977a7186f2e343953c22b4dfc9f5f933
+AUX freenet-0.7.5_p1384-libraryloader-just-try-loading.patch 833 SHA256 ea583fd3893240c9e28b0e0ab652902b7b2819686f06beb17995bd591fe1b36e SHA512 f2410c0ffee21c4f784710ef0780601d58d8c74ac486060203c198b9db27415d570765e9566e31a53acdd48e06be72987869cfe053097d8fac03f52956fdf988 WHIRLPOOL 9faa164b368b267251883cddbfca2589f3838bd5109a97ee2081520b9259f8bcdbd019ebdd6697a7f0f1ca721b5bbd5b7c6e902318e845c7c6b4a331b5b10b33
+AUX freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch 932 SHA256 1bb91a57f71044ee3dd51bb07eb7523644b60232445757c28a19b48a56a95e0a SHA512 1ff3b21a52dab0d99d1b13e83d0dad948ccf31a4aa9bfcaec306aa9c3ae08b77e3f505657113b46dbfcbb4ac21b3e63ce856158148dfc0167f89171182352ddf WHIRLPOOL 7951ca1ba17612064495fd995c5508fe80b14bfef63e294b37a4be5a066b880984b535995b3581ebccd32781bf784cf889d5ef357765c3ead17186dabb37c3f1
+AUX freenet-0.7.5_p1389-wrapper.conf 1680 SHA256 f9e8e37b4e7eacbd5534fabce20a6597ae8123b4c63267393ed0d593a2c79a82 SHA512 cacfa6c4ec4de9d8bfc8dd5cb3fb694c8ed85e638dfa31f8bcd3a22758a862d8c0204610469634df0fac70c0097b194aa3de9f8cede7cc6bb665493b149d2d19 WHIRLPOOL a27e7682d13441f6eb8a8bce061a671b741e87651af079abec7380a60fff38871d4ba3c45c8d7977e89b8849f6214d0b5441291d28b0cbea64cc3cfdacb9c800
+AUX freenet.old 452 SHA256 b3047b40128bbd7843dc370ab0aa150a9836ed789f48181bd6d8fc72f1714fa6 SHA512 7f12188a1e81f40f361d6df4cf0ae0f8af1363da19318ce04625411b0ff30badb53b440c984589d9f1386ad05e6b8e4201eb79c99f381468f7f6356dccebb3a9 WHIRLPOOL 182ff0f515c6832a17880ea1db705e5ba690b6d08f1e4d3f12aa4f6e291dab68491507b14541b89a13b4ba797296ac432eaaa24cd8b35ad2d63d14bc6a6c0fae
+AUX libraryloader-revert-using-of-absolute-path.patch 854 SHA256 b8bc840cc0c35a32bf000c23bdb5a7c7cb30508f6f39e3a3d29bb149996e6209 SHA512 24627e9f30a1b4456bf386ebc0a789e6c1d8670d4c1371b2d658cf04f9a04c09dc91ac803af0b8f883578cf9b3b351da69c7f882f7bdf3277f183134219b4889 WHIRLPOOL 6a328c040c81548bc77452639e2a0752304ef639480258b34d6d4ae15b0009d766a18df90f5685d4f2891a71188c19788675a65d8912560afb9a9fdfa0e9261e
+AUX run.sh-20090501 16217 SHA256 470aa99d083a16d2f620282502a59546611f1903e21aef50b93b10d9fada7d7a SHA512 ba97f1e370ffb7c9ea109b7d529430581a588d8d7e121ec09865e9e8932f2901477f7f43e7d0b95c7c95c2c42db05870e5d811528f91f78b48b68a539c804e67 WHIRLPOOL 201c2541da742ae0c211d6b736914340dd06d4907326de5a0073b39e8aa0a60933ed7d4eef3aa86465f9d0c2e0bf5bd78ed85d3c83c08ba9b50aabc25853864e
+DIST freenet-0.7.5_p1406.zip 4207605 SHA256 0258b3123ddf0c7442bab33a640f6b25b1d92e41da18b2b3ef43cfae5d1321bb
+DIST freenet-0.7.5_p1407.zip 4213058 SHA256 a08ab7e01816bcb2d2c4e9e56d4817ca2bc82bbc1e447019222c6476dad5d393 SHA512 b87f55d47636847815cb2a94078473db980260514ac294de47a2e07f55ab78d9cee7fd8de8e771e1b0d63b60df22fe2c6c10c53f459cbb91a382003ffbe83077 WHIRLPOOL 9ce3db24d912424f37d35a936bdc8c12131b70b299328ec604f09373e2757bd593c056449fba603b508f44a35160ee7899183ba31f94aedec0d9d93075923a74
+DIST freenet-0.7.5_p1409.zip 4279017 SHA256 4da39b91ac2604e9fd25b3ef6e2384e16c5233ff39de98842ee025574c5c0e4b SHA512 f4e51861658b5016ccf8ced61b99d65ccf46a6020e55e9d1ef5f2b20b012e4e5238b99cafc2956d23e7391c87e810e214fead4895d42a052b508e61365c90ad8 WHIRLPOOL d4663ed25eba72b9b648a68e7354910ea0fd299ed58f2f102ad9c844cba5e82893590ecf66cd77c0330a0e9278229b2ddf0ccecaba31669061abe3f44596fac5
+DIST freenet-ant-1.7.1.jar 1327167 SHA256 634e0b616d65d611419920e8b379b7b66399e44f520baa772147ed73743433b1 SHA512 2c84378d995fed0630169fffab020bde89c3edb7b3bc1e14e2251ed71be684dc2520fdeed8bae382de362984e25a31dcd59326ef8735f8066166c1e8d98ca408 WHIRLPOOL 667be2b1581c5fd847907b63522a0f83c595a6b8f1805d714e978a5cb0f05de4804153c89605618adf5c3b097a7019e7d7e9de0bf0987c7b1adb0dbc54e0f055
+DIST seednodes-20120404.fref.bz2 10744 SHA256 c74d50f9f5c5bcfde58e02f1d98d84bca757b41497554a10cdeb0b51f32518f2
+DIST seednodes-20120415.fref.bz2 8988 SHA256 b7dc53dd27fe8fecf523641136b5b37ec6e63b1c9c7c5f5a71552054319ee3e8 SHA512 2641c798174a4ad774534a7c1bbd503d90347fca5a5dec6aee054efd3fb4858ff86d3d42516add3a60d99e2e66f5c2bf6cf56d2e8f580fb59fe3b681a1b4f3ae WHIRLPOOL f8ec937ef36a9dd894c2a547b88466ec20d4a3c281eae6d0e39360e0f7d563c173ecdef074ff8f05a763c5df94a3771856e5569b0b0fbc59339b7b5f109b2112
+EBUILD freenet-0.7.5_p1406.ebuild 4726 SHA256 a3a49145f024901f22346a761436c26808fe2bb7a2147d970f57f6beb4b517a0 SHA512 76e029ad7a9d8634ddcb2bcaee4ec158ae7194b9c77cb0a088b17eb2a21492cdd093b0709ce07cea68373b4294635549d424bf13b61cdb0c4a0e64cd9bc9e813 WHIRLPOOL c6bed69b7e53c99fad4f1dca07cc2ac955ecd000dc9e90b2bcdc81f9080f7fbc946a52346714733a1d14dda876677efb76515e9151f5f54efbcffb61ea84e211
+EBUILD freenet-0.7.5_p1407.ebuild 4526 SHA256 31e74ca4a7483fd709a4695a87bdc45abe6d42c3d96ba6697dc2bdec300d68c9 SHA512 8015869fcad8e44888bfe87c910abaafb33c7e4d24024c1ad6224d3997a51d61a5ed5a0feab1f1a4c2d757d8d1d24cee9e2cfde386b187239968732f77aecc08 WHIRLPOOL 3acaaf99f64219f3eab67e48a6b0463daf797f942fb0eee55da966fedecec4c8a37c20acb52ad7c6f61c72b3b751afe2c6a22de63865f3697c1d2e082d22af0b
+EBUILD freenet-0.7.5_p1409.ebuild 4526 SHA256 e7a0a4386cccc203d5688103b26ae3b64dae9a3f58e4902e0f3337851d74c28b SHA512 4ca46b3e8d4a8c90a4bf9ff22a1428e4d3142cbea0881425e0edd45f412acb27eda7a4a16048e5ea2b856c64664359f39399f6919a557338fdaa195c689a7ec7 WHIRLPOOL 87a0284f79b5c79901ae2b3d2d923ba38cdc560e456fa5bd110561c028b39621365569fed4d8e2ebeff62a3eb5f113e304da521604d25a81e9ba3fd430dc0978
+MISC ChangeLog 20165 SHA256 d4f32f3b7f6b1d052393b5714a29c0d3ec0267fefa7395a1e8f1dfb85b080f59 SHA512 afc4181b715a19ff640f3cd992b4db561a8829a42c0c903ceac034fc4ea5b38ccd6a20f397725435d39ffd50731bc33cbde6e2c0ea7cc3266f2169dad4a143ee WHIRLPOOL e95d033504033e48ac7feb79e5f43cf6723bd7d2f3b7c3248391bd87a93beed5443de1408e8de52f6c36fc9ea5950e5a7d5b9509c8a407c9a4e1a8e17e1c9658
+MISC metadata.xml 310 SHA256 e614c0ca7fa5d32c3e94ccd6d822fd0aa482ce31439e0206f26b0f7a76113950 SHA512 51675c6c4240c3ca73e9526462da9617e4fa9a86ec43e21a2c85ef824015b3843948504ecb6643f4fdb65c3911712f2e0ab87ad37b56063445db42a315be6de4 WHIRLPOOL c0b49fedbcb65ed5b30254fc90688436070b66de3cc3699d0621d495dfad139bc6a6388b3f25be3be1824ce1eaf2cf688100abbf621116629e61ecfb52e338e0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iJwEAQECAAYFAk/ku4MACgkQG7kqcTWJkGcg3gP/ddzcpxe15p1pBHUaK+9Qwpsv
-kUDOY3KWHrI+mQx1Sup62plzZIRVxYChmhAijl49bu/gV30Uj1ZTFbCHB9zTrlDK
-NAs5pzUo59Yd12Gt8H+GYnXxUvWCy0BvLWgM9V08CJ+DPSzQEF+92mLOGAARaPvP
-Lqd2JTnGRCYNfWAQoig=
-=KnQ0
+iJwEAQECAAYFAlAaxR4ACgkQG7kqcTWJkGd6BgP6AxbfQSZVaj5E6/SlhhZdzCi6
+ImFVCMUiK1W3+qMhrRNvcbDpC2UZVWAdmE8aveQryx1YcuDIV4K/xzPUl/zKfzz/
+v6oE4l7NFrhkpfC+joA81bWQFG3TG3xLHTSo4z8cZadPU4cAaql1DhXmVt1fDYaZ
+7/Uhk26KpBEdQQvnIbg=
+=+EGP
-----END PGP SIGNATURE-----
diff --git a/net-p2p/freenet/freenet-0.7.5_p1409.ebuild b/net-p2p/freenet/freenet-0.7.5_p1409.ebuild
new file mode 100644
index 000000000000..db684321b799
--- /dev/null
+++ b/net-p2p/freenet/freenet-0.7.5_p1409.ebuild
@@ -0,0 +1,148 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/freenet/freenet-0.7.5_p1409.ebuild,v 1.1 2012/08/02 18:19:48 tommy Exp $
+
+EAPI="2"
+DATE=20120415
+JAVA_PKG_IUSE="doc source"
+
+inherit eutils java-pkg-2 java-ant-2 multilib user
+
+DESCRIPTION="An encrypted network without censorship"
+HOMEPAGE="https://freenetproject.org/"
+SRC_URI="http://github.com/${PN}/fred-official/zipball/build0${PV#*p} -> ${P}.zip
+ mirror://gentoo/seednodes-${DATE}.fref.bz2
+ mirror://gentoo/freenet-ant-1.7.1.jar"
+
+LICENSE="as-is GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="freemail test"
+
+CDEPEND="freemail? ( >=dev-java/bcprov-1.45:0 )
+ dev-java/commons-compress:0
+ dev-db/db-je:3.3
+ dev-java/fec:0
+ dev-java/java-service-wrapper:0
+ dev-java/db4o-jdk11:0
+ dev-java/db4o-jdk12:0
+ dev-java/db4o-jdk5:0
+ dev-java/jbitcollider-core:0
+ dev-java/lzma:0
+ dev-java/lzmajio:0
+ dev-java/mersennetwister:0"
+DEPEND="app-arch/unzip
+ >=virtual/jdk-1.6
+ ${CDEPEND}
+ test? ( dev-java/junit:0
+ dev-java/ant-junit:0 )
+ dev-java/ant-core:0"
+RDEPEND=">=virtual/jre-1.6
+ net-libs/nativebiginteger:0
+ ${CDEPEND}"
+PDEPEND="net-libs/NativeThread:0"
+
+JAVA_PKG_BSFIX_NAME+=" build-clean.xml"
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+JAVA_ANT_CLASSPATH_TAGS+=" javadoc"
+JAVA_ANT_ENCODING="utf8"
+
+EANT_BUILD_TARGET="package"
+EANT_TEST_TARGET="unit"
+EANT_BUILD_XML="build-clean.xml"
+EANT_GENTOO_CLASSPATH="commons-compress,db4o-jdk5,db4o-jdk12,db4o-jdk11,db-je-3.3,fec,java-service-wrapper,jbitcollider-core,lzma,lzmajio,mersennetwister"
+EANT_EXTRA_ARGS="-Dsuppress.gjs=true -Dlib.contrib.present=true -Dlib.junit.present=true -Dtest.skip=true"
+
+pkg_setup() {
+ has_version dev-java/icedtea[cacao] && {
+ ewarn "dev-java/icedtea was built with cacao USE flag."
+ ewarn "freenet may compile with it, but it will refuse to run."
+ ewarn "Please remerge dev-java/icedtea without cacao USE flag,"
+ ewarn "if you plan to use it for running freenet."
+ }
+ java-pkg-2_pkg_setup
+ enewgroup freenet
+ enewuser freenet -1 -1 /var/freenet freenet
+}
+
+src_unpack() {
+ unpack ${P}.zip seednodes-${DATE}.fref.bz2
+ mv "${WORKDIR}"/freenet-fred-* "${S}"
+}
+
+java_prepare() {
+ cp "${FILESDIR}"/freenet-0.7.5_p1389-wrapper.conf freenet-wrapper.conf || die
+ cp "${FILESDIR}"/run.sh-20090501 run.sh || die
+ epatch "${FILESDIR}"/0.7.5_p1302-ext.patch \
+ "${FILESDIR}"/freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch
+
+ EPATCH_OPTS+=" -R"
+ epatch "${FILESDIR}"/libraryloader-revert-using-of-absolute-path.patch
+
+ sed -i -e "s:=/usr/lib:=/usr/$(get_libdir):g" \
+ freenet-wrapper.conf || die "sed failed"
+
+ echo "wrapper.java.classpath.1=/usr/share/freenet/lib/freenet.jar" >> freenet-wrapper.conf
+
+ local i=2 pkg jars jar
+ for pkg in ${EANT_GENTOO_CLASSPATH} ; do
+ jars="$(java-pkg_getjars ${pkg})"
+ for jar in ${jars} ; do
+ echo "wrapper.java.classpath.$((i++))=${jar}" >> freenet-wrapper.conf
+ done
+ done
+ echo "wrapper.java.classpath.$((i++))=/usr/share/freenet/lib/ant.jar" >> freenet-wrapper.conf
+
+ if use freemail ; then
+ jars="$(java-pkg_getjars bcprov)"
+ for jar in ${jars} ; do
+ echo "wrapper.java.classpath.$((i++))=${jar}" >> freenet-wrapper.conf
+ done
+ fi
+
+ cp "${DISTDIR}"/freenet-ant-1.7.1.jar lib/ant.jar || die
+}
+
+EANT_TEST_EXTRA_ARGS="-Dtest.skip=false"
+
+src_test() {
+ java-pkg-2_src_test
+}
+
+src_install() {
+ java-pkg_dojar dist/freenet.jar
+ java-pkg_newjar "${DISTDIR}"/freenet-ant-1.7.1.jar ant.jar
+ if has_version =sys-apps/baselayout-2*; then
+ doinitd "${FILESDIR}"/freenet
+ else
+ newinitd "${FILESDIR}"/freenet.old freenet
+ fi
+ dodoc AUTHORS README || die
+ insinto /etc
+ doins freenet-wrapper.conf || die
+ insinto /var/freenet
+ doins run.sh || die
+ newins "${WORKDIR}"/seednodes-${DATE}.fref seednodes.fref || die
+ fperms +x /var/freenet/run.sh
+ dosym java-service-wrapper/libwrapper.so /usr/$(get_libdir)/libwrapper.so
+ use doc && java-pkg_dojavadoc javadoc
+ use source && java-pkg_dosrc src
+}
+
+pkg_postinst() {
+ elog " "
+ elog "1. Start freenet with /etc/init.d/freenet start."
+ elog "2. Open localhost:8888 in your browser for the web interface."
+ #workaround for previously existing freenet user
+ [[ $(stat --format="%U" /var/freenet) == "freenet" ]] || chown \
+ freenet:freenet /var/freenet
+}
+
+pkg_postrm() {
+ if ! [[ -e /usr/share/freenet/lib/freenet.jar ]] ; then
+ elog " "
+ elog "If you dont want to use freenet any more"
+ elog "and dont want to keep your identity/other stuff"
+ elog "remember to do 'rm -rf /var/freenet' to remove everything"
+ fi
+}