Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 297660 - net-p2p/i2p - An anonymous network.
Summary: net-p2p/i2p - An anonymous network.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 6 votes (vote)
Assignee: Default Assignee for New Packages
URL: http://www.geti2p.net
Whiteboard: sunrise suggested
Keywords: EBUILD
: 396681 (view as bug list)
Depends on: 517730
Blocks: 465906
  Show dependency tree
 
Reported: 2009-12-20 15:18 UTC by Andreas Gick
Modified: 2015-05-22 05:47 UTC (History)
20 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for net-p2p/i2p (i2p-0.7.8.ebuild,1.75 KB, text/plain)
2009-12-20 15:22 UTC, Andreas Gick
Details
ebuild for net-p2p/i2p (i2p-0.7.13.ebuild,1.76 KB, text/plain)
2010-05-03 16:37 UTC, Andreas Gick
Details
net-p2p/i2p-0.7.13, new version (i2p-0.7.13.ebuild,1.86 KB, text/plain)
2010-05-16 03:06 UTC, Oleg Popov
Details
init.d script (i2p,579 bytes, text/plain)
2010-05-16 03:06 UTC, Oleg Popov
Details
Copied over the improved ebuild by Oleg Popov to reflect that there's a new version available. (i2p-0.7.14.ebuild,1.86 KB, text/plain)
2010-06-27 11:15 UTC, Andreas Gick
Details
New ebuild making the use of a new user/group and initscript optional via the local useflag initscript. (i2p-0.8.ebuild,2.68 KB, text/plain)
2010-10-29 10:08 UTC, Andreas Gick
Details
New revision of the 0.8 ebuild: Following Oleg's hint and i put the needed jetty version into SRC_URI. (i2p-0.8-r1.ebuild,2.59 KB, text/plain)
2010-11-01 20:22 UTC, Andreas Gick
Details
metadata.xml to display information about the local useflag. (metadata.xml,320 bytes, text/plain)
2010-11-01 20:28 UTC, Andreas Gick
Details
i2p ebuild (i2p-0.8-r2.ebuild,2.63 KB, text/plain)
2010-11-04 13:48 UTC, kirin yuri
Details
ebuild for the latest version of i2p (i2p-0.8.1.ebuild,2.63 KB, text/plain)
2010-11-24 18:54 UTC, Andreas Gick
Details
ebuild for the latest version of i2p (i2p-0.8.2.ebuild,2.63 KB, text/plain)
2010-12-30 15:12 UTC, Andreas Gick
Details
ebuild for the latest version of i2p (i2p-0.8.3.ebuild,2.63 KB, text/plain)
2011-02-06 19:12 UTC, Andreas Gick
Details
hardened-aware version (i2p-0.8.3-r1.ebuild,2.64 KB, text/plain)
2011-02-27 17:06 UTC, Oleg Popov
Details
new version... (i2p-0.8.4.ebuild,2.64 KB, text/plain)
2011-03-03 19:34 UTC, Andreas Gick
Details
i2p-0.8.4.ebuild (i2p-0.8.4.ebuild,2.60 KB, text/plain)
2011-04-15 04:47 UTC, gtlinuxman
Details
metadata.xml (metadata.xml,491 bytes, text/plain)
2011-04-15 04:50 UTC, gtlinuxman
Details
i2p-0.8.4.ebuild (i2p-0.8.4.ebuild,2.64 KB, text/plain)
2011-04-15 05:04 UTC, gtlinuxman
Details
new ebuild for version 0.8.5 (i2p-0.8.5.ebuild,2.64 KB, text/plain)
2011-04-25 09:10 UTC, Andreas Gick
Details
ebuild for version 0.8.6 (i2p-0.8.6.ebuild,2.64 KB, application/octet-stream)
2011-05-25 09:13 UTC, Andreas Gick
Details
ebuild for version 0.8.7 (i2p-0.8.7.ebuild,2.70 KB, text/plain)
2011-07-13 12:03 UTC, Andreas Gick
Details
ebuild for version 0.8.8 (i2p-0.8.8.ebuild,2.70 KB, text/plain)
2011-09-16 08:43 UTC, Andreas Gick
Details
ebuild for version 0.8.11 (i2p-0.8.11.ebuild,2.83 KB, text/plain)
2011-11-13 10:23 UTC, Andreas Gick
Details
ebuild for latest release (i2p-0.8.12.ebuild,2.83 KB, text/plain)
2012-01-26 08:25 UTC, Andreas Gick
Details
ebuild for latest release (i2p-0.8.13.ebuild,2.83 KB, text/plain)
2012-03-07 14:17 UTC, Andreas Gick
Details
Latest ebuild for version 0.9 (i2p-0.9.ebuild,2.70 KB, text/plain)
2012-05-10 10:10 UTC, Andreas Gick
Details
Ebuild for latest version (i2p-0.9.1.ebuild,2.70 KB, text/plain)
2012-08-28 16:01 UTC, Andreas Gick
Details
ebuild for version 0.9.2 (i2p-0.9.2.ebuild,2.86 KB, text/plain)
2012-09-26 07:09 UTC, Andrey Aleksandrovich
Details
ebuild for version 0.9.3 (i2p-0.9.3.ebuild,2.87 KB, text/plain)
2012-11-12 13:54 UTC, Andreas Gick
Details
i2p-0.9.3-r1.ebuild corrected ebuild (i2p-0.9.3-r1.ebuild,2.97 KB, text/plain)
2012-11-12 16:20 UTC, Andreas Gick
Details
i2p-0.9.4.ebuild (i2p-0.9.4.ebuild,2.97 KB, text/plain)
2012-12-20 17:17 UTC, Andrey Aleksandrovich
Details
i2p-0.9.4.ebuild (i2p-0.9.4.ebuild,3.06 KB, text/plain)
2013-01-11 11:05 UTC, gtlinuxman
Details
Init script (i2p,1.14 KB, text/plain)
2013-01-11 11:06 UTC, gtlinuxman
Details
i2p-0.9.4.ebuild (i2p-0.9.4.ebuild,3.32 KB, text/plain)
2013-01-11 13:24 UTC, gtlinuxman
Details
initscript (i2p,1.17 KB, text/plain)
2013-01-24 18:09 UTC, M. B.
Details
i2p-0.9.4-r1.ebuild (i2p-0.9.4-r1.ebuild,3.38 KB, text/plain)
2013-01-24 18:11 UTC, M. B.
Details
i2p-0.9.5.ebuild (i2p-0.9.5.ebuild,4.58 KB, text/plain)
2013-03-12 18:43 UTC, M. B.
Details
./files/i2p (initscript) (i2p,1.15 KB, text/plain)
2013-03-12 18:47 UTC, M. B.
Details
i2p-0.9.5-r1.ebuild (i2p-0.9.5-r1.ebuild,4.80 KB, text/plain)
2013-03-13 20:04 UTC, M. B.
Details
encoding.patch (encoding.patch,317 bytes, patch)
2013-03-16 11:45 UTC, M. B.
Details | Diff
Obsoleted attachments for which the author has attached a newer version. (file_297660.txt,72 bytes, text/plain)
2013-04-14 17:23 UTC, Tom Wijsman (TomWij) (RETIRED)
Details
i2p-0.9.6.ebuild (i2p-0.9.6.ebuild,4.80 KB, text/plain)
2013-06-04 18:07 UTC, Andrey Aleksandrovich
Details
i2p-0.9.7.ebuild (i2p-0.9.7.ebuild,4.80 KB, text/plain)
2013-07-19 17:35 UTC, Andrey Aleksandrovich
Details
error building i2p-0.9.7 (i2p-0.9.7.build-errors.txt,6.73 KB, text/plain)
2013-07-25 09:46 UTC, Andreas Gick
Details
i2p-0.9.7.1.ebuild (i2p-0.9.7.1.ebuild,4.80 KB, text/plain)
2013-08-22 22:16 UTC, Michael Rowell
Details
ebuild for version 0.9.10 (i2p-0.9.10.ebuild,4.91 KB, text/plain)
2014-02-03 12:40 UTC, Andreas Gick
Details
i2p-0.9.13.ebuild (i2p-0.9.13.ebuild,4.67 KB, text/plain)
2014-07-21 22:53 UTC, M. B.
Details
i2p.service (i2p.service,244 bytes, text/plain)
2014-07-22 11:25 UTC, anonymous
Details
i2p-0.9.16.ebuild (i2p-0.9.16.ebuild,5.45 KB, text/plain)
2014-11-14 23:26 UTC, M. B.
Details
i2p-0.9.18.ebuild (file_297660.txt,6.24 KB, text/plain)
2015-02-23 19:54 UTC, Anna Tikhomirova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Gick 2009-12-20 15:18:40 UTC
Wrote an ebuild to install i2p to /opt/i2p. It's far from perfect, but works after some configuration effort.

