diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-30 09:20:33 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-30 09:20:33 +0100 |
commit | 70e4bd5c8f26b1f2baeb5146a841273b2cb15179 (patch) | |
tree | 82c39dda2ba79ec0993746bf42651c18a4beb137 /net-p2p/freenet | |
parent | 37c470b10802509995e7ae6a6886506f79540dd8 (diff) |
gentoo auto-resync : 30:05:2023 - 09:20:33
Diffstat (limited to 'net-p2p/freenet')
-rw-r--r-- | net-p2p/freenet/Manifest | 16 | ||||
-rw-r--r-- | net-p2p/freenet/files/0.7.5_p1475-remove-git.patch | 24 | ||||
-rw-r--r-- | net-p2p/freenet/files/0.7.5_p1483-ext.patch | 22 | ||||
-rw-r--r-- | net-p2p/freenet/files/0.7.5_p1491-update-for-jna-5.x.patch | 31 | ||||
-rw-r--r-- | net-p2p/freenet/files/build-clean.xml | 421 | ||||
-rw-r--r-- | net-p2p/freenet/files/build.properties | 95 | ||||
-rw-r--r-- | net-p2p/freenet/files/freenet-0.7.5_p1474-wrapper.conf | 27 | ||||
-rwxr-xr-x | net-p2p/freenet/files/freenet.initd | 11 | ||||
-rw-r--r-- | net-p2p/freenet/freenet-0.7.5_p1491-r1.ebuild | 165 | ||||
-rw-r--r-- | net-p2p/freenet/freenet-0.7.5_p1491.ebuild | 164 | ||||
-rw-r--r-- | net-p2p/freenet/freenet-0.7.5_p1492.ebuild | 165 | ||||
-rw-r--r-- | net-p2p/freenet/freenet-0.7.5_p1493-r1.ebuild | 178 | ||||
-rw-r--r-- | net-p2p/freenet/freenet-0.7.5_p1493.ebuild | 164 |
13 files changed, 0 insertions, 1483 deletions
diff --git a/net-p2p/freenet/Manifest b/net-p2p/freenet/Manifest index a6b1889634b3..4089f9489048 100644 --- a/net-p2p/freenet/Manifest +++ b/net-p2p/freenet/Manifest @@ -1,28 +1,12 @@ -AUX 0.7.5_p1475-remove-git.patch 926 BLAKE2B 258b60eb73ee7ae78b6722a56a5e059131a51c1a0b402209b0f769e12fc960aed414033c058dca959ed546cf039e692aadcc0aa7fdda7ded9fb767f95e1de485 SHA512 d24cc1ecd7a991927d8e65378b9dabe1e7e75d8902a40cc6ae7bf19104133e9708da8768ee38230f93fc41609324ae3a9f7f7998ba261c4f4f3254d38ffaa792 -AUX 0.7.5_p1483-ext.patch 991 BLAKE2B 82397c986c5496c25593df490f116a9c5fa6169c3e6f402c0671a41458052164e56a6bb41f07ea4e131693b643a51047b4c87317bc527fc95aba1f4d04868809 SHA512 8dc5abc99f9f10a29e56956508c6c013ec543133802d628d324ade3aab58f5a31b85d289b65a80a170b9e26a17cf650de4f2ba244bf9d2d443852374fe026af4 -AUX 0.7.5_p1491-update-for-jna-5.x.patch 1437 BLAKE2B bcb3df80313ed83a6b3827a2523efe3a8c87ddbf3d24737bdc6d3e0e714ec2e1bbc0e016d9fc142ebd702f3b963be45d0f094df96fe17ef2c093bd273bcc396f SHA512 f720166e09512fb5bd0a241bc7a1fb532ba67ad2ba8705fa2dd4ccc4eb64f12200af285d85af1a990f407bcdfb898a8f7a8dfd0cf0b4c8d3a7019bce0bb3988f -AUX build-clean.xml 18184 BLAKE2B 5cc7287b1475b830b1fe9708f6cb53316fd611e6a5757ea7ca403ccc7e7a6b3797454345c28a6fd21c7c35d0bf491ac207dc2b3098c48a9ef24bfb342fa72f67 SHA512 74a4a77d900d225264606c7413a14aa9fd526c9324165493e955a6efb5f32ffad1aa735dd13570f4f6fe764baab8f0170945d75bafeb28c82b5fba9826bc0f40 -AUX build.properties 2655 BLAKE2B 137de56b6118d7306c036d7ed00fee314446bd9b221d39c04ddf0e45235d03df9b8596127153eb713d2f6f790a99f94f33f095f8b880d5251f2fbfd0c69d61cb SHA512 dd7bf150ced2aa08a7250818f59b931908ea341917bce812d641cf2c77eea60bcf6d264d5caa99bb3669e6e93b8798af3e43629b33983bdeda70f94b17f6cd81 AUX freenet 474 BLAKE2B f50fbfaaaf6a919ac15b078a627eb1b2fbc9e6b6c83e4229ae4032e64436926c40410f1182bdbc6bcd005677d9ef9c5be252fbd008ad6fffb6df5bfce38a2148 SHA512 8bfaf754106cd5476f96554932d3a394efbfbbdd51d6a62b32259e3c65ef562cf92f0f7fb2a2cb768037312780a990cdd05f758e23c4cc57e7543aaaed85f285 -AUX freenet-0.7.5_p1474-wrapper.conf 949 BLAKE2B 6832683015aff6db0ad2b4116a6b8aea2ca23c1ac38da72ae71ac3a339a2efe69a7bab37911035d82a15d6ff725fb8d481deae42bd1bbaf0ad62119194674354 SHA512 a6d30afc502176a6e0bab480368553c1df50add8fe18b65cede38be752c989125999cbb8bedfd68641623fd4498e19610c16d02fcf9d951da450a9612301cdeb AUX freenet-0.7.5_p1491-wrapper.conf 1126 BLAKE2B 9be1699e36487de28868a1f4a191de4d50fe92d8ea550c73f07dee99466ed5d6455a8c1d31690fa660b18a291702a43349629ace158d9ac97ba6f47bd95069f5 SHA512 26bfd9cc3e2f172b08c9bd5970ad2420d3c9f44023cfa9a3978fa59a92956019b4eff5b64b0fe913587baba242915779a87613bd6daa3318c314e78a56b7ec1e AUX freenet-0.7.5_p1497-ignore-failing-tests.patch 1461 BLAKE2B db1dcd717e3d59898926706109c52035b4e89f906f521df4a52a39b1aa1a7d430d04e22c04b6406b77a658d1f9ff58b6094532eeae7b4b3f1b6138451e13f97e SHA512 361f87db09f72a663a9452d7c7e6a7e38cca65cccb42e0ea8110e3122ba60f9540167003d133ab6a035b5255ccecd7e5777f1f5aef5019571556a937cae79556 -AUX freenet.initd 509 BLAKE2B e6d2aa034ae60a8b37008674fca475380a1b3a8e16ddd153fb6e12ff7963376b83ffae5ff48ae520cf4d1051acfae18c4c55e00960f6ff7192120bdb0559cd17 SHA512 c9f5b1a3210d389192b9390d5160ea2490bc89d4de6024dad7f6bd9b552b3130ad6d2f76ca3bfdf8fb8327175625377babb8064f901835254b3d4c4971f694a2 AUX freenet.service 271 BLAKE2B 7d47ad525f4bb13e07c50a0bdf19f1ef234d5219e82f426254c316abc4517180c22267a245ca022edf68e615a2865fe0dd08f694ee5ee2ced8c5391b3c5e33ad SHA512 2f3d4ec0ba05eff328e8176cbe130176a82a1bb432599de44ab78ca27e9c96e0eafe0871f12b0165247f941a2e929635a6abe6cd61351b1305c0d0e8cff83d2b AUX run.sh-20090501 16217 BLAKE2B 249254104ca2d0a20131a5d6b36a07b14fe6407d1915d75ecf98a617de6e532def710975ff1b2e0b580f7148099cd7f6915d8adc0b15e1f67af4fc4713e0e5af SHA512 ba97f1e370ffb7c9ea109b7d529430581a588d8d7e121ec09865e9e8932f2901477f7f43e7d0b95c7c95c2c42db05870e5d811528f91f78b48b68a539c804e67 -DIST freenet-0.7.5_p1491.zip 7827005 BLAKE2B 422f3050dbfdc829d1614b2f65262a063710028255582f7952c7ee4195f62af34d2b52ae74e5f7af2d92fd7e0db2800b6b2c24b8259e55485e1ce89929fccb40 SHA512 6b09816f9fb77003462c06e090d9ca572db9360990f2c9ba43908f30cef47dca8f89044f13ab503ea406cb7a42c07b0cba87e114c80d971ce990e0869e7dd1c3 -DIST freenet-0.7.5_p1492.zip 7844187 BLAKE2B 59dc274d1904448d9be608f34beb3fd942fe5f45a34c4be8e5c02939f5681796f8b3afe2fa70bb9a62d25bc45eb0f699c9949689fad79c11acef40b1b57e9849 SHA512 e5d40954e84ccd327b2935d222b1174c4720f1ee2c35ec41554f4d90b4cac6ab21d5655612dde2a844fbcaf13c5edfe405c0effe5c8200b77657aeecc09d1976 -DIST freenet-0.7.5_p1493.zip 8507217 BLAKE2B af8eb65ada0c5bf698314d721e615c75b57ec0136b1a593ec0960398ae952ae4115cbcec3d1da22a1c624c5f434b032bb68103f2a2ad68e8d1a7f5fb17fc3167 SHA512 3a34648e59e4201a2e66a8d87fa45b2a311d5dbfea3de96d44f797c8a6bc74c35e9d495ea6f93e04003f8bae79026d1f929f28f56b4abaa2c581cc18a0d06104 DIST freenet-ant-1.7.1.jar 1327167 BLAKE2B 408ec04ef6be58490bc6be200bd2ae1946aa4e22a9e01c9ef00351316f7ec0e23b055ed0907c16eaf5a60d153d3b96e4c447884df752e13d16520b3360581895 SHA512 2c84378d995fed0630169fffab020bde89c3edb7b3bc1e14e2251ed71be684dc2520fdeed8bae382de362984e25a31dcd59326ef8735f8066166c1e8d98ca408 DIST freenet-build01497-source.tar.bz2 6387097 BLAKE2B 1476793b1084bef4c596648f0d83b808da80e5d0ccddaede5c2b41264f70919dc73e7b2a020437da88bc5b6266a3866398d9a1204cf8ebef9d17b5d9a0a697c4 SHA512 f9c15ebbd7e04b241de767851254169b4d1f94b66afa910784eb9bf6a22db43d0786bd7323f92fde48b59b0c4f73a75ec64646dcc47e5aa908108fb7fb0712fa DIST freenet-build01497-source.tar.bz2.sig 566 BLAKE2B fb1d3169942d4a1fd50aadd03011cc8907c5f5784ddfa1a20ecf0956bb8b1e0e2fbd58d93d904edb93c1781bca39a8043e56f6e73a9da927dece905ce4c570e7 SHA512 0453a6bb146531bbcdd7c1e249d3d82731400985fad5d38277cb8687fa01fd8b43e7d3164c7c22d2e8605f6e03e125bc767ffcde51b880acedbcdd45f1009ffb DIST pebble-3.1.6.jar 318370 BLAKE2B c3ea059ebc960764cf32a2390773926f1c4e8b0be3aaee7739adfc9529a30dfd0dab3cec0c7519be991d43eed87025db9b64f230cca0622eba16e0e64371243d SHA512 abbf9f8d5c7e23cb658970f670e4e78e62d12433a6683506f14c9c0334257d0d93089d83348691b033704e661f7c1954859e9630e1d94a461a5acf7f336f88dd DIST seednodes-0.7.5_p1480.tar.gz 12364 BLAKE2B edb4e2a5c7424b51f0afb8234c7e486d56fe92e9201ab7ed7658366f070225f8def1b5412a31367e434ab4afae393caa16e7bdd7307f1d870607105fd5076638 SHA512 a2662a29f5721cd1523eb68b8787b074baec990327207b9ff444c91e644738a610e5216064aef00c62d6aca8ba66b2035a3175f63d45c1e0e8efc816b2a38660 -DIST seednodes-0.7.5_p1480.zip 24935 BLAKE2B 2a297cb7e429a3db06882b703241d420fd7225192afd500f2ff5a3521b1a53c4d62fc2d5b4c0a6ed4d62fa3cd4da64a42da04459dea81701d98faf36b4642eb8 SHA512 cde40562156627818e3384cb8ca29ac02cc52eb9e02c3b0627d7786b4b7deace79b3a840f61c551a25f4d771190558fb277b3f63a71994c30c7b28a2c2f85497 -EBUILD freenet-0.7.5_p1491-r1.ebuild 4881 BLAKE2B 342a7fd667dc4a2a0ff504784a184df10c5fc716c69dc18b4d70891a3a470593a63d21dd55c69857fa0e579b4ed65509bc0b54fcec7910e9220df37c7e27f2bd SHA512 8cae0cef31285330a2edd1618824df75ce8cbd27acea5bc5acde7b83d731aa5bc1a935e9785434918cec41d46d307b94ff051c9f6eae172d78cbfee83f11cb79 -EBUILD freenet-0.7.5_p1491.ebuild 4819 BLAKE2B 33df7b2784ed3a63b1dca0955858f358589d609a185fbb6d21200c6039cf0cb35c230ee05e95d22320bbc8d97ff2525599c7fcb2a6eaddb36e9239c810af6dc2 SHA512 453557ddd46fd6e92b858db79cf8ab46d285d435653f9f123d5ffeb7d554865a569e54adf74bc2fdb6846e2c487ac64507f7736a58e9d8c55983a7893d1f2a2b -EBUILD freenet-0.7.5_p1492.ebuild 4887 BLAKE2B 75099a50aacc2d31b58ee4a7724c2b88d4ee773db9ba64e2a01f5ebd5b0df5da64ae198d32ecaa06b39f4971d22ce77255d713ab280dfcd7faa48e23512a3eaa SHA512 c40be5d910e307fa9cca5cde28912011429b419543a16e3b3290c4eede9036c71de5a9959348fbb3d04a7535d27beeb4f03cabbebcd0a87abd07f33d97b6f022 -EBUILD freenet-0.7.5_p1493-r1.ebuild 5778 BLAKE2B 8ba275d0f4ce3bc4e2119a6b15d7e0928049c47d012ff2c2836450f01a80923345560b445501cd91138244765b403799ecee6332d19cc2d5ff2741c139a4da0a SHA512 2fac80eea21d4cc90139c40e0561a3fae8e80af2aa407629eb4c9d33f3ee0468e3851f3db97e24456475e725dfe02ebc7118ba2011d4d610ba5cea52e3921e3f -EBUILD freenet-0.7.5_p1493.ebuild 4832 BLAKE2B 3712071bc38f8f6dd346daeef84184db469a02fce3a5c2d8b4a7704104e8f01096bc9db24fc816706ed60235c470a0556ff3b852f06906b46c27c3fcdeb3f8a6 SHA512 2c0f6ecd3a1443ff7a1e9e09862575abfb38724054d64b75f21f015c54f5ce3c3ea858b47d3da1bd819b29249d155018d3c9fcc0a932443c09918cdbbe2669f0 EBUILD freenet-0.7.5_p1497.ebuild 6449 BLAKE2B 0938a6824d760416c7b0e3cd81116aef12cd49d039cfdeb294ea354cbde3b1b1957b583fcf3a335d9deb286b565d39f4f23b318ce117396ae6f052bfc1b18483 SHA512 99ffc43cd96d8b6be05479c093d0f155c6234fef737b284b1af0b079e64bd7f63405dba5ff76b09df0fea5476d6aaf37ad376ce646a85a7b871f76f0616a2708 MISC metadata.xml 343 BLAKE2B 707e39491d683cb2d209ce3bb5dae43549ccef291cc72db30bbb5fecdac28cb8e5541c71fc3e23d08394db31a75048b59cb4019756adbd58ac192a209678fbaa SHA512 1c1e42b15ec4527191bed42ce236666bd9afd83189dd0cd7c4ec0e31c97e240d3a91ec7d503aafc73c24afbf25bcc56ff6e7332a2d0bef0afa4ab6ee8f9ff8ba diff --git a/net-p2p/freenet/files/0.7.5_p1475-remove-git.patch b/net-p2p/freenet/files/0.7.5_p1475-remove-git.patch deleted file mode 100644 index 5cebf6e948ef..000000000000 --- a/net-p2p/freenet/files/0.7.5_p1475-remove-git.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -Naur a/build-clean.xml b/build-clean.xml ---- a/build-clean.xml 2016-10-10 18:26:04.056935377 +0200 -+++ b/build-clean.xml 2016-10-10 18:47:11.662036536 +0200 -@@ -59,18 +59,8 @@ - <assertions><enable/></assertions> - - <!-- set version string based on git-describe --> -- <exec executable="git" failifexecutionfails="false" -- errorProperty="git.errror" outputproperty="git.describe" resultproperty="git.result"> -- <arg value="describe" /> -- <arg value="--always" /> -- <arg value="--abbrev=4" /> -- <arg value="--dirty" /> -- </exec> -- <condition property="git.revision" value="${git.describe}" else="@unknown@"> -- <and> -- <equals arg1="${git.result}" arg2="0" /> -- <isset property="git.describe" /> -- </and> -+ <condition property="git.revision" value="@unknown@" else="@unknown@"> -+ <isset property="git.describe" /> - </condition> - - <!-- =================================================================== --> diff --git a/net-p2p/freenet/files/0.7.5_p1483-ext.patch b/net-p2p/freenet/files/0.7.5_p1483-ext.patch deleted file mode 100644 index 5b778dd619f4..000000000000 --- a/net-p2p/freenet/files/0.7.5_p1483-ext.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- src/freenet/node/NodeStarter.java 2019-03-17 12:44:12.000000000 +0100 -+++ src/freenet/node/NodeStarter.java.new 2019-03-17 12:58:51.000000000 +0100 -@@ -51,8 +51,8 @@ - public static final String extRevisionNumber; - - static { -- extBuildNumber = ExtVersion.extBuildNumber(); -- extRevisionNumber = ExtVersion.extRevisionNumber(); -+ extBuildNumber = 29; -+ extRevisionNumber = ""; - } - - private FreenetFilePersistentConfig cfg; -@@ -109,7 +109,7 @@ - System.out.println("Usage: $ java freenet.node.Node <configFile>"); - return Integer.valueOf(-1); - } -- String builtWithMessage = "freenet.jar built with freenet-ext.jar Build #" + ExtVersion.buildNumber + " r" + ExtVersion.cvsRevision+" running with ext build "+extBuildNumber+" r" + extRevisionNumber; -+ String builtWithMessage = "freenet.jar built with freenet-ext.jar Build #" + extBuildNumber +" running with ext build "+extBuildNumber; - Logger.normal(this, builtWithMessage); - System.out.println(builtWithMessage); - diff --git a/net-p2p/freenet/files/0.7.5_p1491-update-for-jna-5.x.patch b/net-p2p/freenet/files/0.7.5_p1491-update-for-jna-5.x.patch deleted file mode 100644 index 788a48040b17..000000000000 --- a/net-p2p/freenet/files/0.7.5_p1491-update-for-jna-5.x.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 830b4bb3948bd69fbd9b10001940f1775051114a Mon Sep 17 00:00:00 2001 -From: Yuan Liao <liaoyuan@gmail.com> -Date: Sun, 23 Jan 2022 10:09:17 -0800 -Subject: [PATCH] Replace Pointer.SIZE with Native.POINTER_SIZE for JNA 5.x - -This patch is backward compatible with JNA 4.x because -Native.POINTER_SIZE is present in both 4.x and 5.x. - -Bug: https://github.com/kaitoy/pcap4j/issues/191 -Bug: https://bugs.gentoo.org/830847 -Signed-off-by: Yuan Liao <liaoyuan@gmail.com> ---- - src/freenet/io/comm/UdpSocketHandler.java | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/freenet/io/comm/UdpSocketHandler.java b/src/freenet/io/comm/UdpSocketHandler.java -index 0cd975f16..c004613a9 100644 ---- a/src/freenet/io/comm/UdpSocketHandler.java -+++ b/src/freenet/io/comm/UdpSocketHandler.java -@@ -120,7 +120,7 @@ public class UdpSocketHandler implements PrioRunnable, PacketSocketHandler, Port - return false; - int ret = -1; - try { -- ret = socketOptionsHolder.setsockopt(fd, SOCKET_level.IPPROTO_IPV6.linux, p.option_name.linux, new IntByReference(p.linux).getPointer(), Pointer.SIZE); -+ ret = socketOptionsHolder.setsockopt(fd, SOCKET_level.IPPROTO_IPV6.linux, p.option_name.linux, new IntByReference(p.linux).getPointer(), Native.POINTER_SIZE); - } catch(Exception e) { Logger.normal(UdpSocketHandler.class, e.getMessage(),e); } //if it fails that's fine - return (ret == 0 ? true : false); - } --- -2.34.1 - diff --git a/net-p2p/freenet/files/build-clean.xml b/net-p2p/freenet/files/build-clean.xml deleted file mode 100644 index 89698df2675f..000000000000 --- a/net-p2p/freenet/files/build-clean.xml +++ /dev/null @@ -1,421 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project name="freenet" default="package" basedir="."> - <description> -Freenet is free software that lets you publish and retrieve information without -fear of censorship. To achieve this, the network is entirely decentralized, and -all actions are anonymous. Without anonymity, there can never be true freedom -of speech, and without decentralization the network would be vulnerable to attack. - -This file is to build Freenet entirely from source. The builder is responsible -for satisfying all library dependencies, e.g. via override.properties. Package -maintainers may prefer to use this instead of build.xml. - </description> - - <!-- =================================================================== --> - <!-- Global properties --> - <!-- =================================================================== --> - - <!-- user overrides (properties are immutable, so set overrides first) --> - <property file="override.properties"/> - <property file="build.properties"/> - <property file="dependencies.properties"/> - - <property name="version.src" value="freenet/node/Version.java" /> - <property name="version.make" value="freenet/node/Version.class" /> - - <path id="lib.path"> - <fileset dir="${lib.contrib.dir}" includes="${lib.contrib.jars}"/> - <fileset dir="${lib.dir}" includes="${lib.jars}"/> - <fileset dir="/usr/share/java" includes="${lib.jars}" erroronmissingdir="false"/> - </path> - <path id="libtest.path"> - <path refid="lib.path"/> - <fileset dir="${lib.dir}" includes="${libtest.jars}"/> - <fileset dir="/usr/share/java" includes="${libtest.jars}" erroronmissingdir="false"/> - <pathelement path="${main.make}"/> - <pathelement path="${test.make}"/> - </path> - - <property name="gjs.dst" value="${main.src}/freenet/clients/http/staticfiles/freenetjs"/> - <property name="gjs.dir" value="generator/js"/> - <path id="gjs.lib.path"> - <fileset dir="${gjs.dir}" includes="lib/*.jar"/> - <pathelement location="${gjs.dir}/war/WEB-INF/classes"/> - <fileset dir="${lib.dir}" includes="${gjs.lib.jars}"/> - </path> - - <path id="pmd.classpath"> - <fileset dir="${pmd.dir}" erroronmissingdir="false" includes="lib/*.jar"/> - </path> - - <property environment="env"/> - <property name="keystore" value="${env.jarsignerStoreLocation}"/> - <property name="keystore_alias" value="${env.jarsignerAlias}"/> - <property name="keystore_pass" value="${env.jarsignerStorePassword}"/> - <property name="key_pass" value="${env.jarsignerCodeSigningKeyPassword}"/> - - <property name="jar.dst" value="${main.dst}/freenet.jar"/> - - <assertions><enable/></assertions> - - <!-- set version string based on git-describe --> - <exec executable="git" failifexecutionfails="false" - errorProperty="git.errror" outputproperty="git.describe" resultproperty="git.result"> - <arg value="describe" /> - <arg value="--always" /> - <arg value="--abbrev=4" /> - <arg value="--dirty" /> - </exec> - <condition property="git.revision" value="${git.describe}" else="@unknown@"> - <and> - <equals arg1="${git.result}" arg2="0" /> - <isset property="git.describe" /> - </and> - </condition> - - <!-- =================================================================== --> - <!-- Miscellaneous --> - <!-- =================================================================== --> - - <target name="dist" depends="clean-all, all" description="clean-build everything"/> - - <target name="sign" description="Sign the distribution" depends="package"> - <echo message="Signing the distribution"/> - <signjar jar="${jar.dst}" strict="false" tsaurl="http://timestamp.comodoca.com/rfc3161" alias="${keystore_alias}" keystore="${keystore}" storepass="${keystore_pass}" keypass="${key_pass}" sigalg="SHA256withRSA" digestalg="SHA-256"/> - <!-- TODO: Should have strict="true", but it was introduced in Java 7, which we cannot yet require. --> - <verifyjar jar="${jar.dst}" alias="${keystore_alias}" keystore="${keystore}" storepass="${keystore_pass}" keypass="${key_pass}"/> - </target> - - <target name="all" depends="package, doc, findbugs, pmd, cpd" description="build everything, incl. docs, GWT js"/> - - <target name="clean-all" depends="clean, clean-doc, clean-gjs" description="clean all build products, incl. docs, GWT js"/> - - <target name="help" description="display help on parameters"> - <echo message="For main build targets, see `ant -p`"/> - <echo message=""/> - <echo message="Test parameters (-Dtest.PARAM=true)"/> - <echo message=" skip Skip all tests"/> - <echo message=" verbose Report additional information"/> - <echo message=" benchmark Run benchmark tests"/> - <echo message=" extensive Run extensive tests"/> - <echo message=""/> - <echo message="Misc parameters (-DPARAM=VALUE)"/> - <echo message=" javac.args Command line arguments to pass to javac"/> - <echo message=""/> - </target> - - <target name="findbugs" depends="package" unless="${findbugs.skip}"> - <antcall target="libdep-findbugs"/> - <echo message="Running Findbugs"/> - <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${findbugs.path}"/> - - <findbugs home="${findbugs.dir}" - output="xml" - outputFile="${test.dst}/findbugs.xml" - warningsProperty="findbugs.module.warnings" - failOnError="true" - jvmargs="-Xmx1536m -XX:MaxPermSize=384m -XX:ReservedCodeCacheSize=128m" > - <auxClasspath refid="lib.path" /> - <sourcePath path="${main.src}" /> - <class location="${jar.dst}" /> - </findbugs> - </target> - - <target name="pmd" depends="package" unless="${pmd.skip}"> - <antcall target="libdep-pmd"/> - <echo message="Running PMD"/> - <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpathref="pmd.classpath"/> - <pmd rulesetfiles="rulesets/java/design.xml" encoding="utf-8"> - <formatter type="xml" toFile="${test.dst}/pmd.xml"/> - <fileset dir="${main.src}"> - <include name="**/*.java"/> - </fileset> - </pmd> - </target> - - <target name="cpd" depends="package" unless="${cpd.skip}"> - <antcall target="libdep-cpd"/> - <echo message="Running CPD"/> - <taskdef name="cpd" classname="net.sourceforge.pmd.cpd.CPDTask" classpathref="pmd.classpath"/> - <cpd minimumTokenCount="100" format="xml" outputFile="${test.dst}/cpd.xml"> - <fileset dir="${main.src}"> - <include name="**/*.java"/> - </fileset> - </cpd> - </target> - - <target name="debug"> - <echoproperties/> - </target> - - <!-- =================================================================== --> - <!-- Library dependencies --> - <!-- =================================================================== --> - - <!-- - currently we only check for the most common cases of missing libraries. - this does result in less clear error messages for more obscure setups, e.g. - if you have debian's gwt-dev.jar but not commons-collections3.jar. however, - to cover all scenarios would be a pain. - --> - - <target name="env"> - <available property="lib.contrib.present" classname="freenet.node.ExtVersion" classpathref="lib.path"/> - <available property="lib.bouncycastle.present" classname="org.bouncycastle.crypto.signers.HMacDSAKCalculator" classpathref="lib.path"/> - <available property="lib.junit.present" classname="org.junit.runners.JUnit4" classpathref="libtest.path"/> - <available property="lib.hamcrest.present" classname="org.hamcrest.SelfDescribing" classpathref="libtest.path"/> - <available property="lib.findbugs.present" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${findbugs.path}"/> - <available property="lib.pmd.present" classname="net.sourceforge.pmd.ant.PMDTask" classpathref="pmd.classpath"/> - <available property="lib.cpd.present" classname="net.sourceforge.pmd.cpd.CPDTask" classpathref="pmd.classpath"/> - <available property="gjs.lib.gwt-user.present" classname="com.google.gwt.user.client.Window" classpathref="gjs.lib.path"/> - <available property="gjs.lib.gwt-dev.present" classname="com.google.gwt.dev.About" classpathref="gjs.lib.path"/> - <condition property="gjs.lib.gwt.present"> - <and> - <isset property="gjs.lib.gwt-user.present"/> - <isset property="gjs.lib.gwt-dev.present"/> - </and> - </condition> - </target> - - <target name="libdep-ext" depends="env" unless="lib.contrib.present"> - <fail message="freenet-ext not available"/> - </target> - - <target name="libdep-bc" depends="env" unless="lib.bouncycastle.present"> - <fail message="Bouncycastle not available (or not recent enough); try https://www.bouncycastle.org/download/${bc.jar}"/> - </target> - - <target name="libdep-junit" depends="env" unless="lib.junit.present"> - <fail message="JUnit4 not available"/> - </target> - - <target name="libdep-hamcrest" depends="env" unless="lib.hamcrest.present"> - <fail message="Hamcrest-core not available"/> - </target> - - <target name="libdep-findbugs" depends="env" unless="lib.findbugs.present"> - <fail message="findbugs not available"/> - </target> - - <target name="libdep-pmd" depends="env" unless="lib.pmd.present"> - <fail message="PMD not available"/> - </target> - - <target name="libdep-cpd" depends="env" unless="lib.cpd.present"> - <fail message="CPD not available"/> - </target> - - <target name="libdep-gwt-user" depends="env" unless="gjs.lib.gwt-user.present"> - <fail message="GWT-user not present"/> - </target> - - <target name="libdep-gwt-dev" depends="env" unless="gjs.lib.gwt-dev.present"> - <fail message="GWT-dev not present"/> - </target> - - <!-- =================================================================== --> - <!-- Standard build --> - <!-- =================================================================== --> - - <target name="init"> - <mkdir dir="${main.make}"/> - <mkdir dir="${main.dst}"/> - <mkdir dir="${test.make}"/> - <mkdir dir="${test.dst}"/> - </target> - - <target name="dep" depends="ensure-ext, ensure-bc, ensure-gjs"/> - - <target name="check-version-file"> - <uptodate property="version.uptodate" - targetfile="${main.make}/${version.src}" - srcfile="${main.src}/${version.src}"/> - </target> - - <target name="build-version-file" depends="check-version-file" unless="version.uptodate"> - <!-- Create the Version file with patched revision number in ${main.make} --> - <copy file="${main.src}/${version.src}" tofile="${main.make}/${version.src}" overwrite="true" /> - <delete file="${main.make}/${version.make}" quiet="true" /> - <replace file="${main.make}/${version.src}"> - <replacefilter token="@custom@" value="${git.revision}"/> - </replace> - <echo message="Updated build version to ${git.revision} in ${main.make}/${version.src}"/> - </target> - - <target name="build" depends="init, dep, build-version-file"> - <!-- Create the time stamp --> - <tstamp/> - <!-- Create the build directory structure used by compile --> - <javac srcdir="${main.src}" destdir="${main.make}" debug="on" source="1.7" target="1.7" includeAntRuntime="false" encoding="UTF-8"> - <compilerarg line="${javac.args}"/> - <classpath refid="lib.path"/> - <!-- tell javac to find Version.java in ${main.make}, not ${main.src} --> - <sourcepath><pathelement path="${main.make}"/></sourcepath> - <!-- following a very temporary list of files to be build --> - <include name="**/*.java"/> - <exclude name="**/package-info.java"/> - <exclude name="${version.src}"/> - </javac> - - <!-- Force compile of Version.java in case compile of ${main.src} didn't trigger it --> - <javac srcdir="${main.make}" destdir="${main.make}" debug="on" source="1.7" target="1.7" includeAntRuntime="false" encoding="UTF-8"> - <compilerarg line="${javac.args}"/> - <classpath refid="lib.path"/> - <include name="${version.src}"/> - </javac> - - <!-- Copy web interface static files to the build dir --> - <copy todir="${main.make}/freenet/clients/http/staticfiles"> - <fileset dir="${main.src}/freenet/clients/http/staticfiles"/> - </copy> - <!-- Copy translation files to the build dir --> - <copy todir="${main.make}/freenet/l10n"> - <fileset dir="${main.src}/freenet/l10n"> - <include name="freenet.l10n.*.properties"/> - <include name="iso-*.tab"/> - </fileset> - </copy> - <!-- Copy the dependencies.properties file --> - <copy todir="${main.make}" file="dependencies.properties"/> - </target> - - <target name="package-only" depends="build"> - <property name="lib.contrib.loc" location="${lib.contrib.dir}" /> - <property name="lib.loc" location="${lib.dir}" /> - <pathconvert property="lib.jars.package" refid="lib.path" pathsep=" "> - <map from="${lib.contrib.loc}/" to=""/> - <map from="${lib.loc}/" to=""/> - </pathconvert> - <jar jarfile="${jar.dst}" basedir="${main.make}"> - <manifest> - <attribute name="Permissions" value="all-permissions"/> - <attribute name="Application-Name" value="Freenet REference Daemon"/> - - <attribute name="Required-Ext-Version" value="29"/> - <attribute name="Recommended-Ext-Version" value="29"/> - <section name="common"> - <attribute name="Specification-Title" value="Freenet"/> - <attribute name="Specification-Version" value="0.7.5"/> - <attribute name="Specification-Vendor" value="freenetproject.org"/> - <attribute name="Implementation-Title" value="Freenet"/> - <attribute name="Implementation-Version" value="0.7.5 ${git.revision}"/> - <attribute name="Implementation-Vendor" value="freenetproject.org"/> - </section> - </manifest> - <exclude name="${version.src}"/> - </jar> - </target> - - <target name="package" depends="unit, package-only" description="build standard binary packages (Freenet daemon)"/> - - <target name="unit-build" depends="build" unless="${test.skip}"> - <antcall target="libdep-junit"/> - <antcall target="libdep-hamcrest"/> - <javac srcdir="${test.src}" destdir="${test.make}" debug="on" source="1.7" target="1.7" includeAntRuntime="false" encoding="UTF-8"> - <compilerarg line="${javac.args}"/> - <classpath refid="libtest.path"/> - <include name="**/*.java"/> - <exclude name="*.java"/> - </javac> - <copy todir="${test.make}/freenet/client/filter/png" overwrite="true"> - <fileset dir="${test.src}/freenet/client/filter/png"/> - </copy> - <copy todir="${test.make}/freenet/client/filter/bmp" overwrite="true"> - <fileset dir="${test.src}/freenet/client/filter/bmp"/> - </copy> - <copy todir="${test.make}/freenet/client/filter/mp3" overwrite="true"> - <fileset dir="${test.src}/freenet/client/filter/mp3"/> - </copy> - <copy todir="${test.make}/freenet/client/filter/gif" overwrite="true"> - <fileset dir="${test.src}/freenet/client/filter/gif"/> - </copy> - <copy todir="${test.make}/freenet/crypt/ciphers/rijndael-gladman-test-data" overwrite="true"> - <fileset dir="${test.src}/freenet/crypt/ciphers/rijndael-gladman-test-data"/> - </copy> - <copy todir="${test.make}/freenet/l10n" overwrite="true"> - <fileset dir="${test.src}/freenet/l10n" includes="*.properties"/> - </copy> - </target> - - <target name="unit" depends="unit-build" unless="${test.skip}"> - <junit printsummary="yes" haltonfailure="${test.haltonfailure}" logfailedtests="yes" showoutput="yes" filtertrace="no" fork="on" forkmode="perTest" maxmemory="256m" dir="${test.dst}"> - <classpath refid="libtest.path"/> - <formatter type="plain" usefile="false"/> - <formatter type="xml" if="${test.xml_output}"/> - <formatter classname="org.apache.tools.ant.taskdefs.optional.junit.TearDownOnVmCrash" usefile="false"/> - <test if="test.class" name="${test.class}" todir="${test.dst}"/> - <batchtest unless="test.class" fork="yes" todir="${test.dst}"> - <fileset dir="${test.make}" includes="**/*Test.class"/> - </batchtest> - <sysproperty key="test.verbose" value="${test.verbose}"/> - <sysproperty key="test.benchmark" value="${test.benchmark}"/> - <sysproperty key="test.extensive" value="${test.extensive}"/> - <!-- TODO source needs to be edited too; the old variables were "benchmark" and "extensiveTesting" --> - <assertions><enable/></assertions> - </junit> - </target> - - <target name="clean" description="clean standard build products"> - <delete dir="${main.make}"/> - <delete dir="${main.dst}"/> - <delete dir="${test.make}"/> - <delete dir="${test.dst}"/> - </target> - - <!-- =================================================================== --> - <!-- Dependencies (contrib, ie. freenet-ext.jar) --> - <!-- =================================================================== --> - - <target name="ensure-ext" depends="libdep-ext"> - <!-- clean build does nothing, since this is external library. --> - </target> - - <target name="ensure-bc" depends="libdep-bc"> - <!-- clean build does nothing, since this is external library. --> - </target> - - <!-- =================================================================== --> - <!-- Generate GWT code --> - <!-- =================================================================== --> - - <target name="env-gjs"> - <available property="gjs.present" file="${gjs.dst}" type="dir"/> - </target> - - <target name="ensure-gjs" depends="env-gjs" unless="gjs.present"> - <antcall target="build-gjs"/> - </target> - - <target name="build-gjs" depends="libdep-gwt-user, libdep-gwt-dev"> - <ant antfile="build.xml" dir="${gjs.dir}"> - <reference refid="gjs.lib.path" torefid="project.class.path"/> - </ant> - </target> - - <target name="clean-gjs"> - <ant antfile="build.xml" dir="${gjs.dir}" target="deleteGenerated"/> - </target> - - <!-- =================================================================== --> - <!-- Documentation --> - <!-- =================================================================== --> - - <target name="init-doc" unless="${doc.skip}"> - <mkdir dir="${doc.api}"/> - </target> - - <target name="javadoc" depends="init-doc, dep" unless="${doc.skip}"> - <javadoc classpathref="lib.path" sourcepath="${main.src}" destdir="${doc.api}" use="true"> - <link href="http://docs.oracle.com/javase/6/docs/api/"/> - </javadoc> - </target> - - <target name="doc" depends="javadoc" description="build documentation"> - <!-- currently freenet has no other documentation apart from javadocs --> - </target> - - <target name="clean-doc" unless="${doc.skip}"> - <delete dir="${doc.api}"/> - </target> - -</project> diff --git a/net-p2p/freenet/files/build.properties b/net-p2p/freenet/files/build.properties deleted file mode 100644 index 21fecf30c803..000000000000 --- a/net-p2p/freenet/files/build.properties +++ /dev/null @@ -1,95 +0,0 @@ -## -# Properties you can set to affect the build process. -# -# This file contains default values that are checked-in to version control. -# -# End users should not edit this file to set machine-specific properties; -# instead, create a new file called override.properties and set them there. -# - -################################################################################ -## build files/directories - -main.src=src -main.make=build/main -main.dst=dist - -test.src=test -test.make=build/test -test.dst=run - -doc.src=doc -doc.dst=javadoc -doc.api=javadoc - -################################################################################ -## external dependencies - -# dir for common library jars -lib.dir = lib - -# dir for freenet library jars (aka freenet-ext or "contrib" jars) -lib.contrib.dir = lib/freenet -## if you use the git submodule in ./contrib (legacy-27 branch) -## by running `git submodule init && git submodule update` -## contrib.ant is needed for the old legacy layout -#lib.contrib.dir = contrib/freenet_ext -#contrib.ant = ${lib.contrib.dir}/build.xml -## if you clone the contrib package separately (master branch) -#lib.contrib.dir = ../contrib/freenet-ext/dist - -# dir that freenet library jars will be installed to, relative to freenet.jar -lib.contrib.dir.rel = freenet - -# jars from ${lib.dir} to use -bc.jar = bcprov-jdk15on-154.jar -lib.jars = ${bc.jar} -#lib.jars = wrapper.jar db-je.jar bdb-je.jar commons-compress.jar - -# jars from ${lib.dir} to use, for tests -libtest.jars = junit4.jar hamcrest-core.jar - -# jars from ${lib.contrib.dir} to use -lib.contrib.jars = freenet-ext.jar bitcollider-core.jar db4o.jar lzmajio.jar mantissa.jar \ - wrapper.jar db-je.jar bdb-je.jar commons-compress.jar - -# jars from ${lib.dir} to use, for compiling GWT javascript -gjs.lib.jars = null -#gjs.lib.jars = gwt-dev-linux.jar gwt-dev-windows.jar gwt-dev.jar gwt-user.jar \ -# commons-collections3.jar ant.jar eclipse-ecj.jar - -findbugs.dir = findbugs -findbugs.path = ${findbugs.dir}/lib/findbugs-ant.jar - -pmd.dir = -################################################################################ -## build tool options - -# Javac -javac.args=-Xlint -Xlint:-deprecation - -# Test properties -test.skip=false -test.verbose=false -test.benchmark=false -test.extensive=false -test.xml_output=true -test.haltonfailure=yes - -# select a single test to run -#test.class= - -# Build javadoc -doc.skip=false - -# Run findbugs -findbugs.skip=false -pmd.skip=false -cpd.skip=false - -################################################################################ -## misc options - -# Hack around property expansion not featured in ant <= 1.7.1 -# see http://ant.apache.org/manual/properties.html#if+unless -true=true diff --git a/net-p2p/freenet/files/freenet-0.7.5_p1474-wrapper.conf b/net-p2p/freenet/files/freenet-0.7.5_p1474-wrapper.conf deleted file mode 100644 index 7ec6cd01bcad..000000000000 --- a/net-p2p/freenet/files/freenet-0.7.5_p1474-wrapper.conf +++ /dev/null @@ -1,27 +0,0 @@ -wrapper.java.command=java -wrapper.working.dir=/var/freenet/ -wrapper.java.mainclass=freenet.node.NodeStarter -wrapper.java.library.path.1=/usr/lib -wrapper.java.initmemory=60 -wrapper.java.maxmemory=1024 -wrapper.java.additional.1=-Dnetworkaddress.cache.ttl=0 -wrapper.java.additional.2=-Dnetworkaddress.cache.negative.ttl=0 -wrapper.java.additional.3=-enableassertions:freenet -# You might want to set the following line if you have changed java.maxmemory -wrapper.java.additional.4=-XX:MaxPermSize=1024M - -wrapper.app.parameter.1=freenet.ini -wrapper.console.format=PM -wrapper.console.loglevel=INFO -wrapper.logfile=wrapper.log -wrapper.logfile.format=LPTM -wrapper.logfile.loglevel=INFO -wrapper.logfile.maxsize=2M -wrapper.logfile.maxfiles=3 -wrapper.syslog.loglevel=NONE -wrapper.console.title=Freenet 0.7 -wrapper.jvm_exit.timeout=120 -wrapper.restart.reload_configuration=TRUE -wrapper.filter.trigger.1=java.lang.OutOfMemoryError -wrapper.filter.action.1=RESTART - diff --git a/net-p2p/freenet/files/freenet.initd b/net-p2p/freenet/files/freenet.initd deleted file mode 100755 index 75e957e579cc..000000000000 --- a/net-p2p/freenet/files/freenet.initd +++ /dev/null @@ -1,11 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -start() { - start-stop-daemon --start --user freenet --chdir /var/freenet/ --background --stdout=/var/freenet/freenet.log --stderr=/var/freenet/freenet.log --make-pidfile --pidfile=/var/run/freenet.pid --name freenet --exec java -- -cp $classpath $additional_options $configurable_options $target -} - -stop() { - start-stop-daemon --stop --user freenet --pidfile=/var/run/freenet.pid -} diff --git a/net-p2p/freenet/freenet-0.7.5_p1491-r1.ebuild b/net-p2p/freenet/freenet-0.7.5_p1491-r1.ebuild deleted file mode 100644 index 5205069d8205..000000000000 --- a/net-p2p/freenet/freenet-0.7.5_p1491-r1.ebuild +++ /dev/null @@ -1,165 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -JAVA_PKG_IUSE="doc source" - -inherit java-pkg-2 java-ant-2 systemd - -DESCRIPTION="An encrypted network without censorship" -HOMEPAGE="https://freenetproject.org/" -# https://github.com/${PN}/seedrefs/archive/build0${PV#*p}.zip -> seednodes-${PV}.zip -SRC_URI=" - https://github.com/${PN}/fred/archive/build0${PV#*p}.zip -> ${P}.zip - https://github.com/${PN}/seedrefs/archive/build01480.zip -> seednodes-0.7.5_p1480.zip - 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="+nss test" - -CDEPEND="dev-java/bcprov:0 - dev-java/commons-compress:0 - dev-java/fec:0 - dev-java/java-service-wrapper:0 - dev-java/jbitcollider-core:0 - dev-java/jna:4 - dev-java/lzma:0 - dev-java/lzmajio:0 - dev-java/mersennetwister:0 - nss? ( dev-libs/nss )" - -DEPEND=" - app-arch/unzip - >=virtual/jdk-1.8 - ${CDEPEND} - test? ( - dev-java/junit:0 - dev-java/ant-junit:0 - ) - dev-java/ant-core:0" - -RDEPEND=" - >=virtual/jre-1.8 - net-libs/nativebiginteger:0 - ${CDEPEND} - acct-user/freenet - acct-group/freenet" - -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,fec,java-service-wrapper,jbitcollider-core,jna-4,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-build0${PV#*p}" - -RESTRICT="test" # they're broken in the last release. - -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 -} - -src_unpack() { -# unpack ${P}.zip seednodes-${PV}.zip - unpack ${P}.zip seednodes-0.7.5_p1480.zip -} - -src_prepare() { -# cat "${WORKDIR}"/seedrefs-build0${PV#*p}/* > "${S}"/seednodes.fref - cat "${WORKDIR}"/seedrefs-build01480/* > "${S}"/seednodes.fref - cp "${FILESDIR}"/freenet-0.7.5_p1491-wrapper.conf freenet-wrapper.conf || die - cp "${FILESDIR}"/run.sh-20090501 run.sh || die - cp "${FILESDIR}"/build-clean.xml build-clean.xml || die - cp "${FILESDIR}"/build.properties build.properties || die - - eapply -p1 "${FILESDIR}/"0.7.5_p1491-update-for-jna-5.x.patch - eapply -p0 "${FILESDIR}"/0.7.5_p1483-ext.patch - eapply -p1 "${FILESDIR}/"0.7.5_p1475-remove-git.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 || die - if use nss; then - echo "wrapper.java.additional.6=-Dfreenet.jce.use.NSS=true" >> freenet-wrapper.conf || die - fi - 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 || die - done - done - IFS=${ifs_original} - echo "wrapper.java.classpath.$((i++))=/usr/share/freenet/lib/ant.jar" >> freenet-wrapper.conf || die - echo "wrapper.java.library.path.2=/usr/$(get_libdir)/java-service-wrapper" >> freenet-wrapper.conf || die - echo "wrapper.java.library.path.3=/usr/$(get_libdir)/jna-4" >> freenet-wrapper.conf || die - - cp "${DISTDIR}"/freenet-ant-1.7.1.jar lib/ant.jar || die - eapply_user -} - -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 - newdoc README.md README - insinto /etc - doins freenet-wrapper.conf - insinto /var/freenet - doins run.sh seednodes.fref - fperms +x /var/freenet/run.sh - 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 -} diff --git a/net-p2p/freenet/freenet-0.7.5_p1491.ebuild b/net-p2p/freenet/freenet-0.7.5_p1491.ebuild deleted file mode 100644 index 9c2352f70072..000000000000 --- a/net-p2p/freenet/freenet-0.7.5_p1491.ebuild +++ /dev/null @@ -1,164 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -JAVA_PKG_IUSE="doc source" - -inherit java-pkg-2 java-ant-2 systemd - -DESCRIPTION="An encrypted network without censorship" -HOMEPAGE="https://freenetproject.org/" -# https://github.com/${PN}/seedrefs/archive/build0${PV#*p}.zip -> seednodes-${PV}.zip -SRC_URI=" - https://github.com/${PN}/fred/archive/build0${PV#*p}.zip -> ${P}.zip - https://github.com/${PN}/seedrefs/archive/build01480.zip -> seednodes-0.7.5_p1480.zip - 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="+nss test" - -CDEPEND="dev-java/bcprov:0 - dev-java/commons-compress:0 - dev-java/fec:0 - dev-java/java-service-wrapper:0 - dev-java/jbitcollider-core:0 - dev-java/jna:4 - dev-java/lzma:0 - dev-java/lzmajio:0 - dev-java/mersennetwister:0 - nss? ( dev-libs/nss )" - -DEPEND=" - app-arch/unzip - >=virtual/jdk-1.8 - ${CDEPEND} - test? ( - dev-java/junit:0 - dev-java/ant-junit:0 - ) - dev-java/ant-core:0" - -RDEPEND=" - >=virtual/jre-1.8 - net-libs/nativebiginteger:0 - ${CDEPEND} - acct-user/freenet - acct-group/freenet" - -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,fec,java-service-wrapper,jbitcollider-core,jna-4,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-build0${PV#*p}" - -RESTRICT="test" # they're broken in the last release. - -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 -} - -src_unpack() { -# unpack ${P}.zip seednodes-${PV}.zip - unpack ${P}.zip seednodes-0.7.5_p1480.zip -} - -src_prepare() { -# cat "${WORKDIR}"/seedrefs-build0${PV#*p}/* > "${S}"/seednodes.fref - cat "${WORKDIR}"/seedrefs-build01480/* > "${S}"/seednodes.fref - cp "${FILESDIR}"/freenet-0.7.5_p1474-wrapper.conf freenet-wrapper.conf || die - cp "${FILESDIR}"/run.sh-20090501 run.sh || die - cp "${FILESDIR}"/build-clean.xml build-clean.xml || die - cp "${FILESDIR}"/build.properties build.properties || die - - eapply -p0 "${FILESDIR}"/0.7.5_p1483-ext.patch - eapply -p1 "${FILESDIR}/"0.7.5_p1475-remove-git.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 || die - if use nss; then - echo "wrapper.java.additional.5=-Dfreenet.jce.use.NSS=true" >> freenet-wrapper.conf || die - fi - 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 || die - done - done - IFS=${ifs_original} - echo "wrapper.java.classpath.$((i++))=/usr/share/freenet/lib/ant.jar" >> freenet-wrapper.conf || die - echo "wrapper.java.library.path.2=/usr/$(get_libdir)/java-service-wrapper" >> freenet-wrapper.conf || die - echo "wrapper.java.library.path.3=/usr/$(get_libdir)/jna-4" >> freenet-wrapper.conf || die - - cp "${DISTDIR}"/freenet-ant-1.7.1.jar lib/ant.jar || die - eapply_user -} - -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 - newdoc README.md README - insinto /etc - doins freenet-wrapper.conf - insinto /var/freenet - doins run.sh seednodes.fref - fperms +x /var/freenet/run.sh - 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 -} diff --git a/net-p2p/freenet/freenet-0.7.5_p1492.ebuild b/net-p2p/freenet/freenet-0.7.5_p1492.ebuild deleted file mode 100644 index e501d6fa4dbf..000000000000 --- a/net-p2p/freenet/freenet-0.7.5_p1492.ebuild +++ /dev/null @@ -1,165 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -JAVA_PKG_IUSE="doc source" - -inherit java-pkg-2 java-ant-2 systemd - -DESCRIPTION="An encrypted network without censorship" -HOMEPAGE="https://freenetproject.org/" -# https://github.com/${PN}/seedrefs/archive/build0${PV#*p}.zip -> seednodes-${PV}.zip -SRC_URI=" - https://github.com/${PN}/fred/archive/build0${PV#*p}.zip -> ${P}.zip - https://github.com/${PN}/seedrefs/archive/build01480.zip -> seednodes-0.7.5_p1480.zip - mirror://gentoo/freenet-ant-1.7.1.jar" - -LICENSE="GPL-2+ GPL-2 MIT BSD-2 Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm ~x86" -IUSE="+nss test" - -CDEPEND="dev-java/bcprov:0 - dev-java/commons-compress:0 - dev-java/fec:0 - dev-java/java-service-wrapper:0 - dev-java/jbitcollider-core:0 - dev-java/jna:4 - dev-java/lzma:0 - dev-java/lzmajio:0 - dev-java/mersennetwister:0 - nss? ( dev-libs/nss )" - -DEPEND=" - app-arch/unzip - >=virtual/jdk-1.8 - ${CDEPEND} - test? ( - dev-java/junit:0 - dev-java/ant-junit:0 - ) - dev-java/ant-core:0" - -RDEPEND=" - >=virtual/jre-1.8 - net-libs/nativebiginteger:0 - ${CDEPEND} - acct-user/freenet - acct-group/freenet" - -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,fec,java-service-wrapper,jbitcollider-core,jna-4,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-build0${PV#*p}" - -RESTRICT="test" # they're broken in the last release. - -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 -} - -src_unpack() { -# unpack ${P}.zip seednodes-${PV}.zip - unpack ${P}.zip seednodes-0.7.5_p1480.zip -} - -src_prepare() { -# cat "${WORKDIR}"/seedrefs-build0${PV#*p}/* > "${S}"/seednodes.fref - cat "${WORKDIR}"/seedrefs-build01480/* > "${S}"/seednodes.fref - cp "${FILESDIR}"/freenet-0.7.5_p1491-wrapper.conf freenet-wrapper.conf || die - cp "${FILESDIR}"/run.sh-20090501 run.sh || die - cp "${FILESDIR}"/build-clean.xml build-clean.xml || die - cp "${FILESDIR}"/build.properties build.properties || die - - eapply -p1 "${FILESDIR}/"0.7.5_p1491-update-for-jna-5.x.patch - eapply -p0 "${FILESDIR}"/0.7.5_p1483-ext.patch - eapply -p1 "${FILESDIR}/"0.7.5_p1475-remove-git.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 || die - if use nss; then - echo "wrapper.java.additional.6=-Dfreenet.jce.use.NSS=true" >> freenet-wrapper.conf || die - fi - 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 || die - done - done - IFS=${ifs_original} - echo "wrapper.java.classpath.$((i++))=/usr/share/freenet/lib/ant.jar" >> freenet-wrapper.conf || die - echo "wrapper.java.library.path.2=/usr/$(get_libdir)/java-service-wrapper" >> freenet-wrapper.conf || die - echo "wrapper.java.library.path.3=/usr/$(get_libdir)/jna-4" >> freenet-wrapper.conf || die - - cp "${DISTDIR}"/freenet-ant-1.7.1.jar lib/ant.jar || die - eapply_user -} - -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 - newdoc README.md README - insinto /etc - doins freenet-wrapper.conf - insinto /var/freenet - doins run.sh seednodes.fref - fperms +x /var/freenet/run.sh - 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 -} diff --git a/net-p2p/freenet/freenet-0.7.5_p1493-r1.ebuild b/net-p2p/freenet/freenet-0.7.5_p1493-r1.ebuild deleted file mode 100644 index dc8909dae308..000000000000 --- a/net-p2p/freenet/freenet-0.7.5_p1493-r1.ebuild +++ /dev/null @@ -1,178 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -JAVA_PKG_IUSE="doc source" - -inherit java-pkg-2 java-ant-2 systemd - -DESCRIPTION="An encrypted network without censorship" -HOMEPAGE="https://freenetproject.org/" -# https://github.com/${PN}/seedrefs/archive/build0${PV#*p}.zip -> seednodes-${PV}.zip -SRC_URI=" - https://github.com/${PN}/fred/archive/build0${PV#*p}.zip -> ${P}.zip - https://github.com/${PN}/seedrefs/archive/build01480.zip -> seednodes-0.7.5_p1480.zip - mirror://gentoo/freenet-ant-1.7.1.jar" - -LICENSE="GPL-2+ GPL-2 MIT BSD-2 Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86" -IUSE="+nss test" - -CDEPEND="dev-java/bcprov:0 - dev-java/commons-compress:0 - dev-java/fec:0 - dev-java/java-service-wrapper:0 - dev-java/jbitcollider-core:0 - dev-java/jna:4 - dev-java/lzma:0 - dev-java/lzmajio:0 - dev-java/mersennetwister:0 - nss? ( dev-libs/nss )" - -DEPEND=" - app-arch/unzip - >=virtual/jdk-1.8 - ${CDEPEND} - test? ( - dev-java/junit:0 - dev-java/ant-junit:0 - ) - dev-java/ant-core:0" - -RDEPEND=" - >=virtual/jre-1.8 - net-libs/nativebiginteger:0 - ${CDEPEND} - acct-user/freenet - acct-group/freenet" - -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,fec,java-service-wrapper,jbitcollider-core,jna-4,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-build0${PV#*p}" - -RESTRICT="test" # they're broken in the last release. - -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 -} - -src_unpack() { -# unpack ${P}.zip seednodes-${PV}.zip - unpack ${P}.zip seednodes-0.7.5_p1480.zip -} - -src_prepare() { -# cat "${WORKDIR}"/seedrefs-build0${PV#*p}/* > "${S}"/seednodes.fref - cat "${WORKDIR}"/seedrefs-build01480/* > "${S}"/seednodes.fref - cp "${FILESDIR}"/freenet-0.7.5_p1491-wrapper.conf freenet-wrapper.conf || die - cp "${FILESDIR}"/run.sh-20090501 run.sh || die - cp "${FILESDIR}"/build-clean.xml build-clean.xml || die - cp "${FILESDIR}"/build.properties build.properties || die - - eapply -p0 "${FILESDIR}"/0.7.5_p1483-ext.patch - eapply -p1 "${FILESDIR}/"0.7.5_p1475-remove-git.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 || die - if use nss; then - echo "wrapper.java.additional.11=-Dfreenet.jce.use.NSS=true" >> freenet-wrapper.conf || die - else - sed -i -e "s:Dfreenet.jce.use.NSS=tru:Dfreenet.jce.use.NSS=false:g" freenet.confd || die - fi - local i=2 pkg jars jar classpath - classpath="/usr/share/freenet/lib/freenet.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 || die - classpath="${classpath}":"${jar}" - - done - done - IFS=${ifs_original} - echo "wrapper.java.classpath.$((i++))=/usr/share/freenet/lib/ant.jar" >> freenet-wrapper.conf || die - classpath="${classpath}":/usr/share/freenet/lib/ant.jar - echo "classpath=\"""${classpath}""\"" > freenet.confd || die - echo "wrapper.java.library.path.2=/usr/$(get_libdir)/java-service-wrapper" >> freenet-wrapper.conf || die - echo "wrapper.java.library.path.3=/usr/$(get_libdir)/jna-4" >> freenet-wrapper.conf || die - echo "additional_options=\"-Dfreenet.jce.use.NSS=true -Djna.nosys=false -Dnetworkaddress.cache.ttl=0 -Dnetworkaddress.cache.negative.ttl=0 -enableassertions:freenet -Djava.library.path=/usr/$(get_libdir)/jna-4\"" >> freenet.confd || die - echo "target=\"freenet.node.NodeStarter\"" >> freenet.confd || die - echo "configurable_options=\"-Djava.initmemory=60 -Djava.maxmemory=1024 -XX:MaxPermSize=1024M\"" >> freenet.confd || die - - cp "${DISTDIR}"/freenet-ant-1.7.1.jar lib/ant.jar || die - eapply_user -} - -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 -#this uses java-service-wrapper, which is currently broken, bug 878869 -# doinitd "${FILESDIR}"/freenet -#this does directly start freenet without the wrapper - newinitd "${FILESDIR}"/freenet.initd freenet - newconfd freenet.confd freenet - else - newinitd "${FILESDIR}"/freenet.old freenet - fi - - systemd_dounit "${FILESDIR}"/freenet.service - - dodoc AUTHORS - newdoc README.md README - insinto /etc - doins freenet-wrapper.conf - insinto /var/freenet - doins run.sh seednodes.fref - fperms +x /var/freenet/run.sh - 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 -} diff --git a/net-p2p/freenet/freenet-0.7.5_p1493.ebuild b/net-p2p/freenet/freenet-0.7.5_p1493.ebuild deleted file mode 100644 index 494391e226e5..000000000000 --- a/net-p2p/freenet/freenet-0.7.5_p1493.ebuild +++ /dev/null @@ -1,164 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -JAVA_PKG_IUSE="doc source" - -inherit java-pkg-2 java-ant-2 systemd - -DESCRIPTION="An encrypted network without censorship" -HOMEPAGE="https://freenetproject.org/" -# https://github.com/${PN}/seedrefs/archive/build0${PV#*p}.zip -> seednodes-${PV}.zip -SRC_URI=" - https://github.com/${PN}/fred/archive/build0${PV#*p}.zip -> ${P}.zip - https://github.com/${PN}/seedrefs/archive/build01480.zip -> seednodes-0.7.5_p1480.zip - mirror://gentoo/freenet-ant-1.7.1.jar" - -LICENSE="GPL-2+ GPL-2 MIT BSD-2 Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86" -IUSE="+nss test" - -CDEPEND="dev-java/bcprov:0 - dev-java/commons-compress:0 - dev-java/fec:0 - dev-java/java-service-wrapper:0 - dev-java/jbitcollider-core:0 - dev-java/jna:4 - dev-java/lzma:0 - dev-java/lzmajio:0 - dev-java/mersennetwister:0 - nss? ( dev-libs/nss )" - -DEPEND=" - app-arch/unzip - >=virtual/jdk-1.8 - ${CDEPEND} - test? ( - dev-java/junit:0 - dev-java/ant-junit:0 - ) - dev-java/ant-core:0" - -RDEPEND=" - >=virtual/jre-1.8 - net-libs/nativebiginteger:0 - ${CDEPEND} - acct-user/freenet - acct-group/freenet" - -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,fec,java-service-wrapper,jbitcollider-core,jna-4,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-build0${PV#*p}" - -RESTRICT="test" # they're broken in the last release. - -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 -} - -src_unpack() { -# unpack ${P}.zip seednodes-${PV}.zip - unpack ${P}.zip seednodes-0.7.5_p1480.zip -} - -src_prepare() { -# cat "${WORKDIR}"/seedrefs-build0${PV#*p}/* > "${S}"/seednodes.fref - cat "${WORKDIR}"/seedrefs-build01480/* > "${S}"/seednodes.fref - cp "${FILESDIR}"/freenet-0.7.5_p1491-wrapper.conf freenet-wrapper.conf || die - cp "${FILESDIR}"/run.sh-20090501 run.sh || die - cp "${FILESDIR}"/build-clean.xml build-clean.xml || die - cp "${FILESDIR}"/build.properties build.properties || die - - eapply -p0 "${FILESDIR}"/0.7.5_p1483-ext.patch - eapply -p1 "${FILESDIR}/"0.7.5_p1475-remove-git.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 || die - if use nss; then - echo "wrapper.java.additional.11=-Dfreenet.jce.use.NSS=true" >> freenet-wrapper.conf || die - fi - 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 || die - done - done - IFS=${ifs_original} - echo "wrapper.java.classpath.$((i++))=/usr/share/freenet/lib/ant.jar" >> freenet-wrapper.conf || die - echo "wrapper.java.library.path.2=/usr/$(get_libdir)/java-service-wrapper" >> freenet-wrapper.conf || die - echo "wrapper.java.library.path.3=/usr/$(get_libdir)/jna-4" >> freenet-wrapper.conf || die - - cp "${DISTDIR}"/freenet-ant-1.7.1.jar lib/ant.jar || die - eapply_user -} - -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 - newdoc README.md README - insinto /etc - doins freenet-wrapper.conf - insinto /var/freenet - doins run.sh seednodes.fref - fperms +x /var/freenet/run.sh - 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 -} |