diff options
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/freenet/ChangeLog | 8 | ||||
-rw-r--r-- | net-p2p/freenet/Manifest | 14 | ||||
-rw-r--r-- | net-p2p/freenet/files/freenet.service | 13 | ||||
-rw-r--r-- | net-p2p/freenet/freenet-0.7.5_p1459-r1.ebuild | 144 |
4 files changed, 170 insertions, 9 deletions
diff --git a/net-p2p/freenet/ChangeLog b/net-p2p/freenet/ChangeLog index 466f411ae0bb..7f306fe78d98 100644 --- a/net-p2p/freenet/ChangeLog +++ b/net-p2p/freenet/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-p2p/freenet # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/freenet/ChangeLog,v 1.180 2014/03/02 14:47:05 tomwij Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/freenet/ChangeLog,v 1.181 2014/03/30 19:14:05 pacho Exp $ + +*freenet-0.7.5_p1459-r1 (30 Mar 2014) + + 30 Mar 2014; Pacho Ramos <pacho@gentoo.org> +files/freenet.service, + +freenet-0.7.5_p1459-r1.ebuild: + Add unit file (#502346 by neko259) 02 Mar 2014; Tom Wijsman <TomWij@gentoo.org> freenet-0.7.5_p1459.ebuild: Unbreak dependency on bcprov in latest version by depending on new SLOT 1.49. diff --git a/net-p2p/freenet/Manifest b/net-p2p/freenet/Manifest index 2fdbe6c64f6d..ade80a5d7f2e 100644 --- a/net-p2p/freenet/Manifest +++ b/net-p2p/freenet/Manifest @@ -9,6 +9,7 @@ AUX freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch 932 SHA256 1 AUX freenet-0.7.5_p1389-wrapper.conf 1680 SHA256 f9e8e37b4e7eacbd5534fabce20a6597ae8123b4c63267393ed0d593a2c79a82 SHA512 cacfa6c4ec4de9d8bfc8dd5cb3fb694c8ed85e638dfa31f8bcd3a22758a862d8c0204610469634df0fac70c0097b194aa3de9f8cede7cc6bb665493b149d2d19 WHIRLPOOL a27e7682d13441f6eb8a8bce061a671b741e87651af079abec7380a60fff38871d4ba3c45c8d7977e89b8849f6214d0b5441291d28b0cbea64cc3cfdacb9c800 AUX freenet-0.7.5_p1422-wrapper.conf 947 SHA256 213508785a1bb2bd1263f434fc52b45b3850f8ef1ca3614b525cba05ea112d06 SHA512 def3a27228ef1c546e34c1e16cb78057bef4216254f3947e47b51431711fbc7afe3acab4962a73716d6931811433735c047cd8db81b42e7379a4196a96cd2b39 WHIRLPOOL 1bf8cb465b45dfa66bed3b2b92153668e53810924cc7a3891af73ecbd348daf912bf2f526c8f9d604de2980512c07e119d94e067d9eba56849ca6903eefae3a3 AUX freenet.old 452 SHA256 b3047b40128bbd7843dc370ab0aa150a9836ed789f48181bd6d8fc72f1714fa6 SHA512 7f12188a1e81f40f361d6df4cf0ae0f8af1363da19318ce04625411b0ff30badb53b440c984589d9f1386ad05e6b8e4201eb79c99f381468f7f6356dccebb3a9 WHIRLPOOL 182ff0f515c6832a17880ea1db705e5ba690b6d08f1e4d3f12aa4f6e291dab68491507b14541b89a13b4ba797296ac432eaaa24cd8b35ad2d63d14bc6a6c0fae +AUX freenet.service 271 SHA256 eb9e38c169055ba62ccc5e97065a1e7d96b2e639d1ae921a658acd3c98f74c65 SHA512 2f3d4ec0ba05eff328e8176cbe130176a82a1bb432599de44ab78ca27e9c96e0eafe0871f12b0165247f941a2e929635a6abe6cd61351b1305c0d0e8cff83d2b WHIRLPOOL 42be0b1bab59e2b0aecd4dc5e8fd4a29432df4497e88073c235d2ba0761a66850d54da7b01dc36f34712e62fb2f0efd141d0c0116f5267c16a4f69103dde9783 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_p1455.zip 4691756 SHA256 04d63ede7a49350eff8a6e4573aa000acd0c5034a5175f6b8634eb9308cf0120 SHA512 df25ce08bb2dc6c9c9d83c75ac288d5074b25d0322d8d12febbe8d915e70b48750d5c3b8bd8f76fb707d3308d9772308c09369c3c4a2f3037eef5c41b33a4367 WHIRLPOOL f52ec6cb95caefc00aed06f93f099290b10f8d3953c5b66565a8cbb91c32a2e8f3a528c9ac7940472717ff960fff05aeb521faac377d2c0ccf8037ec0400511e @@ -19,17 +20,14 @@ DIST seednodes-20130218.fref.bz2 9194 SHA256 9ac006dc994456ef34f81b070a3dba6574f DIST seednodes-20130915.fref.bz2 10046 SHA256 2008510e1c8730aa02674b1dd22f64bd0de86507b27052adcfa66d176f1351ef SHA512 e829ceab4851eaf912e840ec87bcd4458ba9cf7eb0e25d4f4ed059734054136b6c2889671e624999697a97d7b833c2e1a65b47f6e0116f8cb2f11b2e43df921d WHIRLPOOL fab300deed68030030bb99c5716a691b33ed6b89929c3eb506fd02928ad8914044370552c94c5178639ca2adb92cf6f58e3b4b62f6e1f565f65481ddcbb3802d EBUILD freenet-0.7.5_p1455.ebuild 4284 SHA256 bf58e79d53dd5df1ced02ce4550208bb3fcfe3582c7a5ed59b4c0b58f710e94c SHA512 c905d3789e0b98e54928791e08071d818db87833988ea6ab97247b44bc1ab70833b741c16e5206a5ad5106d58e1d4fbda23aebd54a571990d3027e2618ecc993 WHIRLPOOL 3c9886fde57daed8ce668a879380d1153fe5ace5a4a8bc5bd923442ced50e9acc0720bc00f076df83ab7635aaf95259336a63a7dd5b2207118787b6d6a48d666 EBUILD freenet-0.7.5_p1456.ebuild 4323 SHA256 749a98537aec87d2bfb762d8676c0ffff64d92dfdd68cce4974e59c180404c83 SHA512 c553eb4644a3e1a3a189d9f8eb1050d8ec43eec7670ef0034f9c2cffcc8062c59062c9c1010b2b6d4d697e7e2951e228369ddc1b8258ba467f3b62c4bc78c9f6 WHIRLPOOL 5fdc588ec12d70775271e69c04990ccb9c7809d2fff32e477af38c7a8a0a9d73cde9769d9a6c125fde6991567c331dd173bbf7d59aa049ffa794eee1b7431cc9 +EBUILD freenet-0.7.5_p1459-r1.ebuild 4406 SHA256 26f5021fa891c284fceea27d2e140e64b580af989c6c76af024eec27e962852b SHA512 3e7b5ce9a2f83b7e0f238f11835b001f0a2c576ed6db401c0b9a01282f76b2c1e5501656f92b5ca2eb7d39540a275b6ac0291c8d9565128e62f2de4bed39ec08 WHIRLPOOL aa353bab256175a8a0da8c9ef6c2f301e92d40b5338b34b310d6e8111290326b5f994d6f09f6a38fa5db6babb7aed42c845528c578ca080bd740f8b84dd27a23 EBUILD freenet-0.7.5_p1459.ebuild 4350 SHA256 0b85e55e70ef86d240274987c7dcf1522b6009ff154c96d76718848cf9a368fc SHA512 8d96dc4dfd089cebe0044279f38f7660fa8fe8fd73c2b76685de4a932f605ceaede8da615e6f72383c8ca2710624da53af392653857f327ee6e38fd79d5e7f85 WHIRLPOOL cf7046b1fbbf9f79d4b00e6a3d0dba284e0d1cc89ce40ce843d233f82532d16b8dd1fec99fd4ae167da85c53b20a43d3c6a96a791d16f8f54166968e50b46b2c -MISC ChangeLog 25191 SHA256 bfa6b49a205ce77225a24e184afde09de7a8b2fe6d51f2b3072ca72e17deb3fc SHA512 843393fb8706be97d2d66d0f85b6cda8061b738ce25f99c4eee2ea4e407b5223a15efeef0596d2bfcf818032d8eb7a2621d18f81bef8a0f08adc91f9c7cbdf60 WHIRLPOOL 4c8e141baeab0d03e6ab9bf764e62e689afbd6bf8497dff31bdf1f3795cb11f76d12fc3713824e66b31f9e0aa97925c41e10c98da2dd669dc120a4626f2a976f +MISC ChangeLog 25371 SHA256 790b64a152383ee436a23ce8f34883b58cde4c4b170b426574ce6dc1d233c509 SHA512 994b64fe80d68cc8ad00bfd15ed3472c815cd5175c282f24232637338e4f725ea1de1117c01b080e487b13186242b550b61d1c35ba39f4c049458e2517df59ca WHIRLPOOL 5bc90e39fd196e01813d8624060f1f59e31fd9aa91c3e9e20c2dd7cd3276b791e4e23ffd2947f1d4c77443dadb8dadd77e4c80a56c20666295ccd4eee92774c0 MISC metadata.xml 243 SHA256 76e8c4cafe92af4eb083e9682c375a2f887458dac6ce8f2982976a96abcf8219 SHA512 92bf36a1bad3877a5a981271afa7381a38f3cc87267233205af5aa0ad53c455d851bb1d9ff60fe02eda49a3347c497c5bfeaa4c160542abd62d81a0450c4b77f WHIRLPOOL 18fde625e32450606e852e52f034c73d6514284aa19842867313432d1ab1cc1d40ceae766c0c61b927a7b5c3917a6624c8e875583f49c0d5951797cf66e8ff95 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQEcBAEBCAAGBQJTE0RRAAoJEJWyH81tNOV9lr0H/j6f/6G0JeSxQs9SapHRinF5 -kxGtJ8yCk3zhI2vWmf1pkzjeHj3P+WJLZsSQ4wPlSY2oHGVkQL97456AySDdP4B2 -eymGfn/Xu+VPhti7BH+N2J1gYLIqTsVXbkofX/7K9ixCNagP/MonEBxmSwSFe745 -dh+Sny2r1G4VzjL6+aJCdIWbyKaF0na+45aDl0luxFxcHzuJV3SRnSVGc246lRNL -+bqPIEJ7NHqdQgE+7zLPDeJ/8r0nSJHF3bez35ha3yVtJ6eyute8r/MtQUcncOD7 -1/9hFC31KKpBqNC1xsARrVu2XPOhXQ//AzbqQmxRGE7FaX3Xjj42mc4fXtmeZZI= -=SbEi +iEYEAREIAAYFAlM4bP4ACgkQCaWpQKGI+9R7XwCfejPW1vCiZD/mgsPIkdUE6pxo +2V4An1/XvQFFF07rQJGaqRmKWfR4HiRJ +=ljsr -----END PGP SIGNATURE----- diff --git a/net-p2p/freenet/files/freenet.service b/net-p2p/freenet/files/freenet.service new file mode 100644 index 000000000000..17df1373dc34 --- /dev/null +++ b/net-p2p/freenet/files/freenet.service @@ -0,0 +1,13 @@ +[Unit] +Description=An encrypted network without censorship and monitoring. +After=network.target + +[Service] +User=freenet +Type=forking +ExecStart=/var/freenet/run.sh start +ExecStop=/var/freenet/run.sh stop +WorkingDirectory=/var/freenet + +[Install] +WantedBy=multi-user.target diff --git a/net-p2p/freenet/freenet-0.7.5_p1459-r1.ebuild b/net-p2p/freenet/freenet-0.7.5_p1459-r1.ebuild new file mode 100644 index 000000000000..f91391a585d4 --- /dev/null +++ b/net-p2p/freenet/freenet-0.7.5_p1459-r1.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2014 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_p1459-r1.ebuild,v 1.1 2014/03/30 19:14:05 pacho Exp $ + +EAPI="3" +DATE=20130915 +JAVA_PKG_IUSE="doc source" + +inherit eutils java-pkg-2 java-ant-2 multilib systemd user + +DESCRIPTION="An encrypted network without censorship" +HOMEPAGE="https://freenetproject.org/" +SRC_URI="https://github.com/${PN}/fred-official/archive/build0${PV#*p}.zip -> ${P}.zip + mirror://gentoo/seednodes-${DATE}.fref.bz2 + mirror://gentoo/freenet-ant-1.7.1.jar" + +LICENSE="GPL-2+ GPL-2 MIT BSD-2 Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +CDEPEND="dev-java/bcprov:1.49 + 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="bcprov-1.49,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.bouncycastle.present=true -Dlib.junit.present=true -Dtest.skip=true" + +S=${WORKDIR}/fred-official-build0${PV#*p} + +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_p1422-wrapper.conf freenet-wrapper.conf || die + cp "${FILESDIR}"/run.sh-20090501 run.sh || die + epatch "${FILESDIR}"/0.7.5_p1321-ext.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 + local ifs_original=${IFS} + IFS="," + 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 + IFS=${ifs_original} + echo "wrapper.java.classpath.$((i++))=/usr/share/freenet/lib/ant.jar" >> freenet-wrapper.conf + + 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 + systemd_dounit "${FILESDIR}"/freenet.service + dodoc AUTHORS || die + newdoc README.md 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 +} |