Reproducible: Always
Comment 1 Andreas Gick 2009-12-20 15:22:10 UTC
Created attachment 213577 [details]
ebuild for net-p2p/i2p

This is the ebuild I hacked together to install i2p. It's far from perfect, but at least does it's job.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2009-12-26 13:01:57 UTC
Hello, The Gentoo Team would like to firstly thank you for your ebuild 
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.

Allow me to use this opportunity to introduce you to Gentoo Sunrise. The 
sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to 
commit to and all users can have ebuilds reviewed by Gentoo devs for entry 
into the overlay. So, the sunrise team is suggesting that you look into this 
and submit your ebuild to the overlay where even *you* can commit to. =)

Thanks,
On behalf of the Gentoo Sunrise Team,
Justin.

[1]: http://www.gentoo.org/proj/en/sunrise/
[2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq
Comment 3 Andreas Gick 2010-05-03 16:37:30 UTC
Created attachment 230163 [details]
ebuild for net-p2p/i2p

I haven't been able to track down the problems I got with compiling the latest version of i2p, i. e., sometimes it works, sometimes not. That's why I used a while-loop in the ebuild.

Greets Andreas
Comment 4 Andreas Gick 2010-05-03 16:39:41 UTC
(In reply to comment #2)
Thanks for pointing me to sunrise, 
I hope that I can improve my time management to contribute to the overlay. But first of all I put an ebuild for the latest version of i2p, which isn't perfect but at least works, as I've already mentioned.

Greets Andreas
Comment 5 Oleg Popov 2010-05-16 03:06:14 UTC
Created attachment 231615 [details]
net-p2p/i2p-0.7.13, new version

Fixed some mistakes (like never-dying and fetching file in compile stage)
Added support for init.d script (will be attached next)
Comment 6 Oleg Popov 2010-05-16 03:06:57 UTC
Created attachment 231617 [details]
init.d script
Comment 7 Andreas Gick 2010-06-27 11:15:09 UTC
Created attachment 236717 [details]
Copied over the improved ebuild by Oleg Popov to reflect that there's a new version available.
Comment 8 Andreas Gick 2010-06-27 12:04:58 UTC
Thanks for your efforts,

actually I wanted to add similar changes for the new version today, but I see that you've already written a much cleaner and improved ebuild for version 0.7.13, so I copied it over to the latest version.

As I prefer to run i2p as normal user, I'm not sure about the /opt/i2p/home directory. But it's a matter of taste, I suppose.

Greets Andreas
Comment 9 Andreas Gick 2010-10-29 10:08:54 UTC
Created attachment 252461 [details]
New ebuild making the use of a new user/group and initscript optional via the local useflag initscript.
Comment 10 Oleg Popov 2010-10-29 22:00:17 UTC
(In reply to comment #9)
> Created an attachment (id=252461) [details]
> New ebuild making the use of a new user/group and initscript optional via the
> local useflag initscript.
> 

Why do you fetch files in pkg_setup instead of using SRC_URI?
Comment 11 Andreas Gick 2010-11-01 20:22:34 UTC
Created attachment 252819 [details]
New revision of the 0.8 ebuild: Following Oleg's hint and i put the needed jetty version into SRC_URI.
Comment 12 Andreas Gick 2010-11-01 20:28:56 UTC
Created attachment 252823 [details]
metadata.xml to display information about the local useflag.
Comment 13 Andreas Gick 2010-11-01 20:31:37 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > Created an attachment (id=252461) [details] [details]
> > New ebuild making the use of a new user/group and initscript optional via the
> > local useflag initscript.
> > 
> 
> Why do you fetch files in pkg_setup instead of using SRC_URI?
> 
Thanks for your hint, i simply forgot to change this in the new ebuild.
Comment 14 kirin yuri 2010-11-02 12:45:48 UTC
I'm trying to emerge i2p with "initscript" USE-flag, but i get message:
"/var/tmp/portage/net-misc/i2p-0.8-r1/temp/environment: line 4215: einitscript: command not found"

and there is no initscript in init.d

But i2p emerged successfully.

Is it requires portage-2.2 ?
Comment 15 Andreas Gick 2010-11-02 17:07:58 UTC
(In reply to comment #14)
> I'm trying to emerge i2p with "initscript" USE-flag, but i get message:
> "/var/tmp/portage/net-misc/i2p-0.8-r1/temp/environment: line 4215: einitscript:
> command not found"
> 
> and there is no initscript in init.d
> 
> But i2p emerged successfully.
> 
> Is it requires portage-2.2 ?
> 

No, it doesn't require portage-2.2. But you need to download the initscript from above and put it into <path-to-your-local-portage-tree>/net-p2p/i2p/files/. Hope this helps.

Greets Andreas
Comment 16 kirin yuri 2010-11-03 04:58:38 UTC
Nope. I got a i2p/files/i2p init-script in my local portage tree.

My problem is an absence of einitscript.
Is it some special eclass from some overlay? I do
"find /usr/portage -type f -print0| xargs -0 grep einitscript" and see nothing. I mean, "einitscript" does not used in official portage tree.
Comment 17 Andreas Gick 2010-11-03 15:41:45 UTC
(In reply to comment #16)
> Nope. I got a i2p/files/i2p init-script in my local portage tree.
> 
> My problem is an absence of einitscript.
> Is it some special eclass from some overlay? I do
> "find /usr/portage -type f -print0| xargs -0 grep einitscript" and see nothing.
> I mean, "einitscript" does not used in official portage tree.
> 

(In reply to comment #16)
> Nope. I got a i2p/files/i2p init-script in my local portage tree.
> 
> My problem is an absence of einitscript.
> Is it some special eclass from some overlay? I do
> "find /usr/portage -type f -print0| xargs -0 grep einitscript" and see nothing.
> I mean, "einitscript" does not used in official portage tree.
> 

In fact, i use paludis as package manager and use i2p without initscript that's why i'm kind of clueless at the moment. Maybe Oleg can shed light into this matter, because it seems to be related to this line in the ebuild:                 einitscript i2p -1 -1 /opt/i2p/home/ i2p -m

Nevertheless, i2p should run with the initscript, if you just copy the existing initscript into /etc/init.d/i2p.

Greets Andreas
Comment 18 kirin yuri 2010-11-04 13:48:27 UTC
Created attachment 253185 [details]
i2p ebuild

I have change 'einitscript i2p -1 -1 /opt/i2p/home/ i2p -m' to

'newinitd "${FILESDIR}"/i2p i2p'

and return line with 'enewuser ${PN} -1 -1 /opt/i2p/home/ ${PN} -m'
Comment 19 Andreas Gick 2010-11-24 18:54:37 UTC
Created attachment 255349 [details]
ebuild for the latest version of i2p

Thanks to Oleg's and Kirin's cooperation the ebuild looks much cleaner now.
Comment 20 Andreas Gick 2010-12-30 15:12:08 UTC
Created attachment 258433 [details]
ebuild for the latest version of i2p
Comment 21 Andreas Gick 2011-01-06 18:53:49 UTC
Due to the fact that i2p's build system is somewhat strange, the sunrise guys on irc pointed me to the java overlay. Anyway, one needs the jetty distribution file in order to get i2p to compile, which reduces the chances for the i2p ebuild being accepted in its current form by any overlay, I suppose. 

For the time being I will update to the latest versions of i2p within this bug report. Maybe I can upgrade the ebuild to a more acceptable form after I will have talked to the i2p devs. 
Comment 22 Andreas Gick 2011-02-06 19:12:07 UTC
Created attachment 261671 [details]
ebuild for the latest version of i2p
Comment 23 Oleg Popov 2011-02-27 17:06:52 UTC
Created attachment 264073 [details]
hardened-aware version

Added pax-mark to make ebuild usable on Hardened
Comment 24 Andreas Gick 2011-03-03 19:34:46 UTC
Created attachment 264613 [details]
new version...
Comment 25 gtlinuxman 2011-04-15 04:47:39 UTC
Created attachment 270017 [details]
i2p-0.8.4.ebuild

hi folk
can you test new ebuild?
Comment 26 gtlinuxman 2011-04-15 04:50:17 UTC
Created attachment 270019 [details]
metadata.xml

longlong description moved from ebuild to longdescription field of metadata
Comment 27 gtlinuxman 2011-04-15 05:04:32 UTC
Created attachment 270023 [details]
i2p-0.8.4.ebuild

added symlink to eepget
Comment 28 Andreas Gick 2011-04-25 09:10:06 UTC
Created attachment 271105 [details]
new ebuild for version 0.8.5

Hi gtlinuxman,

copied your version of the over to the latest version of net-p2p/i2p-0.8.5 and tested the ebuild. i2p seems to work, but I noticed a permission denied error during the compilation:

"Execute failed: java.io.IOException: Cannot run program "mtn" (in directory "/var/tmp/paludis/net-p2p-i2p-0.8.5/work/i2p-0.8.5/apps/streaming/java"): java.io.IOException: error=13, Permission denied"

I'm not sure, what exactly happens there. 

Kind regards,

Andreas
Comment 29 gtlinuxman 2011-04-26 07:02:55 UTC
I also don't know, what happens there.
but the jar compiles successfully without the execution of 'mtn':
 jar:
     [exec] Execute failed: java.io.IOException: Cannot run program "mtn" (in directory "/var/tmp/portage/net-p2p/i2p-0.8.5/work/i2p-0.8.5/apps/i2psnark/java"): java.io.IOException: error=2, No such file or directory
      [jar] Building jar: /var/tmp/portage/net-p2p/i2p-0.8.5/work/i2p-0.8.5/apps/i2psnark/java/build/i2psnark.jar

wtf mtn? :)

I am not so familiar with the ant build system, sorry. But I am believe that java-ant-2.eclass depends on all really needed packages of ant, and eant is doing all necessary things to properly build a new packages.
Comment 30 Andreas Gick 2011-05-25 09:13:32 UTC
Created attachment 274571 [details]
ebuild for version 0.8.6
Comment 31 Andreas Gick 2011-07-13 12:03:41 UTC
Created attachment 279977 [details]
ebuild for version 0.8.7

Some path adjustments were necessary...
Comment 32 Andreas Gick 2011-09-16 08:43:36 UTC
Created attachment 286635 [details]
ebuild for version 0.8.8
Comment 33 neko259 2011-10-15 19:11:30 UTC
0.8.9 needs to change JAVA_HOME in wrapper.conf
Otherwise it is unable to start (for me).
Comment 34 Andreas Gick 2011-11-13 10:23:21 UTC
Created attachment 292375 [details]
ebuild for version 0.8.11

Added wrapper.java.command=/etc/java-config-2/current-system-vm/bin/java to wrapper.config.
Comment 35 neko259 2012-01-22 21:03:32 UTC
Well, any progress in including this to the upstream? The latest attachment works great with 0.8.12 (last releas) also.
Comment 36 Andreas Gick 2012-01-26 08:25:23 UTC
Created attachment 299921 [details]
ebuild for latest release
Comment 37 Andreas Gick 2012-03-07 14:17:58 UTC
Created attachment 304547 [details]
ebuild for latest release
Comment 38 Andreas Gick 2012-05-10 10:10:47 UTC
Created attachment 311347 [details]
Latest ebuild for version 0.9
Comment 39 Michael Palimaka (kensington) gentoo-dev 2012-05-22 13:40:34 UTC
*** Bug 396681 has been marked as a duplicate of this bug. ***
Comment 40 Steven Newbury 2012-05-28 06:13:17 UTC
(In reply to comment #39)
> *** Bug 396681 has been marked as a duplicate of this bug. ***

My ebuild in the above bug has a working initscript and uses normal filesystem locations instead of /opt.  It also builds the java wrapper from source instead of using the bundled binaries.
Comment 41 Steven Newbury 2012-05-29 17:18:02 UTC
It was suggested by Michael to merge my ebuild with the one in this bug.  As it happens, my version was originally derived from an earlier version of this ebuild.  Currently, the only thing missing is the initscript USEFLAG since my version installs an initscript unconditionally.  Since I have i2p running under it's own user, with logging in /var/log/i2p, configuration in /etc/i2p and uses /var/i2p (/var/www equivalent) I don't really see a use case for not installing the initscript.
Comment 42 Andreas Gick 2012-06-29 07:35:45 UTC
Sorry for not having answered for so long. First of all, please, feel free to add your version of the ebuild to this bug report. The reason why I added the use initscript use flag was partly out of curiosity for ebuild development (to see if it works) and partly, because I'm not familiar with a separate user for a specific program. But I suppose, you're right, that there's no reason of not adding an initscript and a user, because one doesn't have to use it. Regards Andreas
Comment 43 Andrey Aleksandrovich 2012-08-28 13:44:54 UTC
Hello there
I tried i2p-0.9.1 from here: http://gpo.zugaina.org/net-p2p/i2p
but have no luck to build it :(

build.log
http://bpaste.net/show/42484/

emerge --info
http://bpaste.net/show/42487/


what's wrong?
Comment 44 Andreas Gick 2012-08-28 16:01:11 UTC
Created attachment 322454 [details]
Ebuild for latest version
Comment 45 Andreas Gick 2012-08-28 16:06:37 UTC
(In reply to comment #43)
> Hello there
> I tried i2p-0.9.1 from here: http://gpo.zugaina.org/net-p2p/i2p
> but have no luck to build it :(
> 
> build.log
> http://bpaste.net/show/42484/
> 
> emerge --info
> http://bpaste.net/show/42487/
> 
> 
> what's wrong?

You could try my latest ebuild or use (In reply to comment #43)
> Hello there
> I tried i2p-0.9.1 from here: http://gpo.zugaina.org/net-p2p/i2p
> but have no luck to build it :(
> 
> build.log
> http://bpaste.net/show/42484/
> 
> emerge --info
> http://bpaste.net/show/42487/
> 
> 
> what's wrong?
Hi Andrey,

you could try my latest ebuild that I've just submitted and you could also try Steven's version which is more FHS compliant. See:

https://bugs.gentoo.org/attachment.cgi?id=314061

Regards Andreas
Comment 46 Andrey Aleksandrovich 2012-08-28 17:50:49 UTC
>>> Hi Andrey,

>>> you could try my latest ebuild that I've just submitted and you could also try Steven's version which is more FHS compliant.


Thanks, but have no success either...

1. Steven's version
https://bugs.gentoo.org/attachment.cgi?id=314061
build.log
http://bpaste.net/show/42517/

2. Yours one
https://bugs.gentoo.org/attachment.cgi?id=322454
build.log
http://bpaste.net/show/42518/

any ideas?
Comment 47 Andreas Gick 2012-08-28 18:47:57 UTC
(In reply to comment #46)
> >>> Hi Andrey,
> 
> >>> you could try my latest ebuild that I've just submitted and you could also try Steven's version which is more FHS compliant.
> 
> 
> Thanks, but have no success either...
> 
> 1. Steven's version
> https://bugs.gentoo.org/attachment.cgi?id=314061
> build.log
> http://bpaste.net/show/42517/
> 
> 2. Yours one
> https://bugs.gentoo.org/attachment.cgi?id=322454
> build.log
> http://bpaste.net/show/42518/
> 
> any ideas?

Maybe it has something to do with icedtea. So you could download the i2p sources and build it without using an ebuild...
Comment 48 Andrey Aleksandrovich 2012-08-28 19:52:36 UTC
>>>So you could download the i2p sources and build it without using an ebuild...

Have tried. The compilation error is the same (as with your ebuild):
http://bpaste.net/show/42518/

>>>  Maybe it has something to do with icedtea.
Like what? I can try to update icedtea to latest version, but no fact this will help. By the way, i2p is open source, and the error reason can be found. Maybe upstream developers will help.
How can I contact them?
Homepage http://www.i2p.net/ doesn't work for me...
Comment 49 Piotr Szymaniak 2012-08-29 07:43:26 UTC
(In reply to comment #48)
> How can I contact them?
> Homepage http://www.i2p.net/ doesn't work for me...

Looking at URL in this bug it is http://www.i2p2.de
Comment 50 Andrey Aleksandrovich 2012-08-29 12:11:00 UTC
(In reply to comment #49)
> (In reply to comment #48)
> > How can I contact them?
> > Homepage http://www.i2p.net/ doesn't work for me...
> 
> Looking at URL in this bug it is http://www.i2p2.de

http://www.i2p2.de doesn't work for me too. I don't know why...
Meybe there is e-mail or jabber?
Comment 51 Andreas Gick 2012-08-29 17:43:23 UTC
(In reply to comment #50)
> (In reply to comment #49)
> > (In reply to comment #48)
> > > How can I contact them?
> > > Homepage http://www.i2p.net/ doesn't work for me...
> > 
> > Looking at URL in this bug it is http://www.i2p2.de
> 
> http://www.i2p2.de doesn't work for me too. I don't know why...
> Meybe there is e-mail or jabber?

You could try to contact the irc channel on freenode.
Comment 52 Andrey Aleksandrovich 2012-08-29 17:56:25 UTC
Ok, will try. Thanks to all!
Comment 53 Andrey Aleksandrovich 2012-08-29 20:08:17 UTC
Built successful!
Have to be more attentive. In my last build.log
http://bpaste.net/show/42518/
can be seen, that few lines above word 'BUILD FAILED' there is some note:
[echo] See the file "build.properties" if this step fails.

Well, I saw that file, and, according to that compiling fails on section 'doBuildEXE', I clap my eyes on last two lines:

# Uncomment the next line to prevent building EXEs (changing it to false will have no impact)
#noExe=true

So, I did uncomment 'noExe=true' (I am linux user, and don't need win's EXEs), restarted compilation... and have seen
BUILD SUCCESSFUL
That's it.


Well, the ebuild must contain USE flag such as 'noexe' or something like that, which will enable or disable 'noExe=true' option in build.properties file.

Next. README.txt file (in the root of sources) contain this:
To build:
	On x86 systems do:
		ant pkg

	On non-x86, use one of the following instead:
		ant installer-linux
		ant installer-freebsd
		ant installer-osx

I don't sure about meaning of this. AFAIK x86/non-x86 relates to architecture of CPU, but not operating system.
So, if I have 'Intel Pentium D' (32-bit processor, x86 arch) I have to run
ant pkg
Or if I have Intel Itanium (ia-64, non-x86) I have to run (for linux)
ant installer-linux

BUT if I have any 64-bit CPU wich is compatible with x86 (other words - x86_64) which command have I to run? What will be the correct way?
I ask about that because kernel also has the option:
CONFIG_IA32_EMULATION
which can be disabled on amd64 for security reasons.
And our Gentoo itselfs has two variants of x86_64 arch: no-multilib and default (with 32-bit libs). Which also can be switched to first for security.

So, the ebuild has to contain several appropriate build commands depending on CPU type and system profile.
Correct me if I'm wrong.


ps Sorry for 'many letters' :)
Comment 54 Andrey Aleksandrovich 2012-08-31 18:06:37 UTC
(In reply to comment #44)
> Created attachment 322454 [details]
> Ebuild for latest version

Andreas Gick, I added the line below:

echo noExe=true >> build.properties;


to src_compile (prior to 'eant pkg || die') ection of your last ebuild, and the emerge work out with no problems.

This action prevents to make windows's EXE. I think we (gentoo users) don't need ones, at least in ebuild (if anybody wants, then he can realize it by USE flag, however building of EXE require 32-bit libs installed in system, and will not compile on 'no-multilib' systems, like mine). 

Good luck to all.
Comment 55 Andreas Gick 2012-09-03 10:10:50 UTC
Thanks for your efforts. Regards Andreas
Comment 56 Andrey Aleksandrovich 2012-09-26 07:09:39 UTC
Created attachment 325016 [details]
ebuild for version 0.9.2
Comment 57 Andreas Gick 2012-11-12 13:54:30 UTC
Created attachment 329340 [details]
ebuild for version 0.9.3

Hi, the latest ebuild reflects that the jetty files aren't needed anymore to build i2p and that the configuration variables need to be set manually, because upstream expects that one uses their installer (See i2prouter script.). Note that I set the variable HOME_USER to /home/$USER, otherwise i2p complains to not being able to find HOME_USER. This is ok, when not using an initscript, but I'm not sure, how to solve this for starting i2p through /etc/init.d... If somebody has suggestion, please let me know

One of the reasons why the svn maintainers rejected the ebuild was that SRC_URI contained two sources. By now it is possible to have only source in SRC_URI, it may enhance chances to include i2p into sunrise. I also tried to use Steven's ebuild without building another wrapper, but ran into a bunch of errors. I did that because the source of the wrapper is also included in SRC_URI, which should only contain one source. So maybe an extra ebuild for the wrapper would be appropriate. Anyway, this time I sticked with installing i2p into /opt/i2p.

Best regards,
Andreas
Comment 58 Andreas Gick 2012-11-12 16:20:04 UTC
Created attachment 329352 [details]
i2p-0.9.3-r1.ebuild corrected ebuild
Comment 59 Andreas Gick 2012-11-12 17:14:17 UTC
Comment on attachment 329352 [details]
i2p-0.9.3-r1.ebuild corrected ebuild

Please apologize the inconvenience, but I found some config errors which should now be corrected.
Comment 60 Andrey Aleksandrovich 2012-11-18 09:36:32 UTC
Andreas, thanks a lot!
Comment 61 Andrey Aleksandrovich 2012-12-20 17:17:28 UTC
Created attachment 332804 [details]
i2p-0.9.4.ebuild
Comment 62 neko259 2012-12-26 20:01:05 UTC
3 years have passed, and we still don't have this ebuild in the main tree. Is there any chance it will be pushed to upstream?
Comment 63 gtlinuxman 2013-01-11 11:05:50 UTC
Created attachment 335166 [details]
i2p-0.9.4.ebuild

Hi folks!
I have rewrote the ebuild and the init file.
Could you check and test, please?
Comment 64 gtlinuxman 2013-01-11 11:06:52 UTC
Created attachment 335170 [details]
Init script
Comment 65 gtlinuxman 2013-01-11 13:24:33 UTC
Created attachment 335180 [details]
i2p-0.9.4.ebuild

With some minor fixes. Thx to gentoo devs
Comment 66 M. B. 2013-01-24 18:09:16 UTC
Created attachment 336744 [details]
initscript

This version of the initscript contains a raised timeout so /etc/init.d/i2p stop doesn't reply with "Service refused to stop" and the service exits shortly after.

Diff to the previous version:
--- -	2013-01-24 19:08:42.076406755 +0100
+++ i2p	2013-01-24 19:04:56.000000000 +0100
@@ -31,7 +31,7 @@
 stop() {
 	ebegin "Stopping I2P"
 #	/opt/i2p/i2prouter stop
-	start-stop-daemon --stop -u i2p --pidfile "$PIDFILE" --quiet --exec $WRAPPER_CMD
+	start-stop-daemon --stop -u i2p --pidfile "$PIDFILE" --quiet --exec $WRAPPER_CMD -R SIGTERM/20 SIGKILL/20 -P
 	eend $?
Comment 67 M. B. 2013-01-24 18:11:59 UTC
Created attachment 336746 [details]
i2p-0.9.4-r1.ebuild

This ebuild fixes a broken eepget as well as a possibly broken runplain.sh.

--- -	2013-01-24 19:10:35.361215686 +0100
+++ ../i2p-0.9.4-r1.ebuild	2013-01-24 16:58:35.000000000 +0100
@@ -39,13 +39,15 @@
 USER_HOME="$HOME"\
 SYSTEM_java_io_tmpdir="$USER_HOME/.i2p"' \
 		i2prouter || die
-	sed -i "/appropriate\ paths/a\
+	sed -i "/appropriate\ path/a\
 INSTALL_PATH=\"${EROOT}opt/i2p\""\
-		i2prouter || die
+		i2prouter runplain.sh || die
 	sed -i 's:%USER_HOME:$USER_HOME:g' \
 		i2prouter || die
 	sed -i 's:%INSTALL_PATH:$INSTALL_PATH:g' \
-		eepget i2prouter runplain.sh || die
+		i2prouter runplain.sh || die
+	sed -i 's:%INSTALL_PATH:'${EROOT}opt/i2p':g' \
+		eepget
 	sed -i 's:%SYSTEM_java_io_tmpdir:$SYSTEM_java_io_tmpdir:g' \
 		i2prouter runplain.sh|| die
 	sed -i s:'$INSTALL_PATH':"${EROOT}opt/i2p":g \
Comment 68 M. B. 2013-03-12 18:43:32 UTC
Created attachment 341832 [details]
i2p-0.9.5.ebuild

Bump to 0.9.5.

I added lots of logic to avoid re-installing libs that are available via portage.

Those are:
jrobin
jakarta-jstl
java-service-wrapper
commons-logging
commons-el

also adding gmp to the depend makes i2p build against it.

PS: please review and comment. i'm an utter noob regarding java vs. ebuilds.
Comment 69 M. B. 2013-03-12 18:47:39 UTC
Created attachment 341838 [details]
./files/i2p (initscript)

the initscript required for my 0.9.5.ebuild


ps: those two are available in my tbc-overlay via layman.
Comment 70 M. B. 2013-03-13 20:04:15 UTC
Created attachment 341946 [details]
i2p-0.9.5-r1.ebuild

looks like my approach to replacing commons-el.jar and commons-logging.jar didn't work out and broke the built-in jetty server.
this -r1 keeps commons-el and commons-logging still as dependencies but doesn't rely on them. if someone is able to work out a way to replace them - i'm open for suggestions.
Comment 71 Andreas Gick 2013-03-16 09:41:26 UTC
(In reply to comment #70)
> Created attachment 341946 [details]
> i2p-0.9.5-r1.ebuild
> 
> looks like my approach to replacing commons-el.jar and commons-logging.jar
> didn't work out and broke the built-in jetty server.
> this -r1 keeps commons-el and commons-logging still as dependencies but
> doesn't rely on them. if someone is able to work out a way to replace them -
> i'm open for suggestions.

There were some encoding errors during compilation with the 0.9.5-r1 ebuild. With the older version - last used in this bug report 0.9.3 - installation succeeded.

These are the errors:

listChangedFiles:

jar:
      [jar] Building jar: /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/sam/java/build/sam.jar

buildSusiMail:

compile:
    [mkdir] Created dir: /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/WEB-INF/classes
    [javac] Compiling 27 source files to /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/WEB-INF/classes


Error:
  * In program cave perform install --hooks --managed-output --output-exclusivity with-others =net-p2p/i2p-0.9.5-r1:0::x-portage --destination installed --replacing =net-p2p/i2p-0.9.4:0::installed --x-of-y 4 of 4:
  * When installing 'net-p2p/i2p-0.9.5-r1:0::x-portage' replacing { 'net-p2p/i2p-0.9.4:0::installed' }:
  * When running an ebuild command on 'net-p2p/i2p-0.9.5-r1:0::x-portage':
  * Install failed for 'net-p2p/i2p-0.9.5-r1:0::x-portage' (paludis::ActionFailedError)

    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:297: unmappable character for encoding ASCII
    [javac]             "From: Sm??rebr??d <smoerebroed@mail.i2p>\r\n" +
    [javac]                      ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:297: unmappable character for encoding ASCII
    [javac]             "From: Sm??rebr??d <smoerebroed@mail.i2p>\r\n" +
    [javac]                       ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:297: unmappable character for encoding ASCII
    [javac]             "From: Sm??rebr??d <smoerebroed@mail.i2p>\r\n" +
    [javac]                            ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:297: unmappable character for encoding ASCII
    [javac]             "From: Sm??rebr??d <smoerebroed@mail.i2p>\r\n" +
    [javac]                             ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:298: unmappable character for encoding ASCII
    [javac]             "To: ???????? <lalala@mail.i2p>\r\n";
    [javac]                  ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:298: unmappable character for encoding ASCII
    [javac]             "To: ???????? <lalala@mail.i2p>\r\n";
    [javac]                   ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:298: unmappable character for encoding ASCII
    [javac]             "To: ???????? <lalala@mail.i2p>\r\n";
    [javac]                    ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:298: unmappable character for encoding ASCII
    [javac]             "To: ???????? <lalala@mail.i2p>\r\n";
    [javac]                     ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:298: unmappable character for encoding ASCII
    [javac]             "To: ???????? <lalala@mail.i2p>\r\n";
    [javac]                      ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:298: unmappable character for encoding ASCII
    [javac]             "To: ???????? <lalala@mail.i2p>\r\n";
    [javac]                       ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:298: unmappable character for encoding ASCII
    [javac]             "To: ???????? <lalala@mail.i2p>\r\n";
    [javac]                        ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:298: unmappable character for encoding ASCII
    [javac]             "To: ???????? <lalala@mail.i2p>\r\n";
    [javac]                         ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:301: unmappable character for encoding ASCII
    [javac]             System.out.println( hl.encode( "test ??????" ) );
    [javac]                                                  ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:301: unmappable character for encoding ASCII
    [javac]             System.out.println( hl.encode( "test ??????" ) );
    [javac]                                                   ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:301: unmappable character for encoding ASCII
    [javac]             System.out.println( hl.encode( "test ??????" ) );
    [javac]                                                    ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:301: unmappable character for encoding ASCII
    [javac]             System.out.println( hl.encode( "test ??????" ) );
    [javac]                                                     ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:301: unmappable character for encoding ASCII
    [javac]             System.out.println( hl.encode( "test ??????" ) );
    [javac]                                                      ^
    [javac] /var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/src/src/i2p/susi/webmail/encoding/HeaderLine.java:301: unmappable character for encoding ASCII
    [javac]             System.out.println( hl.encode( "test ??????" ) );
    [javac]                                                       ^
    [javac] 18 errors

BUILD FAILED
/var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/build.xml:93: The following error occurred while executing this line:
/var/tmp/paludis/net-p2p-i2p-0.9.5-r1/work/i2p-0.9.5/apps/susimail/build.xml:18: Compile failed; see the compiler error output for details.

Total time: 2 minutes 8 seconds

!!! ERROR in net-p2p/i2p-0.9.5-r1::x-portage:
!!! In eant at line 1044
!!! eant failed

!!! Call stack:
!!!    * eant (/var/tmp/paludis/net-p2p-i2p-0.9.5-r1/temp/loadsaveenv:1044)
!!!    * java-pkg-2_src_compile (/var/tmp/paludis/net-p2p-i2p-0.9.5-r1/temp/loadsaveenv:3362)
!!!    * src_compile (/var/tmp/paludis/net-p2p-i2p-0.9.5-r1/temp/loadsaveenv:5665)
!!!    * ebuild_f_compile (/usr/libexec/paludis/2/src_compile.bash:56)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:668)
!!!    * main (/usr/libexec/paludis/ebuild.bash:691)

diefunc: making ebuild PID 22664 exit with error
die trap: exiting with error

Btw., sooner or later I'd like to give i2p another try to reach at least the sunrise overlay. After that it will hopefully be included into the main tree. What's the main advantage of your approach?
Comment 72 M. B. 2013-03-16 10:38:38 UTC
Which jdk are you using? `emerge --info` might be helpful, too.

And the main advantage of my approach is that there are no duplicates of packages from the tree stored on the system. It is, however, a rather fragile attempt since not intended/supported by upstream.
Comment 73 M. B. 2013-03-16 11:45:22 UTC
Created attachment 342216 [details, diff]
encoding.patch

i hacked up this quickfix. please apply it to your ebuild and see if it works.
Comment 74 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-04-14 17:23:30 UTC
Created attachment 345582 [details]
Obsoleted attachments for which the author has attached a newer version.
Comment 75 Andrey Aleksandrovich 2013-06-04 18:07:18 UTC
Created attachment 350120 [details]
i2p-0.9.6.ebuild
Comment 76 Andrey Aleksandrovich 2013-07-19 17:35:03 UTC
Created attachment 353670 [details]
i2p-0.9.7.ebuild
Comment 77 Andreas Gick 2013-07-25 09:46:43 UTC
Created attachment 354154 [details]
error building i2p-0.9.7

Running into build errors while compiling susimail. Seems to have to do with encoding problems. Tried to compile with IcedTea JDK 6.1.12.6 and Oracle JDK 1.7.0.25. Btw. thanks for keeping the ebuild up to date.

Greets Andreas
Comment 78 Andreas Gick 2013-07-25 16:10:18 UTC
Please notice that i2p compiled after unpacking the sources and running "ant pkg". Anyway, I appreciate the newer ebuild-versions(In reply to Andreas Gick from comment #77)
> Created attachment 354154 [details]
> error building i2p-0.9.7
> 
> Running into build errors while compiling susimail. Seems to have to do with
> encoding problems. Tried to compile with IcedTea JDK 6.1.12.6 and Oracle JDK
> 1.7.0.25. Btw. thanks for keeping the ebuild up to date.
> 
> Greets Andreas

Sorry for the false alarm, I was able to install i2p with M.B.'s encoding-patch. I didn't realize that I had reported the same error some time ago. I just wonder why the encoding issue doesn't cause any error on other machines, because I had the same effects with either icedtea or oracle jdk.

If I find the time this weekend, I'll talk to the sunrise-devs again to see, if i2p can be included into sunrise. 

Regards Andreas
Comment 79 Andrey Aleksandrovich 2013-07-26 15:13:29 UTC
>>> http://www.i2p2.i2p/release-0.9.7
>>> As we think the last release fixed the experimental
>>> update-via-torrent bugs, 3% of routers should update
>>> over in-network bittorrent this cycle.

So, perhaps updating ebuild is no longer needed.
Comment 80 Michael Rowell 2013-08-22 22:16:59 UTC
Created attachment 356712 [details]
i2p-0.9.7.1.ebuild

Version bump.
Comment 81 Michael Rowell 2013-08-22 22:17:20 UTC
(In reply to Andrey Aleksandrovich from comment #79)
> >>> http://www.i2p2.i2p/release-0.9.7
> >>> As we think the last release fixed the experimental
> >>> update-via-torrent bugs, 3% of routers should update
> >>> over in-network bittorrent this cycle.
> 
> So, perhaps updating ebuild is no longer needed.

Unless someone is trying to install I2P for the first time, in which case they would probably still need an ebuild, no?

Anyway, 0.9.7.1 was released 12 days ago and includes a security fix, and other fixes detailed at http://www.i2p2.de/release-0.9.7.1

Attaching a version-bump ebuild.
Comment 82 Alex Efros 2013-09-20 23:15:40 UTC
Current init-script doesn't work because directory /var/lib/i2p/.i2p/ doesn't exists.
It should be created by .ebuild or init-script OR you just should set I2P_CONFIG_DIR="$USER_HOME" - I mean, directory /var/lib/i2p/ doesn't used for anything except keeping .i2p subdirectory, so why we need .i2p subdir at all?

Also, I didn't like to keep log-files (wrapper.log and logs/*) in app directory - they should be moved to /var/log/i2p/ - is it possible to configure this?
Comment 83 Alex Efros 2013-09-20 23:24:53 UTC
(In reply to Andrey Aleksandrovich from comment #79)
> So, perhaps updating ebuild is no longer needed.

Why is that? You think i2p will auto-update itself? I don't think that's possible, because i2p actually run as a service using "i2p" account (or using some user's account when started manually), while it files installed into /usr/share/i2p/ are owned by root.
Comment 84 Alex Efros 2013-10-11 12:17:06 UTC
To update to 0.9.8.1 it's enough to rename ebuild.

Btw, it would be nice to speedup it:
1) avoid generating translations for all languages (use $LINGUAS)
2) (if possible) build in parallel on all CPU/Cores
Comment 85 Andreas Gick 2014-02-03 12:40:31 UTC
Created attachment 369434 [details]
ebuild for version 0.9.10

Had to adjust SRC_URI to reflect the new location of the source file.
Comment 86 neko259 2014-06-17 08:05:52 UTC
Last version is 0.9.13 as of now.
Comment 87 M. B. 2014-07-21 22:53:14 UTC
Created attachment 381294 [details]
i2p-0.9.13.ebuild

Made a couple of changes regarding dependencies.
* dropped dependency on jakarta-jstl (apparently isn't needed anymore?)
* switched back to using provided jrobin (not keyworded for ~arm)
* depending on current java-service-wrapper (for arm compatibility)
* builds on arm now (with icedtea-6), keyworded for ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86



--- i2p-0.9.12.ebuild	2014-07-15 15:41:49.721577049 +0200
+++ i2p-0.9.13.ebuild	2014-07-21 12:26:10.376431589 +0200
@@ -1,5 +1,5 @@
 # Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the WTFPL
+# Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
 EAPI="4"
@@ -12,13 +12,11 @@
 HOMEPAGE="http://www.i2p2.de/"
 
 SLOT="0"
-KEYWORDS="~x86 ~amd64 ~x86-fbsd"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86"
 LICENSE="Apache-2.0 BSD GPL-2 GPL-3 IJG LGPL-2.1 LGPL-3 MIT MPL-1.1 public-domain"
 IUSE="initscript"
 DEPEND=">=virtual/jdk-1.6
-	dev-java/jakarta-jstl
 	dev-java/java-service-wrapper
-	dev-java/jrobin
 	dev-libs/gmp
 	sys-devel/gettext"
 RDEPEND="${DEPEND}"
@@ -93,6 +91,7 @@
 						javax.servlet \
 						jbigi \
 						jetty* \
+						jrobin \
 						mstreaming \
 						org.mortbay.* \
 						router* \
Comment 88 M. B. 2014-07-21 22:54:39 UTC
The ebuild is also available from my overlay (tbc). And I would like to volunteer for proxy-maintaining it, so we finally get that thing in the tree.
Comment 89 anonymous 2014-07-22 11:23:49 UTC
(In reply to M. B. from comment #88)
> The ebuild is also available from my overlay (tbc). And I would like to
> volunteer for proxy-maintaining it, so we finally get that thing in the tree.

Please, add systemd support (like in ebuild from "nektoo" overlay)
Comment 90 anonymous 2014-07-22 11:25:44 UTC
Created attachment 381350 [details]
i2p.service
Comment 91 Alex Efros 2014-08-15 08:07:32 UTC
According to news about 0.9.14.1, quote:

> We've restored the ability to install plugins via the console, but you must first edit your router.config file (in ~/.i2p/ or /var/lib/i2p/i2p-config/ or %APPDATA%\I2P\) to add the line routerconsole.enablePluginInstall=true.

we should use

    I2P_CONFIG_DIR="$USER_HOME/i2p-config"

in initscript.

Also it might make sense to allow auto-updates for i2p by:

    chown -R i2p:i2p /usr/share/i2p

(probably this should be done only in -9999 version of ebuild) or at least mention this possibility in ebuild's ewarn/einfo.
Comment 92 Sergei Trofimovich (RETIRED) gentoo-dev 2014-09-06 17:15:47 UTC
Anything particularly wrong with latest ebuild version?
Comment 93 M. B. 2014-09-09 20:53:04 UTC
actually, yes. several input forms (especially in the torrent client) are apparently buggy. 0.9.14.1 should fix that.
Comment 94 M. B. 2014-09-09 20:56:09 UTC
@alex efros: auto-updates are generally a bad idea.
why?
i2p would just dump its files and potentially drop them out of control of portage.
If you wanted to install i2p outside of portage you can still do it by hand using its own installer. But the whole sense of using portage is to provide just that control over its files.
Comment 95 Alex Efros 2014-09-10 04:10:34 UTC
(In reply to M. B. from comment #94)
> @alex efros: auto-updates are generally a bad idea.

Sure. But i2p is security tool and it isn't in portage yet. It's better to have security tool updated, no matter how, than use outdated version - if you bother about security, of course. If i2p will be added into portage and ebuild will be updated timely enough - auto-updates should be disabled.

BTW, there are some other tools which update themselves - for example `rkhunter --update` and dropbox (and it take a lot of my time to disable dropbox auto-updates).

> If you wanted to install i2p outside of portage you can still do it by hand
> using its own installer. But the whole sense of using portage is to provide
> just that control over its files.

That sounds right, in theory. In practice, it's much easier to install i2p in Gentoo using attached ebuild. Also, auto-update will change files only inside /usr/share/i2p, so it's enough to remove this directory after unmerging ebuild to cleanly uninstall it (notice about this can be added into ebuild).

So, yeah, auto-updates are generally a bad idea. But in this case it's only available option if you bother about i2p security - and I suppose most i2p users should bother about it, otherwise they won't install i2p at all.

But ebuild with enabled auto-updates probably should have -999 version.
Comment 96 M. B. 2014-11-14 23:26:41 UTC
Created attachment 389340 [details]
i2p-0.9.16.ebuild

- added nls useflag; disabling nls cuts build-time to ~10%.
- included building a native jbigi, which should especially benefit arm.
Comment 97 Anna Tikhomirova 2015-02-23 10:27:36 UTC
(In reply to M. B. from comment #96)
> - included building a native jbigi, which should especially benefit arm.

There are a couple of problems.

1) Emerge fails if you didn't have java installed prior to emerging this ebuild:

ERROR: Cannot find jni.h! Looked in "/include/jni.h"
Please set JAVA_HOME to a java home that has the JNI
 * ERROR: net-p2p/i2p-0.9.16::local failed (compile phase):
 *   building native gmp library failed

One need to logout and login again.

2) After that, emerge still fails:

Please set the environment variable $I2P to run tests.
I2P installation not found
We looked in
Not running tests against I2P installation without knowing where it is.

Please set the environment variable I2P to the location of your
I2P installation (so that $I2P/lib/i2p.jar works).
If you do so, this script will run two tests to compare your
installed jbigi with the one here you just compiled to see if
there is a marked improvement.
 * ERROR: net-p2p/i2p-0.9.16::local failed (compile phase):
 *   building native gmp library failed
Comment 98 Anna Tikhomirova 2015-02-23 18:08:00 UTC
(In reply to M. B. from comment #87)
> * dropped dependency on jakarta-jstl (apparently isn't needed anymore?)

Another problem: jakarta-jstl IS needed or you get a number of runtime errors like:

HTTP ERROR 500

Problem accessing /susidns/addressbook. Reason:

    Server Error

Caused by:

java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/LoopTag


HTTP ERROR 500

Problem accessing /susidns/addressbook. Reason:

    Server Error

Caused by:

java.lang.NoClassDefFoundError: org/apache/taglibs/standard/tag/rt/core/ForEachTag
Comment 99 Anna Tikhomirova 2015-02-23 19:51:23 UTC
Also ECDSA support is mandatory since 0.9.18, so probably dev-java/bcprov needs to be added to dependencies due to bug #528338.
Comment 100 Anna Tikhomirova 2015-02-23 19:54:01 UTC
Created attachment 397348 [details]
i2p-0.9.18.ebuild

My ebuild for 0.9.18 (I've also bumped dev-java/bcprov to 1.51 in my overlay).
Comment 101 zlg (RETIRED) gentoo-dev 2015-05-22 05:47:19 UTC
I fixed this ebuild up and added it to the tree. The current version available is 0.9.18. Thanks for your contributions, everyone!