summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Sachau <tommy@gentoo.org>2013-03-23 15:17:56 +0000
committerThomas Sachau <tommy@gentoo.org>2013-03-23 15:17:56 +0000
commit1ff19b324d37c1b182906f3c46e96eee4e7e95da (patch)
tree0c9b023c6f5e96db153e6096db6ef25f5039c968 /net-p2p
parentMore complete dependencies on X libraries. (diff)
downloadhistorical-1ff19b324d37c1b182906f3c46e96eee4e7e95da.tar.gz
historical-1ff19b324d37c1b182906f3c46e96eee4e7e95da.tar.bz2
historical-1ff19b324d37c1b182906f3c46e96eee4e7e95da.zip
Version bump
Package-Manager: portage-2.2.0_alpha166-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0x35899067
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/freenet/ChangeLog9
-rw-r--r--net-p2p/freenet/Manifest14
-rw-r--r--net-p2p/freenet/freenet-0.7.5_p1437.ebuild142
3 files changed, 157 insertions, 8 deletions
diff --git a/net-p2p/freenet/ChangeLog b/net-p2p/freenet/ChangeLog
index 857ec5374fef..ab3849ae1930 100644
--- a/net-p2p/freenet/ChangeLog
+++ b/net-p2p/freenet/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-p2p/freenet
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/freenet/ChangeLog,v 1.164 2013/03/03 16:16:42 tommy Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/freenet/ChangeLog,v 1.165 2013/03/23 15:17:44 tommy Exp $
+
+*freenet-0.7.5_p1437 (23 Mar 2013)
+
+ 23 Mar 2013; Thomas Sachau (Tommy[D]) <tommy@gentoo.org>
+ +freenet-0.7.5_p1437.ebuild:
+ Version bump
*freenet-0.7.5_p1436 (03 Mar 2013)
@@ -728,4 +734,3 @@
+files/freenet, +files/freenet.old, +files/wrapper1.conf,
+freenet-0.7_p1204-r1.ebuild:
Initial commit. Fixes bug 128783
-
diff --git a/net-p2p/freenet/Manifest b/net-p2p/freenet/Manifest
index 0835d6bbad54..53da322a4233 100644
--- a/net-p2p/freenet/Manifest
+++ b/net-p2p/freenet/Manifest
@@ -12,17 +12,19 @@ AUX freenet.old 452 SHA256 b3047b40128bbd7843dc370ab0aa150a9836ed789f48181bd6d8f
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_p1436.zip 4598276 SHA256 0b2b02fd251a825a5f69ee2e03fb4e5b9fb8728459d733f43fbabb19c3f7a2d7 SHA512 29900940543aceb19a7fd49105d5a161d732f6f68cc8aeb1682a736e747fa9c792bb647112ea5a221bc7c37832648f7fed566a98619dd469d3e0a5bc41ed9eef WHIRLPOOL c4093ed35d16207d0783a6ac9a1202637145a4a53f24483bc3c06c0d61827582c8951eee820fac67a0c2912a5cd93e7fb8b24a1f730a1f2019735fcd901dcab6
+DIST freenet-0.7.5_p1437.zip 4613783 SHA256 4396ec0f8d5fd93a102b1b6983267269b60c91b89ca0fa297da9ba6a9aa878f0 SHA512 3c6b2817c4ba29f4b2d5e3015f6d68c870a6598c8d23d92880699fa151461d9a7d89c740aa04813d888652faf2b7048f8ce431dcb5d1c0cd058b98a09a4c8080 WHIRLPOOL c537a9875c246634bf9631f46c8fff82d5177b39edfbef6e3c12f3ec5fe4968f9e5a78e0f118e58a5651c355aad4044a7938987a4bc48652246ed6f37cc9fe39
DIST freenet-ant-1.7.1.jar 1327167 SHA256 634e0b616d65d611419920e8b379b7b66399e44f520baa772147ed73743433b1 SHA512 2c84378d995fed0630169fffab020bde89c3edb7b3bc1e14e2251ed71be684dc2520fdeed8bae382de362984e25a31dcd59326ef8735f8066166c1e8d98ca408 WHIRLPOOL 667be2b1581c5fd847907b63522a0f83c595a6b8f1805d714e978a5cb0f05de4804153c89605618adf5c3b097a7019e7d7e9de0bf0987c7b1adb0dbc54e0f055
DIST seednodes-20130218.fref.bz2 9194 SHA256 9ac006dc994456ef34f81b070a3dba6574f209fc2ea3413f57f66f0b5dde77a2 SHA512 42539e0471b44be83bcb2cc473217482099f7800d97fd642401607d6d99da4f0ea25c8dc974025d34665607a7f787a37137e4d839b047bca2f1f4d42b8363fe2 WHIRLPOOL 9a4ebbf703f9da7e427fd95ac6b4afbe6f4dd632b09362fbe7504d8606e8b9be768e39cfae82e211bd656e0748b5006e96ab4f4ceb3b9fcf60782a0f062fb8c2
EBUILD freenet-0.7.5_p1436.ebuild 4275 SHA256 3a9d5b5ffb7eebb3006d5d49879ae31554e7047a653a5bbfb76b0f724165ace6 SHA512 a17290693d16bdb4811a187a3bcbce898b757768046067487c7366166b61736b09a82ade8cd2bcd5ee795fb41b440ee6e09854b378318a5a50c96069adf974ea WHIRLPOOL 20859b3f009b92824025a4585d95edb89b082fa68de5658e98aeb68220dc03b29d19b0e1180db7fab66940c397ba2a300d39c81439f0d7f243e9c637a91b328d
-MISC ChangeLog 22531 SHA256 61fa80b62ac8f6f2ded4b447493bd35d3ca251656eca2b6c537b73b974d58ff9 SHA512 9df72bab341cd145a7b625f6f2d72566dce2575370a575e4a3cddad3ab0a7424903811b10aff0668223b7c780e8926f74c0411ffc99b3f7aa9420eb347d41338 WHIRLPOOL d70f581ac8b85c1076923bb02fe0e9504d4c01f1fa984edc911c0af90963f99eef0a974d1c3a64a4330bd9aa3b8c94b7c097dbef9d0c55cd2a8053bc61c7b4e9
+EBUILD freenet-0.7.5_p1437.ebuild 4323 SHA256 dcf2f372e925c3dc940dd93f7bb29edf3d1b089060e3e0cb525e5bb03b15a11d SHA512 8ef5db965cd7172c89f4b5c45d238a3c0ddffd6d021c1bab43639c3d4a09cb67dbc3803f6ac3f8e056bfc54d84fd4351b61d084dde304d960ac331994595e534 WHIRLPOOL 65fda98ffb4f28527805bea48342a9bd05e58ab934c7b16638ee888b95762871a07fdb7aa9b4ce4ab3d3f3423910bccf532184cf99b29d7f562a1384d5ff36a4
+MISC ChangeLog 22672 SHA256 6a7e1eaf2820f18b3beb1838fdb6eb7ae370a110aed1d0c3aef42f788fa4820e SHA512 389fa12d5cafe01fadc7853efb7f370e8eb259422bc2144a6c47edfdbf1bd75450d38bd97dbc2f0f873b175ffa059f859ce57caadfb2bbbafe9f72a079cf0881 WHIRLPOOL 2d4b7bab1def5e6cde10a454bbb607f19952c766276c3ab7e9ac0fe0e57de9d349dbc53452755f429ddcf0dd7bd67d051c977d2e7e2158af69b44e2688275d31
MISC metadata.xml 243 SHA256 76e8c4cafe92af4eb083e9682c375a2f887458dac6ce8f2982976a96abcf8219 SHA512 92bf36a1bad3877a5a981271afa7381a38f3cc87267233205af5aa0ad53c455d851bb1d9ff60fe02eda49a3347c497c5bfeaa4c160542abd62d81a0450c4b77f WHIRLPOOL 18fde625e32450606e852e52f034c73d6514284aa19842867313432d1ab1cc1d40ceae766c0c61b927a7b5c3917a6624c8e875583f49c0d5951797cf66e8ff95
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iJwEAQEIAAYFAlEzd3IACgkQG7kqcTWJkGfnYwQArgJ/ZrR5lIdnRvSq1rx1d10z
-FJPHD8ytu0zaPjzHTGm9x3C/JjqS8IUbl8VlVwffFpkMgXzROKO+p6/WMqio/NLS
-Eu7T0PLC2zuAz+7qE0vZjXcvPBYwmGku2qAo6bFrWQtTysuGToY7s5X/DNghmPzA
-oClUXPFFdOqT+mldu7Q=
-=IxAl
+iJwEAQEIAAYFAlFNx6EACgkQG7kqcTWJkGdCIwP/fjOBYooNt+zOXTCJBgrHuDGk
+fZsXBFnarQ+Zl1lRSwe+8cyw58/1Fl7rG25VUgDyHrOEvjnCc/Dt03T3mF9jaitt
+dQl+WyAVp0oX59G28WA0zLZok8O3M4p1vn2T6SpYi0jIst+ZGfYgC9gQ3gXqS9RK
+llEkoT6P8lwj2N8L66Y=
+=BBxb
-----END PGP SIGNATURE-----
diff --git a/net-p2p/freenet/freenet-0.7.5_p1437.ebuild b/net-p2p/freenet/freenet-0.7.5_p1437.ebuild
new file mode 100644
index 000000000000..50b9a96b1e13
--- /dev/null
+++ b/net-p2p/freenet/freenet-0.7.5_p1437.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2013 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_p1437.ebuild,v 1.1 2013/03/23 15:17:43 tommy Exp $
+
+EAPI="2"
+DATE=20130218
+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="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.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="bcprov,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
+ 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
+